:root{
  --bg:#f8fbff;
  --bg-soft:#f3f8ff;
  --card:#ffffff;
  --card-soft:rgba(255,255,255,.7);
  --text:#0f172a;
  --muted:#5b6b82;
  --line:#dbe6f3;
  --brand:#2563eb;
  --brand2:#0ea5e9;
  --brand3:#7c3aed;
  --shadow:0 14px 40px rgba(15,23,42,.08);
  --shadow-soft:0 8px 24px rgba(15,23,42,.06);
  --radius:20px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{margin:0;padding:0}
body{
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  line-height:1.72;
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(37,99,235,.12), transparent 55%),
    radial-gradient(800px 500px at 90% 5%, rgba(14,165,233,.12), transparent 52%),
    linear-gradient(180deg, #f8fbff 0%, #f6f9fe 45%, #fbfdff 100%);
}

img{max-width:100%;display:block}
a{color:inherit}

.wrap{
  max-width:1160px;
  margin:0 auto;
  padding:0 22px;
}

.muted{color:var(--muted)}
.small{font-size:13px}
.note{margin-top:10px}
.lower-gap{margin-top:14px}

/* topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(248,251,255,.78);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(219,230,243,.75);
}
.topbar-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:900;
  letter-spacing:.2px;
}
.brand-mark{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:#fff;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 8px 20px rgba(37,99,235,.28);
}
.nav{
  display:flex;
  align-items:center;
  gap:18px;
}
.nav a{
  text-decoration:none;
  font-size:14px;
  color:var(--muted);
  transition:color .15s ease;
}
.nav a:hover{color:var(--brand)}

/* hero */
.hero{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:26px;
  align-items:center;
  padding:38px 0 28px;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brand);
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.14);
  padding:7px 12px;
  border-radius:999px;
}
h1{
  margin:14px 0 0;
  font-size:56px;
  line-height:1.04;
  letter-spacing:-1.4px;
}
.headline{
  margin:12px 0 12px;
  font-size:19px;
  color:#1e293b;
  font-weight:600;
  max-width:36ch;
}
.intro{
  margin:0;
  font-size:15.5px;
  color:var(--muted);
  max-width:66ch;
}

/* buttons */
.linkbar{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}
.linkbtn{
  text-decoration:none;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  padding:10px 15px;
  border-radius:999px;
  font-size:14px;
  font-weight:700;
  box-shadow:0 1px 0 rgba(15,23,42,.02);
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease, color .14s ease;
}
.linkbtn:hover{
  transform:translateY(-1px);
  border-color:rgba(37,99,235,.32);
  box-shadow:0 10px 24px rgba(15,23,42,.08);
  color:var(--brand);
}
.linkbtn.primary{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow:0 12px 24px rgba(37,99,235,.24);
}
.linkbtn.primary:hover{
  color:#fff;
  filter:brightness(1.02);
}
.linkbtn.ghost{
  background:rgba(14,165,233,.08);
  border-color:rgba(14,165,233,.16);
}

/* meta */
.meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:16px;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}
.pill.status{
  background:rgba(124,58,237,.08);
  color:#6d28d9;
  border:1px solid rgba(124,58,237,.14);
}
.pill.soft{
  background:rgba(15,23,42,.045);
  color:#334155;
  border:1px solid rgba(15,23,42,.08);
}

/* hero stats */
.hero-stats{
  margin-top:22px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
}
.quickstat{
  background:rgba(255,255,255,.78);
  border:1px solid rgba(219,230,243,.9);
  border-radius:18px;
  padding:14px 12px;
  box-shadow:var(--shadow-soft);
}
.quickstat-k{
  font-size:24px;
  font-weight:900;
  letter-spacing:-.4px;
}
.quickstat-v{
  margin-top:2px;
  font-size:13px;
  color:var(--muted);
}

/* hero figure */
.hero-figure{
  margin:0;
  overflow:hidden;
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.86));
  border:1px solid rgba(219,230,243,.9);
  box-shadow:var(--shadow);
}
.hero-figure img{
  width:100%;
  height:380px;
  object-fit:cover;
  background:#eef5ff;
}
.hero-figure figcaption{
  padding:12px 14px 14px;
  font-size:13px;
  color:var(--muted);
  border-top:1px solid var(--line);
}

