/* =========================
   VERCEL-ISH DESIGN SYSTEM
========================= */
:root{
  --radius: 14px;
  --radius2: 10px;
  --container: 1100px;
  --ease: cubic-bezier(.2,.8,.2,1);

  /* Dark defaults */
  --bg: #000;
  --bg2: #0a0a0a;
  --text: #fafafa;
  --muted: #a3a3a3;
  --border: rgba(255,255,255,.10);
  --border2: rgba(255,255,255,.14);
  --surface: rgba(255,255,255,.04);
  --surface2: rgba(255,255,255,.06);

  --shadow: 0 18px 60px rgba(0,0,0,.55);
  --shadow2: 0 10px 30px rgba(0,0,0,.40);

  --primary: #fff;
  --primaryText: #000;

  --ring: rgba(255,255,255,.18);
}

[data-theme="light"]{
  --bg: #fff;
  --bg2: #f7f7f7;
  --text: #0a0a0a;
  --muted: #525252;
  --border: rgba(0,0,0,.10);
  --border2: rgba(0,0,0,.14);
  --surface: rgba(0,0,0,.03);
  --surface2: rgba(0,0,0,.05);

  --shadow: 0 18px 60px rgba(0,0,0,.14);
  --shadow2: 0 10px 30px rgba(0,0,0,.10);

  --primary: #0a0a0a;
  --primaryText: #fff;

  --ring: rgba(0,0,0,.16);
}

/* Base */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 500px at 50% -200px, rgba(255,255,255,.08), transparent 55%),
    radial-gradient(900px 380px at 10% -160px, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height:1.55;
  overflow-x:hidden;
}
a{color:inherit; text-decoration:none}
.container{max-width:var(--container); margin:0 auto; padding:0 18px}

/* Subtle grid */
.grid-overlay{
  position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    linear-gradient(to right, color-mix(in srgb, var(--border) 40%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 40%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0,0,0,1) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 75%);
  opacity:.55;
}

/* Navbar */
.nav{
  position:sticky; top:0; z-index:70;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  border-bottom:1px solid color-mix(in srgb, var(--border) 85%, transparent);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0; gap:12px;
}
.brand{display:flex; align-items:center; gap:10px}
.logo{
  width:26px; height:26px; border-radius:8px;
  background: radial-gradient(circle at 30% 30%, #fff, #bdbdbd 60%, #7a7a7a 100%);
  box-shadow: 0 0 0 1px var(--border2) inset;
}
.brand-title{font-weight:800; letter-spacing:-.2px; font-size:13px}
.brand-sub{color:var(--muted); font-size:12px; margin-top:1px}

.links{display:flex; gap:4px; align-items:center; color:var(--muted); font-size:13px}
.links a{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid transparent;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.links a:hover{
  color:var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.links a.active{
  color:var(--text);
  background: var(--surface2);
  border-color: var(--border2);
}

.nav-actions{display:flex; gap:8px; align-items:center}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:10px 12px;
  border-radius: 999px;
  border:1px solid var(--border);
  background: var(--surface);
  color:var(--text);
  font-weight:700;
  font-size:13px;
  cursor:pointer;
  transition: transform .14s var(--ease), background .14s var(--ease), border-color .14s var(--ease);
}
.btn:hover{
  transform: translateY(-1px);
  background: var(--surface2);
  border-color: var(--border2);
}
.btn:active{transform: translateY(0)}
.btn.primary{
  border:1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  background: var(--primary);
  color: var(--primaryText);
}
.btn.icon{
  width:40px; height:40px; padding:0; border-radius:999px;
  font-size:16px;
}
.btn.block{width:100%}

/* Focus ring */
.btn:focus, .select:focus{
  outline:none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ring) 70%, transparent);
}

/* Drawer */
.drawer-overlay{
  position:fixed; inset:0; z-index:80;
  background: rgba(0,0,0,.40);
  opacity:0; pointer-events:none;
  transition: opacity .18s var(--ease);
}
.drawer{
  position:fixed; top:0; right:0; height:100vh; width:min(420px, 92vw);
  z-index:90;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-left:1px solid var(--border);
  backdrop-filter: blur(16px);
  transform: translateX(102%);
  transition: transform .18s var(--ease);
  padding:16px;
}
.drawer .top{display:flex; align-items:center; justify-content:space-between; padding:6px 2px 14px}
.drawer .menu{display:grid; gap:10px}
.drawer .menu a{
  padding:12px 12px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: var(--surface);
  font-weight:700;
}
.drawer .menu a:hover{background: var(--surface2); border-color: var(--border2)}
.drawer .cta{background: var(--primary); color: var(--primaryText); border-color: transparent}
.drawer-open .drawer-overlay{opacity:1; pointer-events:auto}
.drawer-open .drawer{transform: translateX(0)}

.mobile-only{display:none}
@media(max-width: 860px){
  .links{display:none}
  .mobile-only{display:inline-flex}
}

/* Layout */
.hero{padding:64px 0 18px}
.page{padding:28px 0 72px}
.card{
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
}
.card.hover{
  transition: transform .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.card.hover:hover{
  transform: translateY(-2px);
  background: var(--surface2);
  border-color: var(--border2);
}

/* Typography */
.kicker{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
  background: var(--surface);
}
.h1{
  font-size:56px;
  line-height:1.02;
  letter-spacing:-1.2px;
  margin:12px 0 10px;
}
@media(max-width:520px){.h1{font-size:40px}}
.sub{color:var(--muted); margin:0 0 18px; max-width:70ch}
.h2{font-size:20px; margin:0 0 10px; letter-spacing:-.2px}
.p{color:var(--muted); margin:0 0 14px}
.small{font-size:13px; color:var(--muted)}

.grid3{display:grid; gap:12px; grid-template-columns:repeat(3,1fr)}
.split{display:grid; gap:12px; grid-template-columns:1fr 1fr}
@media(max-width:900px){.grid3,.split{grid-template-columns:1fr}}

ul,ol{margin:10px 0 0 18px; color:var(--muted)}
li{margin:6px 0}
code{
  background: color-mix(in srgb, var(--bg) 85%, #000);
  padding:2px 8px;
  border-radius:999px;
  border:1px solid var(--border);
}

/* Pricing */
.price{font-size:34px; font-weight:800; letter-spacing:-.6px}
.price-sub{color:var(--muted); font-size:12px}
.divider{height:1px; background: color-mix(in srgb, var(--border) 70%, transparent); margin:14px 0}
.select{
  width:100%;
  border-radius:999px;
  padding:10px 12px;
  border:1px solid var(--border);
  background: var(--surface);
  color:var(--text);
  font-weight:700;
}

/* Reveal (subtle) */
.reveal{
  opacity:0;
  transform: translateY(10px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.reveal.show{opacity:1; transform: translateY(0)}

/* Toast */
.toast{
  position:fixed; left:50%; bottom:18px;
  transform: translateX(-50%);
  padding:10px 12px;
  border-radius:999px;
  border:1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  color:var(--text);
  font-weight:700;
  font-size:13px;
  box-shadow: var(--shadow2);
  opacity:0; pointer-events:none;
  transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.toast.show{opacity:1; transform: translateX(-50%) translateY(-4px)}

/* Footer */
.footer{
  padding:26px 0 46px;
  color:var(--muted);
  font-size:13px;
  border-top:1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}