/* ==========================================================================
   MINECRAFT MOB WIDGETS - DESIGN SYSTEM & STYLES
   Light theme with authentic Minecraft block aesthetic.
   No blurred shadows. No gradients. 100% crisp pixelated art.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist+Pixel&display=swap');

:root {
  /* Surfaces */
  --bg:          #FAF8F3;   /* warm off-white, paper / birch planks */
  --surface:     #FFFFFF;
  --surface-alt: #F1EEE6;   /* subtle section alternation */

  /* Ink */
  --ink:         #1E1B16;   /* near-black, warm */
  --ink-soft:    #5B564B;   /* secondary text */
  --line:        #1E1B16;   /* chunky borders use full ink */
  --line-soft:   #D9D3C4;   /* hairlines / subtle borders */

  /* Minecraft-flavored accents */
  --grass:       #5DA130;   /* primary action color */
  --grass-dark:  #3F7A1D;   /* pressed / hover shadow */
  --dirt:        #8A5A32;   /* secondary accent / eyebrow */
  --stone:       #8B8B8B;   /* neutral tag */
  --redstone:    #D23B2E;   /* alert / NEW tag */
  --diamond:     #3FC7C0;   /* highlight / focus ring */
  --gold:        #F2B635;   /* badge highlight */
  --discord:     #5865F2;   /* discord brand */

  /* Layout */
  --pad-x: clamp(20px, 6vw, 100px);
  --section-pad-y: clamp(64px, 8vw, 120px);
  --header-height: 72px;

  /* Typography */
  --font-display: "Geist Pixel", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", monospace;
}

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

html {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  background-color: var(--bg);
  color: var(--ink);
}

/* Headings & Text */
h1, h2, h3, h4, .pixel-text {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 1.05;
}

h2 {
  font-size: clamp(28px, 3.4vw, 52px);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(20px, 2.2vw, 32px);
}

p {
  font-size: clamp(16px, 1.1vw, 18px);
  color: var(--ink-soft);
  max-width: 62ch;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pixel-art {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* Section Containers (No max-width cap, fluid horizontal padding) */
.section {
  width: 100%;
  padding-inline: var(--pad-x);
  padding-block: var(--section-pad-y);
  position: relative;
}

.section-alt {
  background-color: var(--surface-alt);
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}

.section-dark {
  background-color: var(--ink);
  color: var(--bg);
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
}

.section-dark p {
  color: #B5AFA4;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dirt);
  margin-bottom: 12px;
  display: inline-block;
}

.section-dark .section-eyebrow {
  color: var(--gold);
}

/* CSS Grid 12-Column Layout */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 24px;
  row-gap: 32px;
  width: 100%;
}

/* Block & Card Utility (Chunky border, unblurred hard shadow) */
.block {
  background: var(--surface);
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  transition: transform 120ms steps(3), box-shadow 120ms steps(3);
}

.block:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--line);
}

.block:active {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--line);
}

/* Inventory Slot Bevel Frame */
.slot {
  background: var(--surface-alt);
  border: 3px solid var(--line);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.9), inset -2px -2px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badges / Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border: 2px solid var(--line);
  line-height: 1;
}

.badge-new {
  background-color: var(--redstone);
  color: #FFFFFF;
}

.badge-improved {
  background-color: var(--grass);
  color: #FFFFFF;
}

.badge-fixed {
  background-color: var(--stone);
  color: #FFFFFF;
}

.badge-gold {
  background-color: var(--gold);
  color: var(--ink);
}

.badge-diamond {
  background-color: var(--diamond);
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
  transition: transform 120ms steps(3), box-shadow 120ms steps(3), background-color 120ms;
  text-decoration: none;
  min-height: 54px;
  max-width: 100%;
}

.btn-label-mobile {
  display: none;
}

.mobile-only-nav-item {
  display: none;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--line);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--line);
}

.btn:focus-visible {
  outline: 3px solid var(--diamond);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--grass);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--grass-dark);
}

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

.btn-discord {
  background: #FFFFFF;
  color: var(--ink);
}

.btn-discord:hover {
  background: #ECEFFD;
  color: var(--discord);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
  min-height: 42px;
  box-shadow: 4px 4px 0 var(--line);
}

.btn-sm:hover {
  box-shadow: 6px 6px 0 var(--line);
}

.btn-sm:active {
  box-shadow: 2px 2px 0 var(--line);
}

.btn-sub {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 500;
}

/* ==========================================================================
   NAVIGATION / HEADER (Sticky 72px)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg);
  border-bottom: 3px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--pad-x);
}

/* XP Bar Scroll Indicator */
.xp-scroll-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--grass);
  z-index: 101;
  transition: width 80ms ease-out;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.brand-icon {
  width: 40px;
  height: 40px;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
  background: var(--surface);
}

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

