:root{
  color-scheme:light;
  --bg:#f4f7fb;
  --bg-soft:#eaf0f7;
  --surface:#ffffff;
  --surface-soft:#f8fafc;
  --surface-muted:#eef4fb;
  --text:#162032;
  --text-strong:#071326;
  --muted:#65748a;
  --border:#d9e2ee;
  --border-strong:#b8c6d8;
  --brand:#0f3d68;
  --brand-strong:#092943;
  --brand-soft:#e7f0f8;
  --accent:#117a60;
  --accent-soft:#e5f6ef;
  --warn:#a15c00;
  --warn-soft:#fff3db;
  --rose:#a6405f;
  --rose-soft:#ffeaf1;
  --shadow:0 14px 34px rgba(12,31,54,.08);
  --shadow-soft:0 8px 18px rgba(12,31,54,.06);
  --radius:8px;
  --radius-sm:6px;
  --focus:0 0 0 3px rgba(17,122,96,.22);
}

:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#07111f;
  --bg-soft:#0b1728;
  --surface:#0f1d31;
  --surface-soft:#13243a;
  --surface-muted:#172b44;
  --text:#e8eef7;
  --text-strong:#ffffff;
  --muted:#9eb0c7;
  --border:#28405d;
  --border-strong:#3a5777;
  --brand:#8ab9e6;
  --brand-strong:#c5e3ff;
  --brand-soft:#142b43;
  --accent:#55d6ad;
  --accent-soft:#123729;
  --warn:#ffbf5b;
  --warn-soft:#402b0d;
  --rose:#ff9fbe;
  --rose-soft:#3c1c2a;
  --shadow:0 18px 42px rgba(0,0,0,.36);
  --shadow-soft:0 10px 24px rgba(0,0,0,.26);
  --focus:0 0 0 3px rgba(85,214,173,.24);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{ min-height:100%; }

body{
  margin:0;
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  letter-spacing:0;
}

a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--brand-strong); }
strong{ color:var(--text-strong); }
.bg{ background:var(--bg); }

.container{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

.header{
  position:sticky;
  top:16px;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:16px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow:var(--shadow-soft);
  backdrop-filter:blur(12px);
}

.brand,
.brand-mini{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--text-strong);
  font-weight:850;
}

.brand-mark{
  width:34px;
  height:34px;
  border-radius:var(--radius-sm);
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:var(--brand);
  color:#fff;
  font-size:14px;
  font-weight:900;
}

.brand-name{ font-weight:900; }

.nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.nav-link{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  padding:8px 10px;
  border-radius:var(--radius-sm);
  color:var(--muted);
  font-size:14px;
  font-weight:700;
}

.nav-link:hover{
  color:var(--brand-strong);
  background:var(--brand-soft);
}

.btn,
.theme-toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:38px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:var(--surface);
  color:var(--text);
  cursor:pointer;
  font:inherit;
  font-weight:780;
  line-height:1;
}

.btn:hover,
.theme-toggle:hover{
  color:var(--brand-strong);
  background:var(--surface-soft);
  border-color:var(--border-strong);
}

.btn-primary{
  color:#fff;
  border-color:var(--brand);
  background:var(--brand);
}

.btn-primary:hover{
  color:#fff;
  border-color:var(--brand-strong);
  background:var(--brand-strong);
}

.btn-ghost{
  color:var(--muted);
  background:transparent;
}

.btn-lg{
  min-height:46px;
  padding:12px 16px;
}

.theme-toggle{
  padding:6px 9px;
  background:var(--surface-soft);
}

.theme-toggle-track{
  position:relative;
  width:38px;
  height:20px;
  flex:0 0 auto;
  border:1px solid var(--border-strong);
  border-radius:999px;
  background:var(--surface-muted);
}

.theme-toggle-track::after{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:14px;
  height:14px;
  border-radius:999px;
  background:var(--brand);
  transition:transform .18s ease, background-color .18s ease;
}

