:root {
  --ink: #0a0c0f;
  --ink-2: #0f1216;
  --surface: #14181e;
  --line: rgba(236, 232, 223, 0.1);
  --line-2: rgba(236, 232, 223, 0.18);
  --text: #ece8df;
  --muted: #9b9d9f;
  --brass: #d4ad6a;
  --brass-2: #f0cf93;
  --signal: #72d6c4;
  --danger: #e0806c;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1200px;
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 i, h2 i { font-style: italic; color: var(--brass-2); }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--brass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--ink); padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid var(--brass);
  background: var(--brass); color: var(--ink); font: 600 15px/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s;
}
.btn:hover { background: var(--brass-2); transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(212, 173, 106, .6); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(236, 232, 223, .06); box-shadow: none; }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 12, 15, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 18px/1 var(--sans); letter-spacing: -.01em; }
.brand em { font-style: normal; color: var(--brass); margin-left: 2px; }
.brand-mark { width: 28px; height: 28px; }
.brand-mark circle { fill: var(--brass); }
.brand-mark path { fill: none; stroke: var(--brass); stroke-width: 1.4; opacity: .7; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 40px; overflow: hidden; isolation: isolate; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 20% 55%, rgba(10,12,15,.92), rgba(10,12,15,.55) 55%, transparent 80%), linear-gradient(to bottom, transparent 70%, var(--ink)); }
.hero-inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; background: rgba(10,12,15,.5); }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(114,214,196,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(114,214,196,0); } 100% { box-shadow: 0 0 0 0 rgba(114,214,196,0); } }
.hero h1 { font: 400 clamp(52px, 9vw, 128px)/.95 var(--serif); letter-spacing: -.02em; margin: 28px 0; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(24px); filter: blur(8px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
.lede { max-width: 580px; color: #c9c6be; font-size: clamp(17px, 1.6vw, 20px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-foot { max-width: var(--max); width: 100%; margin: 72px auto 0; display: flex; flex-wrap: wrap; gap: 12px 36px; font: 400 13px/1 var(--mono); color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }
.hero-foot span::before { content: "— "; color: var(--brass); }

/* Sections */
.section { padding: clamp(80px, 12vw, 160px) var(--gutter); }
.section > *, .split { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 56px; }
.kicker { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin-bottom: 20px; }
.section h2 { font: 400 clamp(36px, 5.4vw, 68px)/1.04 var(--serif); letter-spacing: -.015em; max-width: 900px; }
.sub { color: var(--muted); max-width: 560px; margin-top: 20px; font-size: 18px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split .section-head { position: sticky; top: 110px; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Flow */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.flow-step { position: relative; padding: 28px 24px 32px; border-right: 1px solid var(--line); min-height: 260px; transition: background .35s; }
.flow-step:last-child { border-right: 0; }
.flow-step::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--brass), var(--signal)); transform: scaleX(0); transform-origin: left; transition: transform .5s; }
.flow-step:hover, .flow-step:focus-visible { background: var(--surface); }
.flow-step:hover::before, .flow-step:focus-visible::before { transform: scaleX(1); }
.flow-n { font: 500 12px/1 var(--mono); color: var(--muted); }
.flow-step h3 { font: 400 30px/1.1 var(--serif); margin: 48px 0 14px; }
.flow-step p { color: var(--muted); font-size: 15px; transition: color .3s; }
.flow-step:hover p, .flow-step:focus-visible p { color: var(--text); }

/* Estimator */
.estimator { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 26px; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { font-size: 14px; color: var(--muted); margin-bottom: 12px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; transition: all .2s; }
.chips input:checked + span { background: var(--brass); border-color: var(--brass); color: var(--ink); font-weight: 600; }
.chips input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }
.range-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.range output { font: 500 15px/1 var(--mono); color: var(--text); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin: 8px 0; border-radius: 4px; background: linear-gradient(to right, var(--brass) var(--p, 50%), rgba(236,232,223,.14) var(--p, 50%)); cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--text); border: 4px solid var(--brass); box-shadow: 0 2px 12px rgba(0,0,0,.5); transition: transform .15s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 4px solid var(--brass); }
.result { border-top: 1px solid var(--line); padding-top: 26px; }
.result-label { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.result-num { font: 400 clamp(52px, 7vw, 84px)/1 var(--serif); color: var(--brass-2); margin: 12px 0 20px; font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 10px; margin-bottom: 18px; }
.bar { display: grid; grid-template-columns: 80px 1fr 90px; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.bar i { height: 6px; border-radius: 6px; background: rgba(236,232,223,.08); overflow: hidden; }
.bar b { display: block; height: 100%; width: 0; background: var(--brass); border-radius: 6px; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.bar:nth-child(2) b { background: var(--signal); }
.bar em { font: 500 13px/1 var(--mono); font-style: normal; color: var(--text); text-align: right; }
.result-note { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* Method */
.method { display: grid; grid-template-columns: 280px 1fr; gap: 40px; }
.method-tabs { display: grid; gap: 6px; align-content: start; }
.method-tabs button { display: flex; gap: 16px; align-items: center; width: 100%; text-align: left; padding: 18px 20px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 400 26px/1 var(--serif); cursor: pointer; transition: all .25s; }
.method-tabs button span { font: 500 12px/1 var(--mono); color: var(--muted); }
.method-tabs button:hover { color: var(--text); }
.method-tabs button[aria-selected=true] { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.method-tabs button[aria-selected=true] span { color: var(--brass); }
.method-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 48px); min-height: 420px; }
.method-progress { height: 2px; background: var(--line); border-radius: 2px; margin-bottom: 36px; overflow: hidden; }
.method-progress i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--brass), var(--signal)); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.method-panel h3 { font: 400 clamp(30px, 3.4vw, 44px)/1.1 var(--serif); margin-bottom: 16px; }
.method-panel > p { color: #c9c6be; max-width: 620px; }
#mList { margin: 26px 0; display: grid; gap: 12px; }
#mList li { position: relative; padding-left: 26px; color: var(--muted); }
#mList li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 1px; background: var(--brass); }
.method-out { border-top: 1px solid var(--line); padding-top: 20px; font-size: 15px; }
.method-out span { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass); margin-right: 10px; }
.method-panel.swap > * { animation: swap .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes swap { from { opacity: 0; transform: translateY(10px); } }

/* Rules */
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rule-col { border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); background: var(--ink); }
.rule-col h3 { font: 400 32px/1 var(--serif); margin-bottom: 26px; }
.rule-col li { position: relative; padding: 14px 0 14px 34px; border-top: 1px solid var(--line); color: #c9c6be; }
.ticks li::before, .crosses li::before { position: absolute; left: 0; top: 14px; font: 500 14px/1.6 var(--mono); }
.ticks li::before { content: "✓"; color: var(--signal); }
.crosses li::before { content: "✕"; color: var(--danger); }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative; font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 300 28px/1 var(--sans); color: var(--brass); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--brass-2); }
.faq details p { color: var(--muted); padding-bottom: 26px; max-width: 720px; }

/* Contact */
.section-contact { background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(212,173,106,.08), transparent 70%), var(--ink); }
.contact-points { margin-top: 36px; display: grid; gap: 14px; }
.contact-points li { display: flex; gap: 14px; align-items: center; color: #c9c6be; }
.contact-points span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); font: 500 12px/1 var(--mono); }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 18px; }
.contact label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.contact small { color: #85878a; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact input, .contact select, .contact textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--ink);
  color: var(--text); font: 400 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s;
}
.contact textarea { resize: vertical; }
.contact input:focus, .contact select:focus, .contact textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(212,173,106,.18); }
.contact input:user-invalid { border-color: var(--danger); }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 40px var(--gutter); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.copy { font-family: var(--mono); font-size: 12px; }

/* Thanks page */
.thanks { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter); }
.thanks h1 { font: 400 clamp(44px, 7vw, 88px)/1 var(--serif); margin: 28px 0 20px; }
.thanks p { color: var(--muted); max-width: 480px; margin: 0 auto 32px; }

/* Responsive */
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step { border-bottom: 1px solid var(--line); min-height: 0; }
  .flow-step:nth-child(2n) { border-right: 0; }
  .flow-step:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .flow-step h3 { margin-top: 24px; }
  .split, .method { grid-template-columns: 1fr; }
  .split .section-head { position: static; }
  .method-tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .method-tabs button { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 18px; padding: 14px 12px; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-right: 0 !important; }
  .flow-step:last-child { grid-column: auto; }
  .rules, .field-row { grid-template-columns: 1fr; }
  .method-tabs { gap: 4px; }
  .method-tabs button { font-size: 0; padding: 12px 0; align-items: center; }
  .method-tabs button span { font-size: 13px; }
  .bar { grid-template-columns: 64px 1fr 80px; }
  .hero-foot { flex-direction: column; margin-top: 48px; }
  .eyebrow { font-size: 10px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
