/* =====================================================================
   «Мастер Речи» — Apple Pro Minimalist Design System
   Aesthetic: Pure Studio Black (#000000), Slate/Obsidian (#0A0B0E, #111217),
   Natural Titanium & Pure White Typography, Sub-Pixel Hairline Borders,
   SF Pro Fluid Typography, Balanced Proportions & Generous Whitespace.
   ===================================================================== */

:root {
  /* Surfaces (Frosted Studio Glass) */
  --bg-pure: #000000;
  --bg-base: #050608;
  --bg-secondary: #090a0d;
  --surface-low: rgba(12, 13, 17, 0.72);
  --surface-default: rgba(17, 19, 24, 0.78);
  --surface-elevated: rgba(22, 24, 32, 0.84);
  --surface-interactive: rgba(28, 31, 40, 0.88);

  /* Frosted Glass Layers */
  --glass-bg: rgba(12, 13, 17, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --glass-blur: blur(24px) saturate(180%);

  /* Hairline Borders */
  --border-hairline: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);

  /* Typography */
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-tertiary: #515154;
  --text-disabled: #333336;
  --ink-on-light: #000000;

  /* Natural Titanium Accent */
  --accent-gold: #c7b9a5; /* Titanium tone for compatibility */
  --accent-gold-light: #e5ded4;
  --accent-gold-soft: rgba(255, 255, 255, 0.05);
  --accent-gold-border: rgba(255, 255, 255, 0.12);
  --accent-titanium: #d2d2d7;

  /* Status Tokens */
  --success: #30d158;
  --success-soft: rgba(48, 209, 88, 0.12);
  --error: #ff453a;
  --error-soft: rgba(255, 69, 58, 0.12);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Interactive Studio Phone Specs — calibrated for zero bottom cutoff across all laptop viewports */
  --studio-phone-height: min(520px, calc(100vh - 220px));

  /* Shadows */
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
  --shadow-ambient: 0 32px 80px -20px rgba(0, 0, 0, 0.9);

  /* Layout */
  --container-max: 1180px;
  --header-height: 60px;
  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);

  /* Physics-Based Easing (linear() spring curves per modern web guidance) */
  --spring-easing: linear(
    0, 0.016 0.5%, 0.06 1%, 0.226 2%, 1.116 5.4%, 1.375 6.6%, 1.527 7.7%,
    1.565 8.2%, 1.585 8.8%, 1.581 9.3%, 1.559 9.8%, 1.458 10.9%, 0.937 14.3%,
    0.784 15.5%, 0.693 16.6%, 0.67 17.1%, 0.657 17.7%, 0.671 18.7%, 0.729 19.8%,
    1.042 23.3%, 1.13 24.5%, 1.182 25.6%, 1.201 26.7%, 1.192 27.7%, 1.156 28.8%,
    0.977 32.2%, 0.925 33.4%, 0.894 34.5%, 0.882 35.6%, 0.887 36.6%, 0.907 37.7%,
    1.045 42.4%, 1.069 44.5%, 1.059 46.3%, 0.979 50.9%, 0.96 53.4%, 0.966 55.3%,
    1.013 59.9%, 1.024 62.3%, 0.986 71.2%, 1.008 79.9%, 0.995 88.9%, 1
  );
  --spring-bounce: linear(
    0, 0.214 14.7%, 0.386 23.7%, 0.598 31.9%, 0.999 44.7%, 0.807 52.6%,
    0.762 56%, 0.747 59.4%, 0.758 62.4%, 0.793 65.6%, 0.999 77.4%, 0.961 81.2%,
    0.949 84.8%, 0.956 88%, 0.993 95.5%, 1
  );

  /* Mouse Coordinates & Living Aura */
  --mouse-x: 50vw;
  --mouse-y: 200px;
  --ambient-glow-color: rgba(255, 255, 255, 0.03);
  --aurora-color-1: rgba(215, 185, 145, 0.05);
  --aurora-color-2: rgba(255, 255, 255, 0.035);
  --aurora-color-3: rgba(48, 209, 88, 0.025);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-pure);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: -0.015em;
}

body {
  min-height: 100vh;
  background-color: var(--bg-pure);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* =====================================================================
   Global Living Acoustic Space Backdrop (Apple Pro Cinematic Canvas)
   ===================================================================== */
.global-background-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-color: var(--bg-pure);
}

/* Apple Pro Quiet Studio Lighting: 100% motionless, diffuse, zero-flicker ambient depth */
.bg-ambient-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  opacity: 0.65;
  transition: opacity 1.2s ease, background 1.2s ease;
}

.bg-ambient-aurora-1 {
  top: -10vh;
  left: 10vw;
  width: 52vw;
  height: 52vh;
  background: radial-gradient(circle, var(--aurora-color-1) 0%, transparent 70%);
}

.bg-ambient-aurora-2 {
  bottom: -10vh;
  right: 5vw;
  width: 58vw;
  height: 58vh;
  background: radial-gradient(circle, var(--aurora-color-2) 0%, transparent 70%);
}

