/* ==========================================================================
   Easy Notch — Cinematic Product Reveal Website
   Apple-keynote scroll-driven notch morphing, aurora lighting & spotlight bento
   ========================================================================== */

:root {
  --bg: #050507;
  --bg-elevated: #0a0a0e;
  --island: #09090b;
  --card: rgba(18, 18, 23, 0.72);
  --card-solid: #121217;
  --field: #1b1b22;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --fg: #f7f7fa;
  --sub: #9e9ea9;
  --faint: #62626d;

  --accent: #7dd3fc;
  --accent-rgb: 125, 211, 252;
  --indigo-rgb: 129, 140, 248;
  --focus: #fdba74;
  --focus-rgb: 253, 186, 116;
  --rest: #86efac;
  --rest-rgb: 134, 239, 172;

  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max-w: 1180px;
  --nav-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a:hover {
  color: #e0f2fe;
}

code, pre {
  font-family: var(--font-mono);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   Top Scroll Progress Beam & Ambient Noise Grain
   ========================================================================== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  z-index: 200;
  background: linear-gradient(90deg, var(--accent), #a78bfa, var(--rest));
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.7);
  pointer-events: none;
}

.ambient-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 25%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 25%, #000 10%, transparent 80%);
}

/* ==========================================================================
   Cinematic Reveal Primitives
   ========================================================================== */
.reveal-mask {
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

.reveal-line {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition:
    transform 0.95s var(--ease-expo),
    opacity 0.75s var(--ease-expo);
  will-change: transform, opacity;
}

.is-visible .reveal-line,
.reveal-line.is-visible {
  transform: translateY(0%);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition:
    opacity 0.85s var(--ease-expo),
    transform 0.85s var(--ease-expo),
    filter 0.85s var(--ease-expo);
  will-change: opacity, transform, filter;
}

.reveal.reveal-zoom {
  transform: translateY(28px) scale(0.94);
}

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

.reveal[data-delay="1"], .reveal-line[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"], .reveal-line[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"], .reveal-line[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"], .reveal-line[data-delay="4"] { transition-delay: 320ms; }
.reveal[data-delay="5"], .reveal-line[data-delay="5"] { transition-delay: 400ms; }
.reveal[data-delay="6"], .reveal-line[data-delay="6"] { transition-delay: 480ms; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--nav-h);
  background: rgba(5, 5, 7, 0.7);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand:hover { color: var(--fg); }

.brand-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.version-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.1);
  color: var(--accent);
  border: 1px solid rgba(125, 211, 252, 0.25);
}

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

.nav-links a {
  color: var(--sub);
  font-size: 0.88rem;
  font-weight: 500;
}

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

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

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-solid);
  color: var(--sub);
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: #ffffff;
  color: #050507;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.16);
}

.btn-primary:hover {
  background: #f0f9ff;
  color: #050507;
  box-shadow: 0 12px 38px rgba(125, 211, 252, 0.34);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
  border-color: var(--border-strong);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(125, 211, 252, 0.5);
}

.btn-accent {
  background: var(--accent);
  color: #05131b;
  box-shadow: 0 8px 26px rgba(125, 211, 252, 0.28);
}

.btn-accent:hover {
  background: #bae6fd;
  color: #05131b;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.98rem;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 0.83rem;
}

/* ==========================================================================
   ACT I — Full-Viewport Keynote Hero Reveal
   ========================================================================== */
.hero-reveal {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0 64px;
  overflow: hidden;
  z-index: 1;
}

.aurora-field {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 75vh;
  pointer-events: none;
  z-index: 0;
  filter: blur(72px);
  opacity: 0.75;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.aurora-orb.one {
  width: 520px;
  height: 360px;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(125, 211, 252, 0.34), transparent 70%);
}

.aurora-orb.two {
  width: 420px;
  height: 320px;
  top: 40px;
  left: 22%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.22), transparent 70%);
  animation-delay: -4s;
}