/* sections */
.section{
  padding:30px 0 28px;
  border-top:1px solid rgba(219,230,243,.8);
}
.section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:14px;
}
.section-tag{
  margin:0 0 4px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brand);
}
.section-desc{
  margin:0;
  max-width:52ch;
  color:var(--muted);
  font-size:14px;
}
h2{
  margin:0;
  font-size:30px;
  line-height:1.14;
  letter-spacing:-.6px;
}
h3{
  margin:0 0 8px;
  font-size:18px;
  line-height:1.35;
}

/* cards */
.card{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(219,230,243,.95);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow-soft);
}
.card p:last-child{margin-bottom:0}

/* grids */
.grid2{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:16px;
}
.grid3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:16px;
}
.grid4{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}

/* feature cards */
.feature-card{
  position:relative;
  overflow:hidden;
}
.icon-chip{
  width:34px;
  height:34px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  margin-bottom:12px;
  color:var(--brand);
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.12);
}
.feature-card p{margin:0;color:var(--muted)}

/* story */
.story-card{
  margin-top:16px;
  display:grid;
  grid-template-columns:1.2fr .8fr;
  gap:16px;
  background:linear-gradient(135deg, rgba(37,99,235,.055), rgba(14,165,233,.04));
  border:1px solid rgba(37,99,235,.12);
  border-radius:24px;
  padding:20px;
}
.story-card p{margin:0;color:#334155}
.story-card-right{
  background:rgba(255,255,255,.6);
  border:1px solid rgba(255,255,255,.8);
  border-radius:18px;
  padding:14px;
}

/* bullets */
.bullets{
  margin:0;
  padding-left:18px;
}
.bullets li{
  margin:7px 0;
}
.bullets.nice li::marker{color:var(--brand)}
.bullets.tight li{margin:5px 0}

/* highlights */
.highlight-card{
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border:1px solid rgba(219,230,243,.95);
  border-radius:18px;
  padding:18px;
  box-shadow:var(--shadow-soft);
}
.highlight-title{
  font-weight:900;
  margin-bottom:8px;
  letter-spacing:-.2px;
}
.highlight-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* stats */
.stats-panel{
  background:linear-gradient(180deg, rgba(255,255,255,.46), rgba(255,255,255,.12));
  border:1px solid rgba(219,230,243,.75);
  border-radius:26px;
  padding:18px;
}
.stat{
  border-radius:20px;
  padding:18px 14px;
  text-align:center;
}
.stat.glass{
  background:rgba(255,255,255,.76);
  border:1px solid rgba(255,255,255,.95);
  box-shadow:var(--shadow-soft);
}
.stat-k{
  font-size:28px;
  font-weight:900;
  letter-spacing:-.5px;
}
.stat-v{
  margin-top:4px;
  color:var(--muted);
  font-size:14px;
}

/* benchmark */
.benchmark-mini p{margin:0;color:var(--muted)}
.result-card{margin-top:16px}
.result-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}
.inline-link{
  color:var(--brand);
  text-decoration:none;
  font-weight:700;
}
.inline-link:hover{text-decoration:underline}

/* tables */
.table{
  margin-top:10px;
  overflow:hidden;
  border:1px solid rgba(219,230,243,.95);
  border-radius:16px;
  background:#fff;
}
.trow{
  display:grid;
  grid-template-columns:1.2fr .9fr .9fr .7fr .7fr;
  gap:10px;
  padding:12px 14px;
  border-top:1px solid rgba(219,230,243,.8);
  align-items:center;
  font-size:13.5px;
}
.trow:first-child{border-top:none}
.trow4{
  grid-template-columns:1fr .8fr .9fr 1.5fr;
}
.thead{
  background:linear-gradient(180deg, #f5f9ff, #eff5fd);
  font-weight:900;
  color:#1e293b;
}
.accent-row{
  background:rgba(37,99,235,.035);
}

/* demo */
.demo-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}
.demo-card{
  overflow:hidden;
  border-radius:20px;
  background:#fff;
  border:1px solid rgba(219,230,243,.95);
  box-shadow:var(--shadow-soft);
}
.demo-card img{
  width:100%;
  height:190px;
  object-fit:cover;
  background:#eef4fb;
}
.demo-info{
  padding:14px;
}
.demo-info h3{
  margin:0 0 6px;
  font-size:16px;
}
.demo-info p{
  margin:0;
  color:var(--muted);
  font-size:13.5px;
}

