:root {
  color-scheme: dark;
  --bg: #0b0a08;
  --bg-elev: #13110d;
  --surface: rgba(24, 20, 15, 0.78);
  --surface-glass: rgba(18, 15, 11, 0.68);
  --text: #f8f5ef;
  --text-soft: rgba(248, 245, 239, 0.84);
  --muted: #b1a89a;
  --accent: #f7b11e;
  --accent-bright: #ffd166;
  --accent-coral: #ff6b4a;
  --accent-mint: #3df2a7;
  --line: rgba(255, 244, 224, 0.11);
  --line-strong: rgba(255, 244, 224, 0.22);
  --radius-xl: 28px;
  --radius-lg: 20px;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img,
video,
canvas {
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

:where(a:any-link, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #14110e;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus-visible {
  top: 14px;
}

/* ===== Athletic Top Header (Asymmetric Editorial Bar) ===== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  height: 72px;
  padding: 0 clamp(18px, 3.6vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(11, 10, 8, 0.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 244, 224, 0.08);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-height: 44px;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 16px rgba(247, 177, 30, 0.36);
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-tag {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(247, 177, 30, 0.14);
  border: 1px solid rgba(247, 177, 30, 0.3);
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 700;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.header-nav a:hover {
  color: var(--text);
  background: rgba(255, 244, 224, 0.08);
}

.header-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #14110e;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.015em;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.header-cta:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

/* ===== ACT 1: Living Anime Running Crew + 60fps Flowing Hex FX Hero ===== */
.hero {
  position: relative;
  min-height: clamp(1160px, 100svh, 1380px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 92px clamp(20px, 4.5vw, 60px) clamp(580px, 54vw, 760px);
  background: linear-gradient(to bottom, #070b14 0%, #0d182a 48%, #0b0a08 100%);
  overflow: hidden;
  isolation: isolate;
  transition: background 0.55s ease;
}

.hero[data-night="true"] {
  background: linear-gradient(to bottom, #040914 0%, #06162f 48%, #070b10 100%);
}

.hero-anime-stage {
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: clamp(560px, 52vw, 780px);
  z-index: -3;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 10%, #000 18%, #000 94%, rgba(0, 0, 0, 0.88) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.85) 10%, #000 18%, #000 94%, rgba(0, 0, 0, 0.88) 100%);
}

.hero-anime-img {
  position: absolute;
  inset: -2%;
  width: 104%;
  height: 104%;
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 0.65s ease;
  will-change: transform, opacity;
}

.hero-anime-img[data-active="true"] {
  opacity: 1;
}

body:not(.motion-paused) .hero-anime-img[data-active="true"] {
  animation: anime-run-camera 7.5s ease-in-out infinite;
}

@keyframes anime-run-camera {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1.015);
  }
  25% {
    transform: translate3d(-4px, -5px, 0) scale(1.032);
  }
  50% {
    transform: translate3d(0, -2px, 0) scale(1.045);
  }
  75% {
    transform: translate3d(4px, -6px, 0) scale(1.03);
  }
}

.hero-crew-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 64% 46% at 22% 24%, rgba(7, 11, 20, 0.66) 0%, rgba(7, 11, 20, 0.14) 72%, transparent 100%),
    linear-gradient(to bottom, rgba(7, 11, 20, 0.45) 0%, transparent 18%, transparent 86%, #0b0a08 100%);
}

.hero-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.85fr);
  justify-content: space-between;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

/* Hero Left: Editorial Athletic Messaging + Live Telemetry */
.hero-copy {
  max-width: 600px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(20, 16, 11, 0.76);
  border: 1px solid rgba(247, 177, 30, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 12.5px;
  font-weight: 700;
  color: #f6e7c7;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

body:not(.motion-paused) .live-dot {
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.hero-title {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 66px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.52);
}

.hero-title .accent {
  background: linear-gradient(110deg, #ffd166 0%, #f7b11e 65%, #ff9838 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  margin: 20px 0 0;
  font-size: clamp(15.5px, 1.65vw, 18px);
  line-height: 1.68;
  color: rgba(248, 245, 239, 0.86);
  max-width: 520px;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #14110e;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 14px 36px rgba(247, 177, 30, 0.28);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-bright);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(247, 177, 30, 0.38);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(20, 17, 13, 0.68);
  border: 1px solid rgba(255, 244, 224, 0.24);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(247, 177, 30, 0.56);
  background: rgba(30, 25, 19, 0.84);
}

/* Live Ticking Running Telemetry Strip */
.hero-telemetry {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(16, 14, 10, 0.72);
  border: 1px solid rgba(255, 244, 224, 0.14);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tele-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-inline: 6px;
  border-right: 1px solid rgba(255, 244, 224, 0.09);
}

.tele-cell:last-child {
  border-right: 0;
}

.tele-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.tele-value {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--text);
}

.tele-value.gold {
  color: var(--accent-bright);
}

.tele-value.mint {
  color: var(--accent-mint);
}

/* Hero Right: Floating Live App-Feature Device Cluster */
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 460px;
}

.hero-device-shell {
  position: relative;
  width: min(252px, 72vw);
  aspect-ratio: 402 / 849;
  padding: 8px;
  border-radius: 40px;
  background: linear-gradient(150deg, #423c35 0%, #191714 38%, #2e2923 76%, #13110e 100%);
  box-shadow:
    0 32px 74px rgba(0, 0, 0, 0.74),
    0 0 0 1px rgba(255, 245, 224, 0.18),
    0 0 70px rgba(247, 177, 30, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.28);
}

.hero-device-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #141210;
}

.hero-device-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-device-img[data-active="true"] {
  opacity: 1;
}

/* Floating App-Feature HUD Cards around the Phone */
.hud-card {
  position: absolute;
  z-index: 4;
  border-radius: 18px;
  background: rgba(17, 14, 11, 0.84);
  border: 1px solid rgba(255, 244, 224, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.56);
  padding: 12px 15px;
}

.hud-retake {
  top: 22px;
  left: -48px;
  width: 204px;
  border-color: rgba(255, 107, 74, 0.46);
}

body:not(.motion-paused) .hud-retake {
  animation: float-hud-a 5.6s ease-in-out infinite;
}

.hud-watch {
  bottom: 72px;
  left: -56px;
  width: 188px;
  border-color: rgba(61, 242, 167, 0.38);
}

body:not(.motion-paused) .hud-watch {
  animation: float-hud-b 6.2s ease-in-out infinite;
}

.hud-capture {
  bottom: 14px;
  right: -34px;
  width: 200px;
  border-color: rgba(247, 177, 30, 0.46);
}

body:not(.motion-paused) .hud-capture {
  animation: float-hud-c 5.2s ease-in-out infinite;
}

@keyframes float-hud-a {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-7px); }
}

