:root {
  --bg-color: #000000;
  --bg-subtle: #08080A;
  --bg-card: rgba(22, 22, 26, 0.72);
  --bg-card-hover: rgba(32, 32, 38, 0.88);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 107, 0, 0.45);
  --primary: #FF6B00;
  --primary-glow: rgba(255, 107, 0, 0.55);
  --apple-silver: #F5F5F7;
  --apple-blue: #2997FF;
  --apple-purple: #AF52DE;
  --accent-gold: #FFD60A;
  --accent-green: #30D158;
  --text-main: #F5F5F7;
  --text-muted: #8E8E93;
  --text-subtle: #636366;
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: pan-y;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(175, 82, 222, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(255, 107, 0, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 15% 70%, rgba(41, 151, 255, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
}

a {
  color: var(--apple-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #70B8FF;
}

/* ── FULLSCREEN BACKGROUND REACTIVE COSMIC MESH CANVAS ─────────────────────── */
.bg-interactive-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  opacity: 0.92;
}

/* ── SCROLL PROGRESS GLOW BAR ──────────────────────────────────────────────── */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #FF6B00 0%, #FFD60A 50%, #AF52DE 100%);
  z-index: 10000;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.8), 0 0 20px rgba(255, 214, 10, 0.6);
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* ── DYNAMIC ISLAND FLOATING NAVBAR ────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 2000;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 1rem;
}

.nav-container {
  pointer-events: auto;
  width: 100%;
  max-width: 980px;
  background: rgba(16, 16, 20, 0.82);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 980px;
  padding: 0.42rem 0.75rem 0.42rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  box-shadow: 
    0 16px 45px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 30px rgba(255, 107, 0, 0.15);
  transition: all 0.3s var(--ease-spring);
}

.nav-container:hover {
  border-color: rgba(255, 107, 0, 0.35);
  box-shadow: 
    0 20px 55px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(255, 107, 0, 0.25);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.45);
  transition: transform 0.25s var(--ease-spring);
}

.nav-brand:hover .nav-logo {
  transform: rotate(6deg) scale(1.08);
}

.nav-brand-text {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #FFFFFF;
}

.nav-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 107, 0, 0.14);
  border: 1px solid rgba(255, 107, 0, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 980px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Center Navigation Pills */
.nav-pill-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px;
  border-radius: 980px;
}

.nav-pill-item {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: 980px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-pill-item:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.nav-pill-item.is-active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.nav-pill-halloween {
  color: #FFA500;
  background: rgba(255, 90, 0, 0.12);
  border: 1px solid rgba(255, 90, 0, 0.3);
}

.nav-pill-halloween:hover {
  background: rgba(255, 90, 0, 0.25);
  color: #FFB800;
  border-color: #FF5A00;
}

/* Right Action Buttons */
.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.nav-action-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  height: 34px;
  padding: 0 0.65rem;
  border-radius: 980px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-action-btn:hover {
  background: rgba(255, 107, 0, 0.2);
  border-color: var(--primary);
  transform: scale(1.05);
}

.nav-sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.nav-sound-bars span {
  width: 2px;
  background: var(--primary);
  border-radius: 2px;
  height: 3px;
  transition: height 0.2s ease;
}

.nav-action-btn:hover .nav-sound-bars span:nth-child(1) { height: 8px; }
.nav-action-btn:hover .nav-sound-bars span:nth-child(2) { height: 11px; }
.nav-action-btn:hover .nav-sound-bars span:nth-child(3) { height: 6px; }

.sound-clicked {
  transform: scale(0.94) !important;
  box-shadow: 0 0 25px var(--accent-gold) !important;
}
.sound-clicked .nav-sound-bars span:nth-child(1) { height: 10px !important; }
.sound-clicked .nav-sound-bars span:nth-child(2) { height: 14px !important; }
.sound-clicked .nav-sound-bars span:nth-child(3) { height: 8px !important; }

.nav-btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  color: #000000;
  height: 34px;
  padding: 0 0.95rem;
  border-radius: 980px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s var(--ease-spring);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.25);
}

.nav-btn-appstore:hover {
  background: #F2F2F7;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.nav-btn-appstore svg {
  width: 14px;
  height: 14px;
  fill: #000000;
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
  width: 34px;
  height: 34px;
  color: #FFFFFF;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Fullscreen Sheet Menu */
.mobile-menu-sheet {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 6, 0.94);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem;
  padding-top: max(1.5rem, calc(env(safe-area-inset-top) + 0.5rem));
  padding-bottom: max(2rem, calc(env(safe-area-inset-bottom) + 1rem));
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: all 0.35s var(--ease-spring);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.mobile-menu-sheet.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  flex-shrink: 0;
}

