/* ==========================================================================
   WorkoutX Design System - 2026 Apple Annual Report & Printed Catalog Style
   ========================================================================== */

/* ── CUSTOM FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@900&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Newsreader:ital,opsz,wght@1,6..72,300;1,6..72,400&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --bg:      #0a0a0a;   /* nearly black, not pure black */
  --bg-1:    #111111;   /* card background */
  --bg-2:    #181818;   /* hover state / deeper card */
  --ink:     #f5f5f7;   /* Apple white (not pure #fff) */
  --ink-2:   #a1a1a6;   /* secondary text */
  --ink-3:   #515154;   /* disabled / label */
  --ink-4:   #2c2c2e;   /* border / hairline */
  --rule:    rgba(255,255,255,0.09);   /* thin line */
  --rule-2:  rgba(255,255,255,0.16);  /* distinct line */
  --white:   #ffffff;   /* CTA button, featured card */
  
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── CORE STYLES ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg);
}

button, input, textarea, select {
  color: inherit;
  font-family: inherit;
}

/* ── GRID PATTERN BACKGROUND ── */
.grid-pattern {
  background-image: 
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.8), transparent 90%);
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── TYPOGRAPHY ── */
.font-display {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.font-serif {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 300;
  text-transform: none;
  color: var(--ink-2);
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

h1.font-display {
  font-size: clamp(52px, 8.5vw, 98px);
  line-height: 0.88;
}

h2.font-display {
  font-size: clamp(40px, 6.5vw, 78px);
  line-height: 0.90;
}

/* ── LAYOUT & SECTIONING ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  width: 100%;
}

.section {
  padding: 108px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 10;
}

/* ── GRID SYSTEM (1px borders) ── */
.grid-split-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--rule);
}

@media (min-width: 768px) {
  .grid-split-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-split-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--rule);
}

@media (min-width: 768px) {
  .grid-split-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-split-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--rule);
}

@media (min-width: 640px) {
  .grid-split-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-split-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-cell {
  background-color: var(--bg);
  padding: 32px;
}

/* ── HEADER / NAVIGATION ── */
header.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 380ms var(--ease), border-bottom 380ms var(--ease), backdrop-filter 380ms var(--ease);
}

header.nav-header.scrolled {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(28px) saturate(160%);
  border-bottom: 1px solid var(--rule);
}

header.nav-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* logo */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-wrap span {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* nav items */
.nav-links {
  display: none;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 200ms;
}

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

/* header CTAs */
.nav-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: transform 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.btn-primary {
  background-color: var(--white);
  color: var(--bg);
  padding: 12px 24px;
  border: 1px solid var(--white);
}

.btn-primary:hover {
  transform: scale(1.02);
}

.btn-secondary {
  background-color: transparent;
  color: var(--ink);
  padding: 12px 24px;
  border: 1px solid var(--rule-2);
}

.btn-secondary:hover {
  border-color: var(--ink-2);
  background-color: rgba(255, 255, 255, 0.04);
}

/* ── SECTION HEADER ── */
.section-header {
  margin-bottom: 56px;
}

.section-header .mono-label {
  display: inline-block;
  color: var(--ink-3);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.section-header .sub-desc {
  max-width: 600px;
  color: var(--ink-2);
  margin-top: 16px;
  font-size: 18px;
}

/* ── HERO SECTION ── */
.hero {
  padding-top: 160px;
  padding-bottom: 108px;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Kicker pill */
.kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--rule-2);
  background-color: var(--bg-1);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 32px;
}

.kicker-pill .dot {
  width: 6px;
  height: 6px;
  background-color: var(--white);
  border-radius: 50%;
}

.hero-left h1 {
  margin-bottom: 24px;
}

.hero-left p.sub {
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1.55;
  margin-bottom: 36px;
  max-width: 640px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-left .alt-link {
  font-size: 13px;
  color: var(--ink-3);
}

.hero-left .alt-link a {
  color: var(--ink-2);
  text-decoration: underline;
  transition: color 200ms;
}

.hero-left .alt-link a:hover {
  color: var(--white);
}

/* Hero Right: Video mockup */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.phone-mockup {
  width: 320px;
  aspect-ratio: 9 / 16;
  background-color: #000;
  border-radius: 40px;
  padding: 12px;
  border: 4px solid var(--ink-4);
  box-shadow: none; /* strictly no shadow */
  position: relative;
  overflow: hidden;
}

.phone-mockup video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  background-color: var(--bg-1);
}

/* ── ISSUE STRIP ── */
.issue-strip {
  background-color: var(--white);
  color: var(--bg);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  white-space: nowrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
}

.issue-left {
  flex-shrink: 0;
}

.issue-right {
  flex-shrink: 0;
}

.issue-marquee-wrap {
  flex-grow: 1;
  overflow: hidden;
  margin: 0 40px;
  display: flex;
}

.issue-marquee {
  display: inline-flex;
  animation: marquee 25s linear infinite;
  gap: 32px;
}

.issue-marquee span {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

/* ── STATS STRIP ── */
.stats-strip {
  border-bottom: 1px solid var(--rule);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background-color: var(--rule);
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  background-color: var(--bg);
  padding: 40px 32px;
  text-align: left;
}

.stat-card .value {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 8px;
}

.stat-card .label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  text-transform: uppercase;
}

/* ── KINETIC TICKER ── */
.kinetic-ticker {
  background-color: var(--white);
  color: var(--bg);
  padding: 24px 0;
  overflow: hidden;
  display: flex;
  white-space: nowrap;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.kinetic-marquee {
  display: inline-flex;
  animation: marquee 35s linear infinite;
  gap: 40px;
}

.ticker-item {
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 38px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ticker-item .outline-word {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--bg);
}

.ticker-item .dot {
  width: 8px;
  height: 8px;
  background-color: var(--bg);
  border-radius: 50%;
  display: inline-block;
}

/* ── CARDS & HOVERS ── */
.card {
  background-color: var(--bg-1);
  border: 1px solid var(--ink-4);
  border-radius: 20px;
  padding: 32px;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), background-color 300ms var(--ease);
}

.card:hover {
  background-color: var(--bg-2);
  border-color: var(--rule-2);
}

/* GIF hover container */
.gif-hover-container {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg);
  border: 1px solid var(--ink-4);
}

