:root{
  --blue-1:#66A1FF;
  --blue-2:#3F80EB;
  --ink:#0B1020;
  --muted:#475569;
  --paper:#FFFFFF;
  --card:#FFFFFF;
  --border:rgba(2,6,23,.10);
  --orange:#F9CC6D;
  --shadow:0 12px 32px rgba(2,6,23,.12);
  --radius:18px;
  --max:1100px;
  --pad:clamp(16px, 3vw, 28px);
  --h1:clamp(36px, 6vw, 64px);
  --h2:clamp(22px, 3vw, 32px);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:var(--paper);
  line-height:1.55;
}

a{color:inherit}
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--pad);
}

.skip-link{
  position:absolute;
  left:-999px; top:auto;
  width:1px; height:1px;
  overflow:hidden;
}
.skip-link:focus{
  left:16px; top:16px;
  width:auto; height:auto;
  padding:10px 12px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  z-index:9999;
}

header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter:saturate(180%) blur(10px);
  background:rgba(255,255,255,.82);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand img{
  width:34px; height:34px;
  border-radius:10px;
  box-shadow:0 6px 18px rgba(2,6,23,.18);
}
.brand strong{font-weight:800; letter-spacing:-.02em}

.nav-links{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}
.nav-links a{
  text-decoration:none;
  color:rgba(11,16,32,.82);
  font-weight:600;
  font-size:14px;
  padding:8px 10px;
  border-radius:12px;
}
.nav-links a:hover{background:rgba(2,6,23,.05)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
  transform:translateY(0);
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn.primary{
  background:linear-gradient(135deg,var(--blue-1),var(--blue-2));
  color:#fff;
  box-shadow:0 14px 34px rgba(63,128,235,.28);
}
.btn.primary:hover{transform:translateY(-1px); box-shadow:0 18px 42px rgba(63,128,235,.34)}
.btn.secondary{
  background:rgba(2,6,23,.04);
  border-color:var(--border);
}
.btn.secondary:hover{background:rgba(2,6,23,.06)}

.hero{
  position:relative;
  padding:clamp(52px, 8vw, 92px) 0 30px;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(900px 420px at 15% 15%, rgba(249,204,109,.35), transparent 60%),
    radial-gradient(900px 420px at 90% 20%, rgba(102,161,255,.55), transparent 60%),
    radial-gradient(900px 480px at 60% 85%, rgba(63,128,235,.45), transparent 60%);
  pointer-events:none;
}
.hero-grid{
  position:relative;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:36px;
  align-items:center;
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr; gap:26px}
}

.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.75);
  border:1px solid var(--border);
  font-weight:700;
  font-size:13px;
}
.kicker .dot{
  width:10px; height:10px;
  border-radius:999px;
  background:var(--orange);
  box-shadow:0 0 0 4px rgba(249,204,109,.25);
}

h1{
  margin:14px 0 10px;
  font-size:var(--h1);
  line-height:1.03;
  letter-spacing:-.04em;
}
.lede{
  margin:0 0 18px;
  font-size:18px;
  color:rgba(11,16,32,.78);
  max-width:58ch;
}
.cta-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}

.hero-card{
  background:rgba(255,255,255,.72);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px;
}
.hero-card .icon-row{
  display:flex; align-items:center; gap:14px;
  margin-bottom:14px;
}
.hero-card img{
  width:58px; height:58px;
  border-radius:16px;
}
.hero-card h3{
  margin:0;
  font-size:18px;
  letter-spacing:-.02em;
}
.hero-card p{
  margin:8px 0 0;
  color:rgba(11,16,32,.75);
  font-size:14px;
}
.hero-stats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:16px;
}
.stat{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
}
.stat strong{
  display:block;
  font-size:16px;
  letter-spacing:-.02em;
}
.stat span{
  display:block;
  font-size:12px;
  color:rgba(11,16,32,.62);
  margin-top:2px;
}

.section{
  padding:44px 0;
}
.section h2{
  font-size:var(--h2);
  letter-spacing:-.03em;
  margin:0 0 10px;
}
.section p.section-lede{
  margin:0 0 22px;
  color:rgba(11,16,32,.72);
  max-width:70ch;
}

.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:16px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:0 10px 22px rgba(2,6,23,.06);
}
.card h3{
  margin:0 0 6px;
  letter-spacing:-.02em;
  font-size:16px;
}
.card p{
  margin:0;
  color:rgba(11,16,32,.70);
  font-size:14px;
}

.feature{grid-column:span 4;}
@media (max-width:900px){.feature{grid-column:span 6;}}
@media (max-width:620px){.feature{grid-column:span 12;}}

.callout{
  grid-column:span 12;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:18px;
  align-items:center;
  border:1px solid rgba(63,128,235,.20);
  background:linear-gradient(180deg, rgba(102,161,255,.18), rgba(255,255,255,.95));
}
@media (max-width:900px){.callout{grid-template-columns:1fr;}}

.badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}
.badge{
  font-size:12px;
  font-weight:800;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(2,6,23,.03);
}

.hr{
  height:1px;
  background:var(--border);
  margin:18px 0;
}

.footer{
  padding:26px 0 34px;
  border-top:1px solid var(--border);
  color:rgba(11,16,32,.70);
  font-size:14px;
}
.footer-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  flex-wrap:wrap;
}
.footer a{color:rgba(11,16,32,.78); text-decoration:none}
.footer a:hover{text-decoration:underline}

.doc{
  padding:38px 0 56px;
}
.doc h1{font-size:clamp(30px, 4vw, 44px)}
.doc h2{font-size:20px; margin-top:26px}
.doc p, .doc li{color:rgba(11,16,32,.78)}
.doc .meta{color:rgba(11,16,32,.60); font-size:14px}
.doc ul{padding-left:18px}