.bg-ambient-aurora-3 {
  top: 36vh;
  left: 26vw;
  width: 48vw;
  height: 48vh;
  background: radial-gradient(circle, var(--aurora-color-3) 0%, transparent 70%);
}

.global-acoustic-canvas {
  display: none;
}

/* Ambient Subtle Radial Glow with Living Acoustic Aura */
.bg-ambient-spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    720px circle at var(--mouse-x) var(--mouse-y),
    var(--ambient-glow-color, rgba(255, 255, 255, 0.035)) 0%,
    transparent 72%
  );
  transition: background 0.8s ease;
}

.global-background-stage .bg-ambient-spotlight {
  position: absolute;
  z-index: 2;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Frosted Studio Glass Surfaces — Reveals Background Sound Dynamics */
.hero-showcase-card,
.acoustic-studio-box,
.bento-tile,
.studio-tab-item,
.price-card,
.faq-item,
.resonance-btn,
.store-btn,
.resonance-pedagogy-card,
.speech-sphere-stage-dock,
.sphere-pillar-card,
.sphere-node-chip,
.coach-insight-card,
.voice-fingerprint-box {
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.8rem, 5.2vw + 0.5rem, 4.4rem);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(2rem, 3.2vw + 0.2rem, 2.8rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.2rem, 1.6vw + 0.2rem, 1.5rem);
  letter-spacing: -0.025em;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

/* Eyebrow Label */
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-titanium);
  margin-bottom: 16px;
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.6);
}

/* Status Pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill-gold {
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-titanium);
  border: 1px solid var(--border-subtle);
}

.pill-green {
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid rgba(48, 209, 88, 0.25);
}

/* Apple-style Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  letter-spacing: -0.01em;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.btn-primary:hover {
  background-color: #e5e5ea;
  border-color: #e5e5ea;
  color: #000000;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.11);
  border-color: var(--border-default);
  color: #ffffff;
}

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

.btn-ghost:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
}

/* Physics-Based Magnetic Buttons */
.magnetic-btn {
  will-change: transform;
  transition: transform 0.5s var(--spring-bounce, cubic-bezier(0.16, 1, 0.3, 1)), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.magnetic-btn.is-hovered {
  transition: transform 0.08s ease-out, background-color 0.2s ease, border-color 0.2s ease;
}

/* Continuous Titanium Perimeter Laser Beam */
@property --laser-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-laser {
  0% { --laser-angle: 0deg; }
  100% { --laser-angle: 360deg; }
}

.laser-beam-card {
  position: relative;
}

.laser-beam-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--laser-angle, 0deg) at 50% 50%,
    transparent 0%,
    transparent 65%,
    rgba(255, 255, 255, 0.4) 86%,
    #ffffff 92%,
    rgba(255, 255, 255, 0.4) 97%,
    transparent 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
  animation: rotate-laser 6.5s linear infinite;
  opacity: 0.85;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-hairline);
  z-index: 100;
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  border-bottom-color: var(--border-subtle);
  background-color: rgba(5, 6, 8, 0.9);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 0;
  object-fit: contain;
  border: none;
  background: transparent;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.15;
}

.brand-sub {
  font-size: 0.62rem;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.86rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
}

.mobile-drawer-cta {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.4rem;
  cursor: pointer;
}

/* =====================================================================
   Apple-Style Scroll & Entrance Motion (Compositor-Bound, High-End Feel)
   ===================================================================== */
@keyframes hero-unveil-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-unveil-side {
  from {
    opacity: 0;
    transform: translateX(28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-content .eyebrow-tag {
    animation: hero-unveil-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.04s backwards;
  }
  .hero-content h1 {
    animation: hero-unveil-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
  }
  .hero-content .hero-subhead {
    animation: hero-unveil-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards;
  }
  .hero-content .hero-cta-group {
    animation: hero-unveil-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards;
  }
  .hero-content .hero-pillars-row,
  .hero-content .hero-proof-row {
    animation: hero-unveil-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s backwards;
  }
  .hero-showcase-deck {
    animation: hero-unveil-side 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s backwards;
  }
  .resonance-stage-dock,
  .speech-sphere-stage-dock {
    animation: hero-unveil-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.26s backwards;
  }
}

/* Scroll-Driven Animations: Apple Pro Viewport Reveal */
.scroll-reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  will-change: transform, opacity;
}

.scroll-reveal-left {
  opacity: 1;
  transform: translateX(0);
  will-change: transform, opacity;
}

.scroll-reveal-right {
  opacity: 1;
  transform: translateX(0);
  will-change: transform, opacity;
}

/* Stagger Delays for Elegant Cascade */
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.19s; }
.stagger-4 { transition-delay: 0.26s; }

