/* ===== Velox — Static Styles =====
   Faithful replica of app/globals.css with @theme inline replaced
   by :root CSS custom properties.
================================================================ */

/* ---- Variables replacing @theme inline ---- */
:root {
  /* Brand palette */
  --color-background: #0b0a09;
  --color-surface: #131110;
  --color-surface-2: #1b1917;
  --color-surface-3: #24211e;
  --color-foreground: #ece7e1;
  --color-white: #fbf9f6;
  --color-muted: #948b81;
  --color-faint: #5f574e;

  /* Warm orange-amber accent */
  --color-accent: #e0623a;
  --color-accent-soft: #ef8a5c;
  --color-accent-deep: #c04a26;

  --color-usdt: #26a17b;
  --color-trx: #ef4444;

  --color-border: rgba(236, 231, 225, 0.08);
  --color-border-strong: rgba(236, 231, 225, 0.16);

  /* Font stacks (references from next/font) */
  --font-inter: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --font-mono-jet: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Semantic tokens (original :root block) */
  color-scheme: dark;
  --border-subtle: rgba(236, 231, 225, 0.08);
  --border-bright: rgba(236, 231, 225, 0.16);
}

/* ---- Base (original) ---- */
html {
  background-color: #0b0a09;
}

body {
  background-color: #0b0a09;
  color: #ece7e1;
  font-family: var(--font-inter), ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(224, 98, 58, 0.3);
  color: #fbf9f6;
}

/* ---- Display typography: Inter, regular weight, very tight tracking (Minta) ---- */
.font-display {
  font-family: var(--font-inter), ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.display-xl {
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

@media (max-width: 480px) {
  .display-xl {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    letter-spacing: -0.03em;
  }
}

.display-lg {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.display-md {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

/* ---- Eyebrow / kicker label ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.eyebrow-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  color: var(--color-accent-soft);
}

/* ---- Keyframe animations ---- */
@keyframes vx-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.6);
    opacity: 0.35;
  }
}
.vx-pulse {
  animation: vx-pulse 2.2s ease-in-out infinite;
}

@keyframes vx-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.vx-marquee-track {
  animation: vx-marquee 22s linear infinite;
  width: max-content;
}
.vx-marquee:hover .vx-marquee-track {
  animation-play-state: paused;
}

@keyframes vx-beam {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
}
.vx-beam {
  animation: vx-beam 6s ease-in-out infinite;
}

/* ---- Buttons: dark pill with subtle border (Minta) ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-foreground);
  color: #0b0a09;
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  padding: 14px 28px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--color-white);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(236, 231, 225, 0.03);
  color: var(--color-foreground);
  border: 1px solid var(--border-subtle);
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  padding: 14px 28px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--border-bright);
  background: rgba(236, 231, 225, 0.06);
  transform: translateY(-1px);
}

/* ---- Cards ---- */
.vx-card {
  position: relative;
  background: linear-gradient(180deg, rgba(27, 25, 23, 0.9), rgba(19, 17, 16, 0.9));
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  transition: all 0.3s ease;
  overflow: hidden;
}
.vx-card-hover:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
}

/* ---- Cinematic light beam (signature element) ---- */
.beam-diagonal {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.beam-diagonal::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  width: 2px;
  height: 160%;
  transform: rotate(38deg);
  transform-origin: center;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(224, 98, 58, 0.15),
    rgba(239, 138, 92, 0.85),
    rgba(224, 98, 58, 0.15),
    transparent
  );
  box-shadow: 0 0 60px 12px rgba(224, 98, 58, 0.35);
}

.glow-radial {
  background: radial-gradient(
    ellipse 50% 40% at 50% 45%,
    rgba(224, 98, 58, 0.16),
    transparent 70%
  );
}

/* ---- Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
  .vx-pulse,
  .vx-beam {
    animation: none !important;
  }
}

/* ====================================================================
   Vanilla-animation helpers (replace Framer Motion)
==================================================================== */

/* Tailwind v3 CDN fallback for text-balance */
.text-balance {
  text-wrap: balance;
}

/* Scroll reveal (replaces framer-motion whileInView) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Navbar hamburger */
.hamburger-line {
  position: absolute;
  left: 50%;
  width: 1.25rem;
  height: 1.5px;
  background: var(--color-foreground);
  transform-origin: center;
  transition: transform 0.25s ease;
  transform: translateX(-50%);
}
.hamburger-line:nth-child(1) {
  transform: translate(-50%, -4px);
}
.hamburger-line:nth-child(2) {
  transform: translate(-50%, 4px);
}
.hamburger.open .hamburger-line:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  transform: translate(-50%, 0) rotate(-45deg);
}

/* Mobile menu (replaces AnimatePresence height animation) */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu.open {
  max-height: 480px;
  opacity: 1;
}

/* FAQ accordion */
.faq-chevron {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}
.faq-body.open {
  max-height: 600px;
  opacity: 1;
}

