/* Waves OTC — catchy + fully responsive */

:root {
  --color-primary: #f8931c;
  --color-primary-dark: #e07e0a;
  --color-primary-soft: #fff3e1;
  --color-secondary: #26a17b;
  --color-secondary-soft: #e6f7f1;
  --color-bg: #f4f1ec;
  --color-surface: #ffffff;
  --color-surface-2: #faf8f5;
  --color-text: #121212;
  --color-text-muted: #5c6470;
  --color-text-soft: #8b93a0;
  --color-border: #ebe6df;
  --color-border-strong: #d9d2c8;
  --color-error: #dc2626;
  --color-error-soft: #fef2f2;
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-border: rgba(0, 0, 0, 0.05);
  --menu-bg: rgba(255, 255, 255, 0.96);
  --glow-a: rgba(248, 147, 28, 0.14);
  --glow-b: rgba(38, 161, 123, 0.1);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.05);
  --shadow-md: 0 10px 30px rgba(17, 17, 17, 0.07);
  --shadow-lg: 0 22px 50px rgba(17, 17, 17, 0.12);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1160px;
  --header-h: 68px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
}

html[data-theme="dark"] {
  --color-primary: #f8931c;
  --color-primary-dark: #ffb14a;
  --color-primary-soft: #3a2810;
  --color-secondary: #34d399;
  --color-secondary-soft: #123028;
  --color-bg: #14120f;
  --color-surface: #1c1916;
  --color-surface-2: #242019;
  --color-text: #f3eee6;
  --color-text-muted: #b7ad9f;
  --color-text-soft: #8d8478;
  --color-border: #322c24;
  --color-border-strong: #463d32;
  --color-error: #f87171;
  --color-error-soft: #3a1616;
  --header-bg: rgba(20, 18, 15, 0.88);
  --header-border: rgba(255, 255, 255, 0.06);
  --menu-bg: rgba(28, 25, 22, 0.98);
  --glow-a: rgba(248, 147, 28, 0.16);
  --glow-b: rgba(52, 211, 153, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text);
  background:
    radial-gradient(1200px 500px at 10% -10%, var(--glow-a), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, var(--glow-b), transparent 50%),
    var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

@media (min-width: 640px) {
  .container {
    width: min(100% - 40px, var(--container));
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--header-border);
}

.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo__mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(134, 59, 255, 0.35));
}

.nav {
  display: none;
  align-items: center;
  gap: 22px;
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav a {
  position: relative;
  padding: 6px 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transition: width 0.18s ease;
}

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

.nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-dd,
.lang-dd {
  position: relative;
}

.nav-dd__btn,
.lang-dd__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
}

.lang-dd__btn {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  min-height: 36px;
  color: var(--color-text);
}

.nav-dd__chev {
  transition: transform 0.18s ease;
  opacity: 0.7;
}

.nav-dd.is-open .nav-dd__chev,
.lang-dd.is-open .nav-dd__chev {
  transform: rotate(180deg);
}

.nav-dd__menu,
.lang-dd__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 248px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 16px;
  background: var(--menu-bg);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
  z-index: 60;
}

.nav-dd__menu {
  left: 50%;
  right: auto;
  transform: translate(-50%, 6px);
  min-width: 280px;
}

.nav-dd.is-open .nav-dd__menu,
.lang-dd.is-open .lang-dd__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dd.is-open .nav-dd__menu {
  transform: translate(-50%, 0);
}

.nav-dd__menu a,
.lang-dd__menu button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--color-text);
  font: inherit;
}

.lang-dd__menu button {
  align-items: center;
  font-weight: 650;
  font-size: 0.88rem;
}

.nav-dd__menu a:hover,
.lang-dd__menu button:hover,
.lang-dd__menu button.is-active {
  background: var(--color-surface-2);
}

.nav-dd__menu a.is-current {
  background: var(--color-primary-soft);
}

.nav-dd__menu strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}

.nav-dd__menu em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-dd__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #fff;
}

.nav-dd__icon svg {
  width: 18px;
  height: 18px;
}

