/* Spark Media — navy + cyan UI. Magenta #FF005C is logo-only. */

:root {
  --bg: #070B14;
  --bg-2: #0C1220;
  --surface: #141B2A;
  --line: #243049;
  --text: #F3F6FB;
  --muted: #93A0B5;
  --cyan: #00C2FF;
  --cyan-2: #4DE1FF;
  --ice: #E8F7FF;
  --logo-magenta: #FF005C;

  --color-bg-dark: var(--bg);
  --color-bg-darker: var(--bg-2);
  --color-surface: var(--surface);
  --color-surface-light: var(--line);
  --color-primary: var(--cyan);
  --color-secondary: var(--cyan);
  --color-tertiary: var(--cyan-2);
  --color-text-primary: var(--text);
  --color-text-secondary: var(--muted);
  --color-text-muted: var(--muted);
  --gradient-primary: linear-gradient(160deg, #4DE1FF 0%, #00C2FF 58%, #E8F7FF 130%);
  --gradient-secondary: linear-gradient(135deg, #00C2FF 0%, #4DE1FF 100%);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 64px;
  --radius: 14px;
  --glow-pink: 0 0 28px rgba(0, 194, 255, 0.35);
  --glow-cyan: 0 0 28px rgba(0, 194, 255, 0.35);
  --navy-veil: linear-gradient(180deg, rgba(7, 11, 20, 0.55) 0%, rgba(7, 11, 20, 0.88) 70%, rgba(7, 11, 20, 0.96) 100%);
  --navy-side: linear-gradient(90deg, rgba(7, 11, 20, 0.94) 0%, rgba(7, 11, 20, 0.72) 48%, rgba(7, 11, 20, 0.42) 100%);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100%;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--surface);
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  height: 32px;
  width: auto;
}

.live-pill {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.6);
  animation: pulse-dot 1.8s ease-out infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(0, 194, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 194, 255, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-sm {
  min-height: 40px;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 10px;
}

.btn-lg {
  min-height: 56px;
  padding: 16px 28px;
  font-size: 17px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #070B14;
  box-shadow: 0 10px 32px rgba(0, 194, 255, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: var(--glow-cyan);
  transform: translateY(-1px);
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.btn:focus-visible,
.flow-step:focus-visible,
.chip:focus-visible,
.trade-tile:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 194, 255, 0.1);
  border: 1px solid rgba(0, 194, 255, 0.32);
  color: var(--cyan-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  background: rgba(0, 194, 255, 0.08);
  border-color: rgba(0, 194, 255, 0.28);
  color: var(--cyan);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2rem, 8vw, 4.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
}

.grad {
  background-image: linear-gradient(135deg, #4DE1FF 0%, #F3F6FB 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede,
.section-lede {
  margin: 16px 0 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-lede {
  margin-bottom: 28px;
}

.deck {
  display: block;
}

.panel {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-h) + 28px) 16px 40px;
  overflow: hidden;
}

.panel-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.panel-photo,
.hero-media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media img,
.panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after,
.panel-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--navy-side),
    var(--navy-veil);
}

.hero {
  display: flex;
  align-items: center;
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(0, 194, 255, 0.14), transparent 60%),
    radial-gradient(800px 400px at 92% 100%, rgba(77, 225, 255, 0.1), transparent 55%),
    var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.45;
  will-change: transform;
}

.orb-magenta,
.orb-cyan {
  width: min(62vw, 360px);
  height: min(62vw, 360px);
  background: var(--cyan);
}

.orb-magenta {
  top: 10%;
  left: -10%;
  opacity: 0.22;
  background: #0C1220;
}

.orb-cyan {
  right: -10%;
  bottom: 8%;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-split {
  display: grid;
  gap: 28px;
}

.hero-shot {
  display: none;
  position: relative;
  margin: 0;
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

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

.hero-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.12), rgba(7, 11, 20, 0.58));
}

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

.cta-row .btn {
  width: 100%;
}

.signal {
  background: var(--bg-2);
}

.signal-inner {
  display: grid;
  gap: 22px;
}

.signal-board {
  position: relative;
  min-height: min(58vh, 520px);
  height: min(58vh, 520px);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 194, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(77, 225, 255, 0.08), transparent 42%),
    var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.signal-board canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.signal-hud {
  position: absolute;
  z-index: 2;
  inset: 12px 12px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  pointer-events: none;
}

.hud-live,
.hud-meta,
.hud-capture {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(7, 11, 20, 0.72);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.hud-capture {
  color: var(--text);
  border-color: rgba(0, 194, 255, 0.4);
}

.flow.has-photo {
  background: var(--bg);
}

.flow-board {
  display: grid;
  gap: 16px;
}

.flow-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 92px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.step-icon {
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.step-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.step-name {
  font-size: 16px;
  font-weight: 700;
}

.flow-step.is-active,
.flow-step:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.flow-step.is-active .step-icon,
.flow-step.is-active .step-name {
  color: var(--text);
}

.flow-detail {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.flow-kicker {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-detail p {
  margin: 10px 0 0;
  color: var(--muted);
}

.flow-detail ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.flow-detail li {
  position: relative;
  padding: 8px 0 8px 18px;
  color: var(--text);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.flow-detail li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.6);
}

.flow-detail li:nth-child(2)::before {
  background: var(--cyan-2);
  box-shadow: 0 0 10px rgba(77, 225, 255, 0.6);
}

.chip-row,
.trade-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trade-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.chip,
.trade-tile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.trade-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 148px;
  padding: 14px;
  border-radius: 14px;
  overflow: hidden;
  color: var(--text);
  text-align: left;
}

.trade-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trade-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.15) 0%, rgba(7, 11, 20, 0.82) 100%);
}

.trade-tile span {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 700;
}

.chip svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.chip:hover,
.chip.is-active,
.trade-tile:hover,
.trade-tile.is-active {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.trade-example {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.close {
  display: flex;
  align-items: center;
  background:
    radial-gradient(700px 360px at 50% 0%, rgba(0, 194, 255, 0.14), transparent 60%),
    radial-gradient(600px 300px at 80% 80%, rgba(77, 225, 255, 0.1), transparent 55%),
    var(--bg);
}

.close-inner {
  text-align: left;
}

.close .btn {
  margin-top: 28px;
  width: 100%;
}

.site-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-foot a {
  color: var(--muted);
  text-decoration: none;
}

.site-foot a:hover,
.site-foot a:focus-visible {
  color: var(--cyan-2);
}

@media (min-width: 560px) {
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-row .btn,
  .close .btn {
    width: auto;
  }

  .live-pill {
    display: inline-flex;
  }

  .flow-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .flow-step {
    min-height: 118px;
  }

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

@media (min-width: 880px) {
  .topbar {
    padding: 0 28px;
  }

  .panel {
    padding: calc(var(--header-h) + 36px) 28px 48px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  html {
    scroll-snap-type: y mandatory;
  }

  .hero-split {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
  }

  .hero-shot {
    display: block;
  }

  .signal-inner {
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: center;
    gap: 40px;
    min-height: calc(100svh - var(--header-h) - 84px);
  }

  .signal-board {
    height: min(68vh, 620px);
    min-height: 420px;
  }

  .brand img {
    height: 36px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .orb {
    opacity: 0.2;
    filter: blur(80px);
  }

  .live-dot {
    box-shadow: none;
  }
}
