/* Light is the default theme. Dark overrides live under [data-theme=dark]. */
:root {
  --bg: #f3f4f7;
  --panel: #ffffff;
  --panel-2: #ffffff;
  --panel-end: #f8f9fb;
  --line: #e1e4ec;
  --line-2: #cdd2de;
  --ink: #0c1020;
  --muted: #5a6175;
  --soft: #3a4155;
  --path: #cfd5e3;
  --faint: #0c102014;
  --hover: #0c10200a;
  --dots: #0c102018;
  --marquee: #9aa1b3;
  --glow-a: #dfe3ff;
  --glow-b: #ffefc7;
  --router-a: #ffffff;
  --router-b: #f6f7fa;
  --cta-a: #ffffff;
  --cta-b: #eceef5;
  --gold: #ffc74d;
  --gold-2: #ffdf94;
  --gold-3: #b8862a;
  --gold-text: #9a6800;
  --on-gold: #1a1406;
  --blue: #6f7ff5;
  --blue-2: #4b56a8;
  --display: "Funnel Display", "Arial Narrow", sans-serif;
  --sans: "Funnel Sans", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}
[data-theme=dark] {
  --bg: #070912;
  --panel: #0f1320;
  --panel-2: #141a2b;
  --panel-end: #0b0f1a;
  --line: #1f2638;
  --line-2: #343c52;
  --ink: #eef0f5;
  --muted: #8d94a6;
  --soft: #c9cedb;
  --path: #2c3552;
  --faint: #ffffff12;
  --hover: #ffffff08;
  --dots: #ffffff14;
  --marquee: #5d6479;
  --glow-a: #1b2250;
  --glow-b: #2a2410;
  --router-a: #111627;
  --router-b: #0a0d18;
  --cta-a: #141a2e;
  --cta-b: #0c0f1b;
  --gold-text: #ffc74d;
  --blue: #7d8cff;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 600px at 80% -10%, var(--glow-a) 0%, transparent 60%), radial-gradient(700px 500px at -10% 40%, var(--glow-b) 0%, transparent 60%); opacity: .6; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
h2 { font-size: clamp(38px, 5vw, 68px); }
p { color: var(--muted); }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
@media (min-width: 760px) { .wrap { width: min(1280px, 100% - 96px); } }
section { padding: 120px 0 0; }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 88px; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 22px var(--display); letter-spacing: -.03em; }
.brand-star { width: 22px; height: 22px; fill: var(--gold); transition: transform .6s var(--ease); }
.brand:hover .brand-star { transform: rotate(90deg); }
nav { display: none; gap: 32px; font-size: 15px; color: var(--muted); }
nav a { position: relative; padding: 8px 0; transition: color .2s; }
nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
nav a:hover { color: var(--ink); }
nav a:hover::after { transform: scaleX(1); }
@media (min-width: 900px) { nav { display: flex; } }
.pill { border: 1px solid var(--line-2); padding: 10px 18px; border-radius: 99px; font-size: 14px; font-weight: 500; transition: border-color .2s, background .2s; }
.pill:hover { border-color: var(--gold); background: #ffc74d14; }

.top-right { display: flex; align-items: center; gap: 10px; }
.theme { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.theme:hover { border-color: var(--gold); background: var(--hover); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: transform .5s var(--ease); }
.theme:hover svg { transform: rotate(45deg); }
.theme .moon { display: none; }
[data-theme=dark] .theme .sun { display: none; }
[data-theme=dark] .theme .moon { display: block; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* buttons */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 99px; background: var(--gold); color: var(--on-gold); font-weight: 600; font-size: 15px; position: relative; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; background: var(--gold-2); transform: translateY(101%); transition: transform .4s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.97); }
.link { font-size: 15px; font-weight: 500; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease); }
.link:hover { background-size: 100% 1px; }

