/* ==========================================================================
   PIXELCORN — MAIN CSS
   Subdued nocturnal palette · Precision ML upscaling
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts (loaded via <link> in base.njk and @import fallback)
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Autour+One&family=Love+Ya+Like+A+Sister&family=Outfit&family=Special+Elite&family=Jersey+15:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* --------------------------------------------------------------------------
   2. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* ── Font Configuration (edit here to tweak font choices site-wide) ── */
  --font-main:            'Outfit', system-ui, -apple-system, sans-serif;
  --font-header:          'Jersey 15', Georgia, serif;
  --font-mono:            'Space Mono', 'Courier New', monospace;

  /* Semantic font aliases used across components */
  --font-body:            var(--font-main);
  --font-display:         var(--font-header);
  --font-accent:          var(--font-header);

  /* Header / accent font style tuning */
  --font-base-size:        120%;
  --font-header-weight:    400;
  --font-header-transform: none;
  --font-header-tracking:  0em;

  /* ── Illustration Palette ── */
  --c-midnight-blue:  #121938;   /* Main site content background (sky on image) */
  --c-dark-purple:    #35264A;   /* Header & footer background (ground on image) */
  --c-warm-ivory:     #E8D8CB;   /* Headings & primary text */
  --c-muted-lavender: #B0A4C4;   /* Secondary text */
  --c-ochre:          #E5A04E;   /* Occasional accents */
  --c-ochre-light:    #F0B368;   /* Hover ochre */
  --c-ochre-dark:     #C48232;   /* Deeper ochre */

  /* ── Core Backgrounds & Surfaces ── */
  --c-bg-deep:        var(--c-midnight-blue);
  --c-bg:             var(--c-midnight-blue);
  --c-header-bg:      var(--c-dark-purple);
  --c-footer-bg:      var(--c-dark-purple);
  --c-surface:        #192145;   /* Elevated card / section surface */
  --c-surface-2:      #212A54;   /* Nested surface / code blocks */
  --c-border:         #2D3663;   /* Subtle border */
  --c-border-bright:  #495384;   /* Hover / focus border */

  /* ── Text Colours ── */
  --c-heading:        var(--c-warm-ivory);
  --c-text:           var(--c-warm-ivory);
  --c-text-muted:     var(--c-muted-lavender);
  --c-text-dim:       #84789B;

  /* ── Semantic Accent Aliases ── */
  --c-accent:         var(--c-ochre);
  --c-accent-light:   var(--c-ochre-light);
  --c-accent-dark:    var(--c-ochre-dark);
  --c-accent-lime:    var(--c-ochre);

  /* ── Legacy token aliases (mapped to subdued palette) ── */
  --c-magenta:        var(--c-ochre);
  --c-magenta-dark:   var(--c-ochre-dark);
  --c-magenta-light:  var(--c-ochre);
  --c-lime:           var(--c-ochre);
  --c-lime-dark:      var(--c-ochre-dark);
  --c-violet:         var(--c-muted-lavender);
  --c-sky:            var(--c-warm-ivory);
  --c-orange:         var(--c-ochre);

  /* ── Subdued Gradients ── */
  --g-rainbow: linear-gradient(
    90deg,
    var(--c-ochre-dark) 0%,
    var(--c-ochre) 50%,
    var(--c-warm-ivory) 100%
  );

  --g-nav: var(--c-header-bg);

  --g-hero-bg: linear-gradient(
    180deg,
    var(--c-dark-purple) 0%,
    var(--c-midnight-blue) 100%
  );

  /* ── Type scale ── */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.35rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;
  --text-hero: clamp(2.25rem, 5.2vw, 4.25rem);
  --text-super: clamp(4rem, 11vw, 8.5rem);

  /* ── Spacing ── */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* ── Layout ── */
  --container-max:    1200px;
  --container-wide:   1440px;
  --container-narrow: 720px;

  /* ── Borders ── */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* ── Transitions ── */
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 120ms;
  --t-base: 250ms;
  --t-slow: 400ms;
}

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

