/* ============================================================
   HoopAxis — Marketing Website Stylesheet
   Design: "Court HUD" — true black, hoop orange, condensed athletic
   type, sharp geometry, broadcast/HUD detailing (matches the app icon).
   ============================================================ */

/* ============ FONTS ============
   Self-hosted (no third-party requests). Fontsource builds of Archivo
   (variable: width + weight) and IBM Plex Mono; SIL Open Font License
   texts live next to the files. */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-wdth-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* ============ DESIGN TOKENS ============ */
:root {
  /* Colors — true black + hoop orange (from the app icon) */
  --c-bg:          #070707;
  --c-bg-elevated: #0d0d0e;
  --c-bg-card:     #131315;
  --c-bg-card-alt: #18181b;
  --c-surface:     #202024;
  --c-border:      rgba(255, 255, 255, 0.09);
  --c-border-hover:rgba(255, 255, 255, 0.24);

  --c-text:        #f3f1ee;
  --c-text-muted:  #a7a29c;
  --c-text-dim:    #908a83;   /* >=4.8:1 on every background (WCAG AA) */

  --c-accent:      #ff6a13;
  --c-accent-light:#ff8c42;
  --c-accent-glow: rgba(255, 106, 19, 0.32);
  --c-accent-subtle:rgba(255, 106, 19, 0.10);

  --c-success:     #2fd37a;
  --c-info:        #4cc9f0;   /* data / HUD cyan */

  /* Typography */
  --ff-body:    'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-display: 'Archivo', 'Arial Narrow', sans-serif;
  --ff-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-xs:    0.75rem;
  --fs-sm:    0.875rem;
  --fs-base:  1rem;
  --fs-lg:    1.125rem;
  --fs-xl:    1.25rem;
  --fs-2xl:   1.5rem;
  --fs-3xl:   2.25rem;
  --fs-4xl:   3rem;
  --fs-5xl:   4rem;
  --fs-hero:  clamp(3.25rem, 8.5vw, 7.25rem);

  /* Spacing */
  --sp-xs:    0.25rem;
  --sp-sm:    0.5rem;
  --sp-md:    1rem;
  --sp-lg:    1.5rem;
  --sp-xl:    2rem;
  --sp-2xl:   3rem;
  --sp-3xl:   4rem;
  --sp-4xl:   6rem;
  --sp-section: 7rem;

  /* Borders & Radius — sharp, engineered */
  --radius-sm:  2px;
  --radius-md:  3px;
  --radius-lg:  4px;
  --radius-xl:  6px;

  /* Shadows — flat; glow is reserved for the brand accent */
  --shadow-card:  none;
  --shadow-hover: 0 0 0 1px var(--c-border-hover);
  --shadow-glow:  0 0 48px var(--c-accent-glow);

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast:   150ms;
  --t-base:   250ms;
  --t-slow:   400ms;

  /* HUD grid texture */
  --grid-line: rgba(255, 255, 255, 0.035);
}

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: var(--c-accent-light);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-out);
}

a:hover {
  color: var(--c-accent);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.15;
  font-weight: 700;
  color: #fff;
}

/* Athletic display type: heavy, extra-condensed, uppercase */
h1, h2 {
  font-family: var(--ff-display);
  font-stretch: 62%;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.95;
}

h3, h4 {
  font-stretch: 87%;
  letter-spacing: 0.005em;
}

ul {
  list-style: none;
}

/* Visible keyboard focus everywhere (mouse clicks don't show it) */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--c-accent);
  color: #000;
}

/* ============ UTILITIES ============ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.accent {
  color: var(--c-accent);
}

.section-header {
  text-align: left;
  max-width: 820px;
  margin: 0 0 var(--sp-3xl);
}

/* Broadcast-style section label: bar + mono caps */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-lg);
}
.section-tag::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--c-accent);
}

.section-title {
  font-size: var(--fs-5xl);
  margin-bottom: var(--sp-lg);
}

.section-subtitle {
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
  line-height: 1.65;
  max-width: 640px;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-family: var(--ff-body);
  font-stretch: 87%;
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease-out),
    color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
  white-space: nowrap;
}

