:root{
  --bg:#0b1020;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.10);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.72);
  --muted2:rgba(255,255,255,.60);
  --line:rgba(255,255,255,.12);
  --shadow:0 18px 60px rgba(0,0,0,.45);
  --radius:18px;

  --brand:#6ee7ff;
  --brand2:#a78bfa;
  --ok:#34d399;
  --warn:#fbbf24;
  --bad:#fb7185;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}
[data-theme="light"]{
  --bg:#f6f7fb;
  --panel:rgba(10,18,40,.06);
  --panel2:rgba(10,18,40,.10);
  --text:rgba(10,18,40,.92);
  --muted:rgba(10,18,40,.72);
  --muted2:rgba(10,18,40,.60);
  --line:rgba(10,18,40,.12);
  --shadow:0 18px 60px rgba(10,18,40,.15);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ background: var(--bg); }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background: transparent;
  line-height:1.55;
  overflow-x:hidden;
  position:relative;
  min-height:100%;
  isolation:isolate;
}

/*
  Keep the background gradient consistent while scrolling.
  (Some browsers can visually "reset" gradients on long pages when the background is tied to the document.)
*/
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(110,231,255,.22), transparent 60%),
    radial-gradient(1000px 700px at 85% 20%, rgba(167,139,250,.20), transparent 60%),
    radial-gradient(900px 700px at 45% 95%, rgba(52,211,153,.12), transparent 60%);
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; height:auto; display:block; }
.container{ max-width:1100px; margin:0 auto; padding:0 20px; }

/* Keyboard accessibility */
:focus-visible{
  outline:3px solid rgba(110,231,255,.35);
  outline-offset:3px;
  border-radius:12px;
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; }
}

.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.10));
  border-bottom:1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
}
[data-theme="light"] .nav{
  background: linear-gradient(to bottom, rgba(255,255,255,.85), rgba(255,255,255,.55));
  box-shadow: 0 10px 26px rgba(10,18,40,.12);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:900; letter-spacing:.2px;
}
.brand-logo{
  width: 44px;
  height:44px;
  object-fit:contain;
  border-radius:10px;
  /* subtle depth so it reads well on the glassy nav */
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.35));
}
[data-theme="light"] .brand-logo{
  filter: drop-shadow(0 10px 22px rgba(10,18,40,.22));
}
.logo-dot{
  width:14px; height:14px; border-radius:50%;
  background: radial-gradient(circle at 30% 30%, var(--brand), var(--brand2));
  box-shadow: 0 0 0 4px rgba(110,231,255,.12);
}
.nav-links{
  display:flex; gap:14px; align-items:center;
  color:var(--muted);
  font-weight:800;
  font-size:14px;
}
.nav-links a{
  padding:8px 10px;
  border-radius:12px;
}
.nav-links a:hover{ background:var(--panel); color:var(--text); }
.nav-links a[data-active="true"]{ background:var(--panel2); color:var(--text); border:1px solid var(--line); }

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

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  font-weight:900;
  font-size:14px;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  user-select:none;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-1px); background:var(--panel2); border-color: rgba(255,255,255,.18); }
.btn-primary{
  background: linear-gradient(135deg, rgba(110,231,255,.22), rgba(167,139,250,.22));
  border-color: rgba(110,231,255,.26);
}
.btn-ghost{ background: transparent; }

.hamburger{ display:none; }
.mobile-panel{ display:none; border-top:1px solid var(--line); padding:10px 0 14px; }
.mobile-panel a{
  display:block;
  padding:10px 10px;
  border-radius:12px;
  color:var(--muted);
  font-weight:900;
  font-size:14px;
}
.mobile-panel a:hover{ background:var(--panel); color:var(--text); }

.hero{ padding:56px 0 24px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:26px;
  align-items:stretch;
}
.panel{
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding:26px;
  overflow:hidden;
}
.kicker{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--muted);
  font-weight:950;
  letter-spacing:.6px;
  text-transform: uppercase;
  font-size:12px;
}
.pill{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(110,231,255,.10);
  color: var(--text);
  font-weight:950;
  text-transform:none;
  letter-spacing:.2px;
}
h1{
  margin:12px 0 10px;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height:1.08;
  letter-spacing:-.7px;
}
.lead{ margin:0 0 18px; color:var(--muted); font-size:16px; max-width:60ch; }
.cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top: 12px; }

/* Reusable call-to-action strip */
.demo-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}
.demo-cta .cta{ margin-top: 0; }

.hero-media{
  border:1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
  position:relative;
}
.hero-media::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(11,16,32,.15), rgba(11,16,32,.85));
  filter:saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}
[data-theme="light"] .hero-media::before{
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(246,247,251,.90));
}
.hero-media-inner{
  position:relative;
  padding:22px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:10px;
}
.badge{
  display:inline-flex; align-items:center; gap:8px;
  width:fit-content;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.28);
  color: var(--text);
  font-weight:950;
  font-size:13px;
}
[data-theme="light"] .badge{ background: rgba(255,255,255,.65); }
.badge i{
  width:10px; height:10px; border-radius:50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52,211,153,.16);
  display:inline-block;
}

section{ padding: 38px 0; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:14px;
  margin-bottom:16px;
}
h2{ margin:0; font-size:22px; letter-spacing:-.3px; }
.sub{ margin:0; color:var(--muted); font-size:14px; max-width:70ch; }

.grid-4{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap:14px; }
.grid-3{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:14px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; }

.card{
  border:1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  padding:16px;
  position:relative;
  overflow:hidden;
  transition: transform .14s ease, background .14s ease;
}
.card:hover{ transform: translateY(-2px); background: rgba(255,255,255,.06); }
.card h3{ margin:10px 0 6px; font-size:16px; }
.card p{ margin:0; color:var(--muted); font-size:13px; }

