/* ════════════════════════════════════════════════════════════════
   MagicTradeBot v6.0 — Editorial-Institutional Design System
   ════════════════════════════════════════════════════════════════ */

/* ───── DESIGN TOKENS ───── */

:root,
:root[data-theme="dark"] {
  /* Surfaces */
  --bg: #0a0a0b;
  --bg-elev: #131316;
  --bg-elev-2: #1a1a1f;
  --bg-elev-3: #222228;
  --bg-glass: rgba(10, 10, 11, 0.85);
  --bg-inset: #07070a;

  /* Lines */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-accent: rgba(0, 230, 118, 0.4);

  /* Text */
  --ink: #f4f4f0;
  --ink-2: #aaaaa6;
  --ink-3: #6b6b67;
  --ink-4: #46464a;

  /* Accent — signal green */
  --accent: #00e676;
  --accent-deep: #00b85f;
  --accent-soft: rgba(0, 230, 118, 0.12);
  --accent-ink: #04130a;

  /* Semantic */
  --warn: #ffb547;
  --warn-soft: rgba(255, 181, 71, 0.12);
  --danger: #ff5252;
  --danger-soft: rgba(255, 82, 82, 0.12);
  --info: #6ab7ff;
  --info-soft: rgba(106, 183, 255, 0.12);

  /* Effects */
  --glow-accent: 0 0 30px rgba(0, 230, 118, 0.25);

  /* Theme-specific noise */
  --noise-opacity: 0.04;
}

:root[data-theme="light"] {
  --bg: #faf9f5;
  --bg-elev: #ffffff;
  --bg-elev-2: #f3f1e8;
  --bg-elev-3: #ebe8dc;
  --bg-glass: rgba(250, 249, 245, 0.92);
  --bg-inset: #f0eee4;

  --line: rgba(20, 20, 18, 0.1);
  --line-strong: rgba(20, 20, 18, 0.22);
  --line-accent: rgba(0, 169, 87, 0.5);

  --ink: #14140f;
  --ink-2: #46463f;
  --ink-3: #757568;
  --ink-4: #a8a89a;

  --accent: #00a957;
  --accent-deep: #00874a;
  --accent-soft: rgba(0, 169, 87, 0.1);
  --accent-ink: #f7fbf9;

  --warn: #c87b00;
  --warn-soft: rgba(200, 123, 0, 0.1);
  --danger: #c93636;
  --danger-soft: rgba(201, 54, 54, 0.1);
  --info: #2a6ec1;
  --info-soft: rgba(42, 110, 193, 0.1);

  --glow-accent: 0 0 30px rgba(0, 169, 87, 0.2);

  --noise-opacity: 0.02;
}

/* Universal */
:root {
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter Tight', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Space Mono', ui-monospace, monospace;

  --radius: 6px;
  --radius-lg: 10px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ───── RESET ───── */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.65;
  font-feature-settings: 'ss01', 'ss02', 'cv01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

/* Subtle film grain for warmth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

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

em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 600;
}

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

/* ───── LAYOUT ───── */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ═══════════════════════════════════════════
   HEADER — single consolidated line
═══════════════════════════════════════════ */

@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.masthead {
  position: sticky;
  top: 0;
  z-index: 99;
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform var(--transition);
}

.brand:hover .brand-mark {
  transform: rotate(-3deg);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-version {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 6px;
  border-radius: 3px;
  margin-left: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--accent);
}

.masthead-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Icon button — used for sign-in, theme, language */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius);
  color: var(--ink-2);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--transition);
  position: relative;
}

.icon-btn:hover {
  color: var(--ink);
  background: var(--bg-elev-2);
}

.icon-btn.lang-btn {
  width: auto;
  padding: 0 10px 0 8px;
}

.lang-code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.theme-icon-sun { display: block; }
.theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* Language dropdown */
.lang-switcher {
  position: relative;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
              0 0 0 1px var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 200;
}

[data-theme="light"] .lang-dropdown {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08),
              0 0 0 1px var(--line);
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink-2);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

.lang-item:hover {
  color: var(--ink);
  background: var(--bg-elev-2);
}

.lang-item.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.lang-flag {
  font-size: 14px;
  line-height: 1;
}

.lang-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.lang-item.active .lang-tag {
  color: var(--accent);
}

.masthead-rule {
  width: 1px;
  height: 18px;
  background: var(--line-strong);
  margin: 0 4px;
}

/* ═══════════════════════════════════════════
   PRODUCT NAV STRIP — shared across product pages
═══════════════════════════════════════════ */

.product-nav {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
}

