@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clicker Script";
  src: url("../fonts/clicker-script.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-logo: "Clicker Script", "Snell Roundhand", "Apple Chancery", cursive;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --bg: #ffffff;
  --bg-deep: #f7f7f8;
  --surface: #ffffff;
  --surface-2: #f5f5f6;
  --line: #e7e7ea;
  --line-strong: #d4d4d8;
  --hover: rgba(0, 0, 0, 0.05);
  --text: #0a0a0b;
  --text-soft: #3f3f46;
  --muted: #5f5f68;
  --accent: #15803d;
  --accent-soft: rgba(34, 197, 94, 0.14);
  --accent-edge: #22c55e;
  --btn-bg: #0a0a0b;
  --btn-ink: #ffffff;
  --btn-rest-tint: rgba(59, 130, 246, 0.22);
  --btn-tint: rgba(59, 130, 246, 0.45);
  --btn-tint-soft: rgba(59, 130, 246, 0.14);
  --btn-glow: rgba(37, 99, 235, 0.3);
  --ring: rgba(59, 130, 246, 0.18);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 16px -6px rgba(0, 0, 0, 0.1);
  --shadow-elev: 0 4px 8px -2px rgba(0, 0, 0, 0.06), 0 20px 40px -12px rgba(0, 0, 0, 0.18);
  --error: #b42318;
  --focus: #2563eb;
  --backdrop: rgba(10, 10, 12, 0.35);

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --bg-deep: #111113;
    --surface: #161618;
    --surface-2: #1d1d20;
    --line: #27272a;
    --line-strong: #3a3a40;
    --hover: rgba(255, 255, 255, 0.06);
    --text: #f4f4f5;
    --text-soft: #d4d4d8;
    --muted: #a1a1aa;
    --accent: #6ee7a0;
    --accent-soft: rgba(74, 222, 128, 0.12);
    --accent-edge: #4ade80;
    --btn-bg: #f4f4f5;
    --btn-ink: #0a0a0b;
    --btn-rest-tint: rgba(96, 165, 250, 0.2);
    --btn-tint: rgba(96, 165, 250, 0.38);
    --btn-tint-soft: rgba(96, 165, 250, 0.16);
    --btn-glow: rgba(59, 130, 246, 0.3);
    --ring: rgba(96, 165, 250, 0.22);
    --nav-bg: rgba(11, 11, 12, 0.82);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 20px -8px rgba(0, 0, 0, 0.55);
    --shadow-elev: 0 4px 8px -2px rgba(0, 0, 0, 0.4), 0 24px 48px -12px rgba(0, 0, 0, 0.65);
    --error: #ff8a80;
    --focus: #60a5fa;
    --backdrop: rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-deep: #111113;
  --surface: #161618;
  --surface-2: #1d1d20;
  --line: #27272a;
  --line-strong: #3a3a40;
  --hover: rgba(255, 255, 255, 0.06);
  --text: #f4f4f5;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --accent: #6ee7a0;
  --accent-soft: rgba(74, 222, 128, 0.12);
  --accent-edge: #4ade80;
  --btn-bg: #f4f4f5;
  --btn-ink: #0a0a0b;
  --btn-rest-tint: rgba(96, 165, 250, 0.2);
  --btn-tint: rgba(96, 165, 250, 0.38);
  --btn-tint-soft: rgba(96, 165, 250, 0.16);
  --btn-glow: rgba(59, 130, 246, 0.3);
  --ring: rgba(96, 165, 250, 0.22);
  --nav-bg: rgba(11, 11, 12, 0.82);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 20px -8px rgba(0, 0, 0, 0.55);
  --shadow-elev: 0 4px 8px -2px rgba(0, 0, 0, 0.4), 0 24px 48px -12px rgba(0, 0, 0, 0.65);
  --error: #ff8a80;
  --focus: #60a5fa;
  --backdrop: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: inherit; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 96px);
}

html:has(dialog[open]) { overflow: hidden; }