/* Native CSS Scroll-Driven Animations (Chrome, Edge, Safari 26+) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes apple-scroll-reveal {
      from {
        opacity: 0.12;
        transform: translateY(32px) scale(0.97);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes apple-scroll-reveal-left {
      from {
        opacity: 0.12;
        transform: translateX(-36px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    @keyframes apple-scroll-reveal-right {
      from {
        opacity: 0.12;
        transform: translateX(36px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .scroll-reveal {
      animation: apple-scroll-reveal auto cubic-bezier(0.16, 1, 0.3, 1) backwards;
      animation-timeline: view();
      animation-range: entry 8% cover 32%;
    }

    .scroll-reveal-left {
      animation: apple-scroll-reveal-left auto cubic-bezier(0.16, 1, 0.3, 1) backwards;
      animation-timeline: view();
      animation-range: entry 8% cover 32%;
    }

    .scroll-reveal-right {
      animation: apple-scroll-reveal-right auto cubic-bezier(0.16, 1, 0.3, 1) backwards;
      animation-timeline: view();
      animation-range: entry 8% cover 32%;
    }
  }
}

/* Universal Fallback using IntersectionObserver (Ensures identical Apple experience everywhere) */
body.has-scroll-observer .scroll-reveal:not(.is-revealed) {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
}

body.has-scroll-observer .scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

body.has-scroll-observer .scroll-reveal-left:not(.is-revealed) {
  opacity: 0;
  transform: translateX(-36px);
}

body.has-scroll-observer .scroll-reveal-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

body.has-scroll-observer .scroll-reveal-right:not(.is-revealed) {
  opacity: 0;
  transform: translateX(36px);
}

body.has-scroll-observer .scroll-reveal-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Sections — Balanced Whitespace */
.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}

.section-title {
  margin-top: 6px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* =====================================================================
   Hero Section (Apple Keynote Wide 2-Column Grid)
   ===================================================================== */
.hero-section {
  padding: 68px 0 96px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 22px;
}

.hero-content h1 {
  text-align: left;
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.6;
  text-align: left;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  margin-top: 4px;
}

.hero-pillars-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  margin-top: 12px;
  width: 100%;
}

.hero-pillar-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.pillar-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  font-weight: 600;
}

.pillar-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.hero-pillar-separator {
  width: 1px;
  height: 28px;
  background-color: var(--border-subtle);
  flex-shrink: 0;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  margin-top: 8px;
  width: 100%;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.proof-val {
  color: var(--text-primary);
  font-weight: 700;
}

/* Hero Showcase Deck (2 Prominent Side-by-Side Cards, Flush & Legible) */
.hero-showcase-deck {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.hero-showcase-card {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hero-showcase-card:hover {
  border-color: var(--border-default);
  transform: translateY(-2px);
}

.hero-showcase-img-box {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background-color: #030405;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.hero-showcase-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
}

.showcase-caption-tag {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-titanium);
}

/* Living Acoustic Wave Canvas in Hero */
.hero-acoustic-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.42;
  transition: opacity 0.5s ease;
}

/* Sub-pixel Titanium Scroll Horizon */
.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, var(--accent-titanium), rgba(255, 255, 255, 0.9));
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 1000;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes scroll-progress-anim {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    .scroll-progress-line {
      animation: scroll-progress-anim auto linear;
      animation-timeline: scroll();
    }
  }
}

/* =====================================================================
   Interactive 3D Speech Sphere (Apple Pinned Scrollytelling Stage)
   ===================================================================== */
.speech-sphere-scroll-track {
  position: relative;
  height: 340vh;
  margin-top: 48px;
  background: radial-gradient(circle at 50% 15%, rgba(229, 169, 60, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 80% 85%, rgba(52, 211, 153, 0.04) 0%, transparent 60%);
}

.speech-sphere-pinned-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  z-index: 10;
  box-sizing: border-box;
  padding: calc(var(--header-height) + 24px) 24px 24px 24px;
  background-color: var(--bg-pure);
}

.speech-sphere-stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1140px;
}

.speech-sphere-stage-header {
  margin-bottom: 14px;
  text-align: center;
}

.speech-sphere-stage-header .eyebrow-tag {
  margin-bottom: 4px;
  font-size: 0.70rem;
  padding: 3px 10px;
}

.speech-sphere-stage-header .section-title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.speech-sphere-stage-header .section-desc {
  max-width: 580px;
  margin: 0 auto;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--text-secondary);
}

.speech-sphere-interactive-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}

/* Left: Single Active Showcase Card (Stacked in same grid cell) */
.sphere-tabs-list {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  position: relative;
  align-items: stretch;
}

.sphere-tab-item {
  grid-area: 1 / 1 / 2 / 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease,
              visibility 0.4s;
  background: linear-gradient(145deg, rgba(18, 22, 30, 0.95) 0%, rgba(9, 11, 15, 0.98) 100%);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px 34px 24px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sphere-tab-item.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  z-index: 2;
}