.gif-hover-container img {
  width: 100%;
  display: block;
  transform: scale(1);
  transition: transform 550ms var(--ease);
}

.gif-hover-container:hover img {
  transform: scale(1.04);
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-100%);
  pointer-events: none;
  opacity: 0;
}

.gif-hover-container:hover .scan-line {
  opacity: 1;
  animation: scanline 2.6s linear infinite;
}

/* ── CODE BLOCKS ── */
pre {
  background-color: var(--bg-1);
  border: 1px solid var(--ink-4);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}

code {
  font-family: 'JetBrains Mono', monospace;
}

.code-key {
  color: #f0eefc;
}

.code-string {
  color: #9fcb9f;
}

.code-number {
  color: #c0a8e0;
}

.code-comment {
  color: #464650;
  font-style: italic;
}

.code-punctuation {
  color: #515154;
}

.code-method {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  background-color: var(--ink-4);
  color: var(--ink);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── PRICING CARDS ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: var(--rule);
  border-radius: 22px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.price-card {
  background-color: var(--bg);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 300ms var(--ease);
}

.price-card.featured {
  background-color: var(--white);
  color: var(--bg);
}

.price-card.featured .plan-name {
  color: var(--bg);
}

.price-card.featured .plan-price {
  color: var(--bg);
}

.price-card.featured .plan-desc {
  color: #555558;
}

.price-card.featured .feature-item {
  color: var(--bg);
}

.price-card.featured .btn {
  background-color: var(--bg);
  color: var(--white);
  border-color: var(--bg);
}

.price-card.featured .btn:hover {
  background-color: var(--bg-1);
}

.price-card .badge {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 16px;
}

/* Pricing Switcher */
.pricing-switcher-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.pricing-switcher {
  display: inline-flex;
  background-color: var(--bg-1);
  border: 1px solid var(--ink-4);
  border-radius: 100px;
  padding: 4px;
}

.pricing-switcher button {
  background: transparent;
  border: none;
  color: var(--ink-2);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 200ms var(--ease);
}

.pricing-switcher button.active {
  background-color: var(--white);
  color: var(--bg);
}

/* ── FAQ ACCORDION ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--ink-4);
  background-color: var(--bg-1);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 300ms var(--ease);
}

.faq-item:hover {
  border-color: var(--rule-2);
}

.faq-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-btn span {
  font-size: 20px;
}

.faq-body {
  padding: 0 24px 24px 24px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}

/* ── FOOTER ── */
footer.site-footer {
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--rule);
}

footer.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
  transition: color 200ms;
}

footer.site-footer a:hover {
  color: var(--white);
}

/* ── ANIMATION SYSTEM ── */
.kicker-anim {
  opacity: 0;
  transform: translateY(-14px);
  animation: slideDown 900ms var(--ease) forwards;
}

.h1-anim {
  opacity: 0;
  transform: translateY(32px);
  animation: slideUp 950ms var(--ease) 80ms forwards;
}

.sub-anim {
  opacity: 0;
  transform: translateY(28px);
  animation: slideUpShort 900ms var(--ease) 180ms forwards;
}