html {
  font-size: var(--font-base-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}

a:hover { color: var(--c-accent-light); }

ul, ol { list-style: none; }

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-header);
  font-weight: var(--font-header-weight);
  line-height: 1.2;
  letter-spacing: var(--font-header-tracking);
  text-transform: var(--font-header-transform);
  color: var(--c-heading);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p { margin-bottom: var(--sp-4); max-width: 65ch; color: var(--c-text-muted); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--c-heading); }
em     { font-style: italic; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  padding: 0.1em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--c-accent);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: #0d132c;
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent);
  padding: var(--sp-6);
  overflow-x: auto;
  border-radius: var(--radius);
  margin-bottom: var(--sp-6);
  line-height: 1.6;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--c-text);
}

blockquote {
  border-left: 3px solid var(--c-accent);
  padding-left: var(--sp-6);
  margin: var(--sp-8) 0;
  color: var(--c-text-muted);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: var(--sp-12) 0;
}

/* --------------------------------------------------------------------------
   5. Layout / Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-accent);
  font-weight: var(--font-header-weight);
  font-size: var(--text-base);
  letter-spacing: 0.03em;
  padding: 0.7em 1.5em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition:
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Primary: ochre */
.btn--primary {
  background: var(--c-accent);
  color: var(--c-midnight-blue);
  border-color: var(--c-accent);
}
.btn--primary:hover {
  background: var(--c-accent-light);
  border-color: var(--c-accent-light);
  color: var(--c-midnight-blue);
  box-shadow: 0 6px 24px rgba(229, 160, 78, 0.28);
}

/* Secondary: ochre */
.btn--secondary {
  background: var(--c-accent);
  color: var(--c-midnight-blue);
  border-color: var(--c-accent);
}
.btn--secondary:hover {
  background: var(--c-accent-light);
  border-color: var(--c-accent-light);
  color: var(--c-midnight-blue);
}

/* Outline */
.btn--outline {
  background: rgba(18, 25, 56, 0.45);
  color: var(--c-heading);
  border-color: rgba(232, 216, 203, 0.35);
}
.btn--outline:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
  background: rgba(229, 160, 78, 0.08);
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--c-text-muted);
  border-color: transparent;
}
.btn--ghost:hover { color: var(--c-heading); }

.btn--sm { font-size: var(--text-xs);  padding: 0.55em 1.15em; }
.btn--lg { font-size: var(--text-base); padding: 0.8em 1.75em; }
.btn--xl { font-size: var(--text-lg);   padding: 0.85em 2em; }

/* --------------------------------------------------------------------------
   7. Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--c-header-bg);
  transition: box-shadow var(--t-base) var(--ease);
}

/* Subtle bottom border instead of neon rainbow bar */
.nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(232, 216, 203, 0.14);
}

.nav--scrolled {
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  height: 64px;
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
}

.nav__logo-emoji,
.nav__logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-header);
  font-weight: var(--font-header-weight);
  font-size: var(--text-xl);
  letter-spacing: 0;
  color: var(--c-heading);
}

.nav__logo-accent {
  color: var(--c-accent);
}

.nav__logo:hover .nav__logo-text { color: var(--c-heading); }

/* Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav__item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--c-text-muted);
  text-decoration: none;
  padding: var(--sp-2) 0;
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.nav__link--dropdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav__chevron {
  transition: transform var(--t-fast) var(--ease);
  opacity: 0.75;
}

.nav__item--has-dropdown:hover .nav__chevron,
.nav__item--has-dropdown:focus-within .nav__chevron {
  transform: rotate(180deg);
  opacity: 1;
}

.nav__link:hover,
.nav__link--active,
.nav__item--has-dropdown:hover > .nav__link {
  color: var(--c-heading);
  border-bottom-color: var(--c-accent);
}

/* Hover dropdown menu */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  min-width: 170px;
  background: var(--c-header-bg);
  border: 1px solid rgba(232, 216, 203, 0.16);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  padding: var(--sp-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease),
    visibility var(--t-fast);
  z-index: 110;
}

