:root {
  --ink: #18202e;
  --ink-2: #4a5466;
  --ink-3: #6b7486;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --line: #e3e6ec;
  --accent: #ef693b;
  --accent-ink: #c4471d;
  --night: #131b29;
  --night-2: #1d2738;
  --mint: #2f8f6b;
  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; font-weight: 700; }
h3 { font-size: 19px; line-height: 1.3; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgb(246 247 249 / 0.86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 23px; letter-spacing: -0.03em; }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 26px; margin-right: auto; }
.nav a, .link-quiet { text-decoration: none; color: var(--ink-2); font-size: 15px; font-weight: 500; }
.nav a:hover, .link-quiet:hover { color: var(--ink); }
.top-cta { display: flex; align-items: center; gap: 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: 12px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 16px; border: 1px solid var(--accent);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cdd2db; }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink-3); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgb(255 255 255 / .28); }
.btn-ghost-dark:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .5); }

/* Hero */
.hero { padding: 76px 0 0; overflow: hidden; }
.hero-copy { max-width: 820px; }
.hero h1 {
  font-size: clamp(42px, 6.4vw, 82px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.032em;
  font-variation-settings: "opsz" 96;
}
.lead { margin-top: 26px; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 62ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.hero-shot { margin: 64px 0 0; position: relative; }
.hero-shot::before {
  content: ""; position: absolute; inset: 12% -6% -10% -6%;
  background: radial-gradient(60% 60% at 50% 40%, rgb(239 105 59 / .16), transparent 70%);
  z-index: -1;
}
.hero-shot .frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }

.frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgb(24 32 46 / .04), 0 30px 60px -30px rgb(24 32 46 / .28);
}
.frame-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fbfbfc; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dfe2e8; }
.frame-bar span { margin-left: 14px; font-size: 12.5px; color: var(--ink-3); background: var(--paper); padding: 3px 12px; border-radius: 6px; }

