/* ==========================================================================
   VOTRE — Bitcoin-Backed USD Loans · Landing Page
   Dark navy + gold "private bank" theme. iOS 14–17 Safari compatible:
   no :has()/@container/color-mix/oklch/aspect-ratio/flex-gap/inset shorthand;
   -webkit-backdrop-filter, env(safe-area-inset-*), system fonts only.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #070a12;
  --bg-2: #0a0f1c;
  --panel: #0d1424;
  --panel-2: #101a2e;
  --ink: #e9edf5;
  --muted: #9aa5ba;
  --faint: #6b7590;
  --gold: #d8b573;
  --gold-2: #f0d9a8;
  --gold-deep: #a8823f;
  --line: rgba(216, 181, 115, 0.2);
  --line-soft: rgba(154, 165, 186, 0.14);
  --ok: #7fc98f;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Didot", "Bodoni MT", "Playfair Display", "Georgia", "Times New Roman", serif;
  --wrap: 1140px;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  min-width: 320px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image: url("./assets/bg-glow.svg");
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: top center;
  background-size: 1440px 900px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.005em;
  margin: 0 0 0.5em;
  color: #f4f0e6;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff0cf; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(216, 181, 115, 0.35); color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.wrap {
  width: auto;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow { max-width: 880px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.display {
  font-size: clamp(30px, 5.2vw, 54px);
}

.section-sub {
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18.5px);
  max-width: 620px;
  margin: 6px auto 0;
}

.accent-line {
  color: var(--gold-2);
  font-size: clamp(18px, 2.4vw, 21px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(216, 181, 115, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease,
    border-color 0.25s ease, color 0.25s ease;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background-image: linear-gradient(135deg, #f0d9a8 0%, #d8b573 55%, #b8935a 100%);
  background-color: var(--gold);
  color: #1c1608;
  box-shadow: 0 10px 28px rgba(216, 181, 115, 0.28), 0 2px 6px rgba(0, 0, 0, 0.4);
}
.btn-primary:hover {
  color: #14100a;
  box-shadow: 0 14px 34px rgba(216, 181, 115, 0.4), 0 2px 6px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: rgba(13, 20, 36, 0.55);
  border-color: var(--line);
  color: var(--gold-2);
}
.btn-ghost:hover { border-color: var(--gold); color: #fff0cf; }

.btn-wide { width: 100%; }

/* ---------- Focus ---------- */
a:focus, button:focus, summary:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
}
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 90;
  background: transparent;
  pointer-events: none;
}
.progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background-image: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  background-color: var(--gold);
  transition: width 0.08s linear;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: rgba(7, 10, 18, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  padding-top: env(safe-area-inset-top);
}
.site-header.is-scrolled {
  background-color: rgba(7, 10, 18, 0.92);
  border-bottom-color: var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.brand:hover { color: #fff; }
.brand-mark {
  width: 30px;
  height: 30px;
  color: var(--gold);
  display: inline-block;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.28em;
  margin-left: 10px;
  color: #f4f0e6;
}
.brand-name.small { font-size: 16px; margin-left: 0; }

.main-nav { display: none; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 10px 14px;
  border-radius: 8px;
}
.main-nav a:hover { color: var(--gold-2); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.header-cta { display: none; }

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background-color: rgba(13, 20, 36, 0.55);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--gold); }
.lang-btn svg { width: 17px; height: 17px; color: var(--gold); }
.lang-current { margin-left: 8px; letter-spacing: 0.06em; }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
  margin: 0;
  background-color: #0d1424;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
}
.lang-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu li { margin: 0; }
.lang-menu button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.lang-menu button:hover { background-color: rgba(216, 181, 115, 0.1); }
.lang-menu button.is-active {
  color: var(--gold-2);
  background-color: rgba(216, 181, 115, 0.14);
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .display { margin-bottom: 0.35em; }
.section-head .eyebrow { margin-bottom: 10px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 72px);
  min-height: 86vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero-copy .display {
  font-size: clamp(34px, 5.6vw, 62px);
  margin-bottom: 0.4em;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(16.5px, 2.1vw, 19px);
  max-width: 560px;
  margin-bottom: 28px;
}
.cta-row { display: inline-block; margin-bottom: 14px; }
.cta-note {
  font-size: 13.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}
.hero-meta { border-top: 1px solid var(--line-soft); padding-top: 18px; }
.hero-meta li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}
.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 8px rgba(216, 181, 115, 0.7);
}