.aurora-orb.three {
  width: 400px;
  height: 300px;
  top: 60px;
  right: 18%;
  background: radial-gradient(circle, rgba(134, 239, 172, 0.18), transparent 70%);
  animation-delay: -8s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, -22px) scale(1.08); }
}

/* Keynote Top Hardware Pill Drop-In */
.hero-pill-drop {
  position: relative;
  z-index: 2;
  margin-bottom: 42px;
  animation: pillDropIn 1.1s var(--ease-spring) both;
}

@keyframes pillDropIn {
  0% { opacity: 0; transform: translateY(-44px) scale(0.84); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-mini-notch {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 11px 22px;
  border-radius: 999px;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(125, 211, 252, 0.14),
    0 0 42px rgba(125, 211, 252, 0.18);
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s ease, border-color 0.3s ease;
}

.hero-mini-notch:hover {
  transform: scale(1.05);
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.85),
    0 0 56px rgba(125, 211, 252, 0.3);
}

.mini-notch-time {
  font-size: 0.92rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mini-notch-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #3f3f4a;
}

.mini-notch-temp {
  font-size: 0.88rem;
  color: var(--sub);
  font-weight: 500;
}

.mini-notch-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 15px;
}

.eq-bars span {
  width: 2.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: eqBounce 0.9s ease-in-out infinite;
}

.eq-bars span:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq-bars span:nth-child(2) { height: 14px; animation-delay: 0.18s; }
.eq-bars span:nth-child(3) { height: 8px; animation-delay: 0.34s; }
.eq-bars span:nth-child(4) { height: 12px; animation-delay: 0.5s; }

.eq-bars.paused span {
  animation-play-state: paused;
  height: 4px !important;
  opacity: 0.4;
}

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 15px; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-title {
  margin: 0 0 24px;
  font-size: clamp(3rem, 7.6vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.shimmer-text {
  background: linear-gradient(
    110deg,
    #ffffff 0%,
    #7dd3fc 32%,
    #86efac 54%,
    #fdba74 74%,
    #ffffff 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmer 7s linear infinite;
}

@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

.hero-sub {
  margin: 0 auto 38px;
  max-width: 640px;
  font-size: clamp(1.06rem, 1.9vw, 1.28rem);
  color: var(--sub);
  line-height: 1.6;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 42px;
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-cue-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.75); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================
   ACT II — Scroll-Driven Sticky Notch Reveal Showcase
   ========================================================================== */
.story-section {
  position: relative;
  z-index: 2;
  padding: 40px 0 120px;
}

.story-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.story-sticky {
  position: sticky;
  top: calc(var(--nav-h) + 34px);
}

.monitor-stage {
  position: relative;
  min-height: 460px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 20% 85%, rgba(var(--stage-rgb, 125, 211, 252), 0.22), transparent 52%),
    radial-gradient(circle at 82% 20%, rgba(129, 140, 248, 0.14), transparent 48%),
    linear-gradient(180deg, #13151e 0%, #090a0f 100%);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.75),
    0 0 80px rgba(var(--stage-rgb, 125, 211, 252), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 0 22px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  transition: box-shadow 0.6s ease;
}

/* Decorative desktop wallpaper horizon glow */
.monitor-stage::after {
  content: "";
  position: absolute;
  bottom: -90px;
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--stage-rgb, 125, 211, 252), 0.26), transparent 72%);
  filter: blur(36px);
  pointer-events: none;
  transition: background 0.6s ease;
}

/* The Live Morphing Notch */
.notch-shell {
  position: relative;
  z-index: 6;
  background: var(--island);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: none;
  border-radius: 0 0 22px 22px;
  width: 244px;
  height: 44px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.8);
  transition:
    width 0.56s var(--ease-spring),
    height 0.56s var(--ease-spring),
    border-radius 0.56s var(--ease-spring),
    box-shadow 0.56s ease,
    border-color 0.4s ease;
  overflow: hidden;
  user-select: none;
}

.notch-shell:not(.expanded) {
  cursor: pointer;
}