.mobile-sheet-close {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.mobile-sheet-close:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.2);
}

.mobile-sheet-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  font-weight: 700;
  flex: 1;
}

.mobile-sheet-links a {
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.mobile-sheet-links a:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-sheet-links a span {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ── CONTAINER ──────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
  flex: 1;
  width: 100%;
}

/* ── HERO SECTION ───────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 6.5rem 0.5rem 4rem;
  position: relative;
}

/* Halloween Special Top Announcement */
.halloween-announcement-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(90deg, rgba(255, 90, 0, 0.2) 0%, rgba(123, 31, 162, 0.3) 100%);
  border: 1px solid rgba(255, 90, 0, 0.5);
  border-radius: 980px;
  padding: 0.45rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(255, 90, 0, 0.3);
  transition: all 0.25s var(--ease-spring);
}

.halloween-announcement-banner span:first-child {
  color: #FFA500;
  font-weight: 900;
  letter-spacing: 1px;
}

.halloween-announcement-banner:hover {
  transform: scale(1.04);
  border-color: #FF5A00;
  box-shadow: 0 6px 30px rgba(255, 90, 0, 0.5);
  color: #FFFFFF;
}

/* Shimmering ADA Ribbon */
.ada-ribbon {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.35rem;
  background: linear-gradient(90deg, rgba(255, 107, 0, 0.12), rgba(175, 82, 222, 0.12), rgba(41, 151, 255, 0.12), rgba(255, 107, 0, 0.12));
  background-size: 300% 100%;
  animation: rainbowSheen 6s ease infinite;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 2rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

@keyframes rainbowSheen {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ada-ribbon svg {
  width: 16px;
  height: 16px;
  fill: #FFFFFF;
}

.hero h1 {
  font-size: clamp(2.3rem, 6.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.8px;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 25%, #E5E5EA 70%, #8E8E93 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #FF6B00 0%, #FFB800 45%, #FF3B30 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  font-size: clamp(1.05rem, 2.5vw, 1.32rem);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.2px;
}

/* Dual CTA Buttons */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.btn-appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 2.2rem;
  background: #FFFFFF;
  color: #000000;
  border-radius: 980px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

.btn-appstore:hover {
  transform: scale(1.04);
  background: #F2F2F7;
  color: #000000;
  box-shadow: 0 14px 45px rgba(255, 255, 255, 0.35);
}

.btn-appstore:active {
  transform: scale(0.97);
}

.btn-appstore svg {
  width: 26px;
  height: 26px;
  fill: #000000;
}

.btn-appstore-sub {
  font-size: 0.7rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.65);
}

.btn-appstore-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.btn-secondary-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: 980px;
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(14px);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary-demo:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.02);
}

.btn-secondary-demo:active {
  transform: scale(0.97);
}

.hardware-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.hardware-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #AEAEB2;
}

.hardware-badge-pill strong {
  color: #FFFFFF;
}

/* ── CINEMATIC APPLE KEYNOTE INTRO ─────────────────────────────────────────── */
.keynote-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.85s;
  pointer-events: auto;
}

.keynote-intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  pointer-events: none;
}

.intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
  width: 100%;
}

.intro-eyebrow {
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(14px);
  animation: introEyebrowIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.intro-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.8rem;
}