/* hero */
.hero { display: grid; gap: 48px; align-items: center; padding: 56px 0 72px; }
@media (min-width: 1000px) { .hero { grid-template-columns: 1.3fr 1fr; padding: 72px 0 96px; } }
.kicker { font-size: 15px; color: var(--gold-text); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
h1 { font-size: clamp(54px, 6.6vw, 104px); font-weight: 700; letter-spacing: -.055em; line-height: .9; margin-bottom: 32px; }
@media (min-width: 1000px) { h1 .line { white-space: nowrap; } }
h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
h1 .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
h1 .line:nth-child(2) > span { animation-delay: .12s; color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.lede { font-size: 19px; max-width: 46ch; margin-bottom: 40px; animation: fade 1s .45s both; }
.hero .actions, .kicker { animation: fade 1s .6s both; }
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }

/* router visual */
.router { position: relative; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(160deg, var(--router-a), var(--router-b)); overflow: hidden; animation: fade 1.2s .3s both; }
.router::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--dots) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%); }
.router svg { display: block; width: 100%; height: auto; position: relative; }
.ring { fill: none; stroke: #7d8cff40; stroke-width: 1; }
.ring.dashed { stroke-dasharray: 3 7; stroke: #7d8cff66; }
.ring.faint { stroke: var(--faint); stroke-dasharray: 1 10; }
.spin, .spin-rev { transform-origin: 300px 260px; animation: spin 40s linear infinite; }
.spin-rev { animation-duration: 70s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.paths path { fill: none; stroke: var(--path); stroke-width: 1.5; }
.pulse { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 94; stroke-dashoffset: 100; animation: travel 3.3s var(--d) linear infinite; filter: drop-shadow(0 0 6px var(--blue)); }
.pulse.gold { stroke: var(--gold); filter: drop-shadow(0 0 6px var(--gold)); }
@keyframes travel { to { stroke-dashoffset: 0; } }
.breathe { transform-origin: 300px 260px; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: .7; } }
.core path { fill: var(--gold); transform-origin: 300px 260px; animation: twinkle 8s var(--ease) infinite; filter: drop-shadow(0 0 18px #ffc74d88); }
@keyframes twinkle { 0%, 70% { transform: rotate(0) scale(1); } 85% { transform: rotate(90deg) scale(.85); } 100% { transform: rotate(90deg) scale(1); } }
.nodes rect { fill: var(--panel-2); stroke: var(--line-2); }
.nodes .out rect { stroke: #e0a52a88; }
.nodes text { fill: var(--soft); font: 500 13px var(--sans); text-anchor: middle; }
.side { fill: var(--muted); font: 12px var(--mono); text-anchor: middle; }
.router figcaption { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); font: 13px var(--mono); color: var(--soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 #ffc74d88; animation: ping 2s infinite; flex: none; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px #ffc74d00; } 100% { box-shadow: 0 0 0 0 #ffc74d00; } }
.readout { flex: 1; transition: opacity .35s, transform .35s; min-width: 0; }
.readout.swap { opacity: 0; transform: translateY(6px); }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 3px 8px; border-radius: 99px; flex: none; }
@media (max-width: 560px) { .router figcaption .tag { display: none; } }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; width: max-content; animation: slide 45s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track span { font: 500 clamp(20px, 2.4vw, 30px) var(--display); letter-spacing: -.02em; color: var(--marquee); padding: 0 28px; display: flex; align-items: center; gap: 56px; white-space: nowrap; }
.track span::after { content: ""; width: 10px; height: 10px; background: var(--gold); clip-path: path("M5 0 C5.5 3.5 6.5 4.5 10 5 C6.5 5.5 5.5 6.5 5 10 C4.5 6.5 3.5 5.5 0 5 C3.5 4.5 4.5 3.5 5 0Z"); opacity: .7; }
@keyframes slide { to { transform: translateX(-50%); } }

/* section heads */
.split-head { display: grid; gap: 20px; margin-bottom: 56px; }
@media (min-width: 900px) { .split-head { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 64px; } }
.split-head p { font-size: 17px; max-width: 44ch; }

/* fees */
.fee-panel { border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 48px); background: linear-gradient(180deg, var(--panel), var(--panel-end)); }
.fee-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.fee-total { font: 700 clamp(72px, 11vw, 150px)/.85 var(--display); letter-spacing: -.06em; transition: color .5s; }
.fee-sub { color: var(--muted); margin-top: 14px; font-size: 15px; }
.bar { display: flex; height: 72px; gap: 4px; margin-bottom: 32px; }
.seg { display: block; height: 100%; width: 0; border-radius: 10px; transition: width 1.1s var(--ease); }
.seg.fixed { background: var(--blue); }
.seg.fixed.b { background: var(--blue-2); }
.seg.neg { background: var(--gold); }
.seg.neg.b { background: var(--gold-2); }
.seg.neg.c { background: var(--gold-3); }
.legend { list-style: none; display: grid; gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 760px) { .legend { grid-template-columns: repeat(5, 1fr); } }
.legend li { background: var(--panel); padding: 20px; display: grid; gap: 4px; align-content: start; position: relative; }
.legend li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; margin-bottom: 10px; background: var(--gold); }
.legend li.fixed::before { background: var(--blue); }
.legend li.fixed.b::before { background: var(--blue-2); }
.legend li.neg.b::before { background: var(--gold-2); }
.legend li.neg.c::before { background: var(--gold-3); }
.legend b { font-weight: 600; font-size: 16px; }
.legend span { font: 500 22px var(--mono); letter-spacing: -.02em; transition: color .4s; }
.legend em { font-style: normal; font-size: 14px; color: var(--muted); line-height: 1.45; }
.note { font-size: 13px; margin-top: 20px; }

/* services */
.bench { display: grid; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; background: var(--panel); }
@media (min-width: 900px) { .bench { grid-template-columns: 1fr 1.5fr; } }
.tabs { display: flex; flex-direction: column; padding: 12px; gap: 4px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .tabs { border-bottom: 0; border-right: 1px solid var(--line); padding: 16px; } }
[role=tab] { text-align: left; font: 500 clamp(18px, 1.8vw, 22px) var(--display); letter-spacing: -.02em; color: var(--muted); background: none; border: 0; padding: 18px 20px; border-radius: 16px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .3s, color .3s; }
[role=tab]::after { content: ""; width: 10px; height: 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg) scale(.7); opacity: 0; transition: opacity .3s, transform .3s var(--ease); }
[role=tab]:hover { color: var(--ink); background: var(--hover); }
[role=tab][aria-selected=true] { background: var(--gold); color: var(--on-gold); }
[role=tab][aria-selected=true]::after { opacity: 1; transform: rotate(45deg) scale(1); }
.panel { padding: clamp(28px, 4vw, 56px); min-height: 360px; background: radial-gradient(600px 300px at 100% 100%, #ffc74d12, transparent 70%); }
.panel > * { animation: fade .5s var(--ease) both; }
.panel p { animation-delay: .06s; }
.panel ul { animation-delay: .12s; }
.panel h3 { font-size: clamp(30px, 3.4vw, 46px); margin-bottom: 20px; max-width: 18ch; }
.panel p { font-size: 17px; max-width: 52ch; margin-bottom: 28px; }
.panel ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.panel li { font-size: 14px; border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 99px; color: var(--soft); }

/* process */
.steps { list-style: none; display: grid; gap: 40px; position: relative; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.steps li { position: relative; padding-top: 72px; }
.steps li::before { content: ""; position: absolute; top: 22px; left: 0; right: -32px; height: 1px; background: var(--line); }
.steps li::after { content: ""; position: absolute; top: 22px; left: 0; right: -32px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease) calc(var(--i) * .25s); }
.steps li:last-child::before, .steps li:last-child::after { right: 0; }
@media (max-width: 899px) { .steps li::before, .steps li::after { right: 0; } }
.steps.in li::after { transform: scaleX(1); }
.steps .n { position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 16px var(--display); background: var(--bg); border: 1px solid var(--line-2); z-index: 1; transition: background .4s calc(var(--i) * .25s + .3s), color .4s calc(var(--i) * .25s + .3s), border-color .4s calc(var(--i) * .25s + .3s); }
.steps.in .n { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.steps h3 { font-size: 28px; margin-bottom: 12px; }
.steps p { font-size: 16px; }

/* faq */
.qs { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 0; font: 500 clamp(20px, 2.2vw, 28px) var(--display); letter-spacing: -.02em; transition: color .2s; }
summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--gold-text); }
summary i { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: transform .4s var(--ease), background .3s, border-color .3s; }
summary i::before, summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; translate: -50% -50%; }
summary i::after { rotate: 90deg; }
details[open] summary i { transform: rotate(45deg); background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
details p { padding: 0 0 28px; max-width: 64ch; font-size: 17px; }
details[open] p { animation: fade .45s var(--ease); }

/* cta */
#contact { padding-bottom: 96px; }
.cta { --x: 70%; --y: 40%; position: relative; overflow: hidden; border-radius: 32px; padding: clamp(36px, 7vw, 96px); background: radial-gradient(500px circle at var(--x) var(--y), #ffc74d26, transparent 60%), linear-gradient(140deg, var(--cta-a), var(--cta-b)); border: 1px solid var(--line); }
.cta h2 { max-width: 15ch; margin-bottom: 20px; position: relative; }
.cta p { font-size: 18px; margin-bottom: 36px; max-width: 44ch; position: relative; }
.cta-star { position: absolute; right: -60px; bottom: -80px; width: clamp(240px, 36vw, 460px); fill: none; stroke: #e0a52a66; stroke-width: .15; animation: spin 60s linear infinite; }

.foot { --fg: #140f04; --fg-soft: #2e2208; --fg-line: #140f0433; position: relative; overflow: hidden; background: var(--gold-3); color: var(--fg-soft); padding: 72px 0 0; font-size: 15px; border-radius: 32px 32px 0 0; }
.foot-grid { display: grid; gap: 32px; padding-bottom: 48px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; } }
.foot .brand { color: var(--fg); }
.foot .brand-star { fill: var(--fg); }
.foot p { color: var(--fg-soft); }
.foot-line { margin-top: 12px; font-size: 15px; }
.foot-legal { margin-top: 20px; font-size: 13px; line-height: 1.55; max-width: 38ch; }
.foot address { font-style: normal; line-height: 1.7; }
.foot address b { display: block; color: var(--fg); font-weight: 600; letter-spacing: .02em; margin-bottom: 6px; }
.foot dl { display: grid; gap: 12px; }
.foot dt { font-size: 13px; }
.foot dd { color: var(--fg); font: 500 15px var(--mono); }
.foot a:hover { color: var(--fg); }
.foot dd a { text-decoration: underline; text-decoration-color: var(--fg-line); text-underline-offset: 4px; }
.foot dd a:hover { text-decoration-color: var(--fg); }
.foot a:focus-visible { outline-color: var(--fg); }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 24px 0; border-top: 1px solid var(--fg-line); font-size: 14px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--fg-soft); font-size: 14px; }
.foot-bottom nav a::after { background: var(--fg); }
.foot-mark { font: 700 clamp(96px, 24vw, 360px)/.78 var(--display); letter-spacing: -.06em; color: var(--fg); opacity: .1; text-align: center; white-space: nowrap; user-select: none; margin-bottom: -.12em; padding-top: 8px; }

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