.nav-dd__icon--ai {
  background: linear-gradient(135deg, #1f6bff, #3de0c5);
}

.nav-dd__icon--chain {
  background: linear-gradient(135deg, #f8931c, #16a34a);
}

.nav-dd__icon--bank {
  background: linear-gradient(135deg, #c9a227, #6d4aff);
}

.svc-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.svc-icon svg {
  width: 28px;
  height: 28px;
}

.svc-icon--ai {
  background: linear-gradient(135deg, #1f6bff, #3de0c5);
}

.svc-icon--chain {
  background: linear-gradient(135deg, #f8931c, #16a34a);
}

.svc-icon--bank {
  background: linear-gradient(135deg, #c9a227, #6d4aff);
}

.world-grid-hero {
  display: grid;
  gap: 32px;
  align-items: start;
}

@media (min-width: 980px) {
  .world-grid-hero {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .world-grid-hero .form-card {
    position: sticky;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px);
  }
}

.chip-group--wrap {
  flex-wrap: wrap;
}

.money-hero,
[data-page="trade"] .hero,
[data-page="rail"] .hero {
  padding-block: 32px 20px;
}

[data-page="ai"] .money-hero,
[data-page="chain"] .money-hero,
[data-page="bank"] .money-hero {
  padding-block: 32px 12px;
}

[data-page="trade"] .trade-top {
  padding-block: 20px 8px;
}

[data-page="trade"] .trade-top .hero__title {
  max-width: 18ch;
}

[data-page="trade"] .trade-top .hero__lead {
  max-width: 62ch;
}

[data-page="trade"] .trade-book {
  padding-top: 8px;
  padding-bottom: 36px;
}

[data-page="trade"] .how {
  padding-top: 8px;
}

[data-page="trade"] .section-head--left {
  text-align: left;
  margin-inline: 0 0 16px;
  max-width: none;
}

[data-page="trade"] .section-head--left .eyebrow {
  justify-content: flex-start;
}

.track-stack {
  display: grid;
  gap: 12px;
}

[data-page="trade"] .track-card {
  padding: 16px 16px 14px;
}

[data-page="trade"] .track-card h3 {
  font-size: 1.15rem;
}

[data-page="trade"] .quote-strip {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  text-align: center;
}

.world-clock {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--color-primary-soft);
  border: 1px solid var(--color-border);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
}

.feature-card__icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.feature-card__icon-wrap svg {
  width: 22px;
  height: 22px;
}

.nav a.is-current {
  color: var(--color-text);
}

.nav a.is-current::after {
  width: 100%;
}

.menu-toggle,
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

.theme-toggle .theme-toggle__moon {
  display: none;
}

html[data-theme="dark"] .theme-toggle .theme-toggle__sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .theme-toggle__moon {
  display: block;
}

.header-actions > .btn--primary {
  display: none;
}

.app-bar-title,
.app-tabs,
.app-sheet-backdrop,
.app-sheet__head {
  display: none;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 10px 14px 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.mobile-nav a {
  padding: 12px;
  border-radius: 14px;
  font-weight: 600;
  color: var(--color-text);
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav a em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.mobile-nav a:hover,
.mobile-nav a:active {
  background: var(--color-bg);
  color: var(--color-text);
}

.mobile-nav__label {
  margin: 10px 12px 2px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.mobile-nav a.is-current {
  background: var(--color-primary-soft);
  color: var(--color-text);
}

.mobile-nav__cta {
  margin-top: 8px;
  background: linear-gradient(135deg, #ff9f2e, #f07a00) !important;
  color: #fff !important;
  justify-content: center;
  text-align: center;
}

@media (min-width: 1180px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .header-actions > .btn--primary {
    display: inline-flex;
  }

  .header-actions {
    gap: 10px;
  }

  .app-bar-title,
  .app-tabs,
  .app-sheet-backdrop,
  .app-sheet__head {
    display: none !important;
  }
}

/* ---------- Mobile app chrome ---------- */

@media (max-width: 1179px) {
  :root {
    --header-h: 56px;
    --app-tabs-h: 58px;
  }

  body {
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(var(--app-tabs-h) + var(--safe-bottom));
  }

  .site-header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
    background: var(--color-surface);
    backdrop-filter: none;
    transform: none !important;
  }

  .site-header__inner {
    min-height: var(--header-h);
    padding-block: 6px;
  }

  .logo span {
    display: inline;
  }

  .logo {
    min-width: 0;
  }

  .logo__mark {
    width: 30px;
    height: 30px;
  }

  .header-actions > .btn--primary,
  .menu-toggle {
    display: none;
  }

  .theme-toggle,
  .lang-dd__btn {
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }

  .lang-dd__btn .nav-dd__chev {
    display: none;
  }

  .lang-dd__menu {
    min-width: 180px;
    right: 0;
  }

  .mobile-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(var(--app-tabs-h) + var(--safe-bottom) + 10px);
    z-index: 120;
    display: none;
    gap: 2px;
    padding: 8px 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: var(--menu-bg);
    box-shadow: 0 18px 50px rgba(17, 17, 17, 0.22);
    max-height: min(70vh, 520px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
  }

  .mobile-nav.is-open {
    display: grid;
  }

  .app-sheet__head {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 4px 8px 10px;
  }

  .app-sheet__grab {
    width: 36px;
    height: 4px;
    border-radius: 999px;
    background: var(--color-border-strong);
  }

  .app-sheet__head strong {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-soft);
  }

  .app-sheet-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: calc(var(--app-tabs-h) + var(--safe-bottom));
    z-index: 110;
    background: rgba(12, 10, 8, 0.38);
  }

  .app-sheet-backdrop[hidden] {
    display: none !important;
  }

  .app-tabs,
  [data-page="trade"] .app-tabs {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    grid-template-columns: repeat(4, 1fr);
    height: calc(var(--app-tabs-h) + var(--safe-bottom));
    padding: 4px 4px calc(4px + var(--safe-bottom));
    background: var(--color-surface);
    backdrop-filter: none;
    border-top: 1px solid var(--header-border);
  }

  .app-tabs__item {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--color-text-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 4px 2px;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    text-decoration: none;
    border-radius: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .app-tabs__item svg {
    width: 22px;
    height: 22px;
  }

  .app-tabs__item.is-current {
    color: var(--color-primary-dark);
  }

  .app-tabs__item:active {
    background: var(--color-surface-2);
  }

  .toast {
    bottom: calc(var(--app-tabs-h) + 16px + var(--safe-bottom));
  }

  .ai-desk {
    bottom: calc(var(--app-tabs-h) + 12px + var(--safe-bottom));
    z-index: 80;
  }

  .trade-shot {
    min-height: 200px;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
  min-height: 46px;
  touch-action: manipulation;
}

.btn--primary {
  background: linear-gradient(135deg, #ff9f2e, #f07a00);
  color: #fff;
  box-shadow: 0 10px 24px rgba(240, 122, 0, 0.28);
}

.btn--primary:hover {
  background: linear-gradient(135deg, #ffa83f, #e07000);
  transform: translateY(-1px);
}

.btn--glow {
  box-shadow:
    0 12px 28px rgba(240, 122, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}

.btn--outline:hover {
  background: #fff;
  border-color: #cfc7bb;
}

.btn--block {
  width: 100%;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  min-height: 38px;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 28px 0 36px;
  overflow: clip;
}

.hero__glow {
  pointer-events: none;
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(circle at 20% 40%, rgba(248, 147, 28, 0.22), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(134, 59, 255, 0.12), transparent 42%),
    radial-gradient(circle at 60% 80%, rgba(38, 161, 123, 0.12), transparent 38%);
  filter: blur(8px);
  z-index: 0;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

@media (min-width: 980px) {
  .hero {
    padding: 48px 0 56px;
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 44px;
  }
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
}

.pill-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  flex-shrink: 0;
  animation: pulse 1.8s infinite;
}

.pill-badge span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 5.2vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 850;
}

.hero__title .accent {
  background: linear-gradient(120deg, #f8931c, #ff5e3a 55%, #863bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 22px;
  color: var(--color-text-muted);
  max-width: 48ch;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.trust-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 480px) {
  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 720px) {
  .trust-row,
  .trust-row--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.trust-card strong {
  font-size: 1.2rem;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.trust-card span {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ---------- Form ---------- */

.form-stack {
  display: grid;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.form-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  backdrop-filter: blur(12px);
  min-width: 0;
}

@media (min-width: 640px) {
  .form-card {
    padding: 26px;
  }
}

.form-card[data-side="buy"] {
  border-color: rgba(38, 161, 123, 0.25);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(38, 161, 123, 0.08);
}

.form-card[data-side="sell"] {
  border-color: rgba(248, 147, 28, 0.28);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(248, 147, 28, 0.08);
}

.form-card__head {
  margin-bottom: 18px;
}

.form-card__head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  letter-spacing: -0.03em;
}

.form-card__head p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.side-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.side-switch__option {
  cursor: pointer;
  min-width: 0;
}

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

.side-switch__card {
  display: grid;
  gap: 2px;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface-2);
  transition: 0.15s ease;
  text-align: center;
}

.side-switch__icon {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-soft);
  line-height: 1;
}

.side-switch__label {
  font-weight: 750;
  font-size: 0.9rem;
}

.side-switch__hint {
  font-size: 0.72rem;
  color: var(--color-text-soft);
  font-weight: 550;
  line-height: 1.25;
}

.side-switch__option input:checked + .side-switch__card {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  box-shadow: 0 0 0 3px rgba(248, 147, 28, 0.12);
}

.side-switch__option input:checked + .side-switch__card .side-switch__icon {
  color: var(--color-primary-dark);
}

.form-card[data-side="buy"]
  .side-switch__option
  input[value="buy"]:checked
  + .side-switch__card {
  border-color: var(--color-secondary);
  background: var(--color-secondary-soft);
  box-shadow: 0 0 0 3px rgba(38, 161, 123, 0.12);
}

.form-card[data-side="buy"]
  .side-switch__option
  input[value="buy"]:checked
  + .side-switch__card
  .side-switch__icon {
  color: var(--color-secondary);
}

.side-switch--compact .side-switch__card {
  padding: 11px 8px;
}

/* Quote */
.quote-card {
  padding: 14px 15px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #141414 0%, #241a12 55%, #1a1410 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.quote-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.quote-card__tag {
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.rate-badge {
  font-size: 0.75rem;
  font-weight: 650;
  color: #ffd199;
}

.quote-card__line {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.quote-card__fee {
  margin: 0 0 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffd199;
}

.quote-card__note {
  margin: 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.52);
}

.side-panel {
  display: grid;
  gap: 13px;
  animation: panelIn 0.22s ease;
  min-width: 0;
}

.side-panel[hidden] {
  display: none !important;
}

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

.field-label,
.section-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--color-text-muted);
}

.section-label {
  margin-top: 2px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  cursor: pointer;
}

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

.chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--color-border-strong);
  background: var(--color-surface);
  font-weight: 750;
  font-size: 0.86rem;
  transition: 0.12s ease;
}

.chip input:checked + span {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

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

.info-pill {
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-text-muted);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
}

.amount-field,
.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.amount-field label,
.field label {
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--color-text-muted);
}

.amount-field__row {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
  min-height: 48px;
}

.amount-field__row input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 14px;
  min-width: 0;
  background: transparent;
  font-size: 16px; /* prevent iOS zoom */
}

.amount-field__suffix {
  padding-right: 14px;
  color: var(--color-text-soft);
  font-weight: 700;
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  outline: 0;
  background: var(--color-surface);
  font-size: 16px;
  min-height: 48px;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.field textarea {
  min-height: 72px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.amount-field__row:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(248, 147, 28, 0.15);
}

.amount-field.is-invalid .amount-field__row,
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--color-error);
  background: var(--color-error-soft);
}

.field-error {
  margin: 0;
  color: var(--color-error);
  font-size: 0.8rem;
  font-weight: 600;
}

.captcha-field input {
  max-width: 160px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.field-hint {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
}

.captcha-field [data-captcha-q] {
  font-weight: 750;
  color: var(--color-text);
  font-size: 1rem;
}

.captcha-field input[name="captchaAnswer"] {
  max-width: 180px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.grid-2 {
  display: grid;
  gap: 12px;
}

@media (min-width: 520px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: 2px 0;
}

.hint {
  font-weight: 500;
  color: var(--color-text-soft);
}

.meet-hint {
  margin: -4px 0 0;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.form__footnote {
  margin: 0;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.8rem;
}

.form__footnote a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* Delivery */
.delivery-section {
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-lg);
  border: 1.5px dashed #f0b35a;
  background: linear-gradient(180deg, #fffaf2, #fff);
  animation: panelIn 0.22s ease;
  min-width: 0;
}

.delivery-section[hidden] {
  display: none !important;
}

.delivery-section__head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.delivery-section__step {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.delivery-section__head h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.delivery-section__head p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.deposit-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: #141414;
  color: #fff;
  min-width: 0;
}

.deposit-box__meta {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.deposit-box__address {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-all;
  color: #ffd199;
}

.deposit-box .btn--outline {
  justify-self: start;
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  background: transparent;
}

.deposit-box .btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.deposit-box__hint {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.file-drop {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border: 1.5px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  cursor: pointer;
  font-weight: 650;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  transition: 0.12s ease;
  text-align: center;
  padding: 12px;
}

.file-drop:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
}

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

.file-name {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.hint-block {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.proof-box.is-invalid .file-drop {
  border-color: var(--color-error);
  background: var(--color-error-soft);
}

/* ---------- Sections ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.88rem;
  font-weight: 650;
  margin-bottom: 12px;
}

.eyebrow__dash {
  width: 28px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.eyebrow--center {
  justify-content: center;
  width: 100%;
}

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

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3.5vw, 2.15rem);
  letter-spacing: -0.035em;
  font-weight: 850;
}

.section-sub {
  margin: 0;
  color: var(--color-text-muted);
}

.features {
  padding: 48px 0;
}

@media (min-width: 800px) {
  .features {
    padding: 72px 0;
  }
}

.features__grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1040px) {
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .features__grid--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 720px) and (max-width: 1039px) {
  .features__grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff3e1, #ffe0b5);
  color: var(--color-primary-dark);
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.how {
  padding: 20px 0 56px;
}

.handover {
  padding: 56px 0 72px;
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.handover__grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 880px) {
  .handover__grid {
    grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1.12fr);
    gap: 48px 72px;
    align-items: start;
  }
}

.handover__copy .eyebrow {
  justify-content: flex-start;
}

.handover__copy .section-title {
  margin-top: 10px;
  text-align: left;
}

.handover__copy .section-sub {
  margin-top: 14px;
  max-width: 38ch;
}

.handover__list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.handover__list li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 16px;
  padding: 20px 22px;
  border-top: 1px solid var(--color-border);
}

.handover__list li:first-child {
  border-top: 0;
}

.handover__num {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--color-primary-dark);
  padding-top: 5px;
}

.handover__list h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.handover__list p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.93rem;
}

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

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #863bff);
  opacity: 0.85;
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff9f2e, #f07a00);
  color: #fff;
  font-weight: 850;
  margin-bottom: 14px;
  box-shadow: 0 8px 16px rgba(240, 122, 0, 0.28);
}

.step h3 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.step p {
  margin: 0;
  color: var(--color-text-muted);
}

.faq {
  padding: 20px 0 56px;
}

.faq__inner {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .faq__inner {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.faq__head {
  text-align: left;
}

.faq__head .section-title,
.faq__head .section-sub {
  text-align: left;
}

.faq__head .btn {
  margin-top: 16px;
}

.faq__list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 16px;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 14px 0;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 0 0 14px;
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

/* ---------- Location / map ---------- */

.location {
  padding: 8px 0 40px;
}

.location__panel {
  display: grid;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

@media (min-width: 900px) {
  .location__panel {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: stretch;
  }
}

.location__copy {
  padding: 24px 20px 20px;
}

@media (min-width: 640px) {
  .location__copy {
    padding: 32px 28px;
  }
}

.location__copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.location__lead {
  margin: 0 0 18px;
  color: var(--color-text-muted);
  max-width: 42ch;
}

.location__card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  border: 1px solid rgba(248, 147, 28, 0.2);
  margin-bottom: 16px;
}

.location__pin {
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 2px;
}

.location__card strong {
  display: block;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.location__card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.location__note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-text-soft);
}

.location__map-wrap {
  min-height: 280px;
  background: #e8e4de;
}

@media (min-width: 900px) {
  .location__map-wrap {
    min-height: 100%;
  }
}

.location__map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

@media (min-width: 900px) {
  .location__map {
    min-height: 380px;
  }
}

.cta {
  padding: 0 0 56px;
}

.cta__address a {
  color: var(--color-primary-dark);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta__inner {
  background:
    radial-gradient(520px 200px at 0% 0%, rgba(248, 147, 28, 0.12), transparent 55%),
    radial-gradient(420px 180px at 100% 100%, rgba(38, 161, 123, 0.08), transparent 50%),
    linear-gradient(145deg, #ffffff 0%, #fff8ef 55%, #ffffff 100%);
  color: var(--color-text);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(248, 147, 28, 0.18);
  padding: 28px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
  .cta__inner {
    padding: 40px 34px;
  }
}

.cta__inner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.cta__inner > div > p {
  margin: 0;
  color: var(--color-text-muted);
}

.cta__address {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.5;
}

.cta__actions {
  width: 100%;
}

@media (min-width: 640px) {
  .cta__actions {
    width: auto;
  }
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  margin-top: 12px;
  padding: 40px 0 calc(28px + var(--safe-bottom));
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(700px 280px at 12% 0%, rgba(248, 147, 28, 0.16), transparent 55%),
    radial-gradient(520px 240px at 100% 20%, rgba(134, 59, 255, 0.12), transparent 50%),
    linear-gradient(165deg, #14110e 0%, #1c1410 45%, #0f0f0f 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #f8931c, #ff5e3a, #863bff);
  opacity: 0.9;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer__top {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: 1.2fr 0.9fr;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 32px;
  }
}

.logo--footer {
  color: #fff;
  font-size: 1.25rem;
}

.footer__tagline {
  margin: 12px 0 8px;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  background: linear-gradient(120deg, #fff 20%, #ffd199 70%, #f8931c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer__about {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  max-width: 42ch;
  margin: 0 0 14px;
  line-height: 1.5;
}

.footer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__chips span {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__cta-card {
  padding: 20px 18px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(248, 147, 28, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 209, 153, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer__cta-card h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer__cta-card p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  line-height: 1.45;
}

.footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
}

.footer__grid {
  display: grid;
  gap: 22px;
  margin-bottom: 24px;
  padding-top: 8px;
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 209, 153, 0.9);
  font-weight: 750;
}

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

.footer li {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: #ffd199;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-bottom));
  transform: translateX(-50%) translateY(16px);
  background: #111;
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  z-index: 100;
  max-width: min(92vw, 420px);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--success {
  background: #14532d;
}

.toast--error {
  background: #7f1d1d;
}

/* ---------- AI desk ---------- */

.ai-desk {
  position: fixed;
  right: calc(14px + var(--safe-right));
  bottom: calc(14px + var(--safe-bottom));
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  width: min(calc(100vw - 28px), 380px);
}

.ai-desk__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #171717, #2a1d12);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  min-height: 48px;
}

.ai-desk__pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.ai-desk__panel {
  width: 100%;
  height: min(72vh, 540px);
  max-height: calc(100dvh - 100px);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.ai-desk__panel[hidden] {
  display: none !important;
}

/* Full-screen chat on very small phones */
@media (max-width: 420px) {
  body.ai-open {
    overflow: hidden;
  }

  .ai-desk.is-open {
    inset: 0;
    width: 100%;
    right: 0;
    bottom: 0;
    padding: 0;
    align-items: stretch;
  }

  .ai-desk.is-open .ai-desk__toggle {
    display: none;
  }

  .ai-desk.is-open .ai-desk__panel {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    border: 0;
  }
}

.ai-desk__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(135deg, #fff8ef, #fff);
}

.ai-desk__head strong {
  display: block;
  font-size: 1rem;
}

.ai-desk__head p {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.ai-desk__close {
  border: 0;
  background: var(--color-surface-2);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  color: var(--color-text-muted);
  align-self: start;
  min-height: 36px;
}

.ai-desk__status {
  padding: 8px 16px;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--color-text-soft);
  border-bottom: 1px solid var(--color-border);
}

.ai-desk__status[data-kind="ok"] {
  color: var(--color-secondary);
}

.ai-desk__status[data-kind="warn"] {
  color: #b45309;
  background: #fff7ed;
}

.ai-desk__messages {
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-bg);
  -webkit-overflow-scrolling: touch;
}

.ai-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, #ff9f2e, #f07a00);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.ai-msg--assistant {
  align-self: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-bottom-left-radius: 4px;
}

.ai-msg--thinking {
  opacity: 0.7;
  font-style: italic;
}

.ai-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-hint {
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.76rem;
  font-weight: 650;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: left;
}

.ai-hint:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.ai-desk__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  padding-bottom: calc(12px + var(--safe-bottom));
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.ai-desk__input {
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 11px 14px;
  outline: 0;
  min-width: 0;
  font-size: 16px;
  min-height: 44px;
}

.ai-desk__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(248, 147, 28, 0.15);
}

/* ---------- Trust band ---------- */

.trust-band {
  padding: 8px 0 56px;
}

.trust-band__panel {
  display: grid;
  gap: 22px;
  padding: 26px 20px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 240px at 10% 0%, rgba(248, 147, 28, 0.18), transparent 60%),
    linear-gradient(145deg, #141414 0%, #24180f 55%, #121212 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 900px) {
  .trust-band__panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 36px 34px;
    gap: 28px;
  }
}

.pill-badge--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 14px;
}

.trust-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.trust-band__copy p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 48ch;
  font-size: 0.98rem;
}

.trust-band__sub {
  color: rgba(255, 255, 255, 0.66) !important;
  font-size: 0.92rem !important;
}

.trust-band__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

@media (min-width: 520px) {
  .trust-band__cards {
    grid-template-columns: 1fr 1fr;
  }
}

.trust-band__cards li {
  padding: 14px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 4px;
}

.trust-band__cards strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.trust-band__cards span {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.84rem;
  line-height: 1.4;
}

/* ---------- OTC nationwide rail invite ---------- */

.rail-invite {
  padding: 8px 0 36px;
}

.rail-invite__inner {
  display: grid;
  gap: 18px;
  padding: 26px 22px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(520px 200px at 8% 0%, rgba(226, 59, 45, 0.28), transparent 58%),
    linear-gradient(145deg, #1a0d0c 0%, #2a1612 50%, #120c0a 100%);
  color: #fff4ee;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 800px) {
  .rail-invite__inner {
    grid-template-columns: 1.4fr auto;
    align-items: center;
    padding: 32px 34px;
  }
}

.rail-invite__cn {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #e8b84a;
}

.rail-invite h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.rail-invite p {
  margin: 0;
  color: rgba(255, 244, 238, 0.74);
  max-width: 52ch;
}

/* ---------- Homepage labs teaser ---------- */

.labs {
  padding: 56px 0 20px;
}

.labs__grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 860px) {
  .labs__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

.labs-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 22px 20px;
  border-radius: var(--radius-xl);
  color: #f4f7ff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  box-shadow: var(--shadow-md);
}

.labs-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 16, 0.15) 0%, rgba(6, 8, 16, 0.78) 72%),
    var(--labs-image) center / cover no-repeat;
  z-index: -2;
  transform: scale(1.04);
  transition: transform 0.5s ease;
}

.labs-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  border-radius: inherit;
}

.labs-card:hover::before {
  transform: scale(1.1);
}

.labs-card--ai {
  --labs-image: url("../img/services/ai-hero.jpg");
}

.labs-card--chain {
  --labs-image: url("../img/services/chain-hero.jpg");
}

.labs-card--bank {
  --labs-image: url("../img/services/bank-hero.jpg");
}

.labs-card__kicker {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 8px;
}

.labs-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.labs-card p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  max-width: 32ch;
}

.labs-card__go {
  font-size: 0.82rem;
  font-weight: 750;
  color: #ffd199;
}

/* ---------- Futuristic service pages ---------- */

.fx-page {
  --fx-bg: #05070e;
  --fx-ink: #edf2ff;
  --fx-muted: #93a0be;
  --fx-line: rgba(237, 242, 255, 0.1);
  --fx-accent: #f8931c;
  --fx-glow: #3de0c5;
  --fx-display: "Syne", "Inter", system-ui, sans-serif;
  color: var(--fx-ink);
  background:
    radial-gradient(900px 420px at 8% -10%, color-mix(in srgb, var(--fx-accent) 22%, transparent), transparent 55%),
    radial-gradient(800px 380px at 100% 0%, color-mix(in srgb, var(--fx-glow) 16%, transparent), transparent 50%),
    var(--fx-bg);
}

.fx-page--ai {
  --fx-accent: #3de0c5;
  --fx-glow: #6d8bff;
}

.fx-page--chain {
  --fx-accent: #f6b73c;
  --fx-glow: #34d399;
}

.fx-page--bank {
  --fx-accent: #f0c674;
  --fx-glow: #8b6cff;
}

.fx-page .site-header {
  background: rgba(5, 7, 14, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: var(--fx-ink);
}

.fx-page .logo,
.fx-page .nav a:hover,
.fx-page .nav a.is-current {
  color: #fff;
}

.fx-page .nav {
  color: rgba(237, 242, 255, 0.7);
}

.fx-page .nav a::after {
  background: var(--fx-accent);
}

.fx-page .lang-dd__btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.fx-page .nav-dd__menu,
.fx-page .lang-dd__menu {
  background: rgba(12, 16, 28, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--fx-ink);
}

.fx-page .nav-dd__menu a,
.fx-page .lang-dd__menu button {
  color: var(--fx-ink);
}

.fx-page .nav-dd__menu a:hover,
.fx-page .lang-dd__menu button:hover,
.fx-page .lang-dd__menu button.is-active,
.fx-page .nav-dd__menu a.is-current {
  background: rgba(255, 255, 255, 0.06);
}

.fx-page .nav-dd__menu em {
  color: rgba(237, 242, 255, 0.55);
}

.fx-page .menu-toggle {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.fx-page .mobile-nav {
  background: #090d18;
  border-top-color: rgba(255, 255, 255, 0.06);
}

.fx-page .mobile-nav a {
  color: rgba(237, 242, 255, 0.74);
}

.fx-page .mobile-nav a:hover,
.fx-page .mobile-nav a:active,
.fx-page .mobile-nav a.is-current {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.fx-page .mobile-nav__label {
  color: rgba(237, 242, 255, 0.38);
}

.fx-hero {
  position: relative;
  min-height: min(92vh, 820px);
  padding: 48px 0 72px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.fx-hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 7, 14, 0.15) 0%, rgba(5, 7, 14, 0.55) 46%, rgba(5, 7, 14, 0.96) 100%),
    var(--fx-hero) center / cover no-repeat;
  transform: scale(1.04);
  animation: fxDrift 22s ease-in-out infinite alternate;
}

.fx-page--ai {
  --fx-hero: url("../img/services/ai-hero.jpg");
}

.fx-page--chain {
  --fx-hero: url("../img/services/chain-hero.jpg");
}

.fx-page--bank {
  --fx-hero: url("../img/services/bank-hero.jpg");
}

.fx-hero__grid {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 78%);
  animation: fxGrid 18s linear infinite;
}

.fx-hero__orb {
  pointer-events: none;
  position: absolute;
  width: 280px;
  height: 280px;
  right: 8%;
  top: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--fx-accent) 38%, transparent), transparent 68%);
  filter: blur(8px);
  animation: fxPulse 6s ease-in-out infinite;
}

.fx-hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, var(--container));
  margin-inline: auto;
}

