:root{
  /* Light theme */
  --bg:#F7FAFF;
  --surface:#FFFFFF;
  --surface2:#F3F6FF;
  --border:#E3EAF7;

  --text:#0F172A;      /* slate-900 */
  --muted:#475569;     /* slate-600 */
  --muted2:#64748B;    /* slate-500 */

  --accent:#2563EB;    /* blue-600 */
  --accent2:#4F46E5;   /* indigo-600 */
  --green:#16A34A;     /* green-600 */
  --amber:#F59E0B;     /* amber-500 */
  --purple:#8B5CF6;    /* purple-500 */
  --red:#EF4444;

  --radius:14px;
  --radius2:18px;
  --shadow: 0 14px 40px rgba(15,23,42,0.10);
  --shadow2: 0 10px 24px rgba(15,23,42,0.08);

  --mono:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --body:"DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Base / Reset ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
html, body{
  margin:0;
  padding:0;
  width:100%;
  overflow-x:hidden;
}
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--body);
  line-height:1.5;
}
img, svg { max-width:100%; height:auto; }

/* Prevent tap highlight + iOS zoom issues */
a, button, input, summary { -webkit-tap-highlight-color: rgba(0,0,0,0); }
input { font-size:16px; } /* prevents iOS zoom */

/* ---------- Background ---------- */
.bg-grain{ display:none; }

/* FIXED glow that won't cause horizontal scrolling */
.bg-glow{
  position:fixed;
  top:-220px;
  left:50%;
  transform:translateX(-50%);
  width:1200px;
  height:650px;
  background: radial-gradient(
    ellipse at center,
    rgba(37,99,235,0.12) 0%,
    rgba(79,70,229,0.08) 35%,
    transparent 72%
  );
  pointer-events:none;
  z-index:0;
}