.notch-shell.expanded {
  width: min(560px, calc(100% - 4px));
  height: 304px;
  border-radius: 0 0 30px 30px;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 32px 84px rgba(0, 0, 0, 0.88),
    0 0 48px rgba(var(--stage-rgb, 125, 211, 252), 0.16);
}

.notch-closed {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.notch-shell.expanded .notch-closed {
  opacity: 0;
  pointer-events: none;
}

.notch-closed-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notch-temp {
  color: var(--sub);
  font-weight: 500;
}

.notch-open {
  position: absolute;
  inset: 0;
  padding: 12px 18px 18px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.28s ease 0.12s, transform 0.4s var(--ease-expo) 0.1s;
}

.notch-shell.expanded .notch-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.notch-handle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.notch-page-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sub);
}

.notch-handle-btn {
  width: 46px;
  height: 14px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.notch-handle-btn span {
  width: 38px;
  height: 4px;
  border-radius: 99px;
  background: #353540;
  transition: background 0.2s ease, width 0.2s ease;
}

.notch-handle-btn:hover span {
  background: var(--accent);
  width: 44px;
}

.notch-close-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--faint);
}

.notch-body-row {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 22px;
  gap: 12px;
  min-height: 0;
}

.notch-pages-viewport {
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.notch-page {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(34px) scale(0.97);
  filter: blur(4px);
  pointer-events: none;
  transition:
    transform 0.56s var(--ease-spring),
    opacity 0.44s var(--ease-expo),
    filter 0.44s ease;
  will-change: transform, opacity;
}

.notch-page.is-prev {
  opacity: 0;
  transform: translateY(-34px) scale(0.97);
  filter: blur(4px);
}

.notch-page.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  z-index: 2;
}

/* Auto-slide progress bar along bottom edge of expanded notch */
.notch-auto-bar {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notch-shell.expanded .notch-auto-bar {
  opacity: 1;
}

.notch-auto-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--rest));
  border-radius: 99px;
}

.notch-auto-fill.running {
  animation: autoSlideFill 3.6s linear forwards;
}

@keyframes autoSlideFill {
  from { width: 0%; }
  to { width: 100%; }
}

.notch-dots {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.notch-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border-radius: 99px;
  border: none;
  background: #34343f;
  cursor: pointer;
  transition: height 0.28s var(--ease-spring), background 0.2s ease;
}

.notch-dot.active {
  height: 20px;
  background: var(--accent);
}

/* Interactive Notch Page Widgets */
.n-clock-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  align-items: center;
}

.n-big-time {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.n-date { margin-top: 8px; color: var(--sub); font-size: 0.86rem; }
.n-city-badge { margin-top: 6px; font-size: 0.74rem; color: var(--accent); font-weight: 600; }

.n-cities { display: flex; flex-direction: column; gap: 6px; }

.n-city-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card-solid);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.n-city-btn:hover, .n-city-btn.active {
  border-color: var(--accent);
  background: rgba(125, 211, 252, 0.12);
}

.n-city-btn span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--sub);
  font-weight: 600;
}

.n-weather-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.n-weather-main { display: flex; align-items: baseline; gap: 10px; }
.n-weather-temp { font-size: 2.65rem; font-weight: 800; line-height: 1; }
.n-unit-btn {
  background: var(--field);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  cursor: pointer;
}
.n-weather-meta { text-align: right; font-size: 0.78rem; color: var(--sub); }

.n-weather-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.n-hour-card {
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 9px 4px;
  text-align: center;
  font-size: 0.74rem;
}

.n-hour-card .h-t { color: var(--sub); }
.n-hour-card .h-v { font-weight: 700; margin: 4px 0 2px; font-size: 0.86rem; }
.n-hour-card .h-r { color: var(--accent); font-size: 0.68rem; }

