:root {
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #64748B;
  --line: #E2E8F0;
  --navy: #0B1220;
  --navy-2: #111C33;
  --blue: #2563EB;
  --blue-d: #1D4ED8;
  --blue-l: #DBEAFE;
  --green: #059669;
  --green-l: #D1FAE5;
  --amber: #B45309;
  --amber-l: #FEF3C7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px rgba(15, 23, 42, .08);
  --nav-bg: rgba(247, 249, 252, .9);
  --tab-on-bg: #0B1220;
  --tab-on-ink: #fff;
  --mark-bg: #0B1220;
  --input-bg: #fff;
  --input-line: #CBD5E1;
  --err-bg: #FEF2F2;
  --err-line: #FECACA;
  --err-ink: #B91C1C;
  --hero-glow: rgba(37, 99, 235, .14);
  --link: #2563EB;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B1220;
  --surface: #111A2E;
  --ink: #E8EEF8;
  --ink-2: #A8B5CA;
  --ink-3: #8593AB;
  --line: #22304A;
  --navy: #070C17;
  --navy-2: #0D1524;
  --blue: #3B82F6;
  --blue-d: #2563EB;
  --blue-l: rgba(59, 130, 246, .18);
  --green: #34D399;
  --green-l: rgba(52, 211, 153, .16);
  --amber: #FBBF24;
  --amber-l: rgba(251, 191, 36, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  --nav-bg: rgba(11, 18, 32, .85);
  --tab-on-bg: #3B82F6;
  --tab-on-ink: #fff;
  --mark-bg: #1B2A4A;
  --input-bg: #0B1220;
  --input-line: #33445F;
  --err-bg: rgba(248, 113, 113, .12);
  --err-line: rgba(248, 113, 113, .4);
  --err-ink: #FCA5A5;
  --hero-glow: rgba(59, 130, 246, .22);
  --link: #7DB1FF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.center { text-align: center; margin-top: 2.5rem; }

/* Buttons */
.btn {
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid transparent;
  padding: .7rem 1.2rem; transition: background .15s, transform .15s, border-color .15s;
}
.btn:focus-visible, .tab:focus-visible, .field input:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.btn-lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .5rem .95rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-primary { background: #2563EB; color: #fff; box-shadow: 0 6px 16px rgba(37, 99, 235, .3); }
.btn-primary:hover { background: #1D4ED8; transform: translateY(-1px); }
.btn-primary:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #94A3B8; }
.btn-light { background: #fff; color: #0B1220; }
.btn-light:hover { background: #DBEAFE; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { border-color: #fff; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 1.5rem; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--mark-bg); color: #93C5FD; font-size: .75rem; letter-spacing: .05em; }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: .5rem; }

/* Hero */
.hero { background: radial-gradient(900px 480px at 85% -10%, var(--hero-glow), transparent 60%), var(--bg); padding: 4.5rem 0 4rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; letter-spacing: -.03em; margin: 0 0 1.2rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); margin: 0 0 1.8rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; color: var(--ink-3); font-size: .9rem; }
.hero-facts b { color: var(--ink); }

/* Browser frame */
.frame { margin: 0; background: var(--navy); border-radius: var(--radius); border: 1px solid #1E293B; box-shadow: var(--shadow); overflow: hidden; }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: .55rem .8rem; background: var(--navy-2); font-size: .74rem; color: #94A3B8; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #334155; }
.frame-bar span { margin-left: .5rem; }
.frame img { width: 100%; cursor: zoom-in; }
.frame-hero { transform: perspective(1400px) rotateY(-4deg) rotateX(1deg); transform-origin: left center; }

/* Sections */
section { padding: 5rem 0; }
.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.2; letter-spacing: -.02em; margin: 0; }
.sub { color: var(--ink-2); margin: .9rem 0 0; }

.pain { background: var(--surface); border-block: 1px solid var(--line); padding: 3.5rem 0; }
.pain .section-title { margin-bottom: 1.6rem; font-size: 1.5rem; }
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pain-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; }
.pain-card b { font-size: 1.05rem; }
.pain-card span { color: var(--ink-2); font-size: .94rem; }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; margin-bottom: 5.5rem; }
.feature:last-child { margin-bottom: 0; }
.feature.reverse { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); }
.feature.reverse .feature-copy { order: 2; }
.feature h3 { font-size: 1.6rem; line-height: 1.25; letter-spacing: -.02em; margin: .9rem 0 .8rem; }
.feature p { color: var(--ink-2); margin: 0 0 1.2rem; }
.chip { display: inline-block; font-size: .78rem; font-weight: 700; padding: .28rem .7rem; border-radius: 99px; background: var(--blue-l); color: var(--blue-d); }
.chip-amber { background: var(--amber-l); color: var(--amber); }
.chip-green { background: var(--green-l); color: var(--green); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--ink); font-size: .96rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .32em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--green-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.dual { position: relative; padding-bottom: 3.2rem; padding-right: 2.5rem; }
.dual .frame-offset { position: absolute; width: 62%; right: 0; bottom: 0; box-shadow: 0 20px 44px rgba(15, 23, 42, .28); }

/* Reports tabs */
.reports { background: var(--surface); border-block: 1px solid var(--line); }
.tabs { display: inline-flex; gap: .3rem; padding: .3rem; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 1.8rem; flex-wrap: wrap; }
.tab { font: inherit; font-weight: 600; font-size: .94rem; border: 0; background: transparent; color: var(--ink-2); padding: .6rem 1.1rem; border-radius: 9px; cursor: pointer; }
.tab.is-active { background: var(--tab-on-bg); color: var(--tab-on-ink); }
.tab-panel { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 2.5rem; align-items: center; }
.tab-panel[hidden] { display: none; }
.tab-text h3 { margin: 0 0 .6rem; font-size: 1.4rem; letter-spacing: -.02em; }
.tab-text p { margin: 0; color: var(--ink-2); }

/* Audience */
.aud-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.aud-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.aud-card h3 { margin: 0 0 1rem; font-size: 1.3rem; }

/* How */
.how { background: var(--surface); border-top: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.steps li span:last-child { color: var(--ink-2); font-size: .94rem; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #2563EB; color: #fff; font-weight: 700; }

/* Final CTA */
.final { background: radial-gradient(700px 300px at 20% 0%, rgba(59, 130, 246, .3), transparent 60%), var(--navy); color: #fff; text-align: center; }
.final-in { display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0 0 .8rem; letter-spacing: -.02em; max-width: 20em; }
.final p { color: #94A3B8; margin: 0 0 1.8rem; }
.final .hero-actions { justify-content: center; }

.foot { padding: 1.6rem 0; font-size: .88rem; color: var(--ink-3); }
.foot-in { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(11, 18, 32, .6); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(440px, 100%); background: var(--surface); border-radius: 18px; padding: 2rem 1.8rem 1.6rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.modal-card h2 { margin: 0 0 .4rem; font-size: 1.45rem; letter-spacing: -.02em; }
.modal-sub { margin: 0 0 1.3rem; color: var(--ink-2); font-size: .95rem; }
.modal-x { position: absolute; top: .6rem; right: .8rem; border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--ink-3); cursor: pointer; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field input { font: inherit; font-weight: 400; font-size: 1rem; padding: .75rem .85rem; border: 1px solid var(--input-line); border-radius: 9px; background: var(--input-bg); color: var(--ink); }
.field input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .18); }
.form-error { margin: 0 0 1rem; padding: .6rem .8rem; border-radius: 9px; background: var(--err-bg); border: 1px solid var(--err-line); color: var(--err-ink); font-size: .9rem; }
.form-error[hidden] { display: none; }
.modal-note { margin: 1rem 0 0; text-align: center; font-size: .86rem; color: var(--ink-3); }
.done-icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--green-l); color: var(--green); font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; }
#requestDoneView .btn { margin-top: .4rem; }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(11, 18, 32, .92); display: grid; place-items: center; padding: 1.5rem; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 100%; border-radius: 10px; }

body.no-scroll { overflow: hidden; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .feature, .feature.reverse, .tab-panel { grid-template-columns: 1fr; gap: 2rem; }
  .feature.reverse .feature-copy { order: 0; }
  .frame-hero { transform: none; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .pain-grid, .steps, .aud-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .feature { margin-bottom: 3.5rem; }
}
@media (max-width: 520px) {
  .nav-cta .btn-ghost { display: none; }
  .hero { padding-top: 2.5rem; }
  .hero-actions .btn { width: 100%; }
  .dual { padding: 0; }
  .dual .frame-offset { position: static; width: 100%; margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Theme toggle */
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.theme-toggle:hover { border-color: #94A3B8; }
.theme-toggle:focus-visible { outline: 3px solid rgba(59, 130, 246, .4); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-cta { align-items: center; }
:root[data-theme="dark"] .frame { border-color: #22304A; }
:root[data-theme="dark"] .modal-backdrop { background: rgba(0, 0, 0, .65); }
:root[data-theme="dark"] .final { background: radial-gradient(700px 300px at 20% 0%, rgba(59, 130, 246, .3), transparent 60%), #070C17; }