.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
  position: relative;
  padding-block: 6px;
  transition: color 150ms;
}

.nav-link:hover, .nav-link.active {
  color: var(--ink);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--grass);
}

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

/* Mobile Hamburger */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 2px solid var(--line);
  padding: 8px;
  cursor: pointer;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;
  padding-block: clamp(48px, 6vw, 84px);
  position: relative;
  overflow: hidden;
}

.hero-copy {
  grid-column: 1 / 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  z-index: 2;
}

.hero-title .highlight {
  background: var(--grass);
  color: #FFFFFF;
  padding: 0 8px;
  display: inline-block;
  box-shadow: 4px 4px 0 var(--line);
  margin-block: 4px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 12px;
}

/* Live Download Count Indicator */
.cta-download-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-alt);
  border: 2px solid var(--line);
  padding: 4px 10px;
  width: fit-content;
  box-shadow: 2px 2px 0 var(--line);
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grass);
  box-shadow: 0 0 0 rgba(76, 175, 80, 0.4);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.hero-trust {
  font-size: 14px;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Hero Media & Device Frame */
.hero-media {
  grid-column: 7 / 13;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.device-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 9 / 19.5;
  background: #000000;
  border: 4px solid var(--line);
  box-shadow: 12px 12px 0 var(--line);
  overflow: hidden;
}

.device-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.device-play-toggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(30, 27, 22, 0.8);
  border: 2px solid #FFFFFF;
  color: #FFFFFF;
  padding: 6px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating Mobs Around Hero */
.floating-mob {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(4px 4px 0 var(--line));
  pointer-events: none;
  animation: floatBob 3s steps(4) infinite alternate;
}

.floating-mob-1 {
  top: 5%;
  left: -40px;
  width: 80px;
  animation-delay: 0s;
}

.floating-mob-2 {
  top: 25%;
  right: -50px;
  width: 90px;
  animation-delay: 0.8s;
}

.floating-mob-3 {
  bottom: 12%;
  left: -60px;
  width: 95px;
  animation-delay: 1.5s;
}

.floating-mob-4 {
  bottom: 25%;
  right: -40px;
  width: 85px;
  animation-delay: 2.2s;
}

@keyframes floatBob {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
  100% { transform: translateY(-16px) rotate(-1deg); }
}

/* ==========================================================================
   SECTION 1: WHAT IT IS (Bento Grid)
   ========================================================================== */
.what-header {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.what-bento {
  grid-column: 5 / 13;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.bento-media-tile {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.bento-media-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bento-video-container,
.bento-image-container {
  width: 100%;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  background: #000000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

.showcase-video {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.showcase-img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
  background: var(--surface-alt);
}

.bento-tile {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bento-tile-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}

.bento-preview-img {
  width: 100%;
  border: 2px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}

/* ==========================================================================
   SECTION 2: MOB BROWSER PREVIEW (Interactive)
   ========================================================================== */
.preview-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.segment-toggle {
  display: inline-flex;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  background: var(--surface);
}

.segment-btn {
  padding: 10px 20px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 120ms;
}

.segment-btn.active {
  background: var(--ink);
  color: var(--bg);
}

.mob-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  width: 100%;
}

.mob-card {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  position: relative;
  cursor: pointer;
  background: var(--surface);
}

.mob-card-img-wrap {
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mob-card-img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.mob-card-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.mob-card-chip {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--surface);
  border: 2px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
  padding: 2px 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  font-weight: 700;
  opacity: 0;
  transition: opacity 120ms;
  pointer-events: none;
}

.mob-card:hover .mob-card-chip {
  opacity: 1;
}

.mob-card-more {
  background: var(--surface-alt);
  border: 3px dashed var(--line);
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--dirt);
  text-align: center;
}

.more-coming-soon-banner {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.coming-soon-content {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.coming-soon-content h3 {
  font-size: 20px;
  color: var(--ink);
}

.coming-soon-content p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 3: HOW TO INSTALL (Clean 4-Step Grid)
   ========================================================================== */
.install-header {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

.step-card {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  border: 3px solid var(--line);
  background: var(--surface);
  box-shadow: 6px 6px 0 var(--line);
  transition: transform 120ms steps(3), box-shadow 120ms steps(3);
}

.step-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--line);
}

.step-number {
  min-width: 48px;
  height: 48px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.install-sticky-visual {
  position: sticky;
  top: 100px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.install-visual-img {
  max-height: 450px;
  width: auto;
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
}

.install-info-box {
  width: 100%;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface-alt);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}

.checksum-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 8px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  word-break: break-all;
}

.copy-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}

/* ==========================================================================
   SECTION 4: LATEST RELEASE (What's New)
   ========================================================================== */
.version-strip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  width: 100%;
}

.version-badge-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.version-tag {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 56px);
  color: var(--gold);
  line-height: 1;
}

.version-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #B5AFA4;
}

