:root {
  --bg: #0b0f14;
  --surface: #121821;
  --surface-2: #0f141c;
  --text: #e6edf3;
  --muted: #9fb0c3;
  --brand: #5b9cff;
  --brand-2: #8a5bff;
  --ring: 0 0 0 3px rgba(91, 156, 255, 0.35);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color-scheme: dark light;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #ffffff;
    --surface: #f7f8fb;
    --surface-2: #ffffff;
    --text: #0b1220;
    --muted: #516170;
    --brand: #2b6cff;
    --brand-2: #7b35ff;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  }
}


/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(1.2) blur(8px);
  background: color-mix(in srgb, var(--surface-2) 85%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 18%, transparent);
}
.wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand .logo {
  width: 150px;


}
.brand strong {
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Primary nav */
nav {
  margin-left: auto;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-link:hover,
.nav-link:focus-visible {
  background: color-mix(in srgb, var(--brand) 10%, var(--surface-2));
  outline: none;
  box-shadow: var(--ring);
}

.caret {
  width: 10px;
  height: 10px;
  display: inline-block;
  transform: translateY(1px);
}

/* Dropdown & mega panels */
.panel {
  position: absolute;
  left: -554px;
  top: calc(100% + 10px);
  min-width: 1220px;
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.nav-item[aria-expanded="true"] > .panel {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 8px;
}
.menu-col {
  padding: 8px 6px;
}
.panel a.item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 20px;

  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.panel a.item:hover,
.panel a.item:focus-visible {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  outline: none;
}
.icn {
  width: 50px;
  height: 50px;
  padding:10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ebf6fa;
}

.label {
  font-weight: 600;
}
.sub {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Simple dropdown list */
.panel ul {
  list-style: none;
  margin: 0;
  padding: 4px;
}
.panel li a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.panel li a:hover,
.panel li a:focus-visible {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

/* Utilities: search + CTA */
.utils {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 90px;
}
.search {
  position: relative;
  min-width: 220px;
  flex: 1 1 auto;
}
.search input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid color-mix(in srgb, var(--muted) 25%, transparent);
  color: var(--text);
  padding: 10px 36px 10px 12px;
  border-radius: 12px;
}
.search svg {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

.btn {
  appearance: none;
  border: none;
  background: #ff8311;
  color: white;
  padding: 10px 14px;
  margin-right:10px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn1 {
  appearance: none;
  border: none;
  background: #fff;
  border:1px solid #666666;
  color: #000;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.btn1:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Burger (mobile) */
.burger {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 10px;
}

/* Mobile drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(92vw, 380px);
  background: var(--surface-2);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: var(--shadow);
  overflow: auto;
}
.drawer.open {
  transform: translateX(0);
}
.drawer-backdrop.open {
  display: block;
}
.drawer .section {
  padding: 16px 18px;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 15%, transparent);
}
.drawer .section h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.drawer a {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.drawer a:hover {
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}

/* Responsive */
@media (max-width: 1024px) {
  nav,
  .utils {
    display: none;
  }
  .burger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}

/* Demo hero to show transparent header */
.hero {
  padding: 90px 20px 120px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 56px);
  margin: 10px 0;
}
.hero p {
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 20px);
  margin: 0;
}
.hero .cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ghost {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  color: var(--text);
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}
.theme-toggle .mode {
  font-weight: 600;
  font-size: 0.9rem;
}
/* === Theme variable overrides (make toggle actually change colours) === */
html[data-theme="dark"] {
  --bg: #0b0f14;
  --surface: #121821;
  --surface-2: #0f141c;
  --text: #e6edf3;
  --muted: #9fb0c3;
  --brand: #5b9cff;
  --brand-2: #8a5bff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
html[data-theme="light"] {
  --bg: #ffffff;
  --surface: #f7f8fb;
  --surface-2: #ffffff;
  --text: #0b1220;
  --muted: #516170;
  --brand: #2b6cff;
  --brand-2: #7b35ff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}


@media (min-width: 1681px) and (max-width: 2020px) {
	.panel {
	  position: absolute;
	  left: -1003px;
	  top: calc(100% + 10px);
	  min-width: 1580px;

	}
}