.sphere-tab-item[data-step-idx="0"].active {
  border-color: rgba(229, 169, 60, 0.45);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px -8px rgba(229, 169, 60, 0.18), inset 0 1px 0 rgba(229, 169, 60, 0.25);
}
.sphere-tab-item[data-step-idx="1"].active {
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px -8px rgba(255, 255, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.sphere-tab-item[data-step-idx="2"].active {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px -8px rgba(212, 175, 55, 0.18), inset 0 1px 0 rgba(212, 175, 55, 0.25);
}
.sphere-tab-item[data-step-idx="3"].active {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px -8px rgba(52, 211, 153, 0.18), inset 0 1px 0 rgba(52, 211, 153, 0.25);
}

.sphere-tab-item .tab-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #E5A93C, #ffffff);
  transition: width 0.08s linear;
}

.sphere-tab-item[data-step-idx="0"].active .tab-progress-line {
  background: linear-gradient(90deg, #E5A93C, #FFE29A);
}
.sphere-tab-item[data-step-idx="1"].active .tab-progress-line {
  background: linear-gradient(90deg, #FFFFFF, var(--accent-titanium));
}
.sphere-tab-item[data-step-idx="2"].active .tab-progress-line {
  background: linear-gradient(90deg, #D4AF37, #F5D77F);
}
.sphere-tab-item[data-step-idx="3"].active .tab-progress-line {
  background: linear-gradient(90deg, #34D399, #86EFAC);
}

.tab-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tab-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.tab-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.sphere-tab-item[data-step-idx="0"] .tab-step-dot { background: #E5A93C; box-shadow: 0 0 8px #E5A93C; }
.sphere-tab-item[data-step-idx="1"] .tab-step-dot { background: #FFFFFF; box-shadow: 0 0 8px #FFFFFF; }
.sphere-tab-item[data-step-idx="2"] .tab-step-dot { background: #D4AF37; box-shadow: 0 0 8px #D4AF37; }
.sphere-tab-item[data-step-idx="3"] .tab-step-dot { background: #34D399; box-shadow: 0 0 8px #34D399; }

.tab-step-num {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
}

.tab-step-counter {
  font-size: 0.74rem;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.sphere-tab-item .tab-headline {
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.sphere-tab-item .tab-body-desc {
  font-size: clamp(0.96rem, 1.15vw, 1.06rem);
  color: var(--text-secondary);
  line-height: 1.62;
  margin-bottom: 20px;
}

.tab-sensation-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: clamp(0.85rem, 1.0vw, 0.92rem);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  line-height: 1.5;
  margin-top: auto;
}

.tab-sensation-icon {
  color: var(--accent-titanium);
  font-size: 1.05rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.tab-card-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
}

.tab-nav-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-dot {
  width: 24px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.tab-dot:hover {
  background: rgba(255, 255, 255, 0.35);
}

.tab-dot.active {
  width: 38px;
  background: #ffffff;
}

.sphere-tab-item[data-step-idx="0"] .tab-dot.active { background: #E5A93C; }
.sphere-tab-item[data-step-idx="1"] .tab-dot.active { background: #FFFFFF; }
.sphere-tab-item[data-step-idx="2"] .tab-dot.active { background: #D4AF37; }
.sphere-tab-item[data-step-idx="3"] .tab-dot.active { background: #34D399; }

.tab-nav-arrows {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.tab-arrow-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.tab-arrow-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* Right: 3D Holographic Sphere Stage */
.sphere-stage-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.sphere-canvas-wrap {
  position: relative;
  width: 400px;
  height: 400px;
  max-width: 100%;
  border-radius: 50%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, rgba(6, 8, 12, 0.85) 65%, transparent 100%);
  box-shadow: 0 0 70px rgba(0, 0, 0, 0.85), inset 0 0 50px rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease;
}

.sphere-canvas-wrap:active {
  cursor: grabbing;
}

#speechSphereCanvas {
  width: 400px;
  height: 400px;
  max-width: 100%;
  display: block;
  border-radius: 50%;
}

.sphere-drag-hint {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 16, 22, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.drag-hint-icon {
  font-size: 0.95rem;
  line-height: 1;
  color: var(--accent-titanium);
}

.sphere-nodes-selector {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.sphere-node-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  border-radius: 24px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  user-select: none;
}

.sphere-node-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  transform: translateY(-1px);
}

.sphere-node-chip.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.1);
}

.node-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

/* Interactive Voice Resonance Sound Stage */
.resonance-stage-dock {
  margin-top: 52px;
  background: rgba(12, 14, 18, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 2;
}

.resonance-dock-header {
  text-align: center;
  margin-bottom: 20px;
}

.resonance-dock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-titanium);
  margin-bottom: 6px;
}

.live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #30d158;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.8);
  animation: pulse-dot 2s infinite ease-in-out;
}

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

.resonance-dock-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.resonance-dock-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.resonance-buttons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 992px) {
  .resonance-buttons-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.resonance-btn {
  background-color: var(--surface-low);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  color: inherit;
  position: relative;
  overflow: hidden;
}

.resonance-btn:hover {
  background-color: var(--surface-default);
  border-color: var(--border-default);
  transform: translateY(-2px);
}

.resonance-btn.active {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.08);
}

.btn-res-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-tertiary);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.resonance-btn.active .btn-res-indicator {
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.btn-res-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.btn-res-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-res-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.resonance-pedagogy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.res-pedagogy-icon {
  color: var(--accent-titanium);
  font-size: 1.1rem;
  line-height: 1;
  margin-top: 2px;
}

.res-pedagogy-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-secondary);
  transition: opacity 0.2s ease;
}

/* =====================================================================
   Acoustic Core (Live In-Browser Voice Studio)
   ===================================================================== */
.acoustic-studio-box {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.studio-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.studio-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--text-tertiary);
  display: inline-block;
  transition: all var(--transition-fast);
}

.status-dot.active {
  background-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.prompter-stage {
  background-color: #040507;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.prompter-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.prompter-body {
  font-size: 1.15rem;
  line-height: 1.68;
  color: var(--text-primary);
  font-weight: 450;
}

.prompter-word {
  display: inline-block;
  transition: color 0.18s ease, text-shadow 0.18s ease, transform 0.18s ease;
  color: var(--text-secondary);
  padding: 0 1.5px;
}

.prompter-word.active {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.pause-mark {
  display: inline-block;
  padding: 0 6px;
  margin: 0 3px;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
  transition: all 0.25s ease;
}

.pause-mark.pulse {
  background-color: rgba(48, 209, 88, 0.2);
  border-color: rgba(48, 209, 88, 0.6);
  color: #30d158;
  text-shadow: 0 0 16px rgba(48, 209, 88, 0.9);
  transform: scale(1.3);
}

.pause-mark.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 6px;
  border: 1px solid rgba(48, 209, 88, 0.8);
  animation: pause-ring-pulse 0.75s ease-out infinite;
  pointer-events: none;
}

@keyframes pause-ring-pulse {
  0% {
    transform: scale(0.9);
    opacity: 1;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.canvas-viewport {
  height: 84px;
  width: 100%;
  background-color: #020304;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

#voiceWaveformCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-prompt-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.86rem;
  color: var(--text-tertiary);
  pointer-events: none;
  font-weight: 450;
}

.studio-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timer-readout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 42px;
  background-color: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: -apple-system-monospaced, Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 76px;
}

/* Results Card in Studio */
.test-results-view {
  display: none;
  background-color: #07080b;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  margin-top: 24px;
  animation: fadeIn 0.3s ease;
}

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

.results-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 18px;
}

.score-display-big {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.score-display-big span {
  font-size: 1.05rem;
  color: var(--text-tertiary);
  font-weight: 500;
}

.metrics-horizontal-hud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.metric-hud-cell {
  background-color: var(--surface-low);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.metric-hud-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-hud-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.metric-hud-verdict {
  font-size: 0.72rem;
  color: var(--success);
  margin-top: 2px;
}

.coach-insight-card {
  background-color: var(--surface-default);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* Biometric Acoustic Voice Profile Radar */
.voice-fingerprint-box {
  background-color: var(--surface-low);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.fingerprint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.fingerprint-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fingerprint-subtitle {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.fingerprint-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
}

.radar-svg {
  width: 140px;
  height: 140px;
}

.radar-grid-circle {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.radar-axis {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.radar-polygon {
  fill: rgba(255, 255, 255, 0.14);
  stroke: #ffffff;
  stroke-width: 1.8;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.radar-label {
  fill: var(--text-tertiary);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.fingerprint-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* =====================================================================
   Apple-Style Bento Grid (Highlights & Foundations)
   ===================================================================== */
.bento-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.bento-tile {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Base identity properties for individual transforms per modern web guidance */
  translate: 0px 0px;
  rotate: 0deg;
  scale: 1;
  transform-style: preserve-3d;
  will-change: transform;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}

.bento-tile:hover {
  border-color: var(--border-default);
}

.hero-showcase-card.has-glare::before,
.bento-tile.has-glare::before,
.price-card.has-glare::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--card-glare-x, 50%) var(--card-glare-y, 50%),
    rgba(255, 255, 255, 0.08),
    transparent 70%
  );
  z-index: 2;
  border-radius: inherit;
}

.bento-tile-num {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 12px;
}

.bento-tile-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.bento-tile-body {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.58;
}

/* =====================================================================
   Interactive Device Studio (Apple Pinned Scrollytelling Stage)
   ===================================================================== */
.studio-scroll-track {
  position: relative;
  /* 380vh creates generous scroll travel distance across 4 steps */
  height: 380vh;
}

.studio-pinned-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 15;
  box-sizing: border-box;
  padding: 16px 24px 36px 24px;
}

.studio-stage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.studio-stage-header {
  margin-bottom: 16px;
  text-align: center;
}

.studio-stage-header .eyebrow-tag {
  margin-bottom: 6px;
  font-size: 0.72rem;
  padding: 3px 10px;
}

.studio-stage-header .section-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.studio-stage-header .section-desc {
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.86rem;
  line-height: 1.42;
  color: var(--text-secondary);
}

.interactive-studio-container {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

/* Left: 4 Cards vertically bounded exactly between Phone Top & Bottom */
.studio-tabs-list {
  height: var(--studio-phone-height);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.studio-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  cursor: pointer;
  transition: background-color 0.35s ease, border-color 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
  opacity: 0.38;
}

.studio-tab-item:hover {
  opacity: 0.75;
  border-color: var(--border-default);
}

.studio-tab-item.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.42);
  background-color: var(--surface-default);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.tab-progress-line {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #ffffff, var(--accent-titanium));
  transition: width 0.12s linear;
}

.tab-step-num {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-titanium);
  margin-bottom: 2px;
}

.tab-headline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.tab-body-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Right: Authentic Flagship Smartphone Frame */
.device-sticky-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.device-viewport-frame {
  height: var(--studio-phone-height);
  width: calc((var(--studio-phone-height) - 16px) * (1080 / 2412) + 16px);
  position: relative;
  background: #08090d;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.95),
    0 24px 60px -12px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

/* Physical Hardware Side Buttons */
.phone-hw-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 2px;
  pointer-events: none;
}
.phone-hw-vol-up {
  left: -4px;
  top: 76px;
  width: 3px;
  height: 32px;
}
.phone-hw-vol-down {
  left: -4px;
  top: 116px;
  width: 3px;
  height: 32px;
}
.phone-hw-power {
  right: -4px;
  top: 96px;
  width: 3px;
  height: 44px;
}

.device-dynamic-pill {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(8, 10, 14, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  white-space: nowrap;
  transition: all 0.3s ease;
}

.dynamic-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: #30d158;
  box-shadow: 0 0 8px rgba(48, 209, 88, 0.9);
  animation: pulse-dot 2s infinite ease-in-out;
}

.device-screen-stack {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background-color: #030406;
}

.device-screen-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: block;
}

.device-screen-layer.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* =====================================================================
   Pricing Section (Apple Store Deck)
   ===================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 28px;
  justify-content: center;
  align-items: stretch;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-grid.single-pricing-deck {
  grid-template-columns: minmax(0, 520px);
  max-width: 540px;
}

.price-card {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: border-color var(--transition-fast);
}

.price-card:hover {
  border-color: var(--border-default);
}

.price-card.featured {
  background-color: var(--surface-default);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 36px rgba(255, 255, 255, 0.04);
}

.price-badge-top {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  color: #000000;
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.price-tier-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.price-tier-desc {
  font-size: 0.84rem;
  color: var(--text-tertiary);
  min-height: 38px;
  margin-bottom: 18px;
}

.price-number-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.price-currency {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.price-period {
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.price-sub-calc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.price-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  flex-grow: 1;
}

.price-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.price-feature-item strong {
  color: var(--text-primary);
}

.feature-check {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 1px;
}

.payment-assurance-bar {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* Store Buttons Grid */
.store-buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 860px;
  margin: 36px auto 0;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  text-decoration: none;
  color: var(--text-primary);
  text-align: left;
  transition: all var(--transition-fast);
}

.store-btn:hover {
  border-color: var(--border-default);
  background-color: var(--surface-default);
}

.store-btn-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.store-btn-sub {
  font-size: 0.68rem;
  color: var(--text-tertiary);
}

.store-btn-main {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* FAQ Accordion */
.faq-grid {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.96rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--text-tertiary);
  transition: transform 0.4s var(--spring-bounce, cubic-bezier(0.16, 1, 0.3, 1)), color var(--transition-fast);
  line-height: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 20px;
}

.faq-item.open .faq-answer {
  max-height: 280px;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

/* Site Footer */
.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border-hairline);
  background-color: rgba(5, 6, 8, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand-col p {
  font-size: 0.86rem;
  color: var(--text-tertiary);
  margin-top: 10px;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-legal-bar {
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.76rem;
  color: var(--text-tertiary);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-requisites {
  color: var(--text-tertiary);
}

.footer-logos-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.payment-system-icons {
  display: flex;
  gap: 8px;
}

.payment-chip {
  background-color: var(--surface-default);
  border: 1px solid var(--border-hairline);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Modal Overlay & Forms */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-ambient);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  background-color: #050608;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

.form-input:user-invalid {
  border-color: var(--error);
  background-color: rgba(255, 69, 58, 0.05);
}

.form-input:user-valid:not(:placeholder-shown) {
  border-color: var(--success);
}

.checkout-method-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}

.method-hint-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.method-hint-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.82rem;
}

.method-hint-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.method-hint-text span {
  color: var(--text-secondary);
  font-size: 0.76rem;
  line-height: 1.35;
}

.checkout-trust-badge {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-hairline);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: var(--text-tertiary);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.trust-badge-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.payment-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

.payment-method-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
}

.payment-method-btn.selected {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.payment-method-btn .pm-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.payment-method-btn .pm-subtitle {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.payment-method-btn.selected .pm-subtitle {
  color: var(--text-secondary);
}

.checkout-today-label {
  font-size: 1.05rem;
  color: var(--text-tertiary);
  font-weight: 500;
  vertical-align: middle;
}

.checkout-today-sum {
  color: var(--text-primary);
  font-weight: 800;
  vertical-align: middle;
}

.checkout-future-sum {
  font-size: 0.92rem;
  color: var(--text-tertiary);
  font-weight: 400;
  margin-left: 6px;
  vertical-align: middle;
}

.copy-code-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  cursor: pointer;
  margin-top: 10px;
  transition: all var(--transition-fast);
}

.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}

.checkout-error-msg {
  color: var(--error);
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}

.checkout-error-msg.visible {
  display: block;
}

.pay-checkout-card {
  background-color: var(--surface-low);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  box-shadow: var(--shadow-ambient);
}

/* Cookie Consent Floating Glass Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  max-width: 580px;
  width: calc(100% - 32px);
  background: rgba(14, 16, 22, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  z-index: 998;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  opacity: 0;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  opacity: 1;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.cookie-banner-content a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-content .btn {
  flex-shrink: 0;
  padding: 8px 18px;
  font-size: 0.82rem;
}

@media (max-width: 480px) {
  .cookie-banner {
    bottom: 12px;
    padding: 12px 14px;
  }
  .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    font-size: 0.78rem;
  }
  .cookie-banner-content .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Responsive Rules */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    align-items: center;
    text-align: center;
  }

  .hero-content h1 {
    text-align: center;
  }

  .hero-subhead {
    text-align: center;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-pillars-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .hero-pillar-separator {
    display: none;
  }

  .hero-proof-row {
    justify-content: center;
  }

  .hero-showcase-deck {
    max-width: 540px;
    margin: 0 auto;
  }

  .studio-scroll-track {
    height: auto;
  }

  .studio-pinned-viewport {
    position: static;
    height: auto;
    padding: 36px 0;
    overflow: visible;
  }

  .interactive-studio-container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .device-sticky-wrapper {
    order: -1;
    margin-bottom: 8px;
  }

  .device-viewport-frame {
    height: 480px;
    width: calc((480px - 20px) * (1080 / 2412) + 20px);
    border-radius: 36px;
    padding: 8px;
  }

  .device-screen-stack {
    border-radius: 28px;
  }

  .studio-tabs-list {
    height: auto;
    gap: 10px;
  }

  .studio-tab-item {
    opacity: 0.6;
    padding: 16px;
    transform: none;
  }

  .studio-tab-item.active {
    opacity: 1;
  }

  .bento-showcase-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

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

/* Mobile Devices (iPhone & Android Phones: 320px - 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .container {
    padding: 0 16px;
  }

  .section {
    padding: 44px 0;
  }

  .section-title {
    font-size: clamp(1.55rem, 5.5vw, 2.05rem);
    line-height: 1.16;
  }

  .section-desc {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  /* Compact Mobile Header */
  .site-header {
    height: 56px;
  }

  .nav-desktop-btn {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(5, 6, 8, 0.98);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: none;
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.mobile-active {
    display: flex;
  }

  .nav-link {
    font-size: 1.15rem;
    font-weight: 600;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-hairline);
    width: 100%;
  }

  .mobile-drawer-cta {
    display: block;
    margin-top: 14px;
    width: 100%;
  }

  /* Responsive Hero */
  .hero-section {
    padding: 24px 0 36px;
  }

  .hero-content {
    gap: 16px;
  }

  h1, .hero-content h1 {
    font-size: clamp(1.9rem, 7.8vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    text-align: center;
  }

  .hero-subhead {
    font-size: 0.98rem;
    line-height: 1.52;
    text-align: center;
  }

  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.96rem;
  }

  .hero-pillars-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid var(--border-hairline);
    margin-top: 6px;
    text-align: center;
  }

  .hero-pillar-item {
    align-items: center;
    text-align: center;
    gap: 2px;
  }

  .pillar-label {
    font-size: 0.62rem;
  }

  .pillar-value {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
  }

  .hero-pillar-separator {
    display: none;
  }

  /* Hero Showcase Deck (Clean 2-Column or Single View on Mobile) */
  .hero-showcase-deck {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 100%;
    margin: 12px auto 0;
  }

  .hero-showcase-card {
    padding: 8px;
  }

  .hero-showcase-img-box {
    height: 170px;
  }

  .hero-showcase-caption {
    font-size: 0.72rem;
    margin-top: 6px;
    gap: 1px;
  }

  .showcase-caption-tag {
    font-size: 0.6rem;
  }

  /* 3D Speech Sphere Stage Mobile (Apple Scrollytelling Adaptation) */
  .speech-sphere-scroll-track {
    height: auto;
    min-height: auto;
    padding: 40px 0 20px 0;
  }

  .speech-sphere-pinned-viewport {
    position: relative;
    top: auto;
    height: auto;
    padding: 0 16px;
  }

  .speech-sphere-interactive-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sphere-stage-wrapper {
    order: -1;
  }

  .sphere-canvas-wrap,
  #speechSphereCanvas {
    width: 290px;
    height: 290px;
  }

  .sphere-tabs-list {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    min-height: 380px;
  }

  .sphere-tab-item {
    padding: 24px 20px 20px 20px;
    border-radius: var(--radius-md);
  }

  .sphere-tab-item.active {
    transform: none;
  }

  .sphere-nodes-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .sphere-node-chip {
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.78rem;
  }

  /* Resonance Sound Stage Dock */
  .resonance-stage-dock {
    padding: 16px 14px;
    margin-top: 24px;
    border-radius: var(--radius-md);
  }

  .resonance-dock-title {
    font-size: 1.15rem;
  }

  .resonance-dock-hint {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .resonance-buttons-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .resonance-btn {
    width: 100%;
    padding: 12px 14px;
    min-height: 52px;
  }

  .btn-res-name {
    font-size: 0.88rem;
  }

  .btn-res-desc {
    font-size: 0.72rem;
  }

  .resonance-pedagogy-card {
    padding: 12px;
    font-size: 0.82rem;
    line-height: 1.46;
  }

  /* Acoustic Core Voice Studio */
  .acoustic-studio-box {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }

  .prompter-stage {
    padding: 12px;
  }

  .prompter-meta {
    flex-direction: column;
    gap: 2px;
    font-size: 0.7rem;
  }

  .prompter-body {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .canvas-viewport {
    height: 64px;
    margin-bottom: 12px;
  }

  .canvas-prompt-text {
    font-size: 0.75rem;
    width: 92%;
    text-align: center;
  }

  .studio-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  #startVoiceTestBtn, #stopVoiceTestBtn {
    width: 100%;
    flex: none;
    padding: 13px;
    font-size: 0.95rem;
  }

  #demoVoiceTestBtn {
    flex: 1;
    padding: 10px;
    font-size: 0.84rem;
  }

  .timer-readout {
    min-width: 64px;
    height: 38px;
    padding: 0 10px;
    font-size: 0.92rem;
  }

  .test-results-view {
    padding: 16px 12px;
    margin-top: 16px;
  }

  .metrics-horizontal-hud {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .metric-hud-cell {
    padding: 10px 8px;
  }

  .metric-hud-label {
    font-size: 0.65rem;
  }

  .metric-hud-val {
    font-size: 0.92rem;
  }

  .metric-hud-verdict {
    font-size: 0.68rem;
  }

  /* Bento Grid */
  .bento-showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .bento-tile {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }

  .bento-tile-title {
    font-size: 1.15rem;
  }

  .bento-tile-body {
    font-size: 0.86rem;
  }

  /* Interactive Studio */
  .interactive-studio-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .device-viewport-frame {
    height: 400px;
    width: calc((400px - 16px) * (1080 / 2412) + 16px);
    border-radius: 32px;
    padding: 7px;
    margin: 0 auto 10px;
  }

  .device-screen-stack {
    border-radius: 24px;
  }

  .studio-tabs-list {
    padding: 0;
    gap: 10px;
    width: 100%;
  }

  .studio-tab-item {
    padding: 14px;
    border-radius: var(--radius-sm);
  }

  .tab-headline {
    font-size: 0.94rem;
  }

  .tab-body-desc {
    font-size: 0.82rem;
  }

  /* Pricing Cards */
  .pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 100%;
  }

  .price-card {
    padding: 22px 16px;
    border-radius: var(--radius-md);
    width: 100%;
  }

  .price-amount {
    font-size: 2.2rem;
  }

  .price-card .btn {
    width: 100%;
    padding: 14px;
    font-size: 0.96rem;
  }

  .price-features-list {
    gap: 8px;
    margin-bottom: 20px;
  }

  .price-feature-item {
    font-size: 0.82rem;
  }

  .payment-assurance-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    margin-top: 20px;
    padding-top: 18px;
    font-size: 0.82rem;
  }

  .store-buttons-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }

  .store-btn {
    padding: 12px 14px;
  }

  /* Footer */
  .site-footer {
    padding: 36px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 30px;
  }

  .footer-logos-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .payment-system-icons {
    flex-wrap: wrap;
    gap: 6px;
  }

  .footer-requisites {
    font-size: 0.72rem;
    line-height: 1.5;
  }

  /* Checkout Modal — Mobile Bottom Sheet Experience */
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-card {
    width: 100%;
    max-width: 100%;
    border-radius: 22px 22px 0 0;
    padding: 22px 16px 36px;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: none;
    margin: 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.9);
  }

  .modal-close-btn {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    font-size: 1.1rem;
  }

  #checkoutModalTitle {
    font-size: 1.25rem;
    padding-right: 42px;
  }

  /* iOS Auto-Zoom Prevention */
  .form-input {
    font-size: 16px !important;
    padding: 12px 14px;
  }

  .payment-method-btn {
    padding: 10px 8px;
  }

  .payment-method-btn .pm-title {
    font-size: 0.84rem;
  }

  .payment-method-btn .pm-subtitle {
    font-size: 0.68rem;
  }

  .checkout-trust-badge {
    padding: 10px 12px;
    font-size: 0.72rem;
    gap: 6px;
  }

  .trust-badge-item {
    gap: 6px;
  }

  .checkout-method-hint {
    padding: 10px 12px;
    gap: 8px;
  }

  .method-hint-text {
    font-size: 0.76rem;
  }

  .pay-checkout-card {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
  h1, .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-showcase-deck {
    grid-template-columns: 1fr;
  }

  .hero-showcase-img-box {
    height: 190px;
  }

  .hero-pillars-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .payment-method-btn .pm-title {
    font-size: 0.78rem;
  }
}