html.i18n-pending body {
  visibility: hidden;
  animation: show-page 0s 1.5s forwards;
}

@keyframes show-page { to { visibility: visible; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.container {
  width: min(1240px, 100% - 48px);
  margin-inline: auto;
}

/* Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo-mark {
  color: var(--text);
  font-family: var(--font-logo);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  flex: none;
}

.brand-name {
  padding-left: 12px;
  border-left: 1px solid var(--line-strong);
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background-color 0.18s, border-color 0.18s;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, transparent 35%, var(--btn-tint));
  opacity: 0;
  transition: opacity 0.25s ease-out;
}

.btn:hover::before { opacity: 1; }

.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.btn-lg {
  min-height: 54px;
  padding: 0 30px;
  border-radius: 14px;
  font-size: 1rem;
}

.btn-primary {
  border-color: var(--btn-bg);
  background: linear-gradient(135deg, transparent 45%, var(--btn-rest-tint)), var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 6px 16px -6px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 12px 24px -8px var(--btn-glow);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.btn-secondary::before {
  background: linear-gradient(135deg, transparent 35%, var(--btn-tint-soft));
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
  box-shadow: var(--shadow-elev);
}

.btn:active { transform: translateY(0) scale(0.98); }

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Navbar */
.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 0;
  animation: fade-down 0.7s var(--ease) both;
}

.nav-wrap {
  position: relative;
  width: min(1240px, 100%);
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
  padding: 0 12px 0 14px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s, height 0.3s var(--ease);
}

.nav-shell.is-scrolled .nav {
  height: 62px;
  border-color: var(--line);
  background: var(--nav-bg);
  box-shadow: var(--shadow-elev);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}

.nav-links a:hover { color: var(--text); background: var(--hover); }

.nav-links a.is-active {
  background: linear-gradient(135deg, transparent 40%, var(--btn-tint)), var(--btn-bg);
  color: var(--btn-ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.lang-switch button {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.lang-switch button:hover { color: var(--text); }

.lang-switch button[aria-pressed="true"] {
  background: linear-gradient(135deg, transparent 40%, var(--btn-tint)), var(--btn-bg);
  color: var(--btn-ink);
}

.menu-btn {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.menu-btn span {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 23px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu { display: none; }

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: none; }
}

/* Hero */
.hero {
  display: grid;
  align-items: center;
  min-height: min(100svh, 920px);
  padding: 120px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.hero-copy { max-width: 640px; }

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-lede {
  max-width: 46ch;
  margin: 0 0 34px;
  color: var(--text-soft);
  font-size: 1.12rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.trust li,
.checks li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 500;
}

.trust li { font-size: 0.9rem; }

.check-dot {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}

.check-dot svg { width: 12px; height: 12px; }

.d1 { --i: 1; }
.d2 { --i: 2; }
.d3 { --i: 3; }

.rise {
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 80ms + 120ms);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* 3D stage */
/* The stage reaches past the container to the right edge of the screen */
.stage {
  --bleed: max(24px, calc((100vw - 1240px) / 2));
  position: relative;
  width: calc(100% + var(--bleed));
  margin-right: calc(-1 * var(--bleed));
  aspect-ratio: 4 / 3;
}

#cape-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.stage.is-ready #cape-canvas { opacity: 1; }

.hero.no-3d .stage { display: none; }
.hero.no-3d .hero-grid { grid-template-columns: 1fr; }

/* Sections */
.section { padding: 112px 0; }

.band {
  background: var(--bg-deep);
  border-block: 1px solid var(--line-strong);
}

.section-head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.section-sub {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 1.08rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step { padding: 28px; }

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 32px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Both sides */
.sides {
  display: grid;
  grid-template-columns: 1fr 132px 1fr;
  align-items: center;
}

.side { padding: 34px; }

.side-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.side-for {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.side h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.middle {
  display: flex;
  align-items: center;
  justify-content: center;
}

.middle-line {
  flex: 1;
  height: 2px;
  background: var(--line-strong);
}

.middle-badge {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border: 1px solid var(--accent-edge);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow-card);
  color: var(--text);
  font-family: var(--font-logo);
  font-size: 1.55rem;
  line-height: 1;
  flex: none;
}

/* Protection */
.escrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 60px;
  border-radius: 28px;
}

.escrow-copy p {
  max-width: 46ch;
  margin: 18px 0 28px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.flow {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.node {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.node.is-core {
  border-color: var(--accent-edge);
  background: var(--surface);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.node-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
  flex: none;
}

.node-icon svg { width: 20px; height: 20px; }

.node.is-core .node-icon {
  background: var(--surface-2);
  font-family: var(--font-logo);
  font-size: 1.05rem;
  line-height: 1;
}

.node-title {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.node-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.link {
  position: relative;
  height: 60px;
}

.link-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38px;
  width: 2px;
  overflow: hidden;
  background: var(--line-strong);
}

.link-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 24px;
  background: linear-gradient(transparent, var(--accent-edge), transparent);
  opacity: 0.85;
  animation: flow-down 2.2s ease-in-out infinite;
}

.link.is-up .link-line::after { animation-name: flow-up; }

@keyframes flow-down {
  from { top: -24px; }
  to { top: 100%; }
}

@keyframes flow-up {
  from { top: 100%; }
  to { top: -24px; }
}

.link-label {
  position: absolute;
  top: 50%;
  left: 58px;
  transform: translateY(-50%);
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.outcome {
  display: flex;
  gap: 16px;
  padding: 28px;
}

.outcome-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
}

.outcome-icon svg { width: 20px; height: 20px; }

.outcome.is-fail .outcome-icon {
  background: var(--hover);
  color: var(--muted);
}

.outcome h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.outcome p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* FAQ */
.faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 8px 28px;
  list-style: none;
}

.faq-item + .faq-item { border-top: 1px solid var(--line); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  flex: none;
  transition: transform 0.35s var(--ease), background-color 0.2s, color 0.2s, border-color 0.2s;
}

.faq-icon svg { width: 14px; height: 14px; }

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--accent);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.faq-a > div { overflow: hidden; }

.faq-a p {
  max-width: 64ch;
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 56px;
  border-radius: 28px;
  background: var(--surface);
}

.cta-card h2 { max-width: 14ch; }

.cta-card p {
  max-width: 40ch;
  margin: 16px 0 30px;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s;
}

.contact-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-elev);
  transform: translateY(-3px);
}

.contact-card .node-icon {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}

.discord-icon svg[fill="currentColor"] { width: 22px; height: 22px; }

.contact-title {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-arrow {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--muted);
  flex: none;
  transition: transform 0.25s var(--ease), color 0.2s;
}

.contact-card:hover .contact-arrow {
  color: var(--text);
  transform: translate(2px, -2px);
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  max-width: 32ch;
  margin: 16px 0 22px;
  color: var(--muted);
}

.footer-col h2 {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 0.2s;
}

.footer-col a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  opacity: 0.5;
  transform: rotate(45deg);
  flex: none;
  transition: transform 0.25s var(--ease), border-color 0.2s, opacity 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-col a:hover::before {
  border-color: var(--accent-edge);
  opacity: 1;
  transform: translateX(2px) rotate(45deg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom p { margin: 0; }

.theme-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}

.theme-btn:hover {
  border-color: var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.theme-btn svg { width: 17px; height: 17px; }

/* Legal pages: each page holds both languages, only the active one is shown */
html[lang="en"] [data-lang-block="es"],
html[lang="es"] [data-lang-block="en"] { display: none; }

.legal-page { padding: 150px 0 104px; }

.legal {
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.legal-date {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-intro {
  margin: 0 0 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.7;
}

.legal h2 {
  margin: 40px 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--text-soft);
  line-height: 1.7;
}

.legal p { margin: 0 0 14px; }

.legal ul,
.legal ol {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal strong { color: var(--text); }

.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.legal a:hover { text-decoration-color: currentColor; }

/* Sell modal */
.modal {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-elev);
}

.modal::backdrop {
  background: var(--backdrop);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal[open] { animation: modal-in 0.35s var(--ease); }
.modal[open]::backdrop { animation: fade-in 0.25s ease; }
.modal.is-closing { animation: modal-out 0.2s ease forwards; }
.modal.is-closing::backdrop { animation: fade-out 0.2s ease forwards; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

@keyframes modal-out {
  to { opacity: 0; transform: translateY(8px) scale(0.98); }
}

@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.modal-inner {
  position: relative;
  padding: 32px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}

.modal-close:hover { color: var(--text); background: var(--hover); }
.modal-close svg { width: 18px; height: 18px; }

.modal h2 {
  margin: 0 48px 8px 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.modal-lede {
  margin: 0 0 26px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field label,
.field legend {
  padding: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.field legend { margin-bottom: 7px; }

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field textarea {
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.8; }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--text);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--ring);
}

.field [aria-invalid="true"] { border-color: var(--error); }

.error {
  margin: 0;
  color: var(--error);
  font-size: 0.84rem;
  font-weight: 500;
}

.error:empty { display: none; }

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.segmented label { position: relative; }

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.segmented input:checked + span {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.segmented input:focus-visible + span {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.note svg {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
  flex: none;
}

.note p { margin: 0; }

.code-field { margin-bottom: 12px; }
.code-field + .note { margin-bottom: 18px; }

#code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.03em;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error { margin-top: 14px; }

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.done { padding: 12px 0 4px; text-align: center; }
.done h2 { margin: 0 0 8px; }
.done .modal-lede { max-width: 38ch; margin: 0 auto; }
.done .modal-actions { justify-content: center; }

.done-check {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--accent);
}

.done-check circle,
.done-check path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.done-check circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw 0.6s var(--ease) 0.1s forwards;
}

.done-check path {
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  animation: draw 0.4s var(--ease) 0.5s forwards;
}

@keyframes draw { to { stroke-dashoffset: 0; } }

/* Responsive */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav { justify-content: space-between; }

  .mobile-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-elev);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.3s var(--ease), visibility 0.2s;
  }

  .menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-menu a {
    padding: 13px 14px;
    border-radius: 12px;
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 500;
    text-decoration: none;
  }

  .mobile-menu a:hover { background: var(--hover); }
  .mobile-menu .btn { margin-top: 6px; }

  .steps { grid-template-columns: 1fr 1fr; }
  .escrow { grid-template-columns: 1fr; padding: 44px; }
  .flow { justify-self: start; }
}

@media (max-width: 860px) {
  .hero { min-height: 0; padding-top: 104px; }
  .legal-page { padding: 120px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-lede { margin-inline: auto; }
  .hero-actions, .trust { justify-content: center; }
  .stage {
    order: -1;
    width: min(100vw, 640px);
    margin-inline: calc(50% - min(50vw, 320px));
  }

  .sides { grid-template-columns: 1fr; }
  .middle { flex-direction: column; height: 132px; }
  .middle-line { width: 2px; height: auto; }

  .contact-grid, .outcomes { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .nav-shell { padding-inline: 8px; }
  .nav .brand-name { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step-num { margin-bottom: 22px; }
  .escrow, .cta-card { padding: 30px 22px; border-radius: 22px; }
  .side { padding: 26px 22px; }
  .faq { padding: 4px 20px; }
  .hero-actions .btn { flex: 1; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-col:last-child { grid-column: 1 / -1; }

  .modal {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .modal[open] { animation-name: sheet-in; }
  .modal.is-closing { animation-name: sheet-out; }
  .modal-inner { padding: 26px 20px; }
  .modal-actions .btn { flex: 1; }
}

@keyframes sheet-in {
  from { transform: translateY(100%); }
  to { transform: none; }
}

@keyframes sheet-out {
  to { transform: translateY(100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .link-line::after { display: none; }
}
