/* ---------- Base (global) ---------- */
:root{
  /* Color system */
  --bg: #0b0e14;
  --surface: #0f1320;
  --card: #12182a;
  --text: #eaf2ff;
  --muted: #b8c3d9;
  --brand: #0a5cff;
  --brand-2: #5aa9ff;
  --accent: #00d2a8;

  /* Effects & layout */
  --ring: 220 90% 56%;
  --shadow: 0 8px 28px rgba(2,12,27,.25);
  --radius: 14px;
  --maxw: 1180px;

  color-scheme: dark light;
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#ffffff;
    --surface:#f7f9ff;
    --card:#ffffff;
    --text:#0b1220;
    --muted:#475370;
    --shadow: 0 8px 24px rgba(10,30,70,.08);
  }
}

/* Reset-ish */
*,
*::before,
*::after{
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body{
  margin:0;
  font: 500 16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,Apple Color Emoji,Segoe UI Emoji;
  background:
    radial-gradient(1200px 800px at 80% -100px, rgba(90,169,255,.18), transparent 60%),
    radial-gradient(800px 600px at -10% -30%, rgba(0,210,168,.15), transparent 55%),
    var(--bg);
  color: var(--text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img{
  max-width:100%;
  display:block;
  height:auto;
}
a{
  color:inherit;
  text-decoration:none;
  transition: color .2s ease;
}
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* Focus styles (accessible, visible on keyboard) */
:where(a,button,[role="button"],.btn):focus-visible{
  outline: 2px solid hsl(var(--ring) / .9);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Utilities */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.6rem;
  padding:.9rem 1.2rem;
  border-radius:12px;
  background: linear-gradient(180deg,var(--brand),var(--brand-2));
  color:#fff;
  font-weight:700;
  letter-spacing:.2px;
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
  will-change: transform;
}
.btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.btn:active{
  transform: translateY(0);
}
.btn.outline{
  background:transparent;
  color:var(--text);
  border:1px solid rgba(148,163,184,.35);
  box-shadow:none;
}
.btn[disabled], .btn[aria-disabled="true"]{
  opacity:.6;
  pointer-events:none;
}

/* ---------- Header / Nav ---------- */
header{
  position: sticky;
  top:0;
  z-index:60;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom:1px solid rgba(148,163,184,.15);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:.7rem;
  font-weight:900;
  letter-spacing:.3px;
}
.logo{
  width:38px;
  height:38px;
  border-radius:10px;

}

nav ul{
  display:flex;
  gap:1rem;
  list-style:none;
  margin:0;
  padding:0;
}
nav a{
  padding:.6rem .8rem;
  border-radius:10px;
  color:var(--muted);
  font-weight:600;
  transition: background-color .2s ease, color .2s ease;
}
nav a[aria-current="page"], nav a:hover{
  color:var(--text);
  background: rgba(148,163,184,.12);
}

.nav-cta{
  display:flex;
  gap:.6rem;
  align-items:center;
}

.burger{
      order:4; 
      margin-left:auto; 
      display:none;
      background:none;
      border:0;
      padding:.5rem;
      cursor:pointer;
      border-radius:10px;
    }
.burger svg{
  width:26px;
  height:26px;
}
.menu-order{
  display:none;
}

/* Mobile nav */
@media (max-width: 900px){
  nav ul{
    display:none;
    position:absolute;
    top:64px;
    right:16px;
    flex-direction:column;
    padding:14px;
    border-radius:14px;
    background: var(--surface);
    box-shadow: var(--shadow);
    border:1px solid rgba(148,163,184,.16);
    animation: fadeIn .25s ease;
  }
  nav ul.open{ display:flex; }
  .burger{ display:inline-grid; }
  .nav-cta{ display:none; }
  .menu-order{ display:list-item; }
}
@keyframes fadeIn{
  from{opacity:0; transform:translateY(-5px);}
  to{opacity:1; transform:translateY(0);}
}

/* ---------- Sections ---------- */
.section{
  padding: clamp(48px, 7vw, 6px) 0;
}
.section h2{
  font-size:clamp(26px, 3.6vw, 36px);
  line-height:1.2;
  margin:0 0 14px;
}
.sub{
  color:var(--muted);
  margin-bottom:26px;
}

/* ---------- Footer ---------- */
footer{
  margin-top:32px;
  border-top:1px solid rgba(148,163,184,.18);
  padding:20px 0;
  color:var(--muted);
  font-size:.95rem;
  text-align:center;
}
