/* ==========================================================================
   Infinite — Clean Visual Notebook Stylesheet
   Typography: Helvetica/Inter + Caveat (Single Cursive Accent)
   Strict 3-Size Global Typographic Scale
   ========================================================================== */

:root {
  /* Strict 3-Size Global Scale */
  --font-size-large: clamp(1.9rem, 3.6vw, 2.8rem);     /* Hero & Main Section Titles */
  --font-size-medium: clamp(0.98rem, 1.2vw, 1.08rem);  /* Body text, Subheadings & Step Titles */
  --font-size-small: clamp(0.8rem, 0.9vw, 0.88rem);    /* Pills, Labels, Badges, Button Subtext, Cap Titles */

  /* Fonts */
  --font-sans: 'Inter', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-cursive: 'Caveat', cursive, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Monaco, monospace;

  /* Line Heights */
  --lh-tight: 1.15;
  --lh-normal: 1.55;
  --lh-relaxed: 1.65;

  /* Palette: Warm Ivory Paper + Charcoal Ink + Pastel Terracotta */
  --bg-page: #fbfaf6;
  --bg-card: #ffffff;
  --bg-inner: #f3f0e7;

  --border-card: rgba(45, 35, 25, 0.1);
  --border-subtle: rgba(45, 35, 25, 0.06);

  --text-primary: #1f1d1a;
  --text-secondary: #5a534c;
  --text-muted: #857c74;

  --pastel-terracotta: #c2593f;
  --pastel-peach: #d97736;
  --pastel-amber: #b8860b;
  --pastel-sage: #4d7c67;
  --pastel-lavender: #6b6b99;

  --btn-primary-bg: #c2593f;
  --btn-primary-text: #ffffff;
  --btn-secondary-bg: rgba(45, 35, 25, 0.06);
  --btn-secondary-text: #1f1d1a;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   Reset & Base Setup (Zero Glow Anywhere)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
}

body {
  background-color: var(--bg-page);
  /* Sleek low-opacity notebook canvas grid & intersection dots */
  background-image: 
    radial-gradient(rgba(45, 35, 25, 0.055) 1px, transparent 1px),
    linear-gradient(to right, rgba(45, 35, 25, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(45, 35, 25, 0.022) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px, 26px 26px;
  background-position: 0 0, 0 0, 0 0;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--font-size-medium);
  line-height: var(--lh-normal);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Cosmic Dust Canvas (Subtle ambient graphite specks on notebook) */
#cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

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

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

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.brand-name {
  font-size: var(--font-size-medium);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-small);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

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

/* --------------------------------------------------------------------------
   Buttons (Strict Scale)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-smooth);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
  border-color: var(--border-card);
}
.btn-secondary:hover {
  background: rgba(45, 35, 25, 0.1);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 14px;
  font-size: var(--font-size-small);
}

.btn-lg {
  padding: 12px 28px;
  font-size: var(--font-size-medium);
}

.nav-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(194, 89, 63, 0.35);
  color: var(--pastel-terracotta);
  font-weight: 600;
}

.nav-doc-btn:hover {
  background: rgba(194, 89, 63, 0.08);
  border-color: var(--pastel-terracotta);
  color: var(--pastel-terracotta);
}

.hero-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-color: rgba(194, 89, 63, 0.4);
  color: var(--pastel-terracotta);
  font-weight: 600;
  background: var(--bg-card);
}

.hero-doc-btn:hover {
  background: var(--bg-inner);
  border-color: var(--pastel-terracotta);
  color: var(--pastel-terracotta);
  box-shadow: 0 4px 12px rgba(194, 89, 63, 0.12);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 32px 0 18px;
  text-align: center;
}

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

.hero-title {
  font-size: var(--font-size-large);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  max-width: 820px;
}

.cursive-text {
  font-family: var(--font-cursive);
  font-size: 1.18em;
  font-weight: 700;
  color: var(--pastel-terracotta);
  display: inline-block;
  cursor: default;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.cursive-text:hover {
  transform: translateY(-1px);
}

/* Concise 3-line refined hero description */
.hero-subtitle {
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 20px;
  line-height: var(--lh-relaxed);
}

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

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sketch-annotation {
  font-family: var(--font-cursive);
  font-size: 1.05rem;
  color: var(--pastel-terracotta);
  line-height: 1.2;
}

.sketch-arrow-left {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.sketch-arrow-svg {
  width: 26px;
  height: 14px;
  color: var(--pastel-terracotta);
}

/* Single Live Canvas Frame */
.showcase-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 6px;
}

.notebook-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.notebook-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-inner);
  border-bottom: 1px solid var(--border-card);
}