/* Solid buttons get a notched corner — the sporty signature */
.btn--primary,
.btn--accent {
  background: var(--c-accent);
  color: #0a0a0a;
  border-color: var(--c-accent);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.btn--primary:hover,
.btn--accent:hover {
  background: var(--c-accent-light);
  border-color: var(--c-accent-light);
  color: #0a0a0a;
  box-shadow: var(--shadow-glow);
}

.btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn--outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: var(--c-border);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--c-border-hover);
  color: #fff;
}

.btn--sm {
  font-size: 0.72rem;
  padding: 0.5rem 1.05rem;
}

.btn--lg {
  font-size: var(--fs-base);
  padding: 0.95rem 2.1rem;
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--sp-md) 0;
  border-bottom: 1px solid transparent;
  transition: all var(--t-base) var(--ease-out);
}

.nav--scrolled {
  background: rgba(7, 7, 7, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--c-border);
  padding: var(--sp-sm) 0;
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: var(--ff-display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav__logo:hover { color: #fff; }

.nav__logo-icon {
  display: flex;
  color: var(--c-accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__links a {
  font-size: 0.78rem;
  font-weight: 600;
  font-stretch: 87%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  position: relative;
  transition: color var(--t-fast);
}

.nav__links a:hover,
.nav__links a.active {
  color: #fff;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
}

.nav__links .btn::after {
  display: none;
}
.nav__links a.btn--accent,
.nav__links a.btn--accent:hover {
  color: #0a0a0a;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all var(--t-base) var(--ease-out);
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* HUD: grid texture, orbit rings and a crosshair centred right —
   the same language as the app icon. */
.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 76% 44%, rgba(255, 106, 19, 0.20) 0%, rgba(255, 106, 19, 0.06) 22%, transparent 46%),
    repeating-radial-gradient(circle at 76% 44%, transparent 0 118px, rgba(255, 106, 19, 0.16) 118px 119px, transparent 119px 180px),
    linear-gradient(90deg, transparent calc(76% - 0.5px), rgba(255, 106, 19, 0.22) calc(76% - 0.5px) calc(76% + 0.5px), transparent calc(76% + 0.5px)),
    linear-gradient(180deg, rgba(7, 7, 7, 0) 60%, var(--c-bg) 100%),
    linear-gradient(90deg, var(--c-bg) 0%, rgba(7, 7, 7, 0.7) 45%, rgba(7, 7, 7, 0) 70%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse at 70% 45%, #000 20%, transparent 75%);
}

.hero__media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  padding-bottom: var(--sp-4xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text);
  border: 1px solid var(--c-border-hover);
  padding: 0.4rem 0.9rem;
  margin-bottom: var(--sp-xl);
}
.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 0 var(--c-accent-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 106, 19, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 106, 19, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 106, 19, 0); }
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: 0.88;
  margin-bottom: var(--sp-xl);
  max-width: 900px;
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
  max-width: 560px;
  margin-bottom: var(--sp-2xl);
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: var(--sp-md);
  margin-bottom: var(--sp-3xl);
  flex-wrap: wrap;
}

/* Scoreboard strip */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  width: fit-content;
  max-width: 100%;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  padding: var(--sp-md) var(--sp-xl) var(--sp-md) 0;
  margin-right: var(--sp-xl);
  border-right: 1px solid var(--c-border);
}
.hero__stat:last-child {
  border-right: none;
  margin-right: 0;
}

.hero__stat-num {
  font-family: var(--ff-display);
  font-stretch: 62%;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.hero__stat-label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  margin-top: 0.35rem;
}

.hero__scroll {
  position: absolute;
  bottom: var(--sp-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero__scroll a {
  color: var(--c-text-muted);
}
.hero__scroll a:hover {
  color: var(--c-accent);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

/* ============ MEDIA PLACEHOLDERS ============
   Framed like a camera viewfinder: HUD corner brackets. */
.media-placeholder,
.hero__media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--c-text-dim);
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.media-placeholder {
  --bracket: var(--c-accent);
  background:
    linear-gradient(var(--bracket), var(--bracket)) top left / 18px 2px,
    linear-gradient(var(--bracket), var(--bracket)) top left / 2px 18px,
    linear-gradient(var(--bracket), var(--bracket)) top right / 18px 2px,
    linear-gradient(var(--bracket), var(--bracket)) top right / 2px 18px,
    linear-gradient(var(--bracket), var(--bracket)) bottom left / 18px 2px,
    linear-gradient(var(--bracket), var(--bracket)) bottom left / 2px 18px,
    linear-gradient(var(--bracket), var(--bracket)) bottom right / 18px 2px,
    linear-gradient(var(--bracket), var(--bracket)) bottom right / 2px 18px,
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--c-bg-elevated);
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat, repeat, repeat, no-repeat;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}

.hero__media-placeholder {
  background: var(--c-bg);
}
/* The HUD background stands on its own until real hero footage exists. */
.hero__media-placeholder .placeholder-label {
  display: none;
}

.placeholder-label {
  position: relative;
  z-index: 1;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.8;
}

.placeholder-label small {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--c-text-dim);
}

.media-placeholder--sm {
  min-height: 180px;
}

.media-placeholder--lg {
  min-height: 320px;
}

.media-placeholder--video {
  min-height: 460px;
}

.media-placeholder--video .placeholder-label svg {
  color: var(--c-accent);
  margin-bottom: var(--sp-sm);
}

/* ---- Video clips (drop-in replacement for a .media-placeholder) ----
   Swap a placeholder for:
   <video class="media-video" poster="…" autoplay muted loop playsinline>
     <source src="clip.webm" type="video/webm">
     <source src="clip.mp4"  type="video/mp4">
   </video>
   Add --video for the large featured reel. */
.media-video {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
  background: var(--c-bg-card);
  border-radius: var(--radius-sm);
}

.media-video--sm    { min-height: 180px; }
.media-video--lg    { min-height: 320px; }
.media-video--video { min-height: 460px; }

/* ============ FEATURES ============ */
.features {
  padding: var(--sp-section) 0;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}

.feature-card {
  position: relative;
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease-out), background var(--t-base) var(--ease-out);
}