:root[data-theme="dark"] .theme-toggle-track{
  border-color:color-mix(in srgb, var(--accent) 35%, var(--border));
  background:var(--accent-soft);
}

:root[data-theme="dark"] .theme-toggle-track::after{
  transform:translateX(18px);
  background:var(--accent);
}

.hero{
  position:relative;
  min-height:calc(100vh - 104px);
  display:flex;
  align-items:center;
  overflow:hidden;
  margin-top:-68px;
  padding:140px 0 72px;
  border-bottom:1px solid var(--border);
  background:var(--bg);
}

.hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:38%;
  background:linear-gradient(180deg, transparent, var(--bg));
  pointer-events:none;
}

.hero-scene{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.52;
  transform:translateX(16%) translateY(12px) rotate(-2deg);
}

.scene-shell{
  position:absolute;
  right:-70px;
  top:120px;
  width:min(920px, 82vw);
  min-height:520px;
  display:grid;
  grid-template-columns:180px 1fr;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.scene-sidebar{
  padding:18px;
  border-right:1px solid var(--border);
  background:var(--surface-soft);
}

.scene-sidebar span,
.scene-topline span,
.scene-table span,
.scene-lines span{
  display:block;
  border-radius:999px;
  background:var(--surface-muted);
}

.scene-sidebar span{
  height:36px;
  margin-bottom:12px;
}

.scene-sidebar span:first-child{
  background:var(--brand-soft);
}

.scene-main{ padding:20px; }

.scene-topline{
  display:grid;
  grid-template-columns:1.4fr .8fr .6fr;
  gap:12px;
  margin-bottom:16px;
}

.scene-topline span{ height:42px; }

.scene-grid{
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr;
  gap:12px;
}

.scene-panel{
  min-height:150px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow-soft);
}

.scene-panel-large{ min-height:190px; }
.scene-kicker{
  color:var(--muted);
  font-size:12px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.scene-value{
  margin-top:8px;
  color:var(--text-strong);
  font-size:28px;
  font-weight:900;
}

.scene-bars{
  display:flex;
  align-items:end;
  gap:8px;
  height:72px;
  margin-top:16px;
}

.scene-bars span{
  flex:1;
  border-radius:6px 6px 0 0;
  background:var(--accent);
}

.scene-bars span:nth-child(1){ height:38%; opacity:.45; }
.scene-bars span:nth-child(2){ height:66%; opacity:.58; }
.scene-bars span:nth-child(3){ height:50%; opacity:.72; }
.scene-bars span:nth-child(4){ height:84%; }

.scene-lines{ margin-top:18px; }
.scene-lines span{ height:12px; margin-bottom:10px; }
.scene-lines span:nth-child(2){ width:76%; }
.scene-lines span:nth-child(3){ width:52%; }

.scene-table{
  display:grid;
  gap:10px;
  margin-top:14px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface-soft);
}

.scene-table span{ height:30px; }

.hero-content{
  position:relative;
  z-index:2;
  padding-top:44px;
}

.eyebrow{
  margin:0 0 12px;
  color:var(--accent);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hero h1{
  margin:0;
  max-width:780px;
  color:var(--text-strong);
  font-size:clamp(56px, 10vw, 132px);
  line-height:.88;
  letter-spacing:0;
}

.hero-subtitle{
  max-width:680px;
  margin:22px 0 0;
  color:var(--text);
  font-size:clamp(20px, 3vw, 34px);
  line-height:1.18;
  font-weight:800;
}

.hero-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:28px;
}

.hero-proof{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:22px;
}

.hero-proof span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border:1px solid var(--border);
  border-radius:999px;
  background:color-mix(in srgb, var(--surface) 84%, transparent);
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.section{
  padding:64px 0;
}

.section-tight{
  padding-top:54px;
}

.section-head{
  max-width:720px;
  margin-bottom:22px;
}

h1,h2,h3,p{ letter-spacing:0; }
h1,h2,h3{ color:var(--text-strong); }
h2{
  margin:0;
  font-size:clamp(28px, 4vw, 48px);
  line-height:1.05;
}