.version-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
}

.version-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: #E2DDD5;
}

.version-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

/* ==========================================================================
   SECTION 5: CHANGELOG TIMELINE
   ========================================================================== */
.changelog-layout {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: 48px;
  width: 100%;
}

.timeline {
  position: relative;
  padding-left: 32px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 0;
  left: 8px;
  width: 4px;
  background: var(--line);
}

.timeline-node {
  position: relative;
}

.timeline-marker {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 20px;
  height: 20px;
  background: var(--grass);
  border: 3px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
}

.timeline-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px solid var(--line-soft);
  padding-bottom: 12px;
}

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

.timeline-changes li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
}

.changelog-index {
  position: sticky;
  top: 100px;
  height: fit-content;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.index-link {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 10px;
  border: 2px solid transparent;
  transition: all 120ms;
}

.index-link:hover, .index-link.active {
  border-color: var(--line);
  background: var(--surface-alt);
}

/* ==========================================================================
   SECTION 6: FINAL CTA WITH GRASS STRIP
   ========================================================================== */
.final-cta-block {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.grass-strip {
  height: 24px;
  width: 100%;
  background-color: var(--grass);
  border-bottom: 3px solid var(--dirt);
  position: relative;
}

.grass-strip::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--grass) 0,
    var(--grass) 12px,
    var(--dirt) 12px,
    var(--dirt) 24px
  );
}

.final-cta-inner {
  padding: clamp(36px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
}

.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   SECTION 7: FAQ ACCORDION (Centered)
   ========================================================================== */
.faq-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.faq-header {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 850px;
  margin-inline: auto;
}

details.faq-item {
  border: 3px solid var(--line);
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--line);
  transition: all 120ms;
}

details.faq-item[open] {
  box-shadow: 6px 6px 0 var(--line);
}

summary.faq-question {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

.faq-chevron {
  transition: transform 150ms;
}

details[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px 24px;
  font-size: 16px;
  color: var(--ink-soft);
  border-top: 2px solid var(--line-soft);
  padding-top: 16px;
}

/* ==========================================================================
   FOOTER (Centered Middle Disclaimer)
   ========================================================================== */
.site-footer {
  padding-inline: var(--pad-x);
  padding-block: 48px 36px;
  border-top: 3px solid var(--line);
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  width: 100%;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  border-top: 2px solid var(--line-soft);
  padding-top: 24px;
  width: 100%;
  font-size: 13px;
  color: var(--ink-soft);
}

.legal-notice {
  font-size: 13px;
  max-width: 80ch;
  text-align: center;
  margin-inline: auto;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   TOAST / ALERTS / PLATFORM BANNER
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--surface);
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  font-family: var(--font-body);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1000;
  transform: translateY(150%);
  transition: transform 200ms steps(3);
}

.toast.show {
  transform: translateY(0);
}