/* Orange rail sweeps in along the top edge on hover */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow) var(--ease-out);
  z-index: 2;
}

.feature-card:hover {
  border-color: var(--c-border-hover);
  background: var(--c-bg-card-alt);
}
.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.feature-card__media {
  padding: var(--sp-lg);
}

.feature-card__media .media-placeholder {
  height: 100%;
  min-height: 200px;
}

.feature-card__body {
  padding: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 106, 19, 0.45);
  border-radius: var(--radius-sm);
  color: var(--c-accent);
  margin-bottom: var(--sp-lg);
}

.feature-card__title {
  font-size: 1.45rem;
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: var(--sp-sm);
}

.feature-card__desc {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--sp-lg);
}

.feature-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.feature-card__list li {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  padding-left: var(--sp-lg);
  position: relative;
}

.feature-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  background: var(--c-accent);
  transform: rotate(45deg);
}

/* ============ HOW IT WORKS ============ */
.how-it-works {
  padding: var(--sp-section) 0;
  background: var(--c-bg-elevated);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3xl);
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  left: 44px;
  top: 60px;
  bottom: 60px;
  width: 1px;
  background: repeating-linear-gradient(180deg, var(--c-accent) 0 6px, transparent 6px 12px);
  opacity: 0.5;
}

.step {
  display: grid;
  grid-template-columns: 88px 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

/* Jersey numbers: outlined, extra-condensed */
.step__number {
  font-family: var(--ff-display);
  font-stretch: 62%;
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--c-bg-elevated);
  -webkit-text-stroke: 1.5px var(--c-accent);
  text-align: center;
  position: relative;
  z-index: 1;
  background: var(--c-bg-elevated);
}

.step__media {
  overflow: hidden;
}

.step__body {
  padding: var(--sp-lg) 0;
}

.step__title {
  font-size: 1.6rem;
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}

.step__desc {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.75;
}

/* ============ PERSONAS ============ */
.personas {
  padding: var(--sp-section) 0;
}

/* Segmented control */
.persona-tabs {
  display: inline-flex;
  border: 1px solid var(--c-border-hover);
  margin-bottom: var(--sp-3xl);
}

.persona-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--ff-body);
  font-stretch: 87%;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.8rem 1.6rem;
  border: none;
  border-right: 1px solid var(--c-border-hover);
  background: transparent;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: all var(--t-base) var(--ease-out);
}
.persona-tab:last-child {
  border-right: none;
}

.persona-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.persona-tab.active {
  background: var(--c-accent);
  color: #0a0a0a;
}

.persona-tab svg {
  flex-shrink: 0;
}