/* ---------- Utility ---------- */
.container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
  position:relative;
  z-index:1;
}
.mono{font-family:var(--mono)}
.tiny{font-size:12px}
.small{font-size:13px}
.muted{color:var(--muted)}
.center{text-align:center}

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(247,250,255,0.86);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:var(--text);
  min-width:0;
}
.logo{
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 7px rgba(37,99,235,0.16);
}
.brand-text{
  display:flex;
  flex-direction:column;
  line-height:1.05;
  min-width:0;
}
.brand-name{
  font-weight:950;
  letter-spacing:-0.02em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-tag{
  font-size:12px;
  color:var(--muted2);
  font-family:var(--mono);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nav-links{
  display:flex;
  gap:16px;
  align-items:center;
}
.nav-links a{
  color:var(--muted);
  text-decoration:none;
  font-weight:700;
  font-size:14px;
}
.nav-links a:hover{color:var(--text)}
.nav-cta{display:flex; gap:10px; align-items:center;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  padding:10px 14px;
  border:1px solid transparent;
  font-weight:850;
  text-decoration:none;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, filter .12s ease;
  user-select:none;
}
.btn:hover{transform:translateY(-1px)}
.btn-primary{
  background:linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  color:#fff;
  box-shadow:0 12px 26px rgba(37,99,235,0.22);
}
.btn-primary:hover{filter:brightness(0.98)}
.btn-outline{
  background:rgba(255,255,255,0.85);
  color:var(--text);
  border-color:var(--border);
  box-shadow:var(--shadow2);
}
.btn-outline:hover{border-color:#C7D6F5}
.btn-lg{padding:12px 18px; border-radius:14px; font-size:15px;}
.btn-block{width:100%}

/* ---------- Hero ---------- */
.hero{padding:58px 0 22px;}
.hero-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap:26px;
  align-items:start;
}
.pill{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:7px 11px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,0.85);
  color:var(--muted);
  font-size:13px;
  box-shadow:var(--shadow2);
  margin-bottom:14px;
}
.pill-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 0 7px rgba(22,163,74,.14);
}
h1{
  margin:0;
  font-size:46px;
  line-height:1.05;
  letter-spacing:-0.04em;
}
.grad{
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 55%, var(--accent2) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.subhead{
  color:var(--muted);
  font-size:17px;
  margin:14px 0 18px;
  max-width:60ch;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:20px;
}
.hero-notes{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  max-width:560px;
}
.note{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:12px 14px;
  border-radius:var(--radius);
  border:1px solid var(--border);
  background:rgba(255,255,255,0.90);
  box-shadow:var(--shadow2);
}
.note-k{font-size:12px; font-family:var(--mono); color:var(--muted2);}
.note-v{font-size:14px; color:var(--text);}
.note.warn{
  border-color: rgba(245,158,11,0.35);
  background: rgba(245,158,11,0.12);
}

/* ---------- Hero Card ---------- */
.hero-card{
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, rgba(243,246,255,1) 0%, rgba(255,255,255,1) 100%);
}
.dots{display:flex; gap:6px;}
.d{width:10px; height:10px; border-radius:50%;}
.d.red{background:var(--red)}
.d.amber{background:var(--amber)}
.d.green{background:#10B981}
.card-body{padding:14px;}

.statrow{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:12px;
}
.stat{
  padding:12px;
  border:1px solid var(--border);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(243,246,255,1) 0%, rgba(255,255,255,1) 100%);
}
.big{
  font-size:30px;
  font-weight:950;
  letter-spacing:-0.02em;
}
.big.hot{color:#B45309}

.list{display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 12px;}
.chip{
  border:1px solid var(--border);
  background:rgba(243,246,255,0.9);
  border-radius:999px;
  padding:7px 10px;
  font-size:12px;
  color:var(--muted);
  display:inline-flex;
  gap:8px;
  align-items:center;
}
.dot{width:7px;height:7px;border-radius:50%;}
.dot.hot{background:var(--amber)}
.dot.warm{background:var(--green)}
.dot.cool{background:var(--accent2)}
.dot.blue{background:var(--accent)}
.dot.green{background:var(--green)}
.dot.purple{background:var(--purple)}

.fineprint{font-size:12px; color:var(--muted2);}

/* ---------- Sections ---------- */
.section{padding:44px 0;}
h2{
  margin:0 0 8px;
  font-size:30px;
  letter-spacing:-0.03em;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:16px;
  max-width:72ch;
}

.grid-4{display:grid; grid-template-columns:repeat(4, 1fr); gap:12px;}
.grid-2{display:grid; grid-template-columns:repeat(2, 1fr); gap:12px;}

.panel{
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:var(--radius);
  padding:16px;
  box-shadow:var(--shadow2);
}
.panel h3{margin:6px 0 8px; letter-spacing:-0.02em;}
.panel p{margin:0; color:var(--muted);}

.bullets{margin:10px 0 0; padding-left:18px; color:var(--muted);}
.bullets li{margin:8px 0;}
.bullets strong{color:var(--text);}

/* ---------- Callout ---------- */
.callout{
  margin-top:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid rgba(37,99,235,0.25);
  background: rgba(37,99,235,0.08);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow:var(--shadow2);
}
.callout-title{font-weight:950; letter-spacing:-0.02em;}

/* ---------- Pricing ---------- */
.pricing{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:12px;
  align-items:stretch;
}

.price-card{
  position:relative;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:var(--radius2);
  padding:16px;
  box-shadow:var(--shadow2);
  overflow:hidden;
}
.price-card.featured{
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 18px 44px rgba(37,99,235,0.16);
}
.badge{
  position:absolute;
  top:12px;
  right:12px;
  font-size:12px;
  font-family:var(--mono);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(37,99,235,0.35);
  background: rgba(37,99,235,0.10);
}
.price-top{margin-bottom:10px;}
.price-name{font-weight:950; font-size:18px; letter-spacing:-0.02em;}
.price-amt{font-weight:980; font-size:34px; letter-spacing:-0.03em; margin-top:6px;}
.price-tag{margin-top:6px; color:var(--muted);}

/* ---------- Demo ---------- */
.demo-box{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap:14px;
  align-items:start;
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:var(--radius2);
  padding:16px;
  box-shadow:var(--shadow2);
}
.form{display:flex; flex-direction:column; gap:10px;}
label{display:flex; flex-direction:column; gap:6px; font-size:13px; color:var(--muted);}
input{
  padding:14px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(243,246,255,0.9);
  color:var(--text);
  outline:none;
}
input:focus{
  border-color: rgba(37,99,235,0.75);
  box-shadow:0 0 0 4px rgba(37,99,235,0.14);
}

/* ---------- FAQ ---------- */
.faq details{
  border:1px solid var(--border);
  background:var(--surface);
  border-radius:16px;
  padding:12px 14px;
  margin-bottom:10px;
  box-shadow:var(--shadow2);
}
.faq summary{cursor:pointer; font-weight:900;}
.faq-body{margin-top:8px; color:var(--muted);}

/* ---------- Final CTA ---------- */
.final-cta{
  margin-top:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border:1px solid var(--border);
  background: linear-gradient(135deg, rgba(243,246,255,1) 0%, rgba(255,255,255,1) 100%);
  border-radius:var(--radius2);
  padding:14px 16px;
  box-shadow:var(--shadow2);
}
.final-title{font-weight:980; letter-spacing:-0.02em; font-size:18px;}

/* ---------- Footer ---------- */
.footer{
  padding:18px 0 26px;
  border-top:1px solid var(--border);
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.footer-links{display:flex; gap:12px;}
.footer a{color:var(--muted); text-decoration:none;}
.footer a:hover{color:var(--text);}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .grid-4{grid-template-columns:repeat(2, 1fr);}
  .pricing{grid-template-columns:1fr;}
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns:1fr; gap:16px;}
  .demo-box{grid-template-columns:1fr;}
  .nav-links{display:none;}
}
@media (max-width: 560px){
  .container{padding:0 16px;}
  .hero{padding:42px 0 18px;}
  .section{padding:34px 0;}
  h1{font-size:34px; line-height:1.08; letter-spacing:-0.03em;}
  h2{font-size:26px;}

  .hero-actions a{width:100%; justify-content:center;}
  .statrow{grid-template-columns:1fr;}
  .big{font-size:28px;}
  .panel{padding:14px;}
  .price-card{padding:14px;}
  .price-amt{font-size:32px;}
}