.fx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 14, 0.35);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--fx-accent) 80%, #fff);
}

.fx-kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fx-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fx-accent) 25%, transparent);
  animation: pulse 1.8s infinite;
}

.fx-hero h1 {
  margin: 0 0 16px;
  max-width: 16ch;
  font-family: var(--fx-display);
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 800;
}

.fx-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #fff 10%, var(--fx-accent) 55%, var(--fx-glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fx-hero__lead {
  margin: 0 0 28px;
  max-width: 48ch;
  color: rgba(237, 242, 255, 0.78);
  font-size: clamp(1rem, 2.1vw, 1.16rem);
}

.fx-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.fx-page .btn--primary {
  background: linear-gradient(135deg, var(--fx-accent), color-mix(in srgb, var(--fx-accent) 55%, #000));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--fx-accent) 32%, transparent);
  color: #081018;
}

.fx-page--bank .btn--primary,
.fx-page--chain .btn--primary {
  color: #14110a;
}

.fx-page .btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.fx-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 560px;
}

@media (min-width: 640px) {
  .fx-stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 720px;
  }
}

.fx-stats li {
  padding: 12px 12px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.fx-stats strong {
  display: block;
  font-family: var(--fx-display);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.fx-stats span {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: rgba(237, 242, 255, 0.58);
}

.fx-section {
  position: relative;
  padding: 72px 0;
}

.fx-section--tight {
  padding-top: 28px;
}

.fx-panel {
  border-radius: 28px;
  border: 1px solid var(--fx-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.fx-copy {
  max-width: 62ch;
}

.fx-copy h2,
.fx-arch h2,
.fx-use h2,
.fx-cta-band h2 {
  margin: 0 0 12px;
  font-family: var(--fx-display);
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.fx-copy p,
.fx-lead {
  margin: 0 0 12px;
  color: var(--fx-muted);
  font-size: 1.02rem;
}

.fx-grid-3,
.fx-grid-2 {
  display: grid;
  gap: 14px;
}

@media (min-width: 780px) {
  .fx-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .fx-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.fx-card {
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid var(--fx-line);
  background: rgba(255, 255, 255, 0.03);
  min-height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.fx-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--fx-accent) 42%, transparent);
  background: rgba(255, 255, 255, 0.05);
}

.fx-card__index {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--fx-accent);
}

.fx-card h3 {
  margin: 0 0 8px;
  font-family: var(--fx-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.fx-card p {
  margin: 0;
  color: var(--fx-muted);
  font-size: 0.94rem;
}

.fx-arch {
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .fx-arch {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 40px;
  }
}

.fx-flow {
  display: grid;
  gap: 10px;
}

.fx-flow__row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 16px;
  border-radius: 16px;
  border: 1px solid var(--fx-line);
  background: rgba(255, 255, 255, 0.025);
}

.fx-flow__node {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: #081018;
  background: linear-gradient(135deg, var(--fx-accent), var(--fx-glow));
}

.fx-flow__row h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.fx-flow__row p {
  margin: 0;
  color: var(--fx-muted);
  font-size: 0.9rem;
}

.fx-use__grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 800px) {
  .fx-use__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fx-use article {
  padding: 22px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fx-line);
}

.fx-use h3 {
  margin: 0 0 8px;
  font-family: var(--fx-display);
}

.fx-use p {
  margin: 0;
  color: var(--fx-muted);
  font-size: 0.92rem;
}

.fx-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.fx-stack span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--fx-line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fx-cta-band {
  margin: 10px 0 64px;
  padding: 36px 24px;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--fx-accent) 28%, transparent);
  background:
    radial-gradient(500px 180px at 10% 0%, color-mix(in srgb, var(--fx-accent) 22%, transparent), transparent 60%),
    rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 18px;
}

@media (min-width: 800px) {
  .fx-cta-band {
    grid-template-columns: 1.3fr auto;
    align-items: center;
    padding: 42px 40px;
  }
}

.fx-cta-band p {
  margin: 0;
  color: var(--fx-muted);
}

.fx-siblings {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .fx-siblings {
    grid-template-columns: 1fr 1fr;
  }
}

.fx-siblings a {
  display: block;
  padding: 22px 20px;
  border-radius: 18px;
  border: 1px solid var(--fx-line);
  background: rgba(255, 255, 255, 0.03);
}

.fx-siblings a:hover {
  border-color: color-mix(in srgb, var(--fx-accent) 45%, transparent);
}

.fx-siblings strong {
  display: block;
  font-family: var(--fx-display);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.fx-siblings span {
  color: var(--fx-muted);
  font-size: 0.9rem;
}

@keyframes fxDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.4%, -1.2%, 0);
  }
}