/* Facts */
.facts { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts-in { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts p { padding: 30px 28px; font-size: 15.5px; color: var(--ink-2); border-left: 1px solid var(--line); }
.facts p:first-child { border-left: 0; padding-left: 0; }
.facts strong { display: block; color: var(--ink); font-family: var(--display); font-size: 19px; font-weight: 650; margin-bottom: 4px; letter-spacing: -0.01em; }

/* Section heads */
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 18px; }

/* Features tour */
.features { padding: 112px 0 104px; }
.tour { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 4px; }
.tour-tabs button {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: block; padding: 18px 20px 18px 22px; border-radius: var(--radius);
  position: relative; transition: background .15s;
}
.tour-tabs button::before {
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 3px;
  background: transparent; transition: background .2s;
}
.tour-tabs button:hover { background: rgb(24 32 46 / .035); }
.tour-tabs button[aria-selected="true"] { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.tour-tabs button[aria-selected="true"]::before { background: var(--accent); }
.tour-tabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.t-title { display: block; font-family: var(--display); font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.t-text { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-3); }
.tour-tabs button[aria-selected="true"] .t-text { color: var(--ink-2); }
.tour-caption { display: none; margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }
.tour-view img { transition: opacity .22s ease; }
.tour-view img.swap { opacity: 0; }

.quote-strip {
  margin-top: 72px; padding: 40px 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.quote-copy h3 { font-size: 26px; letter-spacing: -0.02em; }
.quote-copy p { margin-top: 12px; color: var(--ink-2); max-width: 60ch; }
.quote-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.quote-steps li { display: flex; align-items: center; gap: 14px; padding: 11px 0; font-weight: 600; position: relative; }
.quote-steps li:not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 32px; height: 22px; width: 2px; background: var(--line); }
.quote-steps li.alt { color: var(--ink-3); font-weight: 500; padding-top: 4px; }
.quote-steps li.alt::before { content: none; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.d-draft { background: #c3c8d2; }
.d-sent { background: #6d8fd6; }
.d-won { background: var(--mint); }
.d-lost { background: #d06a6a; }

/* Ownership */
.own { background: var(--night); color: #e8ebf1; padding: 112px 0; position: relative; overflow: hidden; }
.own::before {
  content: ""; position: absolute; right: -10%; top: -30%; width: 70%; height: 160%;
  background: radial-gradient(closest-side, rgb(239 105 59 / .16), transparent);
  pointer-events: none;
}
.own-in { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; position: relative; }
.own h2 { color: #fff; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.02; }
.own-copy > p { margin-top: 22px; color: #b9c0cd; font-size: 18px; max-width: 54ch; }
.own-list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; }
.own-list li { padding-left: 28px; position: relative; color: #b9c0cd; font-size: 16px; }
.own-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.own-list strong { color: #fff; font-weight: 600; }

.lic {
  margin: 0; background: var(--night-2); border: 1px solid rgb(255 255 255 / .09);
  border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7);
  transform: rotate(-1.6deg);
}
.lic figcaption { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid rgb(255 255 255 / .08); font-size: 14px; }
.lic-file { font-family: var(--mono); color: #fff; }
.lic-ok { display: inline-flex; align-items: center; gap: 8px; color: #7fd6b1; font-weight: 600; }
.lic-ok::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3fbf8a; box-shadow: 0 0 0 4px rgb(63 191 138 / .18); }
.lic pre { margin: 0; padding: 24px 22px; overflow-x: auto; font: 15px/1.75 var(--mono); color: #f3c3ae; }
.lic pre b { font-weight: 400; color: #9fb2d3; }
.lic-sig { padding: 14px 22px 18px; font-size: 14px; color: #8a94a7; border-top: 1px dashed rgb(255 255 255 / .1); }

/* Security */
.secure { padding: 112px 0 96px; }
.roles { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.roles table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15.5px; }
.roles th, .roles td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.roles tbody tr:last-child > * { border-bottom: 0; }
.roles thead th { font-family: var(--display); font-size: 16px; font-weight: 650; background: #fbfbfc; }
.roles tbody th { font-weight: 500; color: var(--ink); }
.roles td.y { color: var(--ink); }
.roles td.y::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-right: 10px; vertical-align: 1px; }
.roles td.n { color: var(--ink-3); }
.roles td.n::before { content: ""; display: inline-block; width: 8px; height: 2px; background: #c3c8d2; margin-right: 10px; vertical-align: 4px; }
.secure-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.secure-grid p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }

/* Steps */
.steps { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step-list li { counter-increment: step; padding-top: 22px; border-top: 2px solid var(--line); position: relative; }
.step-list li::before {
  content: counter(step); position: absolute; top: -17px; left: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 2px solid var(--accent); color: var(--accent-ink);
  font: 700 14px var(--display);
}
.step-list li:first-child { border-top-color: var(--accent); }
.step-list h3 { margin-top: 16px; }
.step-list p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* FAQ */
.faq { padding: 104px 0; }
.faq-in { display: grid; grid-template-columns: 320px 1fr; gap: 48px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-2); max-width: 68ch; }

/* CTA */
.cta { background: var(--night); color: #fff; padding: 96px 0; }
.cta-in { text-align: center; display: grid; justify-items: center; }
.cta h2 { font-size: clamp(32px, 4vw, 50px); }
.cta p { margin-top: 16px; color: #b9c0cd; font-size: 18px; max-width: 54ch; }
.cta .hero-actions { justify-content: center; }

.foot { background: var(--night); color: #8a94a7; border-top: 1px solid rgb(255 255 255 / .08); font-size: 14.5px; }
.foot-in { display: flex; justify-content: space-between; padding: 26px 0; }
.foot a { color: #d5dae3; }

/* Page-load moment: only the hero */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .lead, .hero .hero-actions, .hero-note { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .lead { animation-delay: .08s; }
  .hero .hero-actions { animation-delay: .16s; }
  .hero-note { animation-delay: .2s; }
  .hero-shot { animation: shot 1s cubic-bezier(.2,.7,.2,1) .18s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
  @keyframes shot { from { opacity: 0; transform: translateY(48px) scale(.985); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tour-view img { transition: none; }
}

/* Responsive */
@media (max-width: 1020px) {
  .nav { display: none; }
  .top-in { justify-content: space-between; }
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { flex-direction: row; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .tour-tabs button { flex: 0 0 auto; padding: 12px 16px; }
  .tour-tabs button::before { left: 16px; right: 16px; top: auto; bottom: 0; width: auto; height: 3px; }
  .t-text { display: none; }
  .tour-tabs button[aria-selected="true"] .t-text { display: none; }
  .tour-caption { display: block; }
  .own-in { grid-template-columns: 1fr; gap: 56px; }
  .lic { transform: none; }
  .secure-grid { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .faq-in { grid-template-columns: 1fr; gap: 24px; }
  .quote-strip { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .top-in { height: 60px; gap: 12px; }
  .link-quiet { display: none; }
  .hero { padding-top: 44px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-shot { margin-top: 44px; margin-right: -18px; }
  .hero-shot .frame { border-top-right-radius: 0; border-right: 0; }
  .facts-in { grid-template-columns: 1fr; }
  .facts p, .facts p:first-child { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts p:first-child { border-top: 0; }
  .features, .secure, .own, .faq { padding: 80px 0; }
  .steps, .cta { padding: 72px 0; }
  .quote-strip { padding: 28px 22px; }
  .secure-grid, .step-list { grid-template-columns: 1fr; }
  .lic pre { font-size: 13px; padding: 20px 18px; }
  .foot-in { flex-direction: column; gap: 6px; }
}