.platform-notice {
  display: none;
  background: var(--surface);
  border: 2px solid var(--line);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--dirt);
  margin-top: 8px;
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-copy {
    grid-column: 1 / 13;
  }
  .hero-media {
    grid-column: 1 / 13;
    margin-top: 24px;
    justify-content: center;
  }
  .floating-mob {
    display: none;
  }
  .what-header {
    grid-column: 1 / 13;
  }
  .what-bento {
    grid-column: 1 / 13;
  }
  .install-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .version-strip {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .changelog-layout {
    grid-template-columns: 1fr;
  }
  .changelog-index {
    display: none;
  }
  .final-cta-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: clamp(16px, 4vw, 32px);
    --section-pad-y: clamp(48px, 6vw, 80px);
  }

  /* Header & Navigation */
  .site-header {
    padding-inline: var(--pad-x);
  }
  .site-header .nav-actions .btn-discord {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 3px solid var(--line);
    box-shadow: 0 8px 0 var(--line);
    padding: 20px var(--pad-x);
    gap: 10px;
    z-index: 999;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }
  .nav-links.mobile-open li {
    width: 100%;
  }
  .nav-links.mobile-open .nav-link {
    display: block;
    width: 100%;
    padding: 12px 16px;
    background: var(--surface-alt);
    border: 2px solid var(--line);
    box-shadow: 3px 3px 0 var(--line);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    transition: background-color 100ms, transform 100ms;
  }
  .nav-links.mobile-open .nav-link:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--line);
  }
  .nav-links.mobile-open .nav-link.active {
    background: var(--grass);
    color: #FFFFFF;
  }
  .nav-links.mobile-open .nav-link.active::after {
    display: none;
  }
  .mobile-only-nav-item {
    display: block;
  }
  .nav-link-discord {
    background: #ECEFFD !important;
    color: var(--discord) !important;
    border-color: var(--discord) !important;
  }
  .mobile-menu-btn {
    display: flex;
  }

  /* Section 1: Bento Grid Single Column */
  .what-bento {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .bento-media-tile,
  .bento-tile {
    padding: 20px;
  }
  .showcase-video,
  .showcase-img {
    max-height: 320px;
  }

  /* Section 2: Mob Browser Preview */
  .preview-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }

  /* Changelog */
  .timeline {
    padding-left: 24px;
    gap: 32px;
  }
  .timeline::before {
    left: 6px;
  }
  .timeline-marker {
    left: -24px;
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
    --pad-x: 16px;
    --section-pad-y: 44px;
  }

  h1 {
    font-size: clamp(28px, 8vw, 44px);
  }
  h2 {
    font-size: clamp(24px, 6.5vw, 36px);
  }
  h3 {
    font-size: clamp(18px, 5vw, 24px);
  }
  p {
    font-size: 15px;
  }

  /* Hero Section */
  .hero {
    padding-block: 28px 36px;
    min-height: auto;
  }
  .hero-copy {
    gap: 16px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .device-frame {
    max-width: min(290px, calc(100vw - 32px));
    box-shadow: 8px 8px 0 var(--line);
    border-width: 3px;
  }

  /* Section 2: Mob Browser Grid */
  .mob-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .mob-card {
    padding: 12px 6px;
    gap: 8px;
  }
  .mob-card-img-wrap {
    width: 72px;
    height: 72px;
  }
  .mob-card-img {
    max-width: 64px;
    max-height: 64px;
  }
  .mob-card-name {
    font-size: 13px;
  }
  .mob-card-chip {
    opacity: 1;
    position: static;
    margin-top: 2px;
    font-size: 10px;
    padding: 2px 4px;
  }

  /* Coming Soon Banner */
  .more-coming-soon-banner {
    padding: 18px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .more-coming-soon-banner .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section 3: Installation Steps */
  .install-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .step-card {
    padding: 16px 14px;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }
  .step-number {
    min-width: 40px;
    height: 40px;
    font-size: 20px;
  }

  /* Section 4: What's New */
  .version-cta {
    width: 100%;
    align-items: stretch;
  }
  .version-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section 5: Final CTA */
  .final-cta-inner {
    padding: 28px 16px;
    gap: 20px;
  }
  .final-cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .final-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Section 6: FAQ Accordion */
  summary.faq-question {
    padding: 14px 16px;
    font-size: 16px;
    gap: 10px;
  }
  .faq-answer {
    padding: 0 16px 14px 16px;
    font-size: 14px;
  }

  /* Section 7: Footer */
  .site-footer {
    padding-inline: var(--pad-x);
    padding-block: 36px 24px;
    gap: 24px;
  }
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
  .legal-notice {
    font-size: 12px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  /* Brand and Header Actions */
  .brand {
    font-size: 17px;
    gap: 8px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .site-header .nav-actions {
    gap: 8px;
  }
  .site-header .nav-actions .btn-sm {
    padding: 6px 10px;
    font-size: 13px;
    min-height: 38px;
    box-shadow: 3px 3px 0 var(--line);
  }
  .btn-label-desktop {
    display: none;
  }
  .btn-label-mobile {
    display: inline;
  }

  /* Blocks & Buttons Touch Refinement */
  .block {
    box-shadow: 4px 4px 0 var(--line);
  }
  .block:hover {
    transform: none;
    box-shadow: 4px 4px 0 var(--line);
  }
  .block:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--line);
  }
  .btn {
    box-shadow: 4px 4px 0 var(--line);
  }
  .btn:hover {
    transform: none;
    box-shadow: 4px 4px 0 var(--line);
  }
  .btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--line);
  }

  /* Segment toggle */
  .segment-toggle {
    width: 100%;
    display: flex;
  }
  .segment-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    text-align: center;
  }

  /* Bento Media Tile */
  .bento-media-tile,
  .bento-tile {
    padding: 16px 14px;
  }
  .showcase-video,
  .showcase-img {
    max-height: 240px;
  }

  /* Step card */
  .step-card {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Toast */
  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
    font-size: 13px;
    box-shadow: 4px 4px 0 var(--line);
  }

  /* Changelog Timeline */
  .timeline {
    padding-left: 18px;
    gap: 20px;
  }
  .timeline::before {
    left: 5px;
  }
  .timeline-marker {
    left: -18px;
    width: 14px;
    height: 14px;
  }
  .timeline-content {
    padding: 14px 12px;
  }
  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .timeline-changes li {
    font-size: 13px;
    gap: 8px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