/* Hero visual */
.hero-visual { display: flex; justify-content: center; }
.emblem { position: relative; width: min(340px, 72vw); }
.emblem-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 24px 60px rgba(216, 181, 115, 0.16)); }

.ring-outer, .ring-mid, .ring-inner {
  transform-origin: 170px 170px;
  animation: ring-spin 60s linear infinite;
}
.ring-mid { animation-duration: 44s; animation-direction: reverse; }
.ring-inner { animation-duration: 90s; }

.coin {
  transform-origin: 170px 170px;
  animation: coin-float 7s ease-in-out infinite;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-2);
  background-color: rgba(13, 20, 36, 0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
  background-color: var(--ok);
  box-shadow: 0 0 8px rgba(127, 201, 143, 0.8);
  animation: dot-pulse 2.4s ease-in-out infinite;
}
.chip-btc { top: 14%; left: -6%; }
.chip-usd { bottom: 12%; right: -4%; }

.flow-line {
  position: absolute;
  top: 50%;
  left: 12%;
  right: 12%;
  height: 1px;
  background-image: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.flow-line::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold-2);
  box-shadow: 0 0 10px rgba(240, 217, 168, 0.9);
  animation: flow-run 3.2s ease-in-out infinite;
}

@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes coin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes flow-run {
  0% { left: 0; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { left: 98%; opacity: 0; }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--faint);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.scroll-hint:hover { color: var(--gold-2); }
.scroll-hint-bar {
  width: 1px;
  height: 34px;
  margin-top: 8px;
  background-image: linear-gradient(var(--gold), transparent);
  overflow: hidden;
}

/* ---------- Trust bar ---------- */
.trust {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background-color: rgba(10, 15, 28, 0.6);
  padding: 26px 0;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 40px;
}
.trust-label {
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
  width: 100%;
  text-align: center;
  margin-bottom: 2px;
}
.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 12px 44px;
}
.trust-item { text-align: center; padding: 4px 0; }
.trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-2);
}
.trust-item small {
  display: block;
  font-size: 12.5px;
  color: var(--faint);
  margin-top: 2px;
}

/* ---------- Problem ---------- */
.problem { text-align: center; }
.problem .prose {
  text-align: start;
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
}
.problem .prose p { margin-bottom: 1.1em; }

.rotator {
  margin-top: 34px;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.rot-label {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}
.rot-word {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 24px);
  color: var(--gold-2);
  border-bottom: 1px solid var(--line);
  padding: 0 4px 2px;
  display: inline-block;
  min-width: 120px;
  text-align: center;
  transition: opacity 0.3s ease;
}
.rot-word.is-fading { opacity: 0; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background-color: var(--panel);
  background-image: linear-gradient(160deg, rgba(216, 181, 115, 0.05), transparent 42%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
  border-color: var(--line);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.feature h3, .persona h3 {
  font-size: 19.5px;
  margin: 14px 0 8px;
}
.feature p, .persona p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.62;
  margin: 0;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--gold);
  background-color: rgba(216, 181, 115, 0.09);
  border: 1px solid var(--line);
}
.icon svg { width: 23px; height: 23px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.step-num {
  position: absolute;
  top: -15px;
  left: 0;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--gold);
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 13px;
}
.step-body { padding-top: 14px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- Calculator ---------- */
.calc-section {
  background-color: rgba(10, 15, 28, 0.55);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.calc-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 48px);
  background-color: var(--panel);
  background-image: linear-gradient(150deg, rgba(216, 181, 115, 0.06), transparent 45%);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow);
}

.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field label, .field .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

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