.persona-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
  animation: fadeIn var(--t-slow) var(--ease-out);
}

.persona-panel.active {
  display: grid;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.persona-panel__media {
  overflow: hidden;
}

.persona-panel__title {
  font-size: 2.25rem;
  font-weight: 800;
  font-stretch: 62%;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--sp-md);
}

.persona-panel__desc {
  color: var(--c-text-muted);
  margin-bottom: var(--sp-2xl);
  line-height: 1.75;
}

.persona-panel__features {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--c-border);
}

.persona-feature {
  display: flex;
  gap: var(--sp-md);
  align-items: flex-start;
  padding: var(--sp-md) 0;
  border-bottom: 1px solid var(--c-border);
}

.persona-feature__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 106, 19, 0.45);
  border-radius: var(--radius-sm);
  color: var(--c-accent);
}

.persona-feature strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.persona-feature p {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============ TECHNOLOGY ============ */
.technology {
  padding: var(--sp-section) 0;
  background: var(--c-bg-elevated);
  border-top: 1px solid var(--c-border);
}

/* Spec sheet: cells separated by hairlines */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}

.tech-card {
  background: var(--c-bg-elevated);
  padding: var(--sp-2xl) var(--sp-xl);
  transition: background var(--t-base) var(--ease-out);
}

.tech-card:hover {
  background: var(--c-bg-card);
}

.tech-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-info);
  border: 1px solid rgba(76, 201, 240, 0.35);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-lg);
}

.tech-card__title {
  font-size: 1.2rem;
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-sm);
}

.tech-card__desc {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* ============ GALLERY ============ */
.gallery {
  padding: var(--sp-section) 0;
}

.gallery__featured {
  margin-bottom: var(--sp-lg);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.gallery__item {
  transition: transform var(--t-slow) var(--ease-out);
}

.gallery__item .media-placeholder {
  min-height: 180px;
}

.gallery__caption {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--c-border);
}

/* ============ CTA SECTION ============ */
.cta-section {
  padding: var(--sp-section) 0;
}

.cta-card {
  position: relative;
  text-align: left;
  padding: var(--sp-4xl) var(--sp-3xl);
  background:
    repeating-linear-gradient(-45deg, rgba(255, 106, 19, 0.06) 0 2px, transparent 2px 14px),
    linear-gradient(90deg, var(--c-bg-card) 35%, rgba(19, 19, 21, 0.6) 100%),
    var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius-sm);
}

.cta-card__title {
  font-family: var(--ff-display);
  font-stretch: 62%;
  font-size: var(--fs-5xl);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: var(--sp-md);
}

.cta-card__desc {
  color: var(--c-text-muted);
  max-width: 600px;
  margin: 0 0 var(--sp-2xl);
  line-height: 1.75;
}

.cta-card__actions {
  display: flex;
  gap: var(--sp-md);
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ============ FOOTER ============ */
.footer {
  padding: var(--sp-3xl) 0 var(--sp-xl);
  border-top: 1px solid var(--c-border);
  background: var(--c-bg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-3xl);
  margin-bottom: var(--sp-3xl);
}

.footer__tagline {
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  margin-top: var(--sp-md);
  max-width: 300px;
}

.footer__links h4 {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--sp-md);
  color: var(--c-text-dim);
}

.footer__links li {
  margin-bottom: var(--sp-sm);
}

.footer__links a {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--c-border);
}

.footer__bottom p {
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--c-text-dim);
  text-align: center;
}
.footer__bottom p + p {
  margin-top: var(--sp-sm);
}
.footer__bottom a {
  color: var(--c-text-muted);
}
.footer__bottom a:hover {
  color: #fff;
}

