/* ==========================================================================
   HyperSkip Landing Page Styles — Notion Paper & Ink Theme
   Strictly aligned with DESIGN.md color tokens, type ramp, & radius scale.
   ========================================================================== */

:root {
  /* Canvas & Surfaces (from DESIGN.md) */
  --canvas: #ffffff;
  --surface: #f6f5f4;
  --surface-soft: #fafaf9;
  
  /* Hairline Borders */
  --hairline: #e5e3df;
  --hairline-soft: #ede9e4;
  --hairline-strong: #c8c4be;

  /* Ink Typography Spectrum (from DESIGN.md) */
  --ink-deep: #000000;
  --ink: #1a1a1a;
  --charcoal: #37352f;
  --slate: #5d5b54;
  --steel: #787671;
  --stone: #a4a097;
  --muted: #bbb8b1;

  /* Card Tints (from DESIGN.md) */
  --card-tint-peach: #ffe8d4;
  --card-tint-rose: #fde0ec;
  --card-tint-mint: #d9f3e1;
  --card-tint-lavender: #e6e0f5;
  --card-tint-sky: #dcecfa;
  --card-tint-yellow: #fef7d6;

  /* Brand & Semantics (from DESIGN.md) */
  --primary: #5645d4;
  --primary-pressed: #4534b3;
  --brand-navy: #0a1530;
  --semantic-success: #1aae39;
  --semantic-warning: #dd5b00;
  --semantic-error: #e03131;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rounded Scale (from DESIGN.md) */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --container-width: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  background-color: var(--canvas);
}

body {
  background-color: var(--canvas);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: 16px; /* body-md */
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Navbar - Clean Notion Paper Header */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  height: 64px;
  display: flex;
  align-items: center;
}

.nav-container {
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-deep);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.2px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: var(--ink-deep);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.highlight-text {
  color: var(--ink-deep);
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background-color 0.15s ease;
}

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

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

/* Notion Buttons - 8px radius */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1.3;
  border: 1px solid transparent;
}

.btn-github {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
}

.btn-github:hover {
  background: var(--surface);
  border-color: var(--hairline-strong);
}

.btn-primary {
  background: var(--ink-deep);
  color: #ffffff;
  border: 1px solid var(--ink-deep);
}

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

.btn-secondary {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--ink-deep);
}

/* Hero Section */
.hero-section {
  background: var(--canvas);
  color: var(--ink-deep);
  padding-top: 120px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
  color: var(--slate);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--ink-deep);
  border-radius: 50%;
}

.hero-title {
  font-size: 48px; /* heading-1 from DESIGN.md */
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  max-width: 820px;
  color: var(--ink-deep);
}

.hero-subtitle {
  font-size: 18px; /* subtitle from DESIGN.md */
  color: var(--slate);
  max-width: 660px;
  line-height: 1.5;
  margin-bottom: 34px;
  font-weight: 400;
}

.hero-subtitle strong {
  color: var(--ink-deep);
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: var(--ink-deep);
  color: #ffffff;
  border: 1px solid var(--ink-deep);
  transition: all 0.15s ease;
}

.btn-hero-primary:hover {
  background: #333333;
  border-color: #333333;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  transition: all 0.15s ease;
}

.btn-hero-secondary:hover {
  background: var(--surface);
  color: var(--ink-deep);
}

.play-indicator {
  font-size: 11px;
  color: var(--slate);
}

/* Hero Showcase Frame with Gentle Float Animation */
.hero-showcase {
  width: 100%;
  max-width: 920px;
  animation: gentleFloat 6s ease-in-out infinite alternate;
}

@keyframes gentleFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-6px); }
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.hero-image-wrapper:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  box-shadow: none;
}

.hero-img {
  width: 100%;
  display: block;
}

.hero-hud-preview {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-deep);
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
  animation: pulseBadge 3s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.hud-lightning {
  color: var(--ink-deep);
  animation: rotateLightning 4s ease-in-out infinite alternate;
  display: inline-block;
}

@keyframes rotateLightning {
  0% { transform: rotate(-8deg); }
  100% { transform: rotate(8deg); }
}

.hud-badge {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink-deep);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
}

/* Section Common Headers */
.section-header {
  text-align: center;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--steel);
  margin-bottom: 8px;
}

.section-title {
  font-size: 36px; /* heading-2 from DESIGN.md */
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.20;
  margin-bottom: 12px;
  color: var(--ink-deep);
}

.section-subtitle {
  font-size: 16px;
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Interactive Simulation Player */
.demo-section {
  padding: 80px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--hairline);
}