.intro-brand-name {
  font-size: clamp(3.2rem, 13vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin-bottom: 0.6rem;
  background: linear-gradient(110deg, #55555c 0%, #FFFFFF 22%, #E5E5EA 44%, #FFD60A 54%, #FFFFFF 68%, #55555c 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: introTitaniumSweep 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  filter: drop-shadow(0 0 50px rgba(255, 214, 10, 0.4));
}

.intro-presenta {
  font-size: clamp(1rem, 3.2vw, 1.7rem);
  font-weight: 800;
  color: #FF9F0A;
  letter-spacing: 0.25em;
  opacity: 0;
  transform: scale(0.9);
  animation: introPresentaIn 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
  text-shadow: 0 0 25px rgba(255, 107, 0, 0.8);
}

.intro-reveal-card {
  opacity: 0;
  transform: translateY(22px) scale(0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: introRevealIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.6s forwards;
  position: relative;
}

.intro-shockwave-ring {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.1);
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 3px solid rgba(255, 159, 10, 0.85);
  box-shadow: 0 0 50px rgba(255, 107, 0, 0.8), inset 0 0 40px rgba(255, 214, 10, 0.4);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.intro-shockwave-ring.is-blasting {
  animation: shockwaveExplode 1.2s cubic-bezier(0.1, 0.8, 0.2, 1) forwards;
}

@keyframes shockwaveExplode {
  0% { transform: translate(-50%, -50%) scale(0.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2.6); opacity: 0; border-width: 1px; }
}

.intro-logo-glow-wrapper {
  position: relative;
  width: min(440px, 86vw);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-official-logo {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 15px 35px rgba(255, 107, 0, 0.65)) drop-shadow(0 0 50px rgba(255, 214, 10, 0.45));
  animation: logoFloatGlow 3s infinite alternate ease-in-out;
}

.intro-logo-ambient-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
  height: 140%;
  background: radial-gradient(ellipse at center, rgba(255, 107, 0, 0.65) 0%, rgba(175, 82, 222, 0.35) 45%, transparent 75%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  animation: pulseAura 2s infinite alternate ease-in-out;
}

@keyframes logoFloatGlow {
  0% { transform: translateY(0) scale(1); filter: drop-shadow(0 12px 30px rgba(255, 107, 0, 0.6)) drop-shadow(0 0 35px rgba(255, 214, 10, 0.35)); }
  100% { transform: translateY(-6px) scale(1.02); filter: drop-shadow(0 20px 45px rgba(255, 107, 0, 0.85)) drop-shadow(0 0 60px rgba(255, 214, 10, 0.6)); }
}

.intro-official-tagline {
  font-size: clamp(0.95rem, 2.2vw, 1.2rem);
  color: #E5E5EA;
  margin-top: 1rem;
  letter-spacing: -0.2px;
  font-weight: 500;
  max-width: 480px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.intro-ada-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.2rem;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.intro-ada-badge svg {
  width: 14px;
  height: 14px;
  fill: #FFFFFF;
}

.intro-controls {
  position: absolute;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 10;
}

.intro-skip-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  padding: 0.65rem 1.35rem;
  border-radius: 980px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.25s var(--ease-spring);
}

.intro-skip-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.45);
  transform: scale(1.04);
}

@keyframes introEyebrowIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes introTitaniumSweep {
  0% {
    background-position: 100% 0%;
    opacity: 0;
    transform: scale(0.94);
  }
  25% {
    opacity: 1;
  }
  100% {
    background-position: 0% 0%;
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes introPresentaIn {
  to {
    opacity: 1;
    letter-spacing: 0.8em;
    transform: scale(1);
  }
}

@keyframes introRevealIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulseAura {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 1; }
}

/* ── KEYNOTE STAGE SECTION (REPLACING PHONE MOCKUP) ────────────────────────── */
.keynote-stage-section {
  position: relative;
  margin: 2.5rem 0 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.keynote-ambient-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 92vw);
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(255, 107, 0, 0.3) 0%, rgba(175, 82, 222, 0.16) 45%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
}

.keynote-stage-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Stage Mode Selector Switch */
.spatial-mode-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px;
  border-radius: 980px;
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  margin-bottom: 2.2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  gap: 5px;
}

.spatial-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.55rem 1.3rem;
  border-radius: 980px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.spatial-tab-btn:hover {
  color: #FFFFFF;
}

.spatial-tab-btn.is-active {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 4px 18px rgba(255, 255, 255, 0.35);
}

/* Floating Dynamic Island Spatial Console */
.spatial-island-console {
  position: relative;
  background: #000000;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 46px;
  padding: 1.25rem 2.2rem;
  width: min(650px, 94vw);
  min-height: 115px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 85px rgba(0, 0, 0, 0.95),
    0 0 45px rgba(255, 107, 0, 0.25);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  transition: all 0.45s var(--ease-spring);
  cursor: pointer;
  margin-bottom: 3.8rem;
}

.spatial-island-console:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 107, 0, 0.45);
  box-shadow: 
    0 0 0 1px rgba(255, 107, 0, 0.25),
    0 35px 95px rgba(0, 0, 0, 0.95),
    0 0 60px rgba(255, 107, 0, 0.45);
}

/* Island State Layouts */
.island-state-pane {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.island-state-pane.is-active {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

/* Left Group */
.island-pane-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.island-bell-bubble {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B00 0%, #FF9F0A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 25px rgba(255, 107, 0, 0.65);
  position: relative;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-spring);
}

.island-bell-bubble:hover {
  transform: scale(1.08);
}

.island-bell-wave {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 107, 0, 0.6);
  animation: radarWave 2s infinite ease-out;
}

.island-meta-title {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.15rem;
}

.island-meta-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.island-meta-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Right Group */
.island-pane-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.island-countdown-badge {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(255, 214, 10, 0.45);
}