/* Invisible hover bridge so moving the cursor from link to dropdown never loses hover */
.nav__dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav__item--has-dropdown:hover .nav__dropdown,
.nav__item--has-dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__dropdown-link {
  display: block;
  padding: var(--sp-2) var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-text-muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.nav__dropdown-link:hover,
.nav__dropdown-link--active {
  color: var(--c-heading);
  background: rgba(229, 160, 78, 0.12);
  border-left-color: var(--c-accent);
}

.nav__cta {
  margin-left: var(--sp-4);
}

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav__burger,
.nav__burger::before,
.nav__burger::after {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--c-heading);
  transition: transform var(--t-base) var(--ease);
}

.nav__burger { position: relative; }
.nav__burger::before,
.nav__burger::after {
  content: '';
  position: absolute;
  left: 0;
}
.nav__burger::before { top: -8px; }
.nav__burger::after  { top:  8px; }

.nav__toggle[aria-expanded="true"] .nav__burger { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__burger::before {
  transform: translateY(8px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__burger::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Body padding for fixed nav */
body { padding-top: 64px; }

/* --------------------------------------------------------------------------
   8. Hero Section — Full-bleed comparison image as background
   -------------------------------------------------------------------------- */

/* The hero section takes up a full viewport height (minus nav).
   The comparison slider is the background — displayed at least 1:1 pixel
   size (never scaled down), centred, and cropped on smaller viewports.   */
.hero {
  position: relative;
  /* 100svh = full visual viewport. body has padding-top:64px for the fixed nav,
     so this element already starts below the nav. We subtract just the small
     "peek" hint so the visitor can see there's content below. */
  height: calc(100svh - 3rem);
  min-height: 520px;
  overflow: hidden;
  cursor: default;
  /* Diagonal bottom edge: right side cuts in ~6% higher than the left */
  clip-path: polygon(0 0, 100% 0, 100% 94%, 0 100%);
}

/* ── Full-bleed comparison container ──
   This element also carries the .comparison class for JS hooks, so we
   reset every .comparison cosmetic/sizing rule that must not apply here. */
.hero__comparison {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Reset .comparison defaults */
  min-height: unset;
  height: 100%;
  border: none;
  border-radius: 0;
  background: none;
  cursor: col-resize;
}

.hero__comparison .comparison__before,
.hero__comparison .comparison__after {
  position: absolute;
  inset: 0;
}

.hero__comparison .comparison__before img,
.hero__comparison .comparison__after img {
  /* Fill width on wide screens; never shrink below natural size */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, 3840px); /* never go below native width */
  height: auto;
  max-width: none; /* override the global max-width: 100% */
  pointer-events: none;
  display: block;
}

.hero__comparison .comparison__after {
  clip-path: inset(0 50% 0 0);
}

/* Divider — positional anchor; actual line is the ::before pseudo-element rotated */
.hero__comparison .comparison__divider {
  position: absolute;
  top: 0;
  left: 50%;           /* JS overrides this */
  width: 0;
  height: 100%;
  transform: translateX(0);
  pointer-events: none;
  z-index: 3;
}

/* The actual angled line */
.hero__comparison .comparison__divider::before {
  content: '';
  position: absolute;
  top: -10%;           /* extend beyond edges so rotation never shows ends */
  left: 50%;
  width: 3px;
  height: 120%;
  background: var(--c-accent);
  transform: translateX(-50%) rotate(20deg);
  transform-origin: center center;
  box-shadow: 0 0 14px rgba(229, 160, 78, 0.55), 0 0 3px rgba(229, 160, 78, 0.85);
}

/* Handle — sits at the midpoint of the divider */
.hero__comparison .comparison__handle {
  position: absolute;
  top: 50%;
  left: 0;             /* JS positions via translate */
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: var(--c-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-midnight-blue);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(229, 160, 78, 0.22);
  z-index: 4;
}

.hero__comparison .comparison__handle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Transparent range input – full area for interaction */
.hero__comparison .comparison__range {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: col-resize;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 10;
  -webkit-appearance: none;
}

/* Labels — JS sets inline `left` directly on each label every frame.
   CSS only handles appearance; no positional calc here. */
.hero__comparison .comparison__label {
  position: absolute;
  /* ~72% down — below the handle (50%), above the fade opacity zone (~80%) */
  top: 72%;
  bottom: auto;        /* prevent stretching to container bottom */
  height: fit-content; /* shrink to text height only */
  width: fit-content;  /* shrink to text width only */
  z-index: 7;  /* above fade (6), below text overlay (8) */
  background: rgba(0, 0, 0, 0.0);
  border: 0px solid rgba(255,255,255,0.15);
  padding: var(--sp-2) var(--sp-4);
  pointer-events: none;
  border-radius: var(--radius-sm);
  backdrop-filter: none;
  white-space: nowrap;
}

/* JS sets left; these transforms handle the anchor offset from the line */
.hero__comparison .comparison__label--after {
  transform: translateX(-100%) translateX(-1rem); /* sits to the LEFT of the line */
}

.hero__comparison .comparison__label--before {
  transform: translateX(1rem);                    /* sits to the RIGHT of the line */
}

.hero__comparison .comparison__label-tag {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-header-weight);
  letter-spacing: 0.1em;
  color: var(--c-accent);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero__comparison .comparison__label-detail {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--c-warm-ivory);
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* ── Bottom diagonal fade ──
   Covers the bottom third of the hero. The gradient fades the image into
   the page background colour. The hero section itself is clipped with a
   shallow diagonal so the edge where image meets page is a slanted line,
   matching the original site style. */
.hero__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(18, 25, 56, 0.5) 40%,
    rgba(18, 25, 56, 0.9) 70%,
    var(--c-bg) 100%
  );
  pointer-events: none;
  z-index: 6;
}