/* ============ SCROLL REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.features__grid [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.features__grid [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.features__grid [data-reveal]:nth-child(4) { transition-delay: 80ms; }
.features__grid [data-reveal]:nth-child(5) { transition-delay: 160ms; }
.features__grid [data-reveal]:nth-child(6) { transition-delay: 240ms; }

.tech-grid [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.tech-grid [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.tech-grid [data-reveal]:nth-child(4) { transition-delay: 240ms; }
.tech-grid [data-reveal]:nth-child(5) { transition-delay: 320ms; }
.tech-grid [data-reveal]:nth-child(6) { transition-delay: 400ms; }

.gallery__grid [data-reveal]:nth-child(2) { transition-delay: 80ms; }
.gallery__grid [data-reveal]:nth-child(3) { transition-delay: 160ms; }
.gallery__grid [data-reveal]:nth-child(4) { transition-delay: 240ms; }
.gallery__grid [data-reveal]:nth-child(5) { transition-delay: 320ms; }
.gallery__grid [data-reveal]:nth-child(6) { transition-delay: 400ms; }

.steps .step:nth-child(2) { transition-delay: 120ms; }
.steps .step:nth-child(3) { transition-delay: 240ms; }
.steps .step:nth-child(4) { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .features__grid {
    grid-template-columns: 1fr;
  }

  .feature-card--wide {
    grid-template-columns: 1fr;
  }

  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step {
    grid-template-columns: 88px 1fr;
  }

  .step__media {
    grid-column: 2;
    grid-row: 1;
  }

  .step__body {
    grid-column: 2;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-2xl);
  }
}

@media (max-width: 768px) {
  :root {
    --sp-section: 4.5rem;
    --fs-5xl: 2.75rem;
  }

  .container {
    padding: 0 var(--sp-md);
  }

  .hero__content {
    padding-top: 6rem;
  }

  .hero__scroll {
    display: none;
  }

  .hero__stat {
    padding-right: var(--sp-md);
    margin-right: var(--sp-md);
  }

  .hero__stat-num {
    font-size: 2.25rem;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--c-bg-elevated);
    border-left: 1px solid var(--c-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem var(--sp-xl) var(--sp-xl);
    gap: var(--sp-lg);
    transform: translateX(100%);
    transition: transform var(--t-slow) var(--ease-out);
  }

  .nav__links.active {
    transform: translateX(0);
  }

  /* Comfortable touch targets on phones */
  .nav__links a:not(.btn) {
    display: block;
    padding: 0.55rem 0;
    font-size: 0.9rem;
  }
  .nav__links a:not(.btn)::after {
    bottom: 0.25rem;
  }
  .nav__links .btn {
    margin-top: var(--sp-sm);
  }
  .footer__links a,
  .footer__bottom a {
    display: inline-block;
    padding: 0.4rem 0;
  }
  .footer__links li {
    margin-bottom: 0;
  }

  .persona-panel.active {
    grid-template-columns: 1fr;
  }

  .persona-panel__media {
    order: -1;
  }

  .tech-grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }

  .step__number {
    text-align: left;
    background: none;
  }

  .steps::before {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .cta-card {
    padding: var(--sp-2xl) var(--sp-lg);
  }
}

@media (max-width: 480px) {
  .hero__stats {
    width: 100%;
  }

  .hero__stat {
    flex: 1 1 40%;
    border-right: none;
    margin-right: 0;
  }

  .persona-tabs {
    display: flex;
    flex-direction: column;
  }

  .persona-tab {
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid var(--c-border-hover);
  }
  .persona-tab:last-child {
    border-bottom: none;
  }
}

/* ============ TIER BADGES ============
   Mark a feature's plan (Pro / Team) or availability (Coming soon).
   Free features carry no badge — Free is the default product. */
.tier-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: var(--sp-sm);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  font-weight: 600;
  font-stretch: 100%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.tier-badge--pro  { color: #0a0a0a; background: var(--c-accent); border: 1px solid var(--c-accent); }
.tier-badge--team { color: var(--c-info); background: rgba(76, 201, 240, 0.08); border: 1px solid rgba(76, 201, 240, 0.5); }
.tier-badge--soon { color: var(--c-text-muted); background: transparent; border: 1px dashed var(--c-border-hover); }
.tier-note {
  margin-top: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--c-text-dim);
}

/* ============ PLANS ============ */
.plans {
  padding: var(--sp-section) 0;
  background: var(--c-bg-elevated);
  border-top: 1px solid var(--c-border);
}
.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-surface);
  border-radius: var(--radius-sm);
  padding: var(--sp-xl);
}
.plan-card--featured { border-top-color: var(--c-accent); background: linear-gradient(180deg, rgba(255, 106, 19, 0.07) 0%, var(--c-bg-card) 40%); }
.plan-card__name { font-family: var(--ff-display); font-stretch: 62%; font-size: 2.75rem; font-weight: 800; line-height: 1; text-transform: uppercase; color: #fff; }
.plan-card__who { font-size: var(--fs-sm); color: var(--c-text-muted); }
.plan-card__list { list-style: none; padding: var(--sp-md) 0 0; margin: 0; border-top: 1px solid var(--c-border); display: grid; gap: var(--sp-sm); }
.plan-card__list li { position: relative; padding-left: 1.5rem; font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.55; }
.plan-card__list li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 700; color: var(--c-accent); }
.plan-card__foot { margin-top: auto; font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--c-text-dim); }
.plans__note { margin-top: var(--sp-xl); text-align: left; font-size: var(--fs-sm); color: var(--c-text-dim); }