.island-action-sound-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 0.55rem 1.15rem;
  border-radius: 980px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.island-action-sound-btn:hover {
  background: #FFFFFF;
  color: #000000;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Equalizer Bars in Island */
.island-equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.island-equalizer span {
  width: 3.5px;
  background: #FF9F0A;
  border-radius: 3px;
  animation: eqBar 1s infinite alternate ease-in-out;
}

.island-equalizer span:nth-child(1) { height: 30%; animation-delay: 0.1s; }
.island-equalizer span:nth-child(2) { height: 75%; animation-delay: 0.3s; }
.island-equalizer span:nth-child(3) { height: 100%; animation-delay: 0.05s; }
.island-equalizer span:nth-child(4) { height: 50%; animation-delay: 0.25s; }

@keyframes eqBar {
  0% { height: 20%; }
  100% { height: 100%; }
}

@keyframes radarWave {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* 3-Column Pedestal Bento */
.keynote-pedestals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.pedestal-card {
  background: rgba(22, 22, 26, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 2.2rem 1.8rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.35s var(--ease-spring);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.pedestal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pedestal-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 107, 0, 0.35);
  background: rgba(30, 30, 36, 0.85);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 107, 0, 0.15);
}

.pedestal-card:hover::before {
  opacity: 1;
}

.pedestal-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 1.3rem;
}

.pedestal-card h4 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.pedestal-card-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
  display: block;
}

.pedestal-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── ANIMATED ORBITING BORDER BEAM ─────────────────────────────────────────── */
@property --beam-deg {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes beamRotate {
  to { --beam-deg: 360deg; }
}

.spatial-island-console::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 48px;
  padding: 2px;
  background: conic-gradient(from var(--beam-deg), transparent 15%, #FF6B00 35%, #FFD60A 50%, #AF52DE 65%, transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: beamRotate 5s linear infinite;
  opacity: 0.85;
}

/* Fullscreen Horizontal Kinetic Track */
.fullscreen-kinetic-track {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  overflow: hidden;
  margin-top: 4.5rem;
  padding: 1.25rem 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.02) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  position: relative;
}

.kinetic-text-flow {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  font-size: clamp(1.2rem, 3.2vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.24);
  animation: kineticFlow 28s linear infinite;
}

.kinetic-dot {
  color: var(--primary);
  font-size: 1.4rem;
  text-shadow: 0 0 12px var(--primary);
}

@keyframes kineticFlow {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

/* ── DEDICATED HALLOWEEN SHOWCASE SECTION (MOVED DOWN) ─────────────────────── */
.halloween-spotlight-section {
  margin: 5.5rem 0;
  position: relative;
}

.halloween-spotlight-card {
  position: relative;
  background: radial-gradient(circle at 85% 20%, rgba(138, 35, 182, 0.28) 0%, rgba(22, 10, 32, 0.9) 50%, #08030D 100%);
  border: 1px solid rgba(255, 90, 0, 0.4);
  border-radius: 36px;
  padding: 3.2rem 3rem;
  overflow: hidden;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.95),
    0 0 50px rgba(255, 90, 0, 0.2);
  transition: all 0.4s var(--ease-spring);
}

.halloween-spotlight-card:hover {
  border-color: rgba(255, 90, 0, 0.7);
  box-shadow: 
    0 30px 100px rgba(0, 0, 0, 0.98),
    0 0 70px rgba(255, 90, 0, 0.35);
  transform: translateY(-4px);
}

.halloween-ambient-glow {
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 90, 0, 0.28) 0%, rgba(138, 35, 182, 0.2) 50%, transparent 70%);
  filter: blur(85px);
  pointer-events: none;
  z-index: 0;
}

.halloween-card-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.halloween-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 90, 0, 0.16);
  border: 1px solid rgba(255, 90, 0, 0.45);
  color: #FFA500;
  padding: 0.42rem 1.15rem;
  border-radius: 980px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.halloween-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF5A00;
  box-shadow: 0 0 12px #FF5A00;
  animation: pulseDot 1.4s infinite alternate ease-in-out;
}

@keyframes pulseDot {
  0% { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

.halloween-headline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1px;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.halloween-glow-text {
  background: linear-gradient(135deg, #FF5A00 0%, #FFB800 45%, #E50914 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 25px rgba(255, 90, 0, 0.4));
}

.halloween-subtext {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.8rem;
  max-width: 520px;
}

.halloween-meta-row {
  display: flex;
  gap: 2.2rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.halloween-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-subtle);
  text-transform: uppercase;
}

.meta-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
}

.halloween-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-halloween-enter {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1.85rem;
  background: linear-gradient(135deg, #FF5A00 0%, #E50914 100%);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1rem;
  border-radius: 980px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(255, 90, 0, 0.5);
  transition: all 0.3s var(--ease-spring);
}

.btn-halloween-enter:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 45px rgba(255, 90, 0, 0.7);
  color: #FFFFFF;
}

.btn-arrow-icon {
  font-size: 1.1rem;
  transition: transform 0.25s ease;
}

.btn-halloween-enter:hover .btn-arrow-icon {
  transform: translateX(4px);
}

.btn-halloween-sound {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 0.95rem 1.4rem;
  border-radius: 980px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-halloween-sound:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.02);
}