/* Scroll hint / "See it in action" overlay */
.hero__scroll-hint {
  position: absolute;
  /* Keep well above the diagonal clip (which cuts the right edge at 94%).
     The hint is centred so it sits at ~97% — use 7% from bottom to stay clear. */
  bottom: 7%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-accent);
  font-size: var(--text-base);
  font-weight: var(--font-header-weight);
  letter-spacing: 0.06em;
  color: var(--c-heading);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  animation: bob 2.5s ease-in-out infinite;
  white-space: nowrap;
}

.hero__scroll-hint svg {
  width: 20px;
  height: 28px;
  opacity: 0.7;
}

/* ── Hero text overlay (badge, title, CTA) ── */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  padding: var(--sp-10) 0 0;
  /* Subdued diagonal gradient fading down so text is readable, image shows through below */
  background: linear-gradient(
    to bottom left,
    rgba(18, 25, 56, 0.85) 0%,
    rgba(18, 25, 56, 0.65) 22%,
    transparent 55%
  );
  pointer-events: none; /* clicks pass through to the comparison slider */
}

.hero__overlay-inner {
  /* Keep pointer-events: none so the full container width doesn't block
     the slider. Only the direct interactive children get pointer-events back. */
  pointer-events: none;
}

/* Re-enable pointer-events only on actual interactive elements — links, buttons.
   Wrapper divs (cta-group, platforms, badge, headline, sub) stay transparent
   so the gap between/around buttons still reaches the comparison slider. */
.hero__overlay-inner a,
.hero__overlay-inner button {
  pointer-events: auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  border: 1px solid rgba(229, 160, 78, 0.35);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 2px;
  margin-bottom: var(--sp-6);
  background: rgba(229, 160, 78, 0.08);
}

.hero__badge::before {
  content: '▶';
  font-size: 0.6em;
}

.hero__headline {
  font-size: var(--text-hero);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-6);
  margin-top: var(--sp-4);
  color: var(--c-heading);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.hero__headline .accent {
  color: var(--c-accent);
}

.hero__headline .stroke {
  color: var(--c-muted-lavender);
}

.hero__sub {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  max-width: 46ch;
  margin-bottom: var(--sp-8);
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  margin-bottom: var(--sp-6);
}