/* Hero rise stagger (replaces framer-motion useStagger) */
.rise {
  opacity: 0;
  transform: translateY(18px);
}
.rise.started {
  animation: riseIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hero image entrance (replaces framer-motion animate on img) */
.hero-img {
  opacity: 0; /* from keyframe */
  animation: heroImgIn 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroImgIn {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(1.06);
  }
  to {
    opacity: 0.9;
    transform: translateX(-50%) scale(1);
  }
}

/* Count-up tabular numbers */
.count-num {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-inter);
}

/* Footer link hover */
.footer-link {
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: var(--color-foreground);
}

/* ---- Settlement Records (live table) ---- */
.settle-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(38, 161, 123, 0.1);
  border: 1px solid rgba(38, 161, 123, 0.3);
  color: #34d399;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.live-dot {
  position: relative;
  display: inline-flex;
  width: 7px;
  height: 7px;
  flex-shrink: 0;
}
.live-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #34d399;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #34d399;
  animation: vx-pulse 2s ease-in-out infinite;
}

.settle-th {
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faint);
  white-space: nowrap;
}

.settle-cell {
  padding: 14px 20px;
  white-space: nowrap;
}

.settle-row {
  transition: background 0.2s ease;
}
.settle-row:hover {
  background: rgba(236, 231, 225, 0.03);
}
.settle-row td {
  border-bottom: 1px solid var(--color-border);
}

@keyframes settle-in {
  0% {
    background: rgba(38, 161, 123, 0.1);
  }
  100% {
    background: transparent;
  }
}
.settle-row.is-new {
  animation: settle-in 1.4s ease-out;
}

.settle-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-faint);
  font-variant-numeric: tabular-nums;
}

.settle-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-muted);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease;
}
.settle-copy:hover {
  color: var(--color-foreground);
}

.tx-hash {
  text-decoration: none;
  text-underline-offset: 3px;
}
.tx-hash:hover {
  text-decoration: underline;
}

.settle-amount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-foreground);
  font-variant-numeric: tabular-nums;
}
.settle-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.settle-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.settle-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
  flex-shrink: 0;
}
.settle-badge-ok {
  background: rgba(38, 161, 123, 0.12);
  border: 1px solid rgba(38, 161, 123, 0.3);
  color: #34d399;
}
.settle-badge-pending {
  background: rgba(224, 98, 58, 0.12);
  border: 1px solid rgba(224, 98, 58, 0.25);
  color: var(--color-accent-soft);
}

.copy-tip {
  position: fixed;
  z-index: 9999;
  background: var(--color-foreground);
  color: #0b0a09;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}
.copy-tip.show {
  opacity: 1;
  transform: translate(-50%, -8px);
}

/* ---- Token chip (swap widget) ---- */
.token-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(236, 231, 225, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 7px 16px 7px 8px;
}
.token-chip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.token-chip-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-foreground);
  letter-spacing: -0.01em;
}

/* ---- Swap details (sun.io-style fee breakdown) ---- */
.swap-details {
  background: rgba(11, 10, 9, 0.4);
  border: 1px solid rgba(236, 231, 225, 0.07);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: visible;
}
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: visible;
}
.detail-label {
  font-size: 13px;
  color: var(--color-muted);
  white-space: nowrap;
  flex-shrink: 0;
  overflow: visible;
}
.detail-value {
  font-size: 13px;
  color: var(--color-foreground);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
  letter-spacing: -0.01em;
}
.detail-green {
  color: #22c55e;
}
.detail-yellow {
  color: #eab308;
}
.detail-red {
  color: #ef4444;
}