/* Right Banner Preview */
.halloween-preview-side {
  position: relative;
}

.halloween-banner-frame {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 90, 0, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 90, 0, 0.3);
  transition: transform 0.35s var(--ease-spring);
}

.halloween-banner-frame:hover {
  transform: scale(1.02) rotate(1deg);
  border-color: #FF5A00;
}

.halloween-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.halloween-banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 100%);
  display: flex;
  flex-direction: column;
}

.banner-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #FFA500;
  margin-bottom: 0.2rem;
}

.banner-sub {
  font-size: 0.86rem;
  color: #E5E5EA;
}

/* ── SCROLL-DRIVEN REVEAL ANIMATIONS ───────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px) scale(0.97);
  filter: blur(8px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), 
              filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Stagger delays for children */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.55s; }

/* Interactive Specular Spotlight Torchlight on Cards */
.bento-card, .pedestal-card, .trophy-card, .step-card, .halloween-spotlight-card {
  position: relative;
  overflow: hidden;
}

.bento-card::after, .pedestal-card::after, .trophy-card::after, .step-card::after, .halloween-spotlight-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle 380px at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(255, 107, 0, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.bento-card:hover::after, .pedestal-card:hover::after, .trophy-card:hover::after, .step-card:hover::after, .halloween-spotlight-card:hover::after {
  opacity: 1;
}

/* ── BENTO GRID SECTION ─────────────────────────────────────────────────────── */
.apple-tech-section {
  margin: 4.5rem 0 3rem;
}

.section-eyebrow {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 3.5rem;
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  line-height: 1.45;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.bento-card {
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 107, 0, 0.09), transparent 40%), var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.28);
}

.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-12 { grid-column: span 12; }

.bento-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.bento-card h3 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.6px;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: #FFFFFF;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.bento-icon-large {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  display: inline-block;
}

/* Theme Switcher Segmented Control Inside Card */
.theme-selector-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem;
  border-radius: 100px;
  margin: 1.5rem 0 1.25rem;
  flex-wrap: wrap;
}

.theme-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-pill.is-active {
  background: #FFFFFF;
  color: #000000;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.25);
}

.theme-preview-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  margin-top: 1rem;
}

#themePreviewIcon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s var(--ease-spring);
}

/* ── TROPHIES SHOWCASE (HALL OF FAME) ───────────────────────────────────────── */
.trophies-section {
  margin: 5rem 0;
}

.trophies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.trophy-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.trophy-card:hover {
  border-color: rgba(255, 214, 10, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 214, 10, 0.15);
}

.trophy-image-wrapper {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
  background: #111115;
}

.trophy-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-spring);
}

.trophy-card:hover .trophy-image-wrapper img {
  transform: scale(1.1);
}

.trophy-card h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
}

.trophy-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

/* ── STEPS SECTION ──────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 3rem 0;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2.25rem;
  text-align: left;
  transition: transform 0.3s var(--ease-spring);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.step-number {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.step-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #FFFFFF;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ── BOTTOM CTA BANNER ──────────────────────────────────────────────────────── */
.bottom-cta-card {
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 0, 0.18) 0%, rgba(15, 15, 20, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  padding: 4.5rem 2rem;
  text-align: center;
  margin: 5rem 0 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.bottom-cta-card h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.bottom-cta-card p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

/* ── STICKY MOBILE APP STORE BAR ────────────────────────────────────────────── */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  z-index: 999;
  width: min(390px, 92vw);
  background: rgba(18, 18, 22, 0.88);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 980px;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 107, 0, 0.25);
  transition: transform 0.35s var(--ease-spring);
  align-items: center;
  justify-content: space-between;
}

.mobile-sticky-bar.is-visible {
  transform: translateX(-50%) translateY(0);
}

.sticky-bar-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sticky-bar-info img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.sticky-bar-info strong {
  font-size: 0.95rem;
  font-weight: 800;
  color: #FFFFFF;
  display: block;
  line-height: 1.1;
}