.window-dots {
  display: flex;
  gap: 5px;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-1 { background: #e07a5f; }
.dot-2 { background: #e9c46a; }
.dot-3 { background: #81b29a; }

.notebook-title {
  font-size: var(--font-size-small);
  color: var(--text-muted);
}
.notebook-chip {
  font-size: var(--font-size-small);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(194, 89, 63, 0.12);
  color: var(--pastel-terracotta);
  font-weight: 500;
}

.showcase-media-container {
  width: 100%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-video {
  width: 100%;
  max-height: 540px;
  display: block;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   Sections & Headings (Refined Spacing Hygiene)
   -------------------------------------------------------------------------- */
.section {
  padding: 34px 0;
}

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

.section-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pastel-terracotta);
  margin-bottom: 4px;
}

.section-heading {
  font-size: var(--font-size-large);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.section-subheading {
  font-size: var(--font-size-medium);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}


/* --------------------------------------------------------------------------
   Nature Connected Graph Canvas Section
   -------------------------------------------------------------------------- */
.nature-section {
  padding: 24px 0 28px;
}

.nature-canvas-wrapper {
  width: 100%;
  max-width: 1040px;
  height: 320px;
  margin: 0 auto;
  background: transparent;
  position: relative;
}

#nature-branch-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   Capabilities (Animated Mini-Canvases with Smaller Clean Titles)
   -------------------------------------------------------------------------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.cap-card:hover {
  transform: translateY(-2px);
  border-color: var(--pastel-terracotta);
}

.cap-canvas-box {
  width: 100%;
  height: 145px;
  background: #12151b;
  position: relative;
}
.cap-canvas-box canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.cap-title {
  padding: 8px 10px;
  font-size: var(--font-size-small);
  font-weight: 600;
  text-align: center;
  color: var(--text-primary);
  background: var(--bg-card);
  border-top: 1px solid var(--border-card);
}

/* --------------------------------------------------------------------------
   Listen (Seamless Audio Player: Pure Play Button + Amplitude Waveform)
   -------------------------------------------------------------------------- */
.seamless-player-wrap {
  max-width: 600px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  gap: 16px;
  background: transparent;
  border: none;
  padding: 0;
}

.minimal-play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--btn-primary-bg);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-smooth);
  box-shadow: 0 3px 12px rgba(194, 89, 63, 0.28);
}
.minimal-play-circle:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
  box-shadow: 0 5px 16px rgba(194, 89, 63, 0.38);
}
.minimal-play-circle:active {
  transform: scale(0.95);
}

.waveform-box {
  flex-grow: 1;
  height: 48px;
  background: rgba(45, 35, 25, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.waveform-box:hover {
  background: rgba(45, 35, 25, 0.055);
  border-color: rgba(194, 89, 63, 0.3);
}

#waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}



/* --------------------------------------------------------------------------
   How-To / Illustrated Node Recipes
   -------------------------------------------------------------------------- */
.howto-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.howto-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.extra-recipes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.3s ease, max-height 0.4s ease;
}
.extra-recipes.hidden {
  display: none;
}

.recipes-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.recipe-num {
  font-family: var(--font-cursive);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--pastel-terracotta);
}

.recipe-title {
  font-size: var(--font-size-medium);
  font-weight: 700;
  margin: 4px 0 6px;
}

.recipe-desc {
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.node-flow-diagram {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.flow-pill {
  font-size: var(--font-size-small);
  padding: 3px 8px;
  background: var(--bg-inner);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.flow-arrow {
  color: var(--pastel-peach);
  font-weight: 700;
}

.howto-media {
  width: 100%;
  height: 280px;
  max-height: 280px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-card);
  background: var(--bg-inner);
  position: relative;
}

.howto-media img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --------------------------------------------------------------------------
   Node Reference Manual Download CTA
   -------------------------------------------------------------------------- */
.node-manual-download-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.node-docs-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: var(--font-size-small);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(45, 35, 25, 0.04);
  transition: all var(--transition-smooth);
}

.node-docs-btn:hover {
  background: var(--bg-inner);
  border-color: var(--pastel-terracotta);
  color: var(--pastel-terracotta);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 89, 63, 0.12);
}

.node-docs-btn svg {
  color: var(--pastel-terracotta);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.node-docs-btn:hover svg {
  transform: translateY(1px);
}

.btn-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(194, 89, 63, 0.1);
  color: var(--pastel-terracotta);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   3 Ticker Tapes (Endless Marquee with Clickable Node Pills)
   -------------------------------------------------------------------------- */
.ticker-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  padding: 8px 0;
  user-select: none;
  width: 100%;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 10px;
  width: max-content;
  will-change: transform;
}

.ticker-pill {
  font-size: var(--font-size-small);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
}
.ticker-pill:hover {
  border-color: var(--pastel-terracotta);
  color: var(--pastel-terracotta);
  transform: translateY(-1px);
  background: var(--bg-inner);
}

.ticker-forward {
  animation: scrollForward 35s linear infinite;
  -webkit-animation: scrollForward 35s linear infinite;
}
.ticker-reverse {
  animation: scrollReverse 35s linear infinite;
  -webkit-animation: scrollReverse 35s linear infinite;
}

/* Pause on hover only on desktop pointer devices, never sticky on mobile touch */
@media (hover: hover) and (pointer: fine) {
  .ticker-track:hover {
    animation-play-state: paused;
    -webkit-animation-play-state: paused;
  }
}

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

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

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

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

/* --------------------------------------------------------------------------
   Node Modal Popup
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(30, 25, 20, 0.4);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  max-width: 380px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 36px rgba(45, 35, 25, 0.14);
  animation: modalPop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-inner);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--pastel-terracotta);
}

.modal-badge {
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pastel-terracotta);
  font-weight: 700;
  margin-bottom: 2px;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
  line-height: 1.2;
}

.modal-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 10px;
}

.modal-pins {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pin-tag {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: var(--bg-inner);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
}

.modal-footer-action {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

.modal-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--pastel-terracotta);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.modal-doc-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   Setup & Gatekeeper Section (Strict 3-Size Scale)
   -------------------------------------------------------------------------- */
.setup-box {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 28px;
}

.setup-intro {
  font-size: var(--font-size-medium);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.step-card {
  background: var(--bg-inner);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--pastel-terracotta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--font-size-small);
  margin-bottom: 8px;
}

.step-title {
  font-size: var(--font-size-medium);
  font-weight: 600;
  margin-bottom: 4px;
}

.step-desc {
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  line-height: 1.5;
}

.code-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 5px 8px;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--pastel-terracotta);
  overflow-x: auto;
}
.copy-inline-btn {
  font-family: var(--font-sans);
  font-size: var(--font-size-small);
  padding: 2px 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.copy-inline-btn:hover {
  color: var(--pastel-terracotta);
}

/* --------------------------------------------------------------------------
   Download Section
   -------------------------------------------------------------------------- */
.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  text-align: center;
  padding: 26px 20px 22px;
}