.hero__platforms {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

.platform-chip {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 2px 8px;
  border-radius: 2px;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.platform-chip--soon {
  color: rgba(255,255,255,0.35);
  border-style: dashed;
}

/* --------------------------------------------------------------------------
   9. Section Base Styles
   -------------------------------------------------------------------------- */
.section {
  padding: var(--sp-24) 0;
  position: relative;
}

.section--sm { padding: var(--sp-16) 0; }
.section--lg { padding: var(--sp-32) 0; }

.section--alt {
  background: var(--c-surface);
}

.section--deep {
  background: var(--c-bg-deep);
}

/* Diagonal cut top */
.section--cut-top {
  clip-path: polygon(0 3%, 100% 0%, 100% 100%, 0% 100%);
  margin-top: -2%;
  padding-top: calc(var(--sp-24) + 3%);
}

/* Diagonal cut bottom */
.section--cut-bottom {
  clip-path: polygon(0 0, 100% 0, 100% 97%, 0 100%);
  padding-bottom: calc(var(--sp-24) + 3%);
}

/* Section label (overline text) */
.section__label {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-header-weight);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.section__label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-accent);
  flex-shrink: 0;
}

.section__header {
  margin-bottom: var(--sp-12);
}

.section__header h2 { margin-bottom: var(--sp-4); }

.section__header p {
  font-size: var(--text-lg);
  color: var(--c-text-muted);
  max-width: 55ch;
}

/* --------------------------------------------------------------------------
   10. Gallery Comparison Slider (in-page, not full-bleed)
   -------------------------------------------------------------------------- */

/* Gallery carousel container */
.gallery-comparison {
  position: relative;
}

.gallery-comparison__track {
  position: relative;
  overflow: hidden;
}

/* Individual gallery comparison item */
.gallery-comparison__item {
  display: none; /* hidden by default; JS shows active */
}

.gallery-comparison__item--active {
  display: block;
}

/* Gallery navigation */
.gallery-comparison__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.gallery-comparison__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--c-border-bright);
  background: var(--c-surface);
  color: var(--c-heading);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast);
  font-size: 1.2rem;
}

.gallery-comparison__btn:hover {
  border-color: var(--c-accent);
  background: rgba(229, 160, 78, 0.12);
  color: var(--c-accent);
}

.gallery-comparison__dots {
  display: flex;
  gap: var(--sp-2);
}

.gallery-comparison__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-border-bright);
  border: none;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
  padding: 0;
}

.gallery-comparison__dot--active {
  background: var(--c-accent);
  transform: scale(1.3);
}

/* The actual comparison widget used inside both hero and gallery */
.comparison {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: col-resize;
  user-select: none;
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-bg-deep);

  /* ── Never scale below 1:1 — image is 3840×2160 ──
     The container lets the image overflow and gets cropped at the edges.
     We enforce a minimum height so you always see the content. */
  min-height: 320px;
}

/* Force 16:9 aspect when the container is narrower than the native image */
.comparison--gallery {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.comparison__before,
.comparison__after {
  position: absolute;
  inset: 0;
}

/* Images: always render at 1:1 native pixel size — no scaling, ever.
   max-width:none defeats the global img { max-width:100% } reset that would
   shrink the image to fit the container. No width/height CSS is set so the
   browser uses the image's own intrinsic dimensions. The container's
   overflow:hidden centre-crops whatever extends beyond its bounds. */
.comparison__before img,
.comparison__after img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: none;
  pointer-events: none;
}

.comparison__after {
  clip-path: inset(0 50% 0 0);
}

/* Divider */
.comparison__divider {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: var(--c-accent);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 12px rgba(229, 160, 78, 0.45);
}

/* Handle — left is set by JS to match divider position */
.comparison__handle {
  position: absolute;
  top: 50%;
  left: 50%;            /* JS will override this */
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background: var(--c-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-midnight-blue);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  z-index: 4;
}

.comparison__handle svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Range input overlay */
.comparison__range {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: col-resize;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 10;
  -webkit-appearance: none;
}

