/* ========================================
   EA NATION — TELEGOLD AUTOSIGNAL
   Standalone landing page. Bold trading-terminal design system,
   deliberately separate from the main site's design tokens.
   ======================================== */

:root {
  /* Base — deep navy charcoal, not pure black */
  --bg: #0a0f1c;
  --bg-panel: #121a2e;
  --bg-panel-raised: #17203a;

  /* Brand accent — Telegold */
  --gold: #d4af37;
  --gold-bright: #f4c430;
  --gold-dim: rgba(212, 175, 55, 0.14);
  --gold-line: rgba(212, 175, 55, 0.22);

  /* Functional trading colors — signal direction, not decoration */
  --buy: #33d17a;
  --sell: #ff5c66;

  /* Ink — warm off-white, not stark AI-white */
  --ink: #f4f1ea;
  --ink-dim: rgba(244, 241, 234, 0.68);
  --ink-faint: rgba(244, 241, 234, 0.42);

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.25rem;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', monospace;
  --font-body: 'Inter', sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: #0a0f1c;
  padding: 0.75rem 1rem;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #182541 0%, var(--bg) 62%);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback .hero-video { display: none; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 28, 0.15) 0%, rgba(10, 15, 28, 0.55) 55%, rgba(10, 15, 28, 0.96) 100%);
  pointer-events: none;
}

.sound-toggle {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: 1rem;
  z-index: 5;
  height: 3rem;
  padding: 0 1.1rem 0 0.9rem;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: rgba(10, 15, 28, 0.72);
  color: var(--ink);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  animation: sound-toggle-pulse 2.4s ease-in-out infinite;
}
.sound-toggle svg { width: 1.4rem; height: 1.4rem; fill: currentColor; flex-shrink: 0; }
.sound-toggle .mute-slash { opacity: 1; stroke: var(--gold-bright); }
.sound-toggle[aria-pressed="true"] .mute-slash { opacity: 0; }
.sound-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes sound-toggle-pulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(212, 175, 55, 0.35); }
  50% { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35), 0 0 0 7px rgba(212, 175, 55, 0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 1.25rem max(2rem, env(safe-area-inset-bottom));
  padding-bottom: calc(2rem + env(safe-area-inset-bottom));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  margin-bottom: 0.75rem;
}
.eyebrow-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--buy);
  box-shadow: 0 0 0 0 rgba(51, 209, 122, 0.6);
  animation: pulse-dot 1.8s ease-out infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 9vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.hero-title br { display: block; }

.hero-sub {
  font-size: 0.98rem;
  color: var(--ink-dim);
  max-width: 32rem;
  margin-bottom: 0.5rem;
}
.hero-sub-secondary {
  margin-bottom: 1.4rem;
  color: var(--ink-faint);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: #0a0f1c;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: none;
  border-radius: 999px;
  padding: 1rem 1.6rem;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(212, 175, 55, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cta:active { transform: scale(0.97); }
@media (hover: hover) {
  .cta:hover { box-shadow: 0 10px 34px rgba(212, 175, 55, 0.4); transform: translateY(-1px); }
}

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

/* ============ SIGNAL TICKER (signature element) ============ */

.ticker-section {
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  background: var(--bg-panel);
  padding: 0.85rem 0;
}

.ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 1.25rem 0.65rem;
  flex-wrap: wrap;
}

.ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
}
.ticker-live-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--sell);
  animation: pulse-dot-sell 1.8s ease-out infinite;
}

.ticker-note {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-faint);
}

.ticker-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  padding: 0 1.25rem;
  animation: ticker-scroll 32s linear infinite;
}
.ticker-viewport:hover .ticker-track,
.ticker-viewport:focus-within .ticker-track {
  animation-play-state: paused;
}

.signal-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-panel-raised);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.signal-pair { font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }

.signal-dir {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 0.3rem;
}
.signal-dir.buy { color: var(--buy); background: rgba(51, 209, 122, 0.14); }
.signal-dir.sell { color: var(--sell); background: rgba(255, 92, 102, 0.14); }

.signal-time { color: var(--ink-faint); font-size: 0.72rem; }

/* ============ SECTIONS ============ */

.section {
  padding: 3rem 1.25rem;
  max-width: 46rem;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 6vw, 2rem);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.section-lead {
  color: var(--ink-dim);
  font-size: 0.98rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

/* ============ MODE CARDS ============ */

.mode-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.mode-card {
  background: var(--bg-panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
}
.mode-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-bright), transparent);
}

.mode-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }

.mode-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gold-bright);
  margin-bottom: 0.4rem;
}

.mode-desc { color: var(--ink-dim); font-size: 0.92rem; }

/* ============ TEAM ============ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.team-card {
  background: var(--bg-panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
}

.team-photo-wrap {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid var(--gold);
}
.team-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.team-photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  color: var(--gold-bright);
  font-family: var(--font-display);
  font-weight: 700;
}

.team-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.team-title { font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.15rem; }

/* ============ PROOF ============ */

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}
.stat {
  background: var(--bg-panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.6rem;
  text-align: center;
}
.stat-text {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 1.05rem;
}
.stat-label { font-size: 0.68rem; color: var(--ink-faint); margin-top: 0.3rem; line-height: 1.3; }

.proof-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.proof-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--bg-panel);
  width: 100%;
}
.proof-item img, .proof-item video { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.proof-item figcaption {
  font-size: 0.8rem;
  color: var(--ink-dim);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
}

/* ============ CTA SECTION ============ */

.cta-section {
  text-align: center;
  background: linear-gradient(180deg, transparent, var(--gold-dim));
  max-width: none;
  padding-top: 2.5rem;
}

.cta-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 6vw, 1.9rem);
  margin-bottom: 0.5rem;
}
.cta-sub { color: var(--ink-dim); margin-bottom: 1.5rem; }
.cta-secondary { }

/* ============ FOOTER ============ */

.disclosure {
  padding: 2rem 1.25rem 3rem;
  max-width: 46rem;
  margin: 0 auto;
  border-top: 1px solid var(--gold-line);
}
.disclosure p {
  font-size: 0.72rem;
  color: var(--ink-faint);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.disclosure-brand { color: var(--ink-faint); }

/* ============ ANIMATIONS ============ */

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

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(51, 209, 122, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(51, 209, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(51, 209, 122, 0); }
}
@keyframes pulse-dot-sell {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 102, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(255, 92, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; overflow-x: auto; }
  .eyebrow-dot, .ticker-live-dot { animation: none; }
  .cta { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ============ BREAKPOINTS ============ */

@media (min-width: 640px) {
  .hero-title br { display: none; }
  .mode-grid { grid-template-columns: repeat(3, 1fr); }
  .cta-hero { width: auto; }
}

@media (min-width: 960px) {
  .hero-content { padding-left: 4rem; padding-bottom: 4rem; max-width: 40rem; }
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
}