/* Route flow */
.route-flow {
  display: flex;
  align-items: center;
  gap: 6px;
}
.route-arrow {
  color: var(--color-faint);
  flex-shrink: 0;
}
.route-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  font-family: var(--font-inter);
}
.route-usdt {
  background: rgba(38, 161, 123, 0.1);
  color: #26a17b;
  border: 1px solid rgba(38, 161, 123, 0.2);
}
.route-wtrx {
  background: rgba(148, 139, 129, 0.08);
  color: var(--color-muted);
  border: 1px solid rgba(148, 139, 129, 0.15);
}
.route-trx {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

/* Right side container */
.detail-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* Rate lock */
.rate-lock {
  font-size: 10px;
  color: var(--color-faint);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

/* Slippage tolerance pills */
.slippage-pills {
  display: flex;
  gap: 5px;
}
.slippage-pill {
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--color-muted);
  background: rgba(236, 231, 225, 0.04);
  border: 1px solid rgba(236, 231, 225, 0.08);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  line-height: 1;
}
.slippage-pill:hover {
  color: var(--color-foreground);
  background: rgba(236, 231, 225, 0.08);
}
.slippage-pill.active {
  color: var(--color-foreground);
  background: rgba(236, 231, 225, 0.1);
  border-color: rgba(236, 231, 225, 0.18);
}

/* Sponsored fee */
.detail-sponsored {
  font-size: 12px;
  font-weight: 500;
  color: #22c55e;
  font-family: var(--font-inter);
}

/* Divider */
.detail-divider {
  height: 1px;
  background: rgba(236, 231, 225, 0.06);
  margin: 0;
}

/* Total row */
.detail-total {
  padding-top: 0;
}
.detail-value-total {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-foreground);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Tooltip */
.has-tip {
  position: relative;
  cursor: help;
}
.tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font-inter);
  color: var(--color-faint);
  background: rgba(236, 231, 225, 0.06);
  border: 1px solid rgba(236, 231, 225, 0.1);
  border-radius: 50%;
  margin-left: 3px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.has-tip:hover .tip-icon {
  color: var(--color-foreground);
  background: rgba(236, 231, 225, 0.12);
  border-color: rgba(236, 231, 225, 0.2);
}
.has-tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: -10px;
  max-width: 240px;
  min-width: 200px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 400;
  font-family: var(--font-inter);
  line-height: 1.55;
  white-space: normal;
  color: var(--color-foreground);
  background: #1b1917;
  border: 1px solid rgba(236, 231, 225, 0.14);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 100;
}
.has-tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 10px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(236, 231, 225, 0.14);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 100;
}
.has-tip:hover::after,
.has-tip:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Shared doc-page components ---- */
.vx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.vx-badge-green { background: rgba(38, 161, 123, 0.12); border-color: rgba(38, 161, 123, 0.3); color: #34d399; }
.vx-badge-amber { background: rgba(224, 98, 58, 0.12); border-color: rgba(224, 98, 58, 0.25); color: var(--color-accent-soft); }
.vx-badge-red { background: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.3); color: #f87171; }
.vx-badge-blue { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.3); color: #60a5fa; }
.vx-badge-neutral { background: rgba(236, 231, 225, 0.05); border-color: rgba(236, 231, 225, 0.12); color: var(--color-muted); }

.vx-code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #d8d2cb;
  background: rgba(6, 5, 5, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 22px;
  overflow-x: auto;
  white-space: pre;
}

.vx-table { width: 100%; border-collapse: collapse; text-align: left; }
.vx-th {
  padding: 13px 18px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-faint);
  white-space: nowrap;
  border-bottom: 1px solid var(--color-border);
}
.vx-td {
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-muted);
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
.vx-td strong { color: var(--color-foreground); font-weight: 500; }
.vx-row { transition: background 0.2s ease; }
.vx-row:hover { background: rgba(236, 231, 225, 0.03); }

/* Legal / prose document formatting */
.vx-legal-heading {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-foreground);
}

/* ---- Navbar dropdowns (desktop) ---- */
.nav-group {
  position: relative;
}
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  background: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-trigger:hover {
  color: var(--color-foreground);
  background: rgba(236, 231, 225, 0.04);
}
.nav-chevron {
  color: var(--color-faint);
  transition: transform 0.2s ease;
}
.nav-group:hover .nav-chevron,
.nav-group.open .nav-chevron,
.nav-group:focus-within .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 224px;
  background: linear-gradient(180deg, rgba(27, 25, 23, 0.98), rgba(19, 17, 16, 0.98));
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 10px 8px 8px 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.nav-group:hover .nav-dropdown,
.nav-group.open .nav-dropdown,
.nav-group:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  text-decoration: none;
  padding: 8px 4px;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--color-foreground);
}
.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 14px;
  color: var(--color-muted);
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-dropdown a:hover {
  color: var(--color-foreground);
  background: rgba(236, 231, 225, 0.05);
}

/* ---- Mobile accordion menu ---- */
.mobile-accordion-toggle {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.mobile-accordion-chevron {
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-accordion-item.open .mobile-accordion-chevron {
  transform: rotate(180deg);
}
.mobile-sub {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-sub.open {
  max-height: 420px;
  opacity: 1;
}
.mobile-sub-link {
  display: block;
  padding: 8px 0 8px 20px;
  font-size: 14px;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.mobile-sub-link:hover {
  color: var(--color-foreground);
}

/* ============================================================
   HERO BACKGROUND — "Ember Core" (gas-reserve forge glow)
   Palette: #e0623a / #c04a26 over #0b0a09 — site colors only
   ============================================================ */
.ember-core-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 50% 64%,
    rgba(224, 98, 58, 0.32),
    rgba(192, 74, 38, 0.17) 26%,
    rgba(192, 74, 38, 0.06) 45%,
    transparent 68%);
  animation: ember-breathe 7s ease-in-out infinite;
}

@keyframes ember-breathe {
  0%, 100% { filter: brightness(0.96); }
  50%      { filter: brightness(1.09); }
}

/* mobile: glow tightens + rises slightly so it sits behind the headline */
@media (max-width: 760px) {
  .ember-core-bg {
    background-image: radial-gradient(circle at 50% 58%,
      rgba(224, 98, 58, 0.30),
      rgba(192, 74, 38, 0.16) 24%,
      rgba(192, 74, 38, 0.06) 42%,
      transparent 64%);
  }
}

/* accessibility: static glow for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ember-core-bg { animation: none; }
}