.specs-grid {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.spec-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.spec-label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-val {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.download-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border-card);
  padding: 36px 0 20px;
  background: var(--bg-inner);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 22px;
}

.footer-left {
  max-width: 280px;
}

.footer-desc {
  font-size: var(--font-size-small);
  color: var(--text-muted);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-col h5 {
  font-size: var(--font-size-small);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-small);
  margin-bottom: 5px;
  transition: color var(--transition-fast);
}
.footer-col a:hover {
  color: var(--pastel-terracotta);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  font-size: var(--font-size-small);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Mobile Optimization (Proper Padding, 2x2 Capabilities Grid)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --font-size-large: 1.85rem;
    --font-size-medium: 0.95rem;
    --font-size-small: 0.8rem;
  }

  .nav-links { display: none; }
  .hero-section { padding: 30px 0 18px; }
  .nature-canvas-wrapper { height: 340px; }

  /* Creative streams: 2x2 grid layout on mobile */
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cap-canvas-box {
    height: 125px;
  }
  .cap-title {
    padding: 8px 6px;
    font-size: 0.76rem;
    line-height: 1.25;
  }

  .howto-item { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .howto-media { height: 220px; max-height: 220px; }
  .howto-media img { height: 220px; max-height: 220px; }
  .setup-box { padding: 18px 14px; }
  .download-card { padding: 24px 14px; }
  .footer-links { gap: 20px; }

  .specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 8px;
    text-align: center;
    margin-bottom: 16px;
  }
  .spec-label { font-size: 0.64rem; }
  .spec-val { font-size: 0.72rem; }

  .m-track-title { font-size: 0.82rem; }
  .minimal-player-card { padding: 12px 14px; }

  .btn-lg {
    padding: 10px 18px;
    font-size: 0.88rem;
  }
  .hero-cta-group {
    gap: 8px;
    margin-bottom: 20px;
  }
  .cta-wrapper, .hero-cta-group > a {
    width: 100%;
    max-width: 320px;
  }
  .cta-wrapper .btn-lg, .hero-cta-group > a.btn-lg {
    width: 100%;
  }
  .sketch-annotation {
    font-size: 0.88rem;
  }
  .download-actions .btn-lg {
    width: 100%;
    max-width: 320px;
  }
}