/* Labels — JS sets inline left each frame; never wrap so width stays constant */
.comparison__label {
  position: absolute;
  bottom: var(--sp-4);
  z-index: 4;
  background: rgba(18, 25, 56, 0.85);
  border: 1px solid var(--c-border);
  padding: var(--sp-2) var(--sp-4);
  pointer-events: none;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* JS sets inline left on both labels; transforms anchor them to left/right of line */
.comparison__label--after {
  transform: translateX(-100%) translateX(-0.75rem);
}

.comparison__label--before {
  transform: translateX(0.75rem);
}

.comparison__label-tag {
  display: block;
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  font-weight: var(--font-header-weight);
  letter-spacing: 0.1em;
  color: var(--c-accent);
}

.comparison__label-detail {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--c-text-muted);
}

/* Per-pair image attribution badge — bottom-right corner */
.comparison__attribution {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-3);
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(232, 216, 203, 0.55);
  background: rgba(18, 25, 56, 0.55);
  padding: 0.2em 0.5em;
  border-radius: 3px;
  backdrop-filter: blur(2px);
  pointer-events: none;
  white-space: nowrap;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Stats bar under comparison */
.comparison-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: var(--sp-6);
}

.stat {
  background: var(--c-surface);
  padding: var(--sp-6) var(--sp-4);
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-header);
  font-size: var(--text-4xl);
  font-weight: var(--font-header-weight);
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   11. How It Works — Steps
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  counter-reset: steps;
}

.step {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-accent);
  padding: var(--sp-8) var(--sp-6);
  position: relative;
  transition: border-color var(--t-base) var(--ease);
  border-radius: var(--radius-sm);
}

.step:hover {
  border-color: var(--c-border-bright);
  border-top-color: var(--c-accent-light);
}

.step__num {
  font-family: var(--font-header);
  font-size: var(--text-super);
  font-weight: var(--font-header-weight);
  color: rgba(232, 216, 203, 0.05);
  line-height: 0.9;
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  pointer-events: none;
  letter-spacing: -0.05em;
}

.step__icon {
  width: 56px;
  height: 56px;
  background: rgba(229, 160, 78, 0.1);
  border: 1px solid rgba(229, 160, 78, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-6);
  font-size: 1.75rem;
  color: var(--c-accent);
}

.step h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--sp-3);
  color: var(--c-heading);
}

.step p {
  font-size: var(--text-base);
  color: var(--c-text-muted);
  line-height: 1.65;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   12. Feature Grid
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: var(--sp-8) var(--sp-6);
  border-radius: var(--radius-sm);
  transition:
    border-color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-accent);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}

.feature-card:hover {
  border-color: var(--c-border-bright);
  transform: translateY(-3px);
}

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

.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--sp-4);
  display: block;
  line-height: 1;
  color: var(--c-accent);
}

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-3);
  color: var(--c-heading);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.65;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   13. Downloads Page
   -------------------------------------------------------------------------- */
.downloads-hero {
  text-align: center;
  padding: var(--sp-24) 0 var(--sp-16);
}

.version-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: rgba(229, 160, 78, 0.12);
  color: var(--c-accent);
  border: 1px solid rgba(229, 160, 78, 0.35);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-6);
}

.platform-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}

.platform-card {
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--sp-8);
  transition: border-color var(--t-base) var(--ease);
}

.platform-card:hover { border-color: var(--c-border-bright); }

.platform-card--primary { border-color: rgba(229, 160, 78, 0.45); }

.platform-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.platform-card__icon {
  font-size: 2.5rem;
  line-height: 1;
}

.platform-card__title {
  font-family: var(--font-header);
  font-size: var(--text-2xl);
  font-weight: var(--font-header-weight);
  color: var(--c-heading);
}

.platform-card__sub {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--c-text-dim);
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  gap: var(--sp-4);
}

.download-item__name {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--c-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-item__meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--c-text-dim);
  flex-shrink: 0;
}

.download-item a {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  color: var(--c-accent);
}

.download-item a:hover { color: var(--c-accent-light); }

.platform-card--soon {
  opacity: 0.5;
  border-style: dashed;
}

.soon-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  background: var(--c-surface-2);
  color: var(--c-text-dim);
  border: 1px dashed var(--c-border);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Sys requirements */
.sysreq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
}