/* ============ DOCUMENT PAGES (Privacy, Support) ============ */
.doc-hero {
  padding: calc(var(--sp-section) + 1rem) 0 var(--sp-2xl);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 106, 19, 0.14) 0%, transparent 55%),
    var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.doc-hero h1 { font-size: clamp(2.75rem, 7vw, 4.5rem); margin-bottom: var(--sp-md); }
.doc-hero p { font-size: var(--fs-lg); color: var(--c-text-muted); max-width: 42rem; }
.doc { max-width: 780px; padding-top: var(--sp-3xl); padding-bottom: var(--sp-4xl); }
.doc h2 { font-size: 2rem; color: #fff; margin: var(--sp-2xl) 0 var(--sp-md); }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: var(--fs-lg); font-weight: 700; color: #fff; margin: var(--sp-xl) 0 var(--sp-sm); }
.doc p, .doc li { color: var(--c-text-muted); line-height: 1.7; }
.doc p { margin-bottom: var(--sp-md); }
.doc ul, .doc ol { margin: 0 0 var(--sp-md); padding-left: 1.4rem; display: grid; gap: var(--sp-xs); }
.doc ul { list-style: square; }
.doc ol { list-style: decimal; }
.doc li::marker { color: var(--c-accent); }
.doc strong { color: #fff; font-weight: 650; }
.doc a { color: var(--c-accent-light); text-decoration: underline; text-underline-offset: 2px; }
.doc-meta { font-family: var(--ff-mono); font-size: var(--fs-xs); letter-spacing: 0.1em; color: var(--c-text-dim); text-transform: uppercase; }
.doc-tablewrap { overflow-x: auto; margin-bottom: var(--sp-md); border: 1px solid var(--c-border); border-radius: var(--radius-sm); }
.doc table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: var(--fs-sm); }
.doc th, .doc td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--c-border); vertical-align: top; color: var(--c-text-muted); }
.doc th { font-family: var(--ff-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-text-dim); background: var(--c-bg-elevated); }
.doc tr:last-child td { border-bottom: none; }
.doc-callout { border-left: 3px solid var(--c-accent); background: var(--c-bg-card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: var(--sp-md) var(--sp-lg); margin: 0 0 var(--sp-xl); }
.doc-callout p:last-child { margin-bottom: 0; }
.faq { border-top: 1px solid var(--c-border); }
.faq details { border-bottom: 1px solid var(--c-border); padding: var(--sp-md) 0; }
.faq summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: var(--sp-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--ff-mono); color: var(--c-accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { margin-top: var(--sp-sm); }

@media (max-width: 900px) {
  .plans__grid { grid-template-columns: 1fr; max-width: 560px; }
}

/* ============ DEMO PAGE ============
   Opened from the app's onboarding ("Watch demo") in an in-app Safari
   sheet, so it is designed phone-first. */
.demo-stage-wrap { padding: var(--sp-2xl) 0 var(--sp-xl); }
.demo-stage { margin: 0; }
.demo-stage svg {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.demo-stage figcaption {
  margin-top: var(--sp-sm);
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--c-text-dim);
}
.hud-label { font-family: var(--ff-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; fill: #ff6a13; }
.hud-cyan { fill: #4cc9f0; font-size: 11px; }
.hud-key { font-family: var(--ff-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.1em; fill: #a7a29c; }
.hud-val { font-family: var(--ff-display); font-stretch: 75%; font-size: 22px; font-weight: 800; fill: #fff; }
.hud-verdict { font-family: var(--ff-display); font-stretch: 75%; font-size: 24px; font-weight: 900; letter-spacing: 0.04em; fill: #070707; }
.hud-count { font-family: var(--ff-display); font-stretch: 75%; font-size: 22px; font-weight: 800; fill: #fff; }
.hud-count--live { fill: #2fd37a; }

.demo-section { padding: var(--sp-3xl) 0; border-top: 1px solid var(--c-border); }
.demo-section--alt { background: var(--c-bg-elevated); }
.demo-section .section-title { font-size: clamp(2.25rem, 6vw, 3.25rem); }

.demo-steps { list-style: none; counter-reset: demo; display: grid; gap: 0; margin-top: var(--sp-xl); border-top: 1px solid var(--c-border); }
.demo-steps li {
  counter-increment: demo;
  display: grid;
  grid-template-columns: 4rem 1fr;
  column-gap: var(--sp-md);
  padding: var(--sp-lg) 0;
  border-bottom: 1px solid var(--c-border);
}
.demo-steps li::before {
  content: counter(demo, decimal-leading-zero);
  grid-row: span 2;
  font-family: var(--ff-display);
  font-stretch: 62%;
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--c-accent);
}
.demo-steps strong, .demo-gets strong {
  font-stretch: 75%;
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}
.demo-steps span, .demo-gets span { color: var(--c-text-muted); font-size: var(--fs-sm); line-height: 1.65; }

.demo-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--c-border); border: 1px solid var(--c-border); margin-top: var(--sp-xl); }
.demo-mode { background: var(--c-bg-elevated); padding: var(--sp-xl) var(--sp-lg); }
.demo-mode h3 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; margin-bottom: var(--sp-sm); color: var(--c-accent); }
.demo-mode p { color: var(--c-text-muted); font-size: var(--fs-sm); }
.demo-more { margin-top: var(--sp-lg); color: var(--c-text-muted); font-size: var(--fs-sm); }

.demo-gets { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-lg); margin-top: var(--sp-xl); }
.demo-gets li { display: flex; flex-direction: column; gap: var(--sp-xs); padding-left: var(--sp-md); border-left: 2px solid var(--c-accent); }

@media (max-width: 768px) {
  .demo-modes { grid-template-columns: 1fr; }
  .demo-gets { grid-template-columns: 1fr; }
}

/* Phone: in-picture panels get too small to read, so show the same
   numbers as a scoreboard strip under the illustration instead. */
.demo-readouts { display: none; }
@media (max-width: 768px) {
  .demo-stage .svg-readout { display: none; }
  .demo-readouts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--c-border);
    border: 1px solid var(--c-border);
    border-top: none;
  }
  .demo-readouts div { background: var(--c-bg-elevated); padding: var(--sp-sm) var(--sp-md); }
  .demo-readouts span { display: block; font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-muted); }
  .demo-readouts strong { font-family: var(--ff-display); font-stretch: 75%; font-size: 1.5rem; font-weight: 800; color: #fff; }
  .demo-readouts strong.live { color: var(--c-success); }
}

/* ============ 404 ============ */
.nf {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 var(--sp-4xl);
  background:
    repeating-radial-gradient(circle at 85% 50%, transparent 0 118px, rgba(255, 106, 19, 0.12) 118px 119px, transparent 119px 180px),
    var(--c-bg);
}
.nf__code {
  font-family: var(--ff-display);
  font-stretch: 62%;
  font-weight: 900;
  font-size: clamp(6rem, 22vw, 14rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 2px var(--c-accent);
  margin-bottom: var(--sp-lg);
}
.nf h1 { font-size: clamp(2.25rem, 6vw, 4rem); margin-bottom: var(--sp-md); }
.nf__desc { color: var(--c-text-muted); font-size: var(--fs-lg); max-width: 34rem; margin-bottom: var(--sp-2xl); }
.nf__links { display: flex; flex-wrap: wrap; gap: var(--sp-md); }

/* ============ ABOUT / PRESS ============ */
.press-swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-md); margin-bottom: var(--sp-md); }
.press-swatch { display: flex; flex-direction: column; gap: 0.25rem; font-size: var(--fs-sm); color: var(--c-text-muted); }
.press-swatch span { display: block; height: 72px; border-radius: var(--radius-sm); margin-bottom: var(--sp-xs); }
.press-swatch strong { color: #fff; }
.press-swatch code { font-family: var(--ff-mono); font-size: 0.75rem; color: var(--c-text-muted); }
@media (max-width: 600px) { .press-swatches { grid-template-columns: repeat(2, 1fr); } }