@media (prefers-color-scheme: dark){
  :root{
    --paper:#070A14;
    --card:rgba(255,255,255,.06);
    --ink:#F8FAFC;
    --muted:#94A3B8;
    --border:rgba(148,163,184,.16);
    --shadow:0 18px 40px rgba(0,0,0,.45);
  }

  body{color:var(--ink); background:var(--paper);}

  header{background:rgba(7,10,20,.70)}
  .nav-links a{color:rgba(248,250,252,.88)}
  .nav-links a:hover{background:rgba(248,250,252,.08)}

  /* Pills / badges */
  .kicker{
    background:rgba(255,255,255,.08);
    border-color:var(--border);
    color:rgba(248,250,252,.90);
  }
  .badge{background:rgba(255,255,255,.06); border-color:var(--border); color:rgba(248,250,252,.86)}

  /* General "muted" text */
  .lede,
  .section p.section-lede,
  .card p,
  .hero-card p,
  .stat span,
  .footer,
  .doc p,
  .doc li,
  .doc .meta{
    color:rgba(248,250,252,.74);
  }

  /* Cards */
  .hero-card{background:rgba(255,255,255,.08); border-color:var(--border)}
  .card{background:rgba(255,255,255,.06); border-color:var(--border)}
  .stat{background:rgba(255,255,255,.05); border-color:var(--border)}

  /* Callout + its nested "example" card (overrides inline styles on index.html) */
  .callout{
    background:linear-gradient(180deg, rgba(102,161,255,.16), rgba(255,255,255,.06));
    border-color:rgba(102,161,255,.22);
  }
  .callout p{color:rgba(248,250,252,.74) !important;}
  .callout .card{
    background:rgba(7,10,20,.55) !important;
    border-color:rgba(148,163,184,.18) !important;
  }
  .callout .card p{color:rgba(248,250,252,.78) !important;}

  /* Inline-styled paragraphs in the hero (overrides inline rgba(...) text) */
  .hero-card p[style]{color:rgba(248,250,252,.70) !important;}

  /* Code chips */
  code{
    color:rgba(248,250,252,.90);
    background:rgba(255,255,255,.08);
    border:1px solid rgba(148,163,184,.18);
    padding:2px 6px;
    border-radius:10px;
  }

  .footer a{color:rgba(248,250,252,.78)}
}
/* ---- Screenshots carousel (compact + works inline or in the features aside) ---- */

.shot-carousel{
  position:relative;
  margin-top:18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:rgba(255,255,255,.70);
  box-shadow:0 10px 22px rgba(2,6,23,.08);
  padding:8px;

  /* compact component sizing */
  max-width:520px;
  margin:14px auto 0;
}

@media (prefers-color-scheme: dark){
  .shot-carousel{ background:rgba(255,255,255,.06); }
}

.shot-viewport{
  overflow:hidden;
  border-radius:calc(var(--radius) - 6px);
}

.shot-track{
  display:flex;
  gap:6px;
  padding:0;
  margin:0;
  list-style:none;
  transform:translateX(0);
  transition:transform 260ms ease;
  will-change:transform;
}

.shot-slide{
  flex:0 0 100%;
}

.shot-figure{
  margin:0;
  padding:6px;
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(2,6,23,.04);
  border:1px solid var(--border);
  border-radius:calc(var(--radius) - 10px);
}

@media (prefers-color-scheme: dark){
  .shot-figure{ background:rgba(255,255,255,.04); }
}

.shot-figure img{
  width:auto;
  max-width:100%;
  height:auto;

  /* phone-ish preview sizing */
  max-width:320px;
  max-height:min(70vh, 520px);
  object-fit:contain;

  border-radius:22px;
  box-shadow:0 14px 40px rgba(2,6,23,.18);
}

@media (min-width: 900px){
  .shot-figure img{
    max-height:460px; /* keep compact on desktop */
  }
}

/* Buttons */
.shot-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px; height:40px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.80);
  backdrop-filter:blur(8px);
  box-shadow:0 10px 24px rgba(2,6,23,.12);
  font-size:24px;
  font-weight:900;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  user-select:none;
}
@media (prefers-color-scheme: dark){
  .shot-btn{
    background:rgba(7,10,20,.65);
    box-shadow:0 18px 44px rgba(0,0,0,.35);
  }
}

.shot-btn.prev{ left:6px; }
.shot-btn.next{ right:6px; }
.shot-btn:active{ transform:translateY(-50%) scale(.98); }

@media (max-width:620px){
  .shot-btn{ display:none; } /* rely on swipe + dots */
}

/* Dots */
.shot-dots{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:10px;
}

.shot-dot{
  width:10px; height:10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(2,6,23,.12);
  cursor:pointer;
}
@media (prefers-color-scheme: dark){
  .shot-dot{ background:rgba(255,255,255,.16); }
}

.shot-dot[aria-selected="true"]{
  width:26px;
  background:linear-gradient(135deg,var(--blue-1),var(--blue-2));
  border-color:rgba(255,255,255,.18);
}


/* ---- Features + carousel side-by-side ---- */

.features-layout{
  display:grid;
  grid-template-columns: 1fr 520px;
  gap:24px;
  align-items:start;
}

@media (max-width: 980px){
  .features-layout{ grid-template-columns: 1fr; }
}

.features-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:16px;
}
@media (max-width: 620px){
  .features-grid{ grid-template-columns: 1fr; }
}

/* When carousel sits in the aside: no auto-centering margin + optional sticky */
.features-aside .shot-carousel{
  margin:0;
  position:sticky;
  top:86px;
}
@media (max-width: 980px){
  .features-aside .shot-carousel{
    position:relative;
    top:auto;
    margin:14px auto 0;
  }
}