.grid-anim {
  opacity: 0;
  animation: fadeIn 900ms var(--ease) 380ms forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Stagger delay */
.reveal.in:nth-child(2) { transition-delay: 55ms; }
.reveal.in:nth-child(3) { transition-delay: 110ms; }
.reveal.in:nth-child(4) { transition-delay: 165ms; }
.reveal.in:nth-child(5) { transition-delay: 220ms; }
.reveal.in:nth-child(6) { transition-delay: 275ms; }
.reveal.in:nth-child(7) { transition-delay: 330ms; }
.reveal.in:nth-child(8) { transition-delay: 385ms; }

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

@keyframes slideDown {
  from { transform: translateY(-14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(240px); }
}

/* ── LIVE ACTIVITY MONOCHROME STYLING ── */
#live-api-activity .laa-dash {
  border: 1px solid var(--ink-4);
  border-radius: 20px;
  background-color: var(--bg-1);
  overflow: hidden;
}

#live-api-activity .laa-topbar {
  background-color: var(--bg);
  border-bottom: 1px solid var(--ink-4);
  padding: 18px 24px;
}

#live-api-activity .laa-live-indicator {
  border: 1px solid var(--ink-4);
  background-color: var(--bg-2);
  border-radius: 100px;
  padding: 4px 12px;
}

#live-api-activity .laa-live-dot {
  background-color: var(--white);
}

#live-api-activity .laa-live-label {
  color: var(--ink);
}

#live-api-activity .laa-map-wrap {
  background-color: var(--bg);
  border-bottom: 1px solid var(--ink-4);
}

#live-api-activity .laa-map-world-img {
  opacity: 0.15;
  filter: invert(1);
}

#live-api-activity .laa-ping-dot {
  background-color: var(--white);
}

#live-api-activity .laa-ping-ring {
  border-color: var(--white);
}

#live-api-activity .laa-stats-row {
  border-bottom: 1px solid var(--ink-4);
  background-color: var(--ink-4);
  gap: 1px;
}

#live-api-activity .laa-stat-cell {
  background-color: var(--bg-1);
  padding: 20px 24px;
}

#live-api-activity .laa-stat-lbl {
  color: var(--ink-3);
}

#live-api-activity .laa-stat-num {
  color: var(--ink);
}

#live-api-activity .laa-stat-num.laa-num-green {
  color: var(--white);
}

#live-api-activity .laa-feed-area {
  background-color: var(--bg);
}

#live-api-activity .laa-feed-row {
  border-bottom: 1px solid var(--ink-4);
}

#live-api-activity .laa-feed-row::after {
  display: none;
}

#live-api-activity .laa-method-badge {
  background-color: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--ink-4);
}

#live-api-activity .laa-endpoint {
  color: var(--ink-2);
}

#live-api-activity .laa-feed-status {
  background-color: var(--white);
  color: var(--bg);
  font-weight: 600;
  border-radius: 4px;
}

#live-api-activity .laa-feed-ms.laa-ms-g,
#live-api-activity .laa-feed-ms.laa-ms-y,
#live-api-activity .laa-feed-ms.laa-ms-r {
  color: var(--ink-2);
}

#live-api-activity .laa-bottombar {
  background-color: var(--bg);
  border-top: 1px solid var(--ink-4);
  padding: 18px 24px;
}

#live-api-activity .laa-spark-b {
  background-color: var(--bg-2);
}

#live-api-activity .laa-spark-b.laa-spark-hi {
  background-color: var(--white);
}

/* ── USE CASES RICH STYLING ── */
/* ── USE CASES RICH STYLING ── */
#use-cases .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}

@media (min-width: 1024px) {
  #use-cases .hero-grid {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.use-case-card {
  position: relative;
  width: 100%;
  text-align: left;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--ink-4);
  background: var(--bg-1);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  align-items: start;
  gap: 16px;
  padding: 20px;
  cursor: pointer;
}

.use-case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--use-case-accent, 255, 255, 255), 0.12) 0%, transparent 60%);
  opacity: 0.4;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.use-case-card:hover {
  background: var(--bg-2);
  border-color: var(--rule-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.use-case-card.is-active {
  border-color: var(--white);
  background: var(--bg-2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(var(--use-case-accent, 255, 255, 255), 0.1);
}

.use-case-card.is-active::before {
  opacity: 0.95;
}

.use-case-icon-bg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--ink-4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink-2);
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
  position: relative;
  z-index: 10;
}

.use-case-card.is-active .use-case-icon-bg {
  color: var(--white);
  border-color: var(--white);
}

.use-case-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.use-case-card p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 8px;
  text-align: left;
}

.use-case-card.is-active h3 {
  color: var(--white);
}

.use-case-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  padding: 4px 10px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rule);
}

.use-case-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  transition: background 0.35s var(--ease);
}

.use-case-card.is-active .use-case-kicker-dot {
  background: var(--white);
  box-shadow: 0 0 8px var(--white);
}

.use-case-stage {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--ink-4);
  background: var(--bg-1);
}

