:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --ink: #141824;
  --muted: #5c6478;
  --line: #dce1ed;
  --accent: #5140d8;
  --accent-strong: #3829b8;
  --accent-soft: #ece9ff;
  --teal: #087c77;
  --teal-soft: #e4f5f2;
  --amber: #8a5710;
  --amber-soft: #fff2dd;
  --danger: #a12a3e;
  --shadow: 0 1px 2px rgba(20, 24, 60, .06), 0 12px 34px rgba(20, 24, 60, .08);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e1016;
    --surface: #171a24;
    --surface-2: #222634;
    --ink: #f2f3f8;
    --muted: #adb4c6;
    --line: #343949;
    --accent: #9b91ff;
    --accent-strong: #c3bdff;
    --accent-soft: #292548;
    --teal: #65d1c8;
    --teal-soft: #173431;
    --amber: #f0bb6b;
    --amber-soft: #362917;
    --danger: #ff8ca0;
    --shadow: 0 2px 18px rgba(0, 0, 0, .36);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #eef1f8;
  --ink: #141824;
  --muted: #5c6478;
  --line: #dce1ed;
  --accent: #5140d8;
  --accent-strong: #3829b8;
  --accent-soft: #ece9ff;
  --teal: #087c77;
  --teal-soft: #e4f5f2;
  --amber: #8a5710;
  --amber-soft: #fff2dd;
  --danger: #a12a3e;
  --shadow: 0 1px 2px rgba(20, 24, 60, .06), 0 12px 34px rgba(20, 24, 60, .08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1016;
  --surface: #171a24;
  --surface-2: #222634;
  --ink: #f2f3f8;
  --muted: #adb4c6;
  --line: #343949;
  --accent: #9b91ff;
  --accent-strong: #c3bdff;
  --accent-soft: #292548;
  --teal: #65d1c8;
  --teal-soft: #173431;
  --amber: #f0bb6b;
  --amber-soft: #362917;
  --danger: #ff8ca0;
  --shadow: 0 2px 18px rgba(0, 0, 0, .36);
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; font: 16px/1.55 var(--sans); }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
img, svg { max-width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 36px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: fixed; z-index: 100; left: 14px; top: 10px; transform: translateY(-160%); background: var(--ink); color: var(--bg); padding: 9px 12px; border-radius: 8px; }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.site-nav { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); }
.site-nav .wrap { min-height: 64px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 700 21px/1 var(--serif); white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; color: transparent; background: url("/assets/ganox-mark.svg") center / cover no-repeat; border-radius: 9px; font: 800 16px/1 var(--sans); }
.site-links { display: flex; align-items: center; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.site-links::-webkit-scrollbar { display: none; }
.site-links a, .theme-button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; padding: 0 11px; color: var(--muted); background: transparent; text-decoration: none; font-size: 14px; white-space: nowrap; cursor: pointer; }
.site-links a:hover, .theme-button:hover, .site-links a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.site-links .nav-cta { color: #fff; background: var(--accent); font-weight: 700; }
.site-links .nav-cta:hover { color: #fff; background: var(--accent-strong); }
.theme-button { width: 40px; padding: 0; border: 1px solid var(--line); }

.hero { padding: clamp(64px, 10vw, 116px) 0 54px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 78% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 35%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: center; gap: clamp(32px, 6vw, 78px); }
.eyebrow { margin: 0 0 12px; color: var(--accent); font: 800 12px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: -.025em; }
h1 { max-width: 850px; margin: 0 0 20px; font-size: clamp(42px, 7.2vw, 78px); line-height: .98; }
h2 { margin: 0 0 14px; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.05; }
h3 { margin: 0 0 8px; font-size: 23px; line-height: 1.15; }
.hero-copy { max-width: 720px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-copy strong { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 750; cursor: pointer; }
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button.primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.button.ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.button.small { min-height: 38px; padding: 0 12px; font-size: 14px; }

.proof { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.proof-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.proof-head b { font-family: var(--serif); font-size: 20px; }
.proof-head span { color: var(--muted); font: 12px var(--mono); }
.proof-kpis { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface-2); }
.proof-kpi { padding: 16px; border-right: 1px solid var(--line); }
.proof-kpi:last-child { border-right: 0; }
.proof-kpi b { display: block; font: 750 clamp(19px, 3vw, 27px)/1 var(--serif); }
.proof-kpi span { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.proof-row { display: grid; grid-template-columns: minmax(0, 1fr) 92px 100px; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.proof-row:first-of-type { border-top: 0; }
.proof-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-row .number { text-align: right; font-variant-numeric: tabular-nums; }
.proof-note { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.section { padding: clamp(54px, 8vw, 90px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 830px; margin-bottom: 28px; }
.section-head p { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.card-number { display: grid; place-items: center; width: 29px; height: 29px; margin-bottom: 16px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 800; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.card li + li { margin-top: 7px; }

.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.flow-step { position: relative; min-width: 0; padding: 18px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.flow-step:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; right: -13px; top: 50%; transform: translateY(-50%); width: 18px; text-align: center; color: var(--accent); font-weight: 900; }
.flow-step b { display: block; margin-bottom: 7px; }
.flow-step span { display: block; color: var(--muted); font-size: 14px; }

.page-head { padding: 64px 0 38px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 980px; font-size: clamp(40px, 6vw, 68px); }
.page-head p { max-width: none; margin: 0; color: var(--muted); font-size: 19px; }
.full-description { width: 100%; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
table { width: 100%; min-width: 780px; border-collapse: collapse; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
.number { text-align: right; font-variant-numeric: tabular-nums; }
.project-name { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 750; }
.muted { color: var(--muted); }
.pill { display: inline-flex; align-items: center; min-height: 27px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--surface-2); font-size: 12px; white-space: nowrap; }
.pill.good { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 40%, var(--line)); background: var(--teal-soft); }
.pill.warn { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); background: var(--amber-soft); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 15px; }
.filter { min-width: 165px; flex: 1 1 165px; }
.filter label { display: block; margin: 0 0 5px; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.filter select { width: 100%; min-height: 42px; padding: 7px 34px 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.plan.featured { border: 2px solid var(--accent); }
.plan .price { margin: 12px 0; font: 750 38px/1 var(--serif); }
.plan .price span { color: var(--muted); font: 14px var(--sans); }
.plan p { color: var(--muted); }
.plan ul { flex: 1; padding-left: 20px; color: var(--muted); }
.plan .button { width: 100%; }

.form-shell { width: min(560px, 100%); margin: 0 auto; padding: 26px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.field { margin: 0 0 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 750; }
.field input, .field textarea, .field select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.field textarea { min-height: 100px; resize: vertical; }
.field-help { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.form-status { min-height: 24px; margin: 13px 0 0; color: var(--muted); }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--teal); }

.notice { padding: 15px 17px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; background: var(--teal-soft); }
.notice p { margin: 0; }
.notice.warn { border-left-color: var(--amber); background: var(--amber-soft); }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 4px; cursor: pointer; font-weight: 750; }
.faq details p { max-width: 780px; margin: 0 0 18px; color: var(--muted); }

dialog { width: min(690px, calc(100% - 30px)); max-height: calc(100vh - 30px); overflow: auto; padding: 0; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(10, 12, 18, .62); }
.dialog-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dialog-head h2 { margin: 0; font-size: 27px; }
.icon-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--surface-2); cursor: pointer; }
.dialog-body { padding: 20px; }
.evidence { display: grid; grid-template-columns: 150px 1fr; gap: 8px 16px; }
.evidence dt { color: var(--muted); }
.evidence dd { margin: 0; }

.site-footer { padding: 28px 0 50px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .proof { max-width: 680px; }
  .card-grid, .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { grid-template-columns: 1fr; }
  .flow-step:not(:last-child)::after { content: "↓"; right: auto; top: auto; left: 50%; bottom: -16px; transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .site-nav .wrap { align-items: flex-start; flex-direction: column; gap: 7px; padding-top: 10px; padding-bottom: 9px; }
  .site-links { width: 100%; margin-left: 0; }
  .site-links a { padding: 0 9px; }
  .theme-button { flex: 0 0 40px; }
  .hero { padding-top: 54px; }
  .proof-row { grid-template-columns: minmax(0, 1fr) 74px 88px; }
  .plan-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap, .narrow { width: min(100% - 24px, 1180px); }
  .site-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; overflow: visible; }
  .site-links a, .theme-button { width: 100%; min-width: 0; padding: 0 4px; font-size: 12px; }
  h1 { font-size: clamp(39px, 13vw, 56px); }
  .card-grid { grid-template-columns: 1fr; }
  .proof-kpis { grid-template-columns: 1fr; }
  .proof-kpi { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-kpi:last-child { border-bottom: 0; }
  .proof-row { grid-template-columns: minmax(0, 1fr) 76px; }
  .proof-row .spend { display: none; }
  .evidence { grid-template-columns: 1fr; gap: 3px; }
  .evidence dd { margin-bottom: 10px; }
}

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