.demo-player-box {
  max-width: 840px;
  margin: 0 auto;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.demo-screen {
  position: relative;
  width: 100%;
  height: 360px;
  background: #191918;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-video-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: filter 0.3s ease;
}

.demo-video-content.blurred {
  filter: blur(14px) brightness(0.35);
}

.demo-movie-badge {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.demo-audio-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
}

.demo-audio-bars .bar {
  width: 4px;
  height: 100%;
  background: #ffffff;
  border-radius: var(--radius-xs);
  animation: audioWave 1s infinite ease-in-out;
}

.demo-audio-bars .bar:nth-child(2) { animation-delay: 0.2s; height: 70%; }
.demo-audio-bars .bar:nth-child(3) { animation-delay: 0.4s; height: 90%; }
.demo-audio-bars .bar:nth-child(4) { animation-delay: 0.1s; height: 50%; }

.demo-audio-bars.muted .bar {
  animation: none;
  height: 4px !important;
  background: var(--steel);
}

@keyframes audioWave {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

.demo-ad-layer {
  position: absolute;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, 0.75);
  padding: 24px;
}

.demo-ad-layer.active {
  display: block;
}

.demo-ad-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 500;
}

.demo-go-free-btn {
  position: absolute;
  bottom: 64px;
  left: 24px;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.demo-hud {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #ffffff;
  color: var(--ink-deep);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.demo-skip-btn {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: #ffffff;
  color: var(--ink-deep);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.demo-skip-btn.clicked {
  background: var(--semantic-success);
  color: #ffffff;
  transform: scale(1.04);
}

.demo-timeline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.demo-progress {
  width: 100%;
  height: 100%;
  background: #ffffff;
  transform-origin: left center;
  transform: scaleX(0.3);
  transition: transform 0.1s linear, background-color 0.2s ease;
}

.demo-progress.ad-active {
  background: var(--semantic-warning);
}

.demo-controls {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 4px;
}

.btn-demo-trigger {
  background: var(--ink-deep);
  border: 1px solid var(--ink-deep);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-demo-trigger:hover {
  background: #333333;
}

.demo-stats {
  display: flex;
  gap: 20px;
}

.demo-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.demo-stat-label {
  color: var(--steel);
}

.demo-stat-val {
  font-weight: 600;
  color: var(--ink-deep);
}

.val-green {
  color: var(--semantic-success);
}

/* Features Bento Grid */
.features-section {
  padding: 90px 0;
  background-color: var(--canvas);
}

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

.bento-card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--canvas);
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bento-card-large {
  grid-column: span 2;
}

.bento-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.bento-icon {
  width: 32px;
  height: 32px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-deep);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.bento-icon svg {
  display: block;
  stroke: var(--ink-deep);
}

.bento-card:hover .bento-icon {
  transform: scale(1.06);
}

/* Clean Monochrome Icon Accents (Paper & Ink Style) */
.bento-icon {
  background-color: var(--surface);
  border-color: var(--hairline-strong);
}

.bento-card:hover .bento-icon {
  background-color: var(--ink-deep);
  border-color: var(--ink-deep);
  transform: scale(1.06);
}

.bento-card:hover .bento-icon svg {
  stroke: #ffffff;
}

.bento-card h3 {
  font-size: 18px; /* heading-5 from DESIGN.md */
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink-deep);
}

.bento-card p {
  color: var(--charcoal);
  font-size: 14px; /* body-sm from DESIGN.md */
  line-height: 1.50;
}

.bento-metric {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 28px; /* heading-3 from DESIGN.md */
  font-weight: 600;
  color: var(--ink-deep);
}

.metric-sub {
  font-size: 13px; /* caption from DESIGN.md */
  color: var(--steel);
}

.bento-tags {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 500;
  color: var(--charcoal);
}

/* Dashboard Showcase Section */
.showcase-section {
  padding: 90px 0;
  background-color: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

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

.showcase-text h2 {
  font-size: 36px; /* heading-2 from DESIGN.md */
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  color: var(--ink-deep);
}

.showcase-text p {
  font-size: 16px;
  color: var(--slate);
  margin-bottom: 24px;
}

.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.showcase-list li {
  font-size: 14px;
  color: var(--charcoal);
  position: relative;
  padding-left: 22px;
}

.showcase-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--ink-deep);
  font-size: 16px;
  line-height: 1;
}

.showcase-list strong {
  color: var(--ink-deep);
  font-weight: 600;
}

.showcase-image-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: var(--canvas);
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.showcase-image-wrapper:hover {
  transform: translateY(-2px);
  border-color: var(--hairline-strong);
  box-shadow: none;
}

.showcase-img {
  width: 100%;
  display: block;
}

/* Installation Section */
.install-section {
  padding: 90px 0;
  background-color: var(--canvas);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.step-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.step-number {
  font-size: 22px; /* heading-4 from DESIGN.md */
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--ink-deep);
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 18px; /* heading-5 from DESIGN.md */
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-deep);
}