.sysreq-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: var(--sp-6);
  border-radius: var(--radius-sm);
}

.sysreq-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--sp-4);
  color: var(--c-heading);
}

.sysreq-card dt {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-dim);
  margin-top: var(--sp-3);
}

.sysreq-card dd {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  padding-left: 0;
}

/* --------------------------------------------------------------------------
   14. About Page
   -------------------------------------------------------------------------- */
.about-header {
  padding: var(--sp-24) 0 var(--sp-16);
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}

.team-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: var(--sp-8) var(--sp-6);
  border-radius: var(--radius-sm);
  text-align: center;
}

.team-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-surface-2);
  border: 2px solid var(--c-border);
  margin: 0 auto var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--c-accent);
  overflow: hidden;
}

.team-card__name {
  font-family: var(--font-header);
  font-size: var(--text-xl);
  font-weight: var(--font-header-weight);
  color: var(--c-heading);
  margin-bottom: var(--sp-1);
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}

.team-card__bio {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.6;
  max-width: 100%;
}

.ethics-section {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  padding: var(--sp-12) var(--sp-8);
  border-radius: var(--radius-sm);
  margin: var(--sp-12) 0;
}

/* --------------------------------------------------------------------------
   15. CTA Band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(180deg, var(--c-surface) 0%, var(--c-bg) 100%);
  border-top: 1px solid var(--c-border);
  border-bottom: none;
  text-align: center;
  padding: var(--sp-24) 0 var(--sp-12);
  position: relative;
  overflow: hidden;
}

/* Subtle dot texture */
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(232, 216, 203, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

.cta-band::after {
  display: none;
}

.cta-band__content {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: var(--text-4xl);
  margin-bottom: var(--sp-4);
  color: var(--c-heading);
}

.cta-band p {
  font-size: var(--text-xl);
  color: var(--c-text-muted);
  max-width: 48ch;
  margin: 0 auto var(--sp-8);
}

/* --------------------------------------------------------------------------
   16. Prose (markdown content in page layout)
   -------------------------------------------------------------------------- */
.prose {
  color: var(--c-text-muted);
  font-size: var(--text-base);
  line-height: 1.75;
}

.prose h1, .prose h2, .prose h3,
.prose h4, .prose h5, .prose h6 {
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-4);
}

.prose h1:first-child,
.prose h2:first-child {
  margin-top: 0;
}

.prose p     { margin-bottom: var(--sp-5); }
.prose ul, .prose ol { margin-bottom: var(--sp-5); padding-left: var(--sp-6); }
.prose ul    { list-style: disc; }
.prose ol    { list-style: decimal; }
.prose li    { margin-bottom: var(--sp-2); }
.prose a     { text-decoration: underline; text-underline-offset: 3px; }

.page-content {
  padding: var(--sp-24) 0;
}

.page-header {
  margin-bottom: var(--sp-12);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--c-border);
}

.page-header__title {
  font-size: var(--text-5xl);
  margin-bottom: var(--sp-4);
}