.product-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

.product-id {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-id-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  border-radius: var(--radius);
  letter-spacing: -0.02em;
}

.product-id-name {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.product-id-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.product-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-nav-links a {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}

.product-nav-links a:hover {
  color: var(--ink);
  background: var(--bg-elev-2);
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-lg {
  padding: 13px 22px;
  font-size: 14.5px;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: var(--glow-accent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

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

.btn-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.65;
  padding-left: 8px;
  margin-left: 4px;
  border-left: 1px solid currentColor;
}

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */

.hero {
  padding: 96px 0 80px;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow-num {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 9px;
  border-radius: 3px;
  font-weight: 700;
}

.eyebrow-rule {
  width: 24px;
  height: 1px;
  background: var(--line-strong);
}

.eyebrow-text {
  color: var(--ink-2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(46px, 6.5vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-bottom: 28px;
}

.hero-line {
  display: block;
}

.hero-line-accent {
  color: var(--accent);
}

.hero-line-italic {
  font-style: italic;
  font-weight: 600;
  color: var(--ink-2);
}

.hero-lede {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-lede em {
  font-style: italic;
  color: var(--ink);
  font-family: var(--font-display);
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.figure {
  padding-right: 16px;
}

.figure-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
  display: block;
}

.figure-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}

/* ───── HERO TERMINAL ───── */

.hero-terminal {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4),
              0 0 0 1px var(--line);
}

[data-theme="light"] .hero-terminal {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.08),
              0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.terminal-chrome {
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chrome-dots {
  display: flex;
  gap: 6px;
}

.chrome-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.chrome-dot:nth-child(1) { background: #ff5f57; opacity: 0.5; }
.chrome-dot:nth-child(2) { background: #febc2e; opacity: 0.5; }
.chrome-dot:nth-child(3) { background: #28c840; opacity: 0.5; }

.chrome-title {
  flex: 1;
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
  letter-spacing: 0.02em;
}

.chrome-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.live-pulse {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: status-pulse 1.6s ease-in-out infinite;
}

.chrome-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--warn);
  letter-spacing: 0.1em;
  padding: 2px 8px;
  background: var(--warn-soft);
  border-radius: 3px;
}

.terminal-body {
  padding: 16px 18px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.term-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 11.5px;
  line-height: 1.5;
  opacity: 0;
  animation: term-fade-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.term-line:nth-child(1) { animation-delay: 0.1s; }
.term-line:nth-child(2) { animation-delay: 0.25s; }
.term-line:nth-child(3) { animation-delay: 0.4s; }
.term-line:nth-child(4) { animation-delay: 0.55s; }
.term-line:nth-child(5) { animation-delay: 0.7s; }
.term-line:nth-child(6) { animation-delay: 0.85s; }
.term-line:nth-child(7) { animation-delay: 1.0s; }
.term-line:nth-child(8) { animation-delay: 1.15s; }

@keyframes term-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.term-time, .term-arrow {
  color: var(--ink-4);
  flex-shrink: 0;
  font-weight: 500;
}

.term-tag {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 2px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.tag-ok { background: var(--accent-soft); color: var(--accent); }
.tag-info { background: var(--info-soft); color: var(--info); }
.tag-warn { background: var(--warn-soft); color: var(--warn); }
.tag-accent { background: var(--bg-elev-3); color: var(--ink-2); }

.term-msg {
  color: var(--ink-2);
  font-size: 11.5px;
}

.term-num {
  color: var(--ink);
  font-weight: 500;
}

.term-gain {
  color: var(--accent);
  font-weight: 700;
}

.term-msg em {
  font-style: italic;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-weight: 400;
}

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  background: var(--accent);
  margin-left: 4px;
  vertical-align: middle;
  animation: cursor-blink 1.1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-footer {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.footer-stat {
  padding: 14px 18px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-stat:last-child { border-right: none; }

.footer-stat-num {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer-stat-num small {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
}

.footer-stat-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   METRICS BAR
═══════════════════════════════════════════ */

.metrics-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  overflow: hidden;
}

.metrics-track {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.metrics-track::-webkit-scrollbar { display: none; }

.metric-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px 28px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  flex-shrink: 0;
}

.metric-cell:last-child { border-right: none; }

.metric-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.metric-val {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ═══════════════════════════════════════════
   SECTIONS — SHARED
═══════════════════════════════════════════ */

.section {
  padding: 112px 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 32px;
  margin-bottom: 72px;
  align-items: start;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 6px;
  position: relative;
}

.section-num::after {
  content: '';
  position: absolute;
  left: 0;
  top: 26px;
  width: 32px;
  height: 1px;
  background: var(--line-strong);
}

.section-meta {
  max-width: 720px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

.section-lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 620px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
}

.link-arrow:hover {
  gap: 12px;
}

/* ═══════════════════════════════════════════
   EDITORIAL FEATURE GRID
═══════════════════════════════════════════ */

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature {
  background: var(--bg);
  padding: 36px 32px;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background var(--transition);
  position: relative;
}

.feature:hover {
  background: var(--bg-elev);
}

.feature-lead {
  grid-column: span 4;
  grid-row: span 2;
}

.feature-wide {
  grid-column: span 4;
}

.feature-stat {
  grid-column: span 2;
  background: var(--accent-soft);
  position: relative;
}

[data-theme="light"] .feature-stat {
  background: var(--accent-soft);
}

.feature-stat:hover {
  background: var(--accent-soft);
}

.feature-stat-glyph {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  opacity: 0.45;
}

.feature-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.feature-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature-lead .feature-title {
  font-size: 30px;
}

.feature-body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-top: auto;
}

.feature-body strong {
  color: var(--ink);
  font-weight: 600;
}

.feature-code {
  margin-top: 8px;
  padding: 16px 18px;
  background: var(--bg-inset);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-code pre {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--ink-2);
  white-space: pre;
}

.code-comment { color: var(--ink-4); font-style: italic; }
.code-key { color: var(--accent); }
.code-val { color: var(--ink); }
.code-str { color: var(--warn); }
.code-num { color: var(--info); }
.code-kw { color: var(--accent); font-weight: 700; }

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-elev-2);
  padding: 4px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  list-style: none;
  margin-top: 8px;
}

.pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  background: var(--bg-elev-2);
  color: var(--ink-3);
  border: 1px solid var(--line);
}

.pill-on {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--line-accent);
}

/* ═══════════════════════════════════════════
   TRADINGVIEW SECTION
═══════════════════════════════════════════ */

.section-tv {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tv-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.check-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.check-list li:last-child { border-bottom: none; }

.check-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.check-list strong {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 3px;
}

.check-list div {
  color: var(--ink-2);
  line-height: 1.6;
  font-size: 13.5px;
}

/* TV Visual */
.payload-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.payload-head {
  background: var(--bg-inset);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payload-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}

.payload-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.payload-code {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
  white-space: pre;
  overflow-x: auto;
}

.flow-diagram {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.flow-step {
  flex: 1;
  min-width: 110px;
  text-align: center;
  padding: 14px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}

.flow-step-active {
  background: var(--accent-soft);
  border-color: var(--line-accent);
}

.flow-step-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.flow-step-active .flow-step-label {
  color: var(--accent);
}

.flow-step-name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.flow-step-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
}

.flow-arrow {
  color: var(--ink-4);
  font-size: 14px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   EXCHANGE COVERAGE
═══════════════════════════════════════════ */

.exchange-tier {
  margin-bottom: 40px;
}

.tier-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.tier-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 3px;
}

.tier-free {
  background: var(--accent-soft);
  color: var(--accent);
}

.tier-pro {
  background: var(--info-soft);
  color: var(--info);
}

.tier-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.tier-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.exchange-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.exchange-grid.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.exchange-cell {
  background: var(--bg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background var(--transition);
}

.exchange-cell:hover {
  background: var(--bg-elev);
}

.exchange-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.exchange-count {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.exchange-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.exchange-warn {
  color: var(--warn);
}

/* Arbitrage callout */
.arb-callout {
  margin-top: 48px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
  padding: 40px 44px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.arb-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

.arb-figure {
  position: relative;
  z-index: 1;
}

.arb-num {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.arb-plus {
  font-size: 36px;
  vertical-align: top;
  opacity: 0.5;
}

.arb-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 10px;
  line-height: 1.4;
}

.arb-body {
  position: relative;
  z-index: 1;
}

.arb-body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.arb-body strong {
  color: var(--ink);
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   PAPER TRADING
═══════════════════════════════════════════ */

.section-paper {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.paper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}

.paper-checklist {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.paper-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.paper-item:last-child {
  border-bottom: none;
}

.paper-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.paper-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}

.paper-item span {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
}

.paper-terminal {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.chrome-paper {
  background: var(--bg-inset);
}

.paper-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.paper-stat {
  background: var(--bg);
  padding: 28px 24px;
  text-align: left;
}

.paper-stat-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 8px;
}

.paper-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   ECOSYSTEM
═══════════════════════════════════════════ */

.section-ecosystem {
  background: var(--bg);
}

.product-primary {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.product-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

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

.product-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.product-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

.product-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.product-name {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 14px;
}

.product-pitch {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 24px;
  max-width: 540px;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}

.product-features li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  font-size: 13.5px;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}

.product-features li:last-child { border-bottom: none; }

.product-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

.product-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-stats > .product-stat {
  display: none;
}

.product-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-stat {
  background: var(--bg-elev);
  padding: 20px 24px;
}

.product-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.product-stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.product-plan {
  grid-column: 1 / -1;
  background: var(--bg-inset);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.5;
}

.plan-tier {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  min-width: 76px;
  text-align: center;
}

.plan-free {
  background: var(--accent-soft);
  color: var(--accent);
}

.plan-pro {
  background: var(--info-soft);
  color: var(--info);
}

.plan-studio {
  background: var(--warn-soft);
  color: var(--warn);
}

/* Secondary products */
.product-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.product-secondary {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: background var(--transition);
}

.product-secondary:hover {
  background: var(--bg-elev-2);
}

.product-secondary .product-name {
  font-size: 28px;
  margin-bottom: 12px;
}

.product-secondary .product-pitch {
  font-size: 14.5px;
  margin-bottom: 20px;
}

.product-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.product-mini-stats > div {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.mini-num {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 5px;
}

.mini-num small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}

.mini-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */

.section-faq {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

.faq-item summary {
  display: grid;
  grid-template-columns: 60px 1fr 32px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  list-style: none;
  transition: color var(--transition);
}

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

.faq-item summary:hover {
  color: var(--accent);
}

.faq-q-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

.faq-toggle {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-3);
  text-align: right;
  transition: transform var(--transition), color var(--transition);
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-a {
  padding: 0 0 28px 84px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 720px;
}

/* ═══════════════════════════════════════════
   CTA STRIP
═══════════════════════════════════════════ */

.cta-strip {
  padding: 96px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
  pointer-events: none;
}

.cta-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.6;
  max-width: 500px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.cta-actions .btn {
  width: 100%;
  justify-content: center;
}

.cta-meta {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cta-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.cta-bullet {
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */

.masthead-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  padding: 64px 0 32px;
}

.footer-top {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.brand-footer {
  align-items: center;
}

.brand-footer .brand-mark {
  color: var(--ink);
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
}

.status-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}

.status-dot-ok {
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.status-uptime {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-bottom: 20px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
}

.footer-sep {
  color: var(--ink-4);
}

.footer-version {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-3);
}

.version-tag {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.version-build {
  color: var(--ink-4);
  letter-spacing: 0.04em;
}

.footer-disclaimer {
  padding: 18px 22px;
  background: var(--warn-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

.footer-disclaimer strong {
  color: var(--warn);
  font-weight: 700;
  margin-right: 6px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .tv-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-body { grid-template-columns: 1fr; gap: 40px; }
  .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .paper-grid { grid-template-columns: 1fr; gap: 40px; }
  .arb-callout { grid-template-columns: 1fr; gap: 24px; padding: 32px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .section { padding: 80px 0; }
  .masthead-inner { padding: 12px 0; gap: 16px; }
  .primary-nav { display: none; }
  .brand-version { display: none; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 56px; }
  .section-num::after { display: none; }
  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature-lead, .feature-wide, .feature-stat { grid-column: span 2; }
  .feature-lead { grid-row: auto; }
  .exchange-grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
  .product-secondary-grid { grid-template-columns: 1fr; }
  .paper-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .masthead-inner { gap: 8px; }
  .masthead-actions { gap: 4px; }
  .icon-btn { width: 30px; height: 30px; }
  .icon-btn.lang-btn { padding: 0 8px 0 6px; }
  .lang-code { font-size: 10px; }
  .masthead-rule { display: none; }
  .hero { padding: 56px 0 48px; }
  .hero-figures { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .figure { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .editorial-grid { grid-template-columns: 1fr; }
  .feature, .feature-lead, .feature-wide, .feature-stat { grid-column: span 1; }
  .exchange-grid.grid-3 { grid-template-columns: 1fr; }
  .paper-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col-meta { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .product-primary, .product-secondary { padding: 28px; }
  .arb-num { font-size: 48px; }
}

/* Smooth fade-in for the page */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    opacity: 0;
    animation: fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .hero-copy > *:nth-child(1) { animation-delay: 0.1s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.25s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.4s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.55s; }

  .hero-terminal {
    opacity: 0;
    animation: fade-up 0.7s 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