.video-panel{
  margin-top:16px;
}
.video-placeholder{
  margin-top:12px;
  min-height:240px;
  border-radius:18px;
  border:1.5px dashed rgba(37,99,235,.24);
  background:
    linear-gradient(135deg, rgba(37,99,235,.05), rgba(14,165,233,.06));
  display:grid;
  place-items:center;
  text-align:center;
  color:var(--muted);
  padding:20px;
}

/* download */
.download-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:16px;
}
.dl{
  display:block;
  text-decoration:none;
  background:#fff;
  border:1px solid rgba(219,230,243,.95);
  border-radius:20px;
  padding:18px;
  box-shadow:var(--shadow-soft);
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.dl:hover{
  transform:translateY(-2px);
  border-color:rgba(37,99,235,.22);
  box-shadow:0 16px 32px rgba(15,23,42,.10);
}
.dl-top{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}
.dl-icon{
  width:38px;
  height:38px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  color:var(--brand);
  background:rgba(37,99,235,.08);
  border:1px solid rgba(37,99,235,.12);
}
.dl-title{
  font-weight:900;
  font-size:17px;
}
.dl-meta{
  color:var(--muted);
  font-size:13px;
  margin-bottom:8px;
}
.dl p{
  margin:0;
  color:#334155;
  font-size:14px;
}
.license-box{
  margin-top:16px;
  border-radius:18px;
  padding:14px 16px;
  border:1px solid rgba(15,23,42,.08);
  background:rgba(15,23,42,.04);
  color:#334155;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* faq */
.faq-list{
  display:grid;
  gap:12px;
}
.faq-item{
  background:#fff;
  border:1px solid rgba(219,230,243,.95);
  border-radius:18px;
  padding:14px 16px;
  box-shadow:var(--shadow-soft);
}
.faq-item summary{
  cursor:pointer;
  font-weight:800;
}
.faq-item p{
  margin:10px 0 0;
  color:var(--muted);
}

/* bib */
.bib{
  margin-top:12px;
  padding:14px;
  border-radius:18px;
  background:#0b1220;
  color:#e2e8f0;
  border:1px solid rgba(15,23,42,.15);
  overflow:auto;
  font-size:12.8px;
  line-height:1.6;
}
.bib code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

/* mini links */
.mini-links{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}
.mini-links a{
  color:var(--brand);
  text-decoration:none;
  font-weight:700;
}
.mini-links a:hover{text-decoration:underline}
.dot{color:#94a3b8}

/* footer */
.footer{
  padding:28px 0 42px;
  text-align:center;
  color:var(--muted);
  font-size:14px;
  display:grid;
  gap:4px;
}

/* responsive */
@media (max-width: 1120px){
  .grid4,
  .download-grid,
  .demo-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
  .hero-stats{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width: 920px){
  .hero{
    grid-template-columns:1fr;
    align-items:start;
  }
  .section-head{
    flex-direction:column;
    align-items:start;
  }
  .grid3{
    grid-template-columns:1fr;
  }
  .grid2,
  .story-card{
    grid-template-columns:1fr;
  }
}

@media (max-width: 700px){
  .nav{display:none}
  h1{font-size:42px}
  .headline{font-size:17px}
  .grid4,
  .download-grid,
  .demo-grid,
  .grid2{
    grid-template-columns:1fr;
  }
  .hero-figure img{
    height:260px;
  }
  .hero-stats{
    grid-template-columns:1fr 1fr;
  }
  .trow{
    grid-template-columns:1.2fr .9fr .9fr .7fr .7fr;
    font-size:12.5px;
  }
  .trow4{
    grid-template-columns:1fr .8fr .9fr 1.2fr;
  }
}