.n-media-wrap { display: flex; align-items: center; gap: 16px; }
.n-album-art {
  width: 102px;
  height: 102px;
  border-radius: 16px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #38bdf8 0%, #6366f1 52%, #ec4899 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
}
.n-media-info { flex: 1; min-width: 0; }
.n-track-title { font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.n-track-artist { font-size: 0.82rem; color: var(--sub); margin-bottom: 12px; }
.n-seek-bar { height: 5px; border-radius: 99px; background: var(--field); overflow: hidden; margin-bottom: 6px; }
.n-seek-fill { width: 46%; height: 100%; border-radius: 99px; background: var(--accent); transition: width 0.4s linear; }
.n-seek-times { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint); margin-bottom: 10px; }
.n-media-controls { display: flex; align-items: center; gap: 10px; }
.n-ctrl-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--card-solid); color: var(--fg);
  cursor: pointer; display: grid; place-items: center;
}
.n-ctrl-btn.primary { background: #fff; color: #050507; border-color: transparent; }

.n-focus-grid { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.n-focus-timer { font-size: 3rem; font-weight: 800; color: var(--focus); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.n-focus-sub { margin-top: 6px; font-size: 0.8rem; color: var(--sub); }
.n-focus-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.n-pill-group { display: flex; gap: 6px; }
.n-mini-pill {
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card-solid); color: var(--sub); font-size: 0.74rem; font-weight: 600; cursor: pointer;
}
.n-mini-pill.active { background: rgba(253, 186, 116, 0.16); border-color: var(--focus); color: var(--focus); }

.n-notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.n-note-card { background: var(--card-solid); border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-size: 0.8rem; }
.n-note-title { font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; }
.n-check-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--sub); cursor: pointer; }
.n-check-row input { accent-color: var(--accent); }
.n-check-row input:checked + span { text-decoration: line-through; color: var(--faint); }

.n-mixer-list { display: flex; flex-direction: column; gap: 11px; }
.n-mixer-row { display: grid; grid-template-columns: 96px 1fr 40px; align-items: center; gap: 12px; font-size: 0.82rem; }
.n-mixer-row input[type="range"] { width: 100%; accent-color: var(--rest); cursor: pointer; }
.n-mixer-val { font-family: var(--font-mono); font-size: 0.74rem; color: var(--sub); text-align: right; }

/* Monitor Dock Bar */
.monitor-dock {
  margin-top: auto;
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(15, 15, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.dock-pill {
  padding: 6px 11px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sub);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dock-pill:hover {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

.dock-pill.active {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Scroll Chapters on Right */
.story-chapters {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 12px;
}

.chapter-card {
  padding: 34px 30px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(16, 16, 21, 0.42);
  opacity: 0.38;
  transform: translateX(10px);
  cursor: pointer;
  transition:
    opacity 0.45s var(--ease-expo),
    transform 0.45s var(--ease-expo),
    border-color 0.35s ease,
    background 0.35s ease;
}

.chapter-card:hover {
  opacity: 0.75;
}

.chapter-card.is-active {
  opacity: 1;
  transform: translateX(0);
  background: rgba(20, 20, 27, 0.88);
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.chapter-card[data-accent="focus"] .chapter-num { color: var(--focus); }
.chapter-card[data-accent="rest"] .chapter-num { color: var(--rest); }

.chapter-card h3 {
  margin: 0 0 10px;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.chapter-card p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--sub);
  line-height: 1.6;
}

/* ==========================================================================
   ACT III — Cursor-Spotlight Asymmetric Bento Grid
   ========================================================================== */
.section {
  position: relative;
  z-index: 2;
  padding: 108px 0;
}

.section-border {
  border-top: 1px solid var(--border);
}

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

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-header h2 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
}

.section-header p {
  margin: 0;
  font-size: 1.06rem;
  color: var(--sub);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.spotlight-card {
  position: relative;
  border-radius: 24px;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  transition: transform 0.35s var(--ease-spring), border-color 0.25s ease;
}

/* Real-time cursor-tracking radial spotlight */
.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(125, 211, 252, 0.13),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

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

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

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent);
  border: 1px solid rgba(125, 211, 252, 0.2);
}

.bento-icon.focus {
  background: rgba(253, 186, 116, 0.12);
  color: var(--focus);
  border-color: rgba(253, 186, 116, 0.24);
}

.bento-icon.rest {
  background: rgba(134, 239, 172, 0.12);
  color: var(--rest);
  border-color: rgba(134, 239, 172, 0.24);
}

.spotlight-card h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.spotlight-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--sub);
  line-height: 1.58;
}