.step-card p {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.50;
}

.code-box {
  margin-top: 14px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--charcoal);
  overflow-x: auto;
  white-space: nowrap;
}

.install-cta-box {
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 40px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.install-cta-box h3 {
  font-size: 22px; /* heading-4 from DESIGN.md */
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink-deep);
}

.install-cta-box p {
  color: var(--slate);
  margin-bottom: 24px;
  font-size: 14px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Platforms Section */
.platforms-section {
  padding: 50px 0;
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.platforms-list {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.platform-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-deep);
}

.platform-domain {
  font-size: 12px;
  color: var(--steel);
  font-family: var(--font-mono);
}

/* FAQ Section */
.faq-section {
  padding: 90px 0;
  background: var(--canvas);
}

.faq-container {
  max-width: 740px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--hairline-strong);
}

.faq-question {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-deep);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 16px;
  color: var(--steel);
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: var(--ink-deep);
}

.faq-answer {
  padding: 0 20px 18px 20px;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.55;
}

/* Footer - Multi-Column Notion Layout */
.footer {
  border-top: 1px solid var(--hairline-strong);
  padding: 48px 0 28px;
  background: var(--canvas);
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.footer-icon-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--ink-deep);
  color: #ffffff;
  border-radius: var(--radius-xs);
  margin-right: 8px;
  flex-shrink: 0;
}

.footer-brand .brand-logo {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-deep);
}

.footer-brand p {
  color: var(--slate);
  font-size: 13px;
  margin-top: 6px;
  max-width: 380px;
  line-height: 1.5;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--steel);
  margin-bottom: 12px;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col-links a {
  color: var(--slate);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col-links a:hover {
  color: var(--ink-deep);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  text-align: center;
  font-size: 12px;
  color: var(--steel);
}

/* ==========================================================================
   Notion-Style Loading Screen Overlay & Keyframes
   ========================================================================== */

.notion-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
}

.notion-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.loader-book {
  position: relative;
  width: 52px;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.loader-cover {
  color: var(--ink-deep);
  animation: bookPulse 1.8s ease-in-out infinite alternate;
}

@keyframes bookPulse {
  0% { transform: scale(0.92); opacity: 0.8; }
  100% { transform: scale(1.05); opacity: 1; }
}

.loader-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.loader-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-deep);
  letter-spacing: -0.2px;
}

.loader-sub {
  font-size: 12px;
  color: var(--steel);
  font-family: var(--font-mono);
}

.loader-bar-track {
  width: 140px;
  height: 3px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.loader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 40%;
  background: var(--ink-deep);
  border-radius: var(--radius-full);
  animation: notionBarSlide 1.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes notionBarSlide {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(180%); }
  100% { transform: translateX(350%); }
}

/* ==========================================================================
   Comprehensive Responsive System (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablet & Mobile Breakpoints */
@media (max-width: 960px) {
  .hero-section {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 38px;
    letter-spacing: -0.8px;
  }

  .hero-subtitle {
    font-size: 16px;
    padding: 0 12px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bento-card-large {
    grid-column: span 1;
  }

  .showcase-container {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .showcase-list {
    text-align: left;
    max-width: 460px;
    margin: 0 auto;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

@media (max-width: 768px) {
  .navbar {
    height: 56px;
  }

  .nav-links {
    display: none; /* Collapsed for clean mobile view */
  }

  .nav-actions .btn-github {
    display: none; /* Keep primary CTA prominent */
  }

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

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .demo-screen {
    height: 280px;
  }

  .demo-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-demo-trigger {
    width: 100%;
    text-align: center;
  }

  .demo-stats {
    justify-content: space-around;
    width: 100%;
  }

  .install-cta-box {
    padding: 28px 20px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .cta-buttons .btn {
    width: 100%;
  }

  .platforms-list {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  .demo-player-box {
    padding: 10px;
  }

  .bento-card {
    padding: 20px;
  }

  .bento-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .demo-screen {
    height: 230px;
  }
}