.use-case-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 80px 24px 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  pointer-events: none;
}

.use-case-scene.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  z-index: 2;
}

.showcase-panel {
  border-radius: 16px;
  border: 1px solid var(--ink-4);
  background: var(--bg);
  overflow: hidden;
}

.showcase-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 100px;
  padding: 4px 12px;
  border: 1px solid var(--ink-4);
  background: var(--bg-1);
  color: var(--ink);
  font-size: 12px;
}

.showcase-chip-muted {
  color: var(--ink-2);
  border-color: transparent;
  background: transparent;
}

.showcase-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
}

.showcase-bars span {
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: var(--bg-2);
  transform-origin: bottom center;
}

.use-case-card.is-active .showcase-bars span {
  background: var(--ink-2);
}

.phone-shell {
  width: 250px;
  margin: 0 auto;
  border-radius: 36px;
  background: #000;
  border: 4px solid var(--ink-4);
  overflow: hidden;
}

.phone-screen {
  background: var(--bg);
  min-height: 440px;
}

.browser-window {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.browser-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-4);
  background: var(--bg-1);
}

.browser-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  border-radius: 100px;
  border: 1px solid var(--ink-4);
  background: var(--bg);
  padding: 6px 12px;
  color: var(--ink-2);
  font-size: 12px;
}

.trainer-column {
  border-radius: 12px;
  border: 1px solid var(--ink-4);
  background: var(--bg-1);
  padding: 12px;
}

.ai-metric-card {
  border-radius: 12px;
  border: 1px solid var(--ink-4);
  background: var(--bg-1);
  padding: 12px;
}

.ai-ring {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--white) 0deg 240deg, var(--ink-4) 240deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg);
}

.ai-ring-value {
  position: relative;
  z-index: 2;
  font-family: 'Big Shoulders Display', sans-serif;
  font-weight: 900;
  font-size: 16px;
}

.showcase-meta {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.showcase-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
}

.showcase-dot-row {
  display: flex;
  gap: 6px;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-4);
  transition: background-color 0.3s;
}

.showcase-dot.is-active {
  background: var(--white);
}

.showcase-footer {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.showcase-active-copy {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 280px;
}

.showcase-autoplay-pill {
  border: 1px solid var(--ink-4);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 10px;
  color: var(--ink-3);
}

/* ── FORMS / INPUTS ── */
.form-input, .form-textarea {
  width: 100%;
  background-color: var(--bg-1);
  border: 1px solid var(--ink-4);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: border-color 200ms var(--ease);
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--ink-2);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ── INTRO SPLASH OVERLAY ── */
#intro-splash {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 800ms var(--ease), visibility 800ms var(--ease);
  overflow: hidden;
}

#intro-splash.fade-out {
  opacity: 0;
  visibility: hidden;
}

.intro-video-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.intro-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22; /* dim for high typography legibility */
  filter: grayscale(1); /* catalog feeling */
}

.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  max-width: 600px;
  width: 100%;
  padding: 40px;
}

.intro-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.intro-meta .font-mono {
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.intro-meta h2 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.05em;
  color: var(--ink);
  line-height: 1.1;
}

/* Centered Hero styles */
.hero-centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

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

.hero-centered .kicker-pill {
  align-self: center;
}

/* ── DEMO CARD (GIF left, JSON right) ── */
.demo-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background-color: var(--bg-1);
  border: 1px solid var(--ink-4);
  border-radius: 20px;
  padding: 24px;
}

@media (min-width: 768px) {
  .demo-card {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 32px;
  }
}

.demo-gif-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-gif-section .gif-hover-container {
  aspect-ratio: 1 / 1;
  max-height: 380px;
  background-color: var(--bg);
  border: 1px solid var(--ink-4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.demo-gif-section .gif-hover-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-gif-section .gif-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: rgba(10, 10, 10, 0.78);
  border: 1px solid var(--ink-4);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.08em;
  z-index: 10;
}

.demo-gif-section .gif-title {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  z-index: 10;
}

.demo-json-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-json-section .json-header {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
}

.demo-json-section .json-dots {
  display: flex;
  gap: 6px;
}

.demo-json-section .json-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--ink-4);
}

.demo-json-section pre {
  margin: 0;
  height: 100%;
}

.hidden {
  display: none !important;
}

/* Custom Overrides to prevent default browser buttons overriding colors inside cards */
.use-case-card h3 {
  color: var(--ink) !important;
}
.use-case-card.is-active h3 {
  color: var(--white) !important;
}
.use-case-card p {
  color: var(--ink-2) !important;
}

/* Tab button styling for JSON showcase */
.json-tab-btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: none;
}
.json-tab-btn.active {
  background: var(--bg-1) !important;
  border: 1px solid var(--ink-4) !important;
  color: var(--white) !important;
}