.bento-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--sub);
}

/* ==========================================================================
   ACT IV — Native Windows & Linux Split Reveal
   ========================================================================== */
.os-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.os-card {
  padding: 36px;
}

.os-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.os-head h3 {
  margin: 0;
  font-size: 1.55rem;
}

.os-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.os-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--fg);
}

.os-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.os-card.linux .os-list li::before {
  background: var(--rest);
}

/* ==========================================================================
   ACT V — Install Switcher & Closing Keynote Banner
   ========================================================================== */
.install-box {
  max-width: 880px;
  margin: 0 auto;
  border-radius: 26px;
  background: rgba(15, 15, 20, 0.85);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.install-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: #09090c;
  overflow-x: auto;
}

.install-tab {
  flex: 1;
  min-width: 150px;
  padding: 16px 18px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--sub);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.install-tab:hover { color: var(--fg); }
.install-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: rgba(125, 211, 252, 0.04);
}

.install-body { padding: 30px; }
.install-panel { display: none; }
.install-panel.active { display: block; animation: pageSnap 0.3s var(--ease-expo); }

.install-note { margin: 0 0 16px; color: var(--sub); font-size: 0.95rem; }
.install-steps {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--sub);
  font-size: 0.93rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.install-steps strong { color: var(--fg); }

.code-block {
  position: relative;
  border-radius: 14px;
  background: #050507;
  border: 1px solid var(--border);
  padding: 18px 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}

.code-block pre {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: #e4e4e7;
  padding-right: 76px;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--card-solid);
  color: var(--sub);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.copy-btn:hover { border-color: var(--accent); color: var(--fg); }
.copy-btn.copied { border-color: var(--rest); color: var(--rest); }

.distro-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin-bottom: 16px; }
.distro-table th, .distro-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
.distro-table th { color: var(--sub); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.distro-table code { background: #050507; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--accent); font-size: 0.82rem; }

.install-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--faint);
}

/* Closing Reveal Banner */
.closing-cta {
  position: relative;
  margin-top: 84px;
  padding: 64px 36px;
  border-radius: 30px;
  text-align: center;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(125, 211, 252, 0.16), transparent 70%),
    linear-gradient(180deg, rgba(18, 18, 24, 0.9), rgba(9, 9, 12, 0.95));
  overflow: hidden;
}

.closing-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.closing-cta p {
  margin: 0 auto 28px;
  max-width: 540px;
  color: var(--sub);
  font-size: 1.04rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 44px 0 38px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-meta { margin-top: 6px; font-size: 0.84rem; color: var(--faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 0.9rem; }
.footer-links a { color: var(--sub); }
.footer-links a:hover { color: var(--fg); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .story-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .story-sticky {
    position: relative;
    top: 0;
  }
  .chapter-card {
    opacity: 1;
    transform: none;
  }
  .span-7, .span-5, .span-4, .span-6 {
    grid-column: span 12;
  }
  .os-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #0a0a0e;
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 0; }
  .mobile-menu-btn { display: inline-flex; }
  .nav-download-btn { display: none; }
  .n-clock-grid, .n-notes-grid { grid-template-columns: 1fr; }
  .notch-shell.expanded { height: 356px; }
  .n-weather-strip { grid-template-columns: repeat(3, 1fr); }
  .monitor-dock { flex-wrap: wrap; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-line {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .aurora-orb, .eq-bars span, .shimmer-text, .scroll-cue-line {
    animation: none !important;
  }
}