@keyframes fxGrid {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 72px 72px;
  }
}

@keyframes fxPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

/* ---------- Money inner pages (same OTC system) ---------- */

.money-hero {
  padding: 36px 0 20px;
}

.money-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5.6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 850;
}

.money-hero h1 .accent {
  background: linear-gradient(120deg, #f8931c, #ff5e3a 55%, #c9a227);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.money-hero__lead {
  margin: 0 0 22px;
  max-width: 50ch;
  color: var(--color-text-muted);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.money-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.money-ticker span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.money-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (min-width: 720px) {
  .money-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.money-stats li {
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.money-stats strong {
  display: block;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  letter-spacing: -0.04em;
  color: var(--color-primary-dark);
}

.money-stats span {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.money-photo {
  display: grid;
  gap: 14px;
}

@media (min-width: 860px) {
  .money-photo {
    grid-template-columns: 1fr 1fr;
  }

  .money-photo:has(> :nth-child(3)) {
    grid-template-columns: repeat(3, 1fr);
  }
}

.money-photo a,
.money-photo article {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 22px 20px;
  border-radius: var(--radius-xl);
  color: #fff4ee;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  box-shadow: var(--shadow-md);
}

.money-photo a::before,
.money-photo article::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 16, 12, 0.1) 0%, rgba(18, 16, 12, 0.78) 74%),
    var(--shot) center / cover no-repeat;
  transform: scale(1.04);
  transition: transform 0.45s ease;
}

.money-photo a:hover::before,
.money-photo article:hover::before {
  transform: scale(1.08);
}

.money-photo--china {
  --shot: url("../img/rmb-seal.jpg");
}

.money-photo--dubai {
  --shot: url("../img/dubai-hero.jpg");
}

.money-photo--ai {
  --shot: url("../img/services/ai-hero.jpg");
}

.money-photo--chain {
  --shot: url("../img/services/chain-hero.jpg");
}

.money-photo--bank {
  --shot: url("../img/services/bank-hero.jpg");
}

.money-photo--rail {
  --shot: url("../img/rail-hero.jpg");
}

.money-photo--trade {
  --shot: url("../img/trade-hero.jpg");
}

.money-photo--desk {
  --shot: url("../img/trade-desk.jpg");
}

.money-photo--candles {
  --shot: url("../img/trade-candles.jpg");
}

.money-photo--journal {
  --shot: url("../img/trade-journal.jpg");
}

.trade-shot {
  min-height: 340px;
  border-radius: var(--radius-xl);
  background: url("../img/trade-desk.jpg") center / cover no-repeat;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

[data-page="trade"] .hero__grid {
  align-items: center;
}

[data-page="trade"] .hero {
  padding-block: 28px 20px;
}

[data-page="trade"] .features,
[data-page="trade"] .how {
  padding-block: 36px;
}

[data-page="trade"] .trade-book {
  padding-top: 8px;
}

/* Tape / phrases */
.tape {
  overflow: hidden;
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
  margin: 8px 0 28px;
}

.tape__track {
  display: flex;
  gap: 36px;
  width: max-content;
  padding: 10px 0;
  animation: tapeMove 36s linear infinite;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.tape__track span {
  white-space: nowrap;
}

.tape__track span::before {
  content: "·";
  margin-right: 36px;
  color: var(--color-primary);
}

@keyframes tapeMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Candlestick ornament */
.candles {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 56px;
  margin: 0 0 18px;
}

.candles i {
  width: 7px;
  border-radius: 2px;
  background: var(--color-secondary);
  position: relative;
}

.candles i::before,
.candles i::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: inherit;
}

.candles i::before {
  bottom: 100%;
  height: 8px;
}

.candles i::after {
  top: 100%;
  height: 6px;
}

.candles i:nth-child(odd) {
  background: #dc2626;
  height: 38%;
}

.candles i:nth-child(even) {
  height: 62%;
}

.candles i:nth-child(3) {
  height: 84%;
  background: var(--color-secondary);
}

.candles i:nth-child(5) {
  height: 46%;
}

.quote-strip {
  margin: 8px 0 0;
  padding: 22px 0;
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.quote-strip em {
  font-style: normal;
  color: var(--color-primary-dark);
}

.track-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 860px) {
  .track-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.track-card {
  padding: 22px 20px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  min-height: 100%;
}

.track-card__lvl {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.track-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.track-card ul {
  margin: 12px 0 0;
  padding: 0 0 0 18px;
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.track-card li + li {
  margin-top: 6px;
}

.svc-band {
  padding: 8px 0 36px;
}

.money-photo strong,
.money-photo h3 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.money-photo p {
  margin: 0;
  color: rgba(255, 244, 238, 0.8);
  font-size: 0.92rem;
}

.money-photo__tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffd199;
  margin-bottom: 8px;
}

html[data-theme="dark"] .form-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .step,
html[data-theme="dark"] .faq-item,
html[data-theme="dark"] .cta__inner,
html[data-theme="dark"] .handover__list,
html[data-theme="dark"] .location__panel,
html[data-theme="dark"] .location__card {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  background: var(--color-surface-2);
  color: var(--color-text);
  border-color: var(--color-border);
}

html[data-theme="dark"] .btn--outline,
html[data-theme="dark"] .pill-badge,
html[data-theme="dark"] .trust-card {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

html[data-theme="dark"] .quote-card {
  background: var(--color-surface-2);
  border-color: var(--color-border);
}

/* ---------- Reduced motion ---------- */

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