.lead{
  margin:16px 0 0;
  max-width:680px;
  color:var(--muted);
  font-size:17px;
  line-height:1.6;
}

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

.feature{
  min-height:230px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow-soft);
}

.feature-dot{
  display:block;
  width:34px;
  height:6px;
  border-radius:999px;
  margin-bottom:18px;
}

.feature-dot-blue{ background:var(--brand); }
.feature-dot-green{ background:var(--accent); }
.feature-dot-amber{ background:var(--warn); }
.feature-dot-rose{ background:var(--rose); }

.feature h3{
  margin:0 0 10px;
  font-size:20px;
}

.feature p{
  margin:0;
  color:var(--muted);
  line-height:1.55;
}

.product-band{
  display:grid;
  grid-template-columns:minmax(0, 1fr) minmax(320px, 440px);
  gap:24px;
  align-items:center;
  padding:24px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow-soft);
}

.product-band h2{
  max-width:720px;
  font-size:clamp(26px, 3.5vw, 42px);
}

.band-metrics{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:10px;
}

.band-metrics div{
  min-height:120px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:var(--radius-sm);
  background:var(--surface-soft);
}

.band-metrics strong{
  display:block;
  color:var(--text-strong);
  font-size:34px;
  line-height:1;
}

.band-metrics span{
  display:block;
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}

.pricing-layout{
  display:grid;
  grid-template-columns:minmax(0, 1fr) 360px;
  gap:22px;
  align-items:start;
}

.price-panel{
  padding:18px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  box-shadow:var(--shadow-soft);
}

.price-label{
  color:var(--muted);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.price-value{
  margin-top:10px;
  color:var(--text-strong);
  font-size:42px;
  font-weight:900;
}

.price-panel p{
  color:var(--muted);
  line-height:1.55;
}

.footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:26px 0 34px;
  border-top:1px solid var(--border);
}

.footer-left,
.footer-links{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.footer .brand-mark,
.brand-mini .brand-mark{
  width:28px;
  height:28px;
  font-size:12px;
}

.sep,
.muted,
.footer-link{
  color:var(--muted);
}

.muted,
.footer-link{
  font-size:13px;
}

.footer-link{
  font-weight:800;
}

a:focus-visible,
button:focus-visible{
  outline:none;
  border-color:var(--accent);
  box-shadow:var(--focus);
}

@media (max-width: 980px){
  .header{
    position:static;
    align-items:flex-start;
    flex-direction:column;
  }

  .nav{ justify-content:flex-start; }
  .nav-link{ display:none; }

  .hero{
    min-height:auto;
    margin-top:0;
    padding:56px 0 48px;
  }

  .hero-scene{
    position:relative;
    height:300px;
    opacity:.9;
    transform:none;
    order:2;
  }

  .scene-shell{
    right:auto;
    left:50%;
    top:12px;
    width:min(760px, 96vw);
    min-height:300px;
    transform:translateX(-50%);
    grid-template-columns:92px 1fr;
  }

  .scene-sidebar{ padding:12px; }
  .scene-sidebar span{ height:28px; }
  .scene-main{ padding:12px; }
  .scene-grid{ grid-template-columns:1fr; }
  .scene-panel:not(.scene-panel-large){ display:none; }
  .scene-panel-large{ min-height:150px; }

  .feature-grid,
  .product-band,
  .pricing-layout{
    grid-template-columns:1fr;
  }

  .feature{ min-height:auto; }
}

@media (max-width: 640px){
  .container{ width:min(100% - 24px, 1180px); }
  .theme-toggle{ width:100%; justify-content:flex-start; }
  .nav .btn{ flex:1 1 150px; }
  .hero h1{ font-size:58px; }
  .hero-subtitle{ font-size:21px; }
  .hero-proof span{ width:100%; justify-content:center; }
  .band-metrics{ grid-template-columns:1fr; }
  .footer{ align-items:flex-start; flex-direction:column; }
}