.page-header__sub {
  font-size: var(--text-xl);
  color: var(--c-text-muted);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   17. Footer Transition & Footer
   -------------------------------------------------------------------------- */
.footer-transition {
  position: relative;
  width: 100%;
  background-color: var(--c-bg);
  line-height: 0;
  overflow: hidden;
  margin-top: 0;
}

/* Seamless blend from Midnight Blue (#121938) site content at top edge */
.footer-transition::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: linear-gradient(to bottom, var(--c-bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* Seamless blend into Dark Purple (#35264A) footer at bottom edge */
.footer-transition::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(to top, var(--c-footer-bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.footer-transition__img {
  width: 100%;
  height: auto;
  display: block;
}

.footer {
  background: var(--c-footer-bg);
  position: relative;
  padding: var(--sp-12) 0 var(--sp-8);
  margin-top: 0;
}

.footer::before {
  display: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-12);
  margin-bottom: var(--sp-12);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  font-family: var(--font-header);
  font-weight: var(--font-header-weight);
  font-size: var(--text-2xl);
  color: var(--c-heading);
  margin-bottom: var(--sp-4);
}

.footer__logo-emoji,
.footer__logo-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.footer__tagline {
  font-family: var(--font-accent);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--sp-4);
}

.footer__desc {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  line-height: 1.7;
  max-width: 38ch;
}

.footer__heading {
  font-family: var(--font-header);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-heading);
  margin-bottom: var(--sp-4);
  font-weight: var(--font-header-weight);
}

.footer__list li  { margin-bottom: var(--sp-3); }
.footer__list a   {
  font-size: var(--text-sm);
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.footer__list a:hover { color: var(--c-heading); }

.footer__bottom {
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(232, 216, 203, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__bottom p {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--c-text-muted);
  opacity: 0.8;
  margin: 0;
}

.footer__version { color: var(--c-text-muted); opacity: 0.8; }

/* --------------------------------------------------------------------------
   18. Decorative / Utility Patterns
   -------------------------------------------------------------------------- */
.pattern-halftone {
  background-image: radial-gradient(circle, rgba(229, 160, 78, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}

.pattern-stripes {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 6px,
    rgba(229, 160, 78, 0.04) 6px,
    rgba(229, 160, 78, 0.04) 8px
  );
}

.pattern-grid {
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 40px 40px;
}

.accent-bar {
  height: 3px;
  background: var(--c-accent);
  width: 100%;
}

/* --------------------------------------------------------------------------
   19. Utility
   -------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center  { text-align: center; }
.text-accent  { color: var(--c-accent); }
.text-lime    { color: var(--c-accent); }
.text-muted   { color: var(--c-text-muted); }
.text-mono    { font-family: var(--font-mono); }
.text-display { font-family: var(--font-header); }

.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

/* --------------------------------------------------------------------------
   20. Animations
   -------------------------------------------------------------------------- */
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-glow-magenta {
  0%, 100% { box-shadow: 0 0 16px rgba(229, 160, 78, 0.2); }
  50%       { box-shadow: 0 0 28px rgba(229, 160, 78, 0.45); }
}

@keyframes pulse-glow-lime {
  0%, 100% { box-shadow: 0 0 16px rgba(229, 160, 78, 0.2); }
  50%       { box-shadow: 0 0 28px rgba(229, 160, 78, 0.45); }
}

@keyframes rainbow-slide {
  0%   { background-position: 0%   50%; }
  100% { background-position: 200% 50%; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s var(--ease) forwards;
}

/* --------------------------------------------------------------------------
   21. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-inline: auto;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --text-hero: clamp(1.85rem, 8vw, 3.25rem);
  }

  body { padding-top: 56px; }

  .nav__inner { height: 56px; }

  /* Mobile nav */
  .nav__toggle { display: flex; }

  .nav__links {
    display: none;
    position: fixed;
    inset: 56px 0 0 0;
    background: var(--c-header-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--sp-8) var(--sp-6);
    gap: var(--sp-4);
    border-top: 1px solid rgba(232, 216, 203, 0.14);
    overflow-y: auto;
  }

  .nav__links--open { display: flex; }

  .nav__item {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .nav__link {
    font-size: var(--text-2xl);
    padding: var(--sp-2) 0;
    border-bottom: none;
  }

  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(229, 160, 78, 0.35);
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 var(--sp-4);
    margin: var(--sp-1) 0 var(--sp-2) var(--sp-2);
    min-width: 0;
    width: 100%;
  }

  .nav__dropdown::before { display: none; }

  .nav__dropdown-link {
    font-size: var(--text-lg);
    padding: var(--sp-1) var(--sp-2);
  }

  .nav__cta { margin-left: 0; margin-top: var(--sp-4); }

  .comparison-stats {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand { grid-column: auto; }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-band h2 {
    font-size: var(--text-3xl);
  }

  .hero__cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .section--cut-top,
  .section--cut-bottom {
    clip-path: none;
    margin-top: 0;
    padding-top: var(--sp-24);
    padding-bottom: var(--sp-24);
  }
}

@media (max-width: 480px) {
  .platform-cards {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .comparison-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   22. 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;
  }
}