.icon{
  width:40px; height:40px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: linear-gradient(135deg, rgba(110,231,255,.16), rgba(167,139,250,.14));
  display:flex; align-items:center; justify-content:center;
  font-weight:1000;
  letter-spacing:.2px;
}

.split{
  display:grid; grid-template-columns: 1fr 1fr; gap:14px; align-items:start;
}

.feature{
  display:flex; gap:12px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:18px;
  background: rgba(255,255,255,.04);
}
.feature b{ display:block; margin-bottom:4px; }
.feature span{ color:var(--muted); font-size:13px; }

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

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
}
.table th, .table td{
  padding:12px 12px;
  text-align:left;
  border-bottom:1px solid var(--line);
  font-size:13px;
}
.table th{ color: var(--muted); font-weight:950; background: rgba(255,255,255,.04); }
.table tr:last-child td{ border-bottom:none; }

.note{
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(110,231,255,.22);
  background: linear-gradient(135deg, rgba(110,231,255,.10), rgba(167,139,250,.08));
  color: var(--text);
  font-size:13px;
}

.accordion details{
  border:1px solid var(--line);
  border-radius:16px;
  background: rgba(255,255,255,.04);
  padding:12px 12px;
}
.accordion details+details{ margin-top:10px; }
.accordion summary{
  cursor:pointer;
  font-weight:950;
  color: var(--text);
  list-style:none;
}
.accordion summary::-webkit-details-marker{ display:none; }
.accordion summary span{ color:var(--muted); font-weight:900; font-size:13px; display:block; margin-top:2px; }

.input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline:none;
  font-size:14px;
}
.input:focus{ border-color: rgba(110,231,255,.35); box-shadow: 0 0 0 4px rgba(110,231,255,.10); }
textarea.input{ min-height: 120px; resize: vertical; }

.alert{
  margin-top:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  display:none;
  font-size:13px;
}
.alert.ok{ border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.10); }
.alert.bad{ border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.10); }

footer{
  padding: 26px 0 40px;
  color: var(--muted2);
  border-top:1px solid var(--line);
  margin-top: 28px;
}
.foot{
  display:flex; justify-content:space-between; align-items:center;
  gap:10px; flex-wrap:wrap;
  font-size: 13px;
}

.small{ font-size:12px; color:var(--muted2); }
.tagrow{ display:flex; gap:10px; flex-wrap:wrap; }
.tag{ padding:8px 10px; border-radius:999px; border:1px solid var(--line); background: rgba(255,255,255,.04); color:var(--muted); font-weight:900; font-size:12px; }

@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .nav-links{ display:none; }
  .hamburger{ display:inline-flex; }
}


/* Figure / media */
.figure{
  margin:0;
}
.figure img{
  width:100%;
  height:auto;
  display:block;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.figure figcaption{
  margin-top:10px;
  color: var(--muted2);
  font-size: 12px;
}
.hero-media::before{
  background-position: center;
}


@media (max-width: 520px){
  .container{ padding: 0 16px; }
  h1{ font-size: 34px; }
  .lead{ font-size: 15px; }
  .brand-logo{ width:40px; height:40px; }
  .nav-actions{ gap:10px; }
  .btn{ padding:10px 12px; }
  .hero-media{ min-height: 240px; }
  .grid-4{ grid-template-columns: 1fr; }
}


/* Image modal (click-to-zoom) */
img.js-img-modal{
  cursor: zoom-in;
}
/* Optional: make hero-media backgrounds clickable too */
.hero-media.js-bg-modal{ cursor: zoom-in; }
img.js-img-modal:focus{
  outline: none;
  box-shadow: 0 0 0 4px rgba(110,231,255,.14);
}

.img-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.img-modal.is-open{ display:flex; }
.img-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(2, 6, 23, .72);
  backdrop-filter: blur(8px);
}
.img-modal-dialog{
  position: relative;
  width: min(1100px, 94vw);
  max-height: 90vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(8, 12, 26, .72);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  overflow: hidden;
}
[data-theme="light"] .img-modal-dialog{
  background: rgba(255,255,255,.92);
  border-color: rgba(0,0,0,.10);
}
.img-modal-close{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 24px;
  line-height: 40px;
  cursor: pointer;
}
.img-modal-close:hover{
  background: rgba(255,255,255,.10);
}
[data-theme="light"] .img-modal-close{
  border-color: rgba(0,0,0,.12);
  background: rgba(0,0,0,.04);
}
.img-modal-img{
  width: 100%;
  height: auto;
  max-height: 76vh;
  object-fit: contain;
  display: block;
  background: rgba(0,0,0,.10);
}
.img-modal-cap{
  padding: 10px 14px 14px;
  font-size: 12px;
  color: var(--muted2);
  border-top: 1px solid rgba(255,255,255,.10);
}
[data-theme="light"] .img-modal-cap{ border-top-color: rgba(0,0,0,.08); }

/* Media row inside cards (text + illustration) */
.media-split{
  display:flex;
  gap:16px;
  align-items:center;
  justify-content:space-between;
}
.media-split .text{flex:1;}
.media-split .media-img{
  width:180px;
  max-width:42%;
  height:auto;
  border-radius:16px;
  padding:10px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
}
[data-theme="light"] .media-split .media-img{
  background:rgba(0,0,0,.03);
  border:1px solid rgba(0,0,0,.08);
}
@media (max-width: 920px){
  .media-split{flex-direction:column; align-items:flex-start;}
  .media-split .media-img{max-width:100%; width:260px;}
}