.sticky-bar-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.sticky-bar-btn {
  background: #FFFFFF;
  color: #000000;
  padding: 0.55rem 1.15rem;
  border-radius: 980px;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ── LEGAL & SUPPORT PAGES ─────────────────────────────────────────────────── */
.legal-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 3.5rem;
  margin: 2rem 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.legal-card h1 {
  font-size: clamp(2rem, 5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.legal-card .updated-date {
  color: var(--text-subtle);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-card h2 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 2.5rem 0 0.85rem;
  color: var(--apple-silver);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.legal-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: #FFFFFF;
}

.legal-card p, .legal-card li {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.legal-card ul, .legal-card ol {
  padding-left: 1.6rem;
  margin-bottom: 1.75rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
  font-size: 0.95rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #FFFFFF;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--apple-blue);
  box-shadow: 0 0 15px rgba(41, 151, 255, 0.3);
}

.btn-primary {
  background: var(--apple-blue);
  color: #FFFFFF;
  border: none;
  padding: 0.95rem 2rem;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(41, 151, 255, 0.35);
}

.btn-primary:hover {
  background: #147CE5;
  transform: scale(1.02);
}

.btn-danger {
  background: #FF3B30;
  color: #FFFFFF;
  border: none;
  padding: 0.95rem 2rem;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 59, 48, 0.4);
}

.btn-danger:hover {
  background: #D7261C;
  transform: scale(1.02);
}

.alert-box {
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.alert-warning {
  background: rgba(255, 159, 10, 0.12);
  border: 1px solid rgba(255, 159, 10, 0.35);
  color: #FF9F0A;
}

.alert-info {
  background: rgba(41, 151, 255, 0.12);
  border: 1px solid rgba(41, 151, 255, 0.35);
  color: #2997FF;
}

/* ── FOOTER ─────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #000000;
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: -0.3px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* ── RESPONSIVE MEDIA QUERIES (OPTIMIZED FOR ALL SMARTPHONES) ─────────────── */
@media (max-width: 992px) {
  .bento-card.col-8, .bento-card.col-4, .bento-card.col-6 {
    grid-column: span 12;
  }
  .trophies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .keynote-pedestals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .halloween-card-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Container smartphone margins */
  .container {
    padding: 1.5rem 1rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .minigames-showcase-section {
    margin: 3.2rem 0 2rem;
  }

  /* iOS Signature Tactile Active Feedback */
  button:active,
  .btn-appstore:active,
  .btn-secondary-demo:active,
  .btn-halloween-enter:active,
  .btn-halloween-sound:active,
  .spatial-tab-btn:active,
  .theme-pill:active,
  .sticky-bar-btn:active,
  .trophy-card:active {
    transform: scale(0.96) !important;
    filter: brightness(1.15);
    transition: transform 0.12s var(--ease-spring);
  }

  /* Dynamic Island Floating Navbar Mobile Ergonomics */
  .navbar {
    top: max(10px, env(safe-area-inset-top));
    padding: 0 0.75rem;
  }

  .nav-container {
    padding: 0.38rem 0.65rem 0.38rem 0.95rem;
    gap: 0.5rem;
    border-radius: 980px;
    height: 48px;
  }

  .nav-pill-group {
    display: none;
  }

  .nav-tag {
    display: none; /* Hide 'Only on iPhone' tag in mobile header to prevent title squishing */
  }

  .nav-brand-text {
    font-size: 1.05rem;
  }

  .nav-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
  }

  .nav-actions-group {
    gap: 0.35rem;
  }

  .nav-action-btn.js-replay-intro {
    display: none; /* Accessible in hero CTA and mobile sheet menu */
  }

  .nav-action-btn {
    height: 34px;
    padding: 0 0.55rem;
    min-width: 36px;
    justify-content: center;
  }

  .nav-btn-appstore {
    height: 34px;
    padding: 0 0.75rem;
    font-size: 0.78rem;
    gap: 0.3rem;
  }

  .mobile-toggle {
    display: flex;
    width: 34px;
    height: 34px;
    min-width: 34px;
  }

  /* Hero Section Smartphone Layout */
  .hero {
    padding: max(5.2rem, calc(env(safe-area-inset-top) + 4.5rem)) 0.25rem 2.8rem;
  }

  .ada-ribbon {
    font-size: 0.74rem;
    padding: 0.38rem 0.95rem;
    margin-bottom: 1.4rem;
    gap: 0.45rem;
  }

  .ada-ribbon svg {
    width: 14px;
    height: 14px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.8vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: -1.2px;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.45;
    margin-bottom: 1.8rem;
    padding: 0 0.4rem;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group .btn-appstore {
    width: 100%;
    max-width: 350px;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    min-height: 48px;
  }

  .hero-cta-group .btn-secondary-demo {
    width: 100%;
    max-width: 350px;
    justify-content: center;
    padding: 0.82rem 1.2rem;
    font-size: 0.92rem;
    min-height: 46px;
  }

  .hardware-badges-row {
    gap: 0.5rem;
    margin-top: 1.2rem;
  }

  .hardware-badge-pill {
    font-size: 0.75rem;
    padding: 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 980px;
  }

  /* Keynote Spatial Stage Smartphone Optimization */
  .keynote-stage-section {
    margin: 1.5rem 0 3.5rem;
    width: 100%;
  }

  .spatial-mode-switcher {
    width: 100%;
    max-width: 350px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 3px;
    gap: 2px;
    margin-bottom: 1.5rem;
  }

  .spatial-tab-btn {
    padding: 0.52rem 0.2rem;
    font-size: 0.74rem;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    border-radius: 980px;
    gap: 0.25rem;
  }

  .spatial-island-console {
    padding: 1.2rem 1.05rem;
    border-radius: 28px;
    width: 100%;
    min-height: auto;
    margin-bottom: 2.2rem;
  }

  .island-state-pane {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }

  .island-state-pane.is-active {
    display: flex;
  }

  .island-pane-left {
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem;
  }

  .island-pane-left > div:last-child {
    min-width: 0;
    flex: 1;
  }

  .island-bell-bubble {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 20px;
    flex-shrink: 0;
  }

  .island-meta-title {
    font-size: 0.62rem;
    letter-spacing: 0.8px;
  }

  .island-meta-name {
    font-size: 1.02rem;
    word-break: break-word;
  }

  .island-meta-sub {
    font-size: 0.74rem;
    word-break: break-word;
    line-height: 1.35;
  }

  .island-pane-right {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .island-countdown-badge {
    font-size: 1.85rem;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }

  .island-action-sound-btn {
    padding: 0.48rem 0.95rem;
    font-size: 0.78rem;
    min-height: 38px;
  }

  .fullscreen-kinetic-track {
    margin-top: 2.5rem;
    padding: 0.85rem 0;
  }

  .kinetic-text-flow {
    font-size: 1.1rem;
    gap: 1.5rem;
  }

  /* Hardware Pedestals */
  .keynote-pedestals-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .pedestal-card {
    padding: 1.6rem 1.3rem;
    border-radius: 22px;
  }

  .pedestal-icon-box {
    width: 44px;
    height: 44px;
    font-size: 20px;
    margin-bottom: 1rem;
  }

  .pedestal-card h4 {
    font-size: 1.15rem;
  }

  /* Bento Grid Mobile Ergonomics */
  .apple-tech-section {
    margin: 3.5rem 0 2rem;
  }

  .section-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
  }

  .section-title {
    font-size: clamp(1.8rem, 6.8vw, 2.5rem);
    letter-spacing: -0.8px;
    line-height: 1.15;
  }

  .section-subtitle {
    font-size: 0.92rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }

  .bento-card {
    padding: 1.6rem 1.25rem;
    border-radius: 24px;
  }

  .bento-card h3 {
    font-size: 1.3rem;
    letter-spacing: -0.4px;
  }

  .bento-card p {
    font-size: 0.88rem;
  }

  .theme-selector-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    width: 100%;
  }

  .theme-pill {
    width: 100%;
    justify-content: center;
    padding: 0.55rem 0.5rem;
    font-size: 0.82rem;
    min-height: 42px;
  }

  .theme-preview-box {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    padding: 1.1rem;
  }

  .theme-preview-box img {
    margin: 0 auto;
  }

  /* Trophies Grid (2 Columns on Smartphones for Great Engagement) */
  .trophies-section {
    margin: 3.5rem 0;
  }

  .trophies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .trophy-card {
    padding: 1.1rem 0.85rem;
    border-radius: 20px;
    text-align: center;
  }

  .trophy-image-wrapper {
    width: 68px;
    height: 68px;
    margin: 0 auto 0.75rem;
  }

  .trophy-card h4 {
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
  }

  .trophy-card p {
    font-size: 0.76rem;
    line-height: 1.32;
  }

  /* Steps Grid */
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .step-card {
    padding: 1.6rem 1.25rem;
    border-radius: 22px;
  }

  .step-number {
    font-size: 0.72rem;
    margin-bottom: 0.45rem;
  }

  .step-card h3 {
    font-size: 1.25rem;
  }

  .step-card p {
    font-size: 0.88rem;
  }

  /* Halloween Showcase Card Mobile */
  .halloween-spotlight-section {
    margin: 3.5rem 0 2rem;
  }

  .halloween-spotlight-card {
    padding: 1.8rem 1.15rem;
    border-radius: 26px;
  }

  .halloween-headline {
    font-size: clamp(1.75rem, 6.8vw, 2.3rem);
    line-height: 1.15;
  }

  .halloween-subtext {
    font-size: 0.9rem;
    margin-bottom: 1.4rem;
    line-height: 1.45;
  }

  .halloween-meta-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    margin-bottom: 1.6rem;
    width: 100%;
  }

  .meta-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 0.65rem 0.9rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .meta-label {
    font-size: 0.68rem;
    color: #FF5A00;
    font-weight: 800;
    letter-spacing: 0.8px;
  }

  .meta-val {
    font-size: 0.92rem;
    color: #FFFFFF;
  }

  .halloween-cta-wrapper {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .btn-halloween-enter {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.92rem;
    padding: 0.88rem 1.2rem;
    min-height: 48px;
  }

  .btn-halloween-sound {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 0.8rem 1rem;
    min-height: 44px;
  }

  .halloween-banner-frame {
    border-radius: 18px;
    margin-top: 1rem;
  }

  /* Bottom CTA Banner */
  .bottom-cta-card {
    padding: 2.6rem 1.25rem;
    border-radius: 26px;
    margin: 3rem 0;
  }

  .bottom-cta-card h2 {
    font-size: clamp(1.8rem, 6.8vw, 2.4rem);
    line-height: 1.15;
  }

  .bottom-cta-card p {
    font-size: 0.92rem;
    margin-bottom: 1.8rem;
  }

  .bottom-cta-card .btn-appstore {
    width: 100%;
    max-width: 320px;
    justify-content: center;
    min-height: 48px;
  }

  /* Footer Mobile Ergonomics */
  .footer {
    padding: 2.8rem 1rem max(5.8rem, calc(env(safe-area-inset-bottom) + 4.8rem));
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
  }

  .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 1rem;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1.8rem;
    font-size: 0.78rem;
  }

  /* Mobile Sticky Bottom Download Bar */
  .mobile-sticky-bar {
    display: flex;
    position: fixed;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    right: 10px;
    z-index: 1500;
    background: rgba(18, 18, 22, 0.88);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 980px;
    padding: 0.5rem 0.9rem;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.85);
    transform: translateY(120%);
    transition: transform 0.3s var(--ease-spring);
  }

  .mobile-sticky-bar.is-visible {
    transform: translateY(0);
  }

  /* Splash Screen Keynote Intro on Mobile */
  .keynote-intro {
    height: 100dvh;
    min-height: -webkit-fill-available;
  }

  .intro-content {
    padding: 1.5rem 1rem;
    max-width: 100%;
  }

  .intro-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    margin-bottom: 0.8rem;
  }

  .intro-brand-name {
    font-size: clamp(2.8rem, 14vw, 4.8rem);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
  }

  .intro-presenta {
    font-size: clamp(0.95rem, 3.8vw, 1.35rem);
    letter-spacing: 0.25em;
  }

  .intro-logo-glow-wrapper {
    width: min(320px, 82vw);
    margin-bottom: 1.2rem;
  }

  .intro-official-logo {
    max-height: 110px;
  }

  .intro-official-tagline {
    font-size: 0.9rem;
    margin-top: 0.75rem;
    padding: 0 0.5rem;
  }

  .intro-ada-badge {
    padding: 0.38rem 0.95rem;
    font-size: 0.72rem;
  }

  .intro-controls {
    bottom: max(1.2rem, calc(env(safe-area-inset-bottom) + 0.6rem));
    right: 1rem;
  }

  .intro-skip-btn {
    padding: 0.52rem 0.95rem;
    font-size: 0.72rem;
    min-height: 40px;
  }
}

/* Landscape / Ultra-compact height smartphones */
@media (max-height: 520px) {
  .intro-brand-name {
    font-size: 2.2rem;
  }
  .intro-official-logo {
    max-height: 55px;
  }
  .intro-logo-glow-wrapper {
    margin-bottom: 0.4rem;
  }
  .intro-ada-badge {
    display: none;
  }
  .intro-controls {
    bottom: 0.6rem;
    right: 0.8rem;
  }
  .mobile-menu-sheet {
    padding-top: 1rem;
  }
  .mobile-sheet-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    font-size: 0.95rem;
  }
}

/* Very Small Mobile Screens (iPhone SE, Galaxy A series < 360px) */
@media (max-width: 360px) {
  .trophies-grid {
    grid-template-columns: 1fr;
  }
  .nav-brand-text {
    font-size: 0.95rem;
  }
  .nav-btn-appstore span {
    display: none; /* Icon only on tightest displays */
  }
  .spatial-tab-btn {
    font-size: 0.68rem;
    padding: 0.48rem 0.15rem;
  }
}