.num-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background-color: rgba(7, 10, 18, 0.6);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
}
.num-input:hover { border-color: var(--line); }
.num-input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(216, 181, 115, 0.18); }

/* Range slider — WebKit/iOS */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 44px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background-image: linear-gradient(90deg, var(--gold-deep), var(--gold-2));
  background-color: var(--gold);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -11px;
  border-radius: 50%;
  background-image: linear-gradient(135deg, #f4e3bb, #d8b573);
  background-color: var(--gold-2);
  border: 2px solid #f4f0e6;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}
input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 4px;
  background-color: var(--gold);
}
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--gold-2);
  border: 2px solid #f4f0e6;
}

.term-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.term-chip {
  min-height: 44px;
  min-width: 64px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background-color: rgba(7, 10, 18, 0.5);
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.term-chip:hover { border-color: var(--line); color: var(--ink); }
.term-chip.is-active {
  border-color: var(--gold);
  color: var(--gold-2);
  background-color: rgba(216, 181, 115, 0.12);
}
.term-note { font-size: 12.5px; color: var(--faint); margin: 10px 0 0; }

.calc-outputs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background-color: rgba(7, 10, 18, 0.55);
  padding: clamp(20px, 3vw, 30px);
}
.out-block { margin-bottom: 18px; }
.out-label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.out-value {
  display: block;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
  direction: ltr;
  unicode-bidi: isolate;
}
.out-value.big {
  font-size: clamp(27px, 3.6vw, 36px);
  color: var(--gold-2);
  text-shadow: 0 2px 22px rgba(216, 181, 115, 0.25);
}
.out-main { padding-bottom: 16px; border-bottom: 1px dashed var(--line-soft); }
.out-flag { display: block; min-height: 20px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.calc-ltv { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.calc-disc {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.55;
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin-bottom: 20px;
}

/* ---------- Proof ---------- */
.proof { text-align: center; }
.quote-block { margin: 0; }
.quote-block blockquote { margin: 0; }
.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.45;
  color: #f0ecdf;
}
.quote-block figcaption {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.quote-rule {
  width: 44px;
  height: 1px;
  background-color: var(--gold);
  display: inline-block;
  margin-right: 14px;
}
.quote-block cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.proof-badges {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.proof-badges li {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 9px 16px;
}

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background-color: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 24px;
  padding: 18px 20px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: rgba(216, 181, 115, 0.12);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-2); }
.faq-plus {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  background-color: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p {
  padding: 0 20px 20px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Final CTA ---------- */
.cta-section { padding-bottom: clamp(80px, 10vw, 130px); }
.cta-card {
  text-align: center;
  background-color: var(--panel);
  background-image:
    radial-gradient(60% 90% at 50% 0%, rgba(216, 181, 115, 0.1), transparent 60%),
    linear-gradient(160deg, rgba(216, 181, 115, 0.05), transparent 45%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow);
}
.cta-card .section-sub { margin-left: auto; margin-right: auto; }

.lead-form { text-align: start; max-width: 640px; margin: 34px auto 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form select,
.lead-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background-color: rgba(7, 10, 18, 0.65);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  -webkit-appearance: none;
  appearance: none;
}
.lead-form textarea { min-height: 96px; resize: vertical; }
.lead-form input:hover, .lead-form select:hover, .lead-form textarea:hover { border-color: var(--line); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px rgba(216, 181, 115, 0.18);
}
.lead-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23d8b573' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
}
.lead-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.field-err { color: #e8a17f; font-size: 13px; margin: 6px 0 0; }
.lead-form .btn-wide { margin-top: 8px; }

.form-result { text-align: start; margin-top: 30px; }
.result-title {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.result-pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink);
  background-color: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px;
  margin: 0 0 16px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.copied-flag { color: var(--ok); font-size: 14px; font-weight: 600; }
.form-note { font-size: 12.5px; color: var(--faint); margin: 14px 0 0; }

/* Upstream direct actions (Launchlist / meeting booking) */
.direct-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 30px 0 14px;
  text-align: center;
}
.direct-label::before,
.direct-label::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 26px;
  height: 1px;
  background-color: var(--line);
  margin: 0 12px;
}
.direct-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.direct-actions .btn { min-width: 200px; }
.cta-card > .direct-label { margin-top: 34px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background-color: rgba(7, 10, 18, 0.85);
  padding: 40px 0 calc(34px + env(safe-area-inset-bottom));
  text-align: center;
}
.footer-brand { margin-bottom: 16px; }
.footer-brand .brand-name { display: block; }
.footer-tag {
  display: block;
  font-family: var(--font-display);
  color: var(--gold-2);
  font-size: 15px;
  letter-spacing: 0.12em;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
  margin: 0 0 18px;
}
.footer-links li { display: inline-block; }
.footer-links li + li::before {
  content: "·";
  color: var(--faint);
  margin-right: 10px;
}
.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line);
}
.footer-links a:hover { color: var(--gold-2); }
.footer-line {
  font-size: 12.5px;
  color: var(--faint);
  max-width: 640px;
  margin: 0 auto 8px;
  line-height: 1.6;
}
.footer-line.muted { color: #525b73; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.no-js .reveal, .reveal.is-instant { opacity: 1; transform: none; transition: none; }

/* ---------- RTL ---------- */
[dir="rtl"] .hero-meta li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .hero-meta li::before { left: auto; right: 0; }
[dir="rtl"] .brand-name { margin-left: 0; margin-right: 10px; }
[dir="rtl"] .lang-current { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .calc-disc { border-left: 0; border-right: 2px solid var(--line); padding-left: 0; padding-right: 12px; }
[dir="rtl"] .step-num { left: auto; right: 0; }
[dir="rtl"] .result-pre { text-align: right; }
[dir="rtl"] .flow-line::after { animation-name: flow-run-rtl; }
@keyframes flow-run-rtl {
  0% { right: 0; left: auto; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { right: 98%; left: auto; opacity: 0; }
}
[dir="rtl"] .quote-rule { margin-right: 0; margin-left: 14px; }

/* Arabic / Hebrew / Thai display font + line rhythm */
html[lang="ar"] .display,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="he"] .display,
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3 {
  font-family: var(--font-body);
  font-weight: 700;
}
html[lang="ar"] .trust-item strong,
html[lang="he"] .trust-item strong { font-family: var(--font-body); }
html[lang="ar"] body, html[lang="he"] body, html[lang="th"] body { line-height: 1.8; }
html[lang="ar"] .display, html[lang="he"] .display, html[lang="th"] .display { line-height: 1.35; }
html[lang="th"] .eyebrow { letter-spacing: 0.12em; }
html[lang="ar"] .rot-word, html[lang="he"] .rot-word, html[lang="th"] .rot-word { font-family: var(--font-body); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (min-width: 700px) {
  .main-nav { display: inline-flex; align-items: center; }
  .header-cta { display: inline-block; padding: 10px 20px; min-height: 44px; font-size: 14.5px; }
}

@media (min-width: 960px) {
  .wrap { padding: 0 32px; }
}

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .hero-sub { margin-left: auto; margin-right: auto; }
  .cta-row { display: block; }
  .hero-meta { display: inline-block; text-align: start; }
  .hero-visual { order: -1; }
  .emblem { width: min(240px, 60vw); }
  .chip-btc { left: -4%; }
  .chip-usd { right: -2%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .calc-card { grid-template-columns: 1fr; }
  .calc-outputs { border-top: 1px dashed var(--line-soft); }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-4, .grid-3, .form-grid { grid-template-columns: 1fr; }
  .trust-list { gap: 10px 24px; }
  .trust-item small { font-size: 11.5px; }
  .field-row { grid-template-columns: 1fr; gap: 4px; }
  .result-actions .btn { width: 100%; }
  .scroll-hint { display: none; }
  .hero { min-height: 0; padding-bottom: 40px; }
}

@media (max-width: 360px) {
  .wrap { padding: 0 16px; }
  .brand-name { letter-spacing: 0.18em; font-size: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal { opacity: 1; transform: none; }
  .flow-line::after { display: none; }
}