@keyframes float-hud-b {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(6px); }
}

@keyframes float-hud-c {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.hud-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
}

.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.hud-dot.coral { background: var(--accent-coral); box-shadow: 0 0 8px var(--accent-coral); }
.hud-dot.mint { background: var(--accent-mint); box-shadow: 0 0 8px var(--accent-mint); }
.hud-dot.gold { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.hud-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.hud-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Quick Day/Night Switcher directly beneath Hero Phone */
.hero-mode-pill {
  position: absolute;
  top: -12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(15, 13, 10, 0.84);
  border: 1px solid rgba(255, 244, 224, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-mode-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  min-height: 30px;
  border-radius: 999px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.hero-mode-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #14110e;
}

/* Accessible Pause/Play Control for Live Motion (WCAG 2.2.2) */
.motion-toggle {
  position: absolute;
  right: clamp(16px, 3vw, 34px);
  bottom: 20px;
  z-index: 12;
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(15, 13, 10, 0.76);
  border: 1px solid rgba(255, 244, 224, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.motion-toggle:hover {
  border-color: rgba(247, 177, 30, 0.5);
  color: var(--text);
}

/* ===== Kinetic Feature Ticker ===== */
.ticker-band {
  border-block: 1px solid rgba(255, 244, 224, 0.08);
  background: #100e0b;
  overflow: hidden;
  padding: 15px 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 32px;
  will-change: transform;
}

body:not(.motion-paused) .ticker-track {
  animation: ticker-scroll 28s linear infinite;
}

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

.ticker-group {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.ticker-hex {
  color: var(--accent);
  font-size: 12px;
}

/* ===== ACT 2: Interactive Live Hex Territory Sandbox ===== */
.section-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(68px, 8.5vw, 112px) clamp(20px, 4vw, 44px);
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(247, 177, 30, 0.12);
  border: 1px solid rgba(247, 177, 30, 0.28);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.036em;
}

.section-sub {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.66;
  color: var(--muted);
  max-width: 560px;
}

.sandbox-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(290px, 0.62fr);
  gap: 20px;
  align-items: stretch;
}

.sandbox-map-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #101417;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.sandbox-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(14, 13, 11, 0.82);
  border-bottom: 1px solid rgba(255, 244, 224, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sandbox-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.sandbox-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  appearance: none;
  border: 1px solid rgba(255, 244, 224, 0.18);
  background: rgba(255, 244, 224, 0.05);
  color: var(--text-soft);
  cursor: pointer;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.chip-btn:hover {
  border-color: rgba(247, 177, 30, 0.5);
  color: var(--text);
}

.chip-btn[aria-pressed="true"],
.chip-btn.accent-action {
  background: var(--accent);
  border-color: var(--accent);
  color: #14110e;
}

.chip-btn.accent-action:hover {
  background: var(--accent-bright);
}

.sandbox-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 410px;
}

.sandbox-canvas {
  width: 100%;
  height: 100%;
  min-height: 410px;
  cursor: crosshair;
  touch-action: pan-y;
}

.sandbox-hint {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(14, 13, 11, 0.8);
  border: 1px solid rgba(255, 244, 224, 0.14);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  pointer-events: none;
}

.sandbox-panel {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.panel-copy {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

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

.stat-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 244, 224, 0.035);
  border: 1px solid var(--line);
}

.stat-box-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.stat-box-val {
  margin-top: 4px;
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.stat-box-val.gold { color: var(--accent-bright); }
.stat-box-val.coral { color: var(--accent-coral); }
.stat-box-val.mint { color: var(--accent-mint); }

.legend-list {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 244, 224, 0.025);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex: none;
}

.legend-swatch.mine { background: var(--accent); }
.legend-swatch.stolen { background: var(--accent-coral); }
.legend-swatch.shield { border: 2px dashed var(--accent-mint); background: rgba(61, 242, 167, 0.14); }

/* ===== ACT 3: Real 5-Screen App Feature Deck ===== */
.deck-section {
  background:
    radial-gradient(860px 440px at 22% 24%, rgba(247, 177, 30, 0.1), transparent 68%),
    linear-gradient(to bottom, #0b0a08 0%, #110f0c 50%, #0b0a08 100%);
  border-top: 1px solid rgba(255, 244, 224, 0.07);
}

.deck-grid {
  display: grid;
  grid-template-columns: minmax(290px, 380px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.deck-device-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.deck-stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 10px;
}

.deck-aura {
  position: absolute;
  inset: 4% -10%;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.36;
  pointer-events: none;
  background: radial-gradient(circle, #f7b11e 0%, rgba(247, 177, 30, 0) 70%);
  transition: background 0.38s ease, opacity 0.38s ease;
}

.deck-stage[data-screen="night"] .deck-aura {
  background: radial-gradient(circle, #3df2a7 0%, rgba(61, 242, 167, 0) 70%);
  opacity: 0.32;
}

.deck-iphone {
  position: relative;
  z-index: 1;
  width: min(306px, 82vw);
  aspect-ratio: 402 / 849;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(145deg, #3f3a34 0%, #191714 36%, #2b2722 72%, #13110f 100%);
  box-shadow:
    0 34px 72px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 245, 224, 0.16),
    inset 0 1px 1px rgba(255, 255, 255, 0.24);
}

.deck-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #141210;
}

.deck-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.34s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.deck-img[data-active="true"] {
  opacity: 1;
  transform: scale(1);
}

.deck-cards {
  display: grid;
  gap: 12px;
}

.deck-card {
  appearance: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 244, 224, 0.025);
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.deck-card:hover {
  border-color: rgba(247, 177, 30, 0.38);
  background: rgba(255, 244, 224, 0.05);
}

.deck-card[aria-selected="true"] {
  border-color: rgba(247, 177, 30, 0.68);
  background: rgba(247, 177, 30, 0.09);
  transform: translateX(4px);
}

.deck-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 244, 224, 0.06);
  color: var(--muted);
}

.deck-card[aria-selected="true"] .deck-num {
  background: var(--accent);
  color: #14110e;
}

.deck-card h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.deck-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

.deck-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 244, 224, 0.06);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

/* ===== ACT 4: Watch, HealthKit & Privacy Pillars ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card {
  padding: 26px 24px;
  border-radius: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(247, 177, 30, 0.12);
  border: 1px solid rgba(247, 177, 30, 0.28);
  color: var(--accent);
  margin-bottom: 16px;
}

.pillar-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.pillar-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid rgba(255, 244, 224, 0.08);
  background: #090806;
  padding: 28px clamp(20px, 4vw, 44px);
}

.footer-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

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

/* ===== Native Dialog ===== */
.launch-dialog {
  margin: auto;
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid rgba(255, 244, 224, 0.18);
  border-radius: 26px;
  background: #171410;
  color: var(--text);
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.82);
}

.launch-dialog::backdrop {
  background: rgba(8, 7, 5, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-body {
  padding: 28px 26px 24px;
  text-align: center;
}

.dialog-icon {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  margin: 0 auto 16px;
  box-shadow: 0 10px 28px rgba(247, 177, 30, 0.34);
}

.dialog-body h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.dialog-body p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
}

.dialog-actions {
  display: grid;
  gap: 10px;
}

.dialog-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #14110e;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
}

.dialog-primary:hover {
  background: var(--accent-bright);
}

.dialog-close {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.dialog-close:hover {
  background: rgba(255, 245, 224, 0.06);
  color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .sandbox-grid,
  .deck-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .hud-retake { left: 4px; }
  .hud-watch { left: 4px; }
  .hud-capture { right: 4px; }
}

@media (max-width: 720px) {
  .header-nav {
    display: none;
  }

  .hero-telemetry {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tele-cell:nth-child(2) {
    border-right: 0;
  }

  .hud-card {
    display: none;
  }

  .deck-card {
    grid-template-columns: 40px 1fr;
  }

  .deck-tag {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ===== Reduced Motion Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .live-dot,
  .hero-anime-img,
  .hero-device-shell,
  .hud-retake,
  .hud-watch,
  .hud-capture,
  .ticker-track {
    animation: none !important;
  }

  .btn-primary,
  .btn-secondary,
  .deck-card,
  .deck-img,
  .hero-device-img {
    transition: none;
  }
}
