/* =========================================================
   WallTune Landing Page — Premium CSS
   ========================================================= */

/* ── Custom Properties ─────────────────────────────────── */
:root {
  --bg:          #050505; /* Pure minimalist black */
  --bg-card:     linear-gradient(135deg, rgba(255,255,255,.06) 0%, rgba(255,255,255,.01) 100%);
  --bg-glass:    linear-gradient(135deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 100%);
  --glass-blur:  blur(24px) saturate(160%);
  --border:      rgba(255,255,255,.08);
  --border-hi:   rgba(255,255,255,.15);
  --text:        #ffffff;
  --text-muted:  rgba(255,255,255,.6);
  --text-dim:    rgba(255,255,255,.35);
  --accent:      #6e8e96;
  --accent-soft: rgba(110,142,150,.16);
  --grad-hero:   linear-gradient(135deg,#111111 0%,#050505 50%,#000000 100%);
  --radius-sm:   10px;
  --radius-md:   18px;
  --radius-lg:   28px;
  --radius-xl:   40px;
  --shadow-card: 0 30px 60px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.15), inset 1px 0 0 rgba(255,255,255,.05);
  --shadow-glow: 0 0 80px rgba(255,255,255,.05);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --ease-out:    cubic-bezier(0.22,1,0.36,1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Utility ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin-top: 14px;
}
.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 540px;
}
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge--new {
  background: rgba(255,255,255,.08);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.15);
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .1s; }
.reveal.delay-2 { transition-delay: .2s; }
.reveal.delay-3 { transition-delay: .3s; }
.reveal.delay-4 { transition-delay: .4s; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .2s var(--ease-out), box-shadow .2s, opacity .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, rgba(110,142,150,.98) 0%, rgba(98,110,154,.96) 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 10px 30px rgba(110,142,150,.38),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.btn-primary:hover { box-shadow: 0 14px 42px rgba(98,110,154,.48); }
.btn-secondary {
  background: var(--bg-glass);
  color: var(--text);
  border: 1px solid var(--border-hi);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}
.btn-secondary:hover { background: rgba(255,255,255,.1); }
.btn-ghost {
  color: var(--text-muted);
  font-size: .875rem;
  padding: 8px 0;
}
.btn-ghost:hover { color: var(--text); }

.btn-apple {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  background: #fff;
  color: #000;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
.btn-apple:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255,255,255,.2); }
.btn-apple svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ── NAV ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
}
.navbar.scrolled {
  background: rgba(5, 5, 5, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}
.nav-logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: 100px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Mobile nav */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Mobile nav open */
.nav-links.nav-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(8,9,13,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px 24px;
  gap: 4px;
  z-index: 99;
}
.nav-links.nav-open a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 118px 0 72px;
  background:
    radial-gradient(circle at 20% 18%, rgba(110,142,150,.18) 0%, transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(98,86,139,.14) 0%, transparent 26%),
    linear-gradient(180deg, rgba(10,10,10,.75) 0%, rgba(5,5,5,.94) 58%, #050505 100%);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .34;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,9,13,.42) 0%,
    rgba(8,9,13,.18) 40%,
    rgba(8,9,13,.84) 85%,
    var(--bg) 100%
  );
}
/* Animated orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .24;
  animation: orb-float 12s ease-in-out infinite;
  pointer-events: none;
}
.hero-orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(110,142,150,.86) 0%, transparent 70%);
  top: -180px; left: -110px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(92,94,144,.7) 0%, transparent 70%);
  bottom: -120px; right: -80px;
  animation-delay: -5s;
}
.hero-orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(132,150,186,.34) 0%, transparent 70%);
  top: 30%; right: 14%;
  opacity: .18;
  animation-delay: -9s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0,0); }
  33%       { transform: translate(30px,-40px); }
  66%       { transform: translate(-20px,20px); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 56px));
  margin: 0 auto;
  min-height: 740px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero-copy {
  position: relative;
  z-index: 3;
  text-align: left;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 8px;
  background: rgba(110,142,150,.12);
  border: 1px solid rgba(110,142,150,.24);
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 28px;
  color: #c7d6d8;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

.hero-title {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.05em;
  margin-bottom: 20px;
}
.hero-emphasis {
  display: block;
  color: #fff;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 0 28px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-actions .btn {
  min-height: 52px;
}
.hero-actions .btn-primary {
  padding-inline: 22px;
  box-shadow:
    0 12px 34px rgba(110,142,150,.34),
    inset 0 1px 0 rgba(255,255,255,.14);
}
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .78rem;
  color: rgba(255,255,255,.82);
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.hero-proof-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── HERO SHOWCASE (3 MONITORS) ──────────────────────────── */
.hero-showcase {
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  right: -5vw;
  width: 55vw;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  pointer-events: none;
  perspective: 2200px;
}
/* Overlay fade to cut them off smoothly without breaking 3D */
.hero-showcase::after {
  content: '';
  position: absolute;
  inset: auto 8% -50px 8%;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(110,142,150,.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(18px);
}

.monitors-wrapper {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transition: transform 1.2s cubic-bezier(0.22,1,0.36,1);
  --base-h: clamp(280px, 40vh, 500px);
  height: var(--base-h);
  width: var(--total-w);
}

.monitor-glass {
  position: absolute;
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.008));
  backdrop-filter: blur(18px) saturate(155%);
  -webkit-backdrop-filter: blur(18px) saturate(155%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 4px;
  box-shadow:
    0 36px 80px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  transition: all 1.2s cubic-bezier(0.22,1,0.36,1);
  will-change: width, height, transform, top, left;
}

.monitor-screen {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-color: #050505;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15);
}
.slideshow-img {
  position: absolute;
  top: 0;
  left: 0;
  height: var(--base-h);
  max-width: none;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}
.slideshow-img.fade-out {
  opacity: 0.2;
}

.screenshot-glow {
  position: absolute;
  inset: 12% 8% 10%;
  background: radial-gradient(ellipse, rgba(110,142,150,.18) 0%, rgba(98,86,139,.1) 34%, transparent 74%);
  filter: blur(48px);
  z-index: 3;
}

/* --- DYNAMIC LAYOUTS --- */
/* Layout 1: 3 vertical side-by-side */
.monitors-wrapper:not(.layout-2):not(.layout-3) {
  --left-w: calc(var(--base-h) * 0.5625);
  --total-w: calc(var(--left-w) * 3);
  transform: rotateY(-25deg) rotateX(4deg) translateX(4vw);
}
.monitors-wrapper:not(.layout-2):not(.layout-3) .monitor-left { width: var(--left-w); height: var(--base-h); top: 0; left: 0; }
.monitors-wrapper:not(.layout-2):not(.layout-3) .monitor-center { width: var(--left-w); height: var(--base-h); top: 0; left: var(--left-w); }
.monitors-wrapper:not(.layout-2):not(.layout-3) .monitor-right { width: var(--left-w); height: var(--base-h); top: 0; left: calc(var(--left-w) * 2); }

.monitors-wrapper:not(.layout-2):not(.layout-3) .slideshow-img { width: var(--total-w); }
.monitors-wrapper:not(.layout-2):not(.layout-3) .span-left { transform: translateX(0); }
.monitors-wrapper:not(.layout-2):not(.layout-3) .span-center { transform: translateX(calc(var(--left-w) * -1)); }
.monitors-wrapper:not(.layout-2):not(.layout-3) .span-right { transform: translateX(calc(var(--left-w) * -2)); }

/* Layout 2: Vertical Left, 2 Horizontal Right stacked */
.monitors-wrapper.layout-2 {
  --left-w: calc(var(--base-h) * 0.5625);
  --right-w: calc(var(--base-h) * 0.888);
  --total-w: calc(var(--left-w) + var(--right-w));
  transform: rotateY(-20deg) rotateX(2deg) translateX(4vw);
}
.monitors-wrapper.layout-2 .monitor-left { width: var(--left-w); height: var(--base-h); top: 0; left: 0; }
.monitors-wrapper.layout-2 .monitor-center { width: var(--right-w); height: calc(var(--base-h) / 2); top: 0; left: var(--left-w); }
.monitors-wrapper.layout-2 .monitor-right { width: var(--right-w); height: calc(var(--base-h) / 2); top: calc(var(--base-h) / 2); left: var(--left-w); }

.monitors-wrapper.layout-2 .slideshow-img { width: var(--total-w); }
.monitors-wrapper.layout-2 .span-left { transform: translateX(0); }
.monitors-wrapper.layout-2 .span-center { transform: translateX(calc(var(--left-w) * -1)) translateY(0); }
.monitors-wrapper.layout-2 .span-right { transform: translateX(calc(var(--left-w) * -1)) translateY(calc(var(--base-h) * -0.5)); }

/* Layout 3: Left Top Horizontal, Left Bottom Horizontal, Right Vertical */
.monitors-wrapper.layout-3 {
  --left-w: calc(var(--base-h) * 0.888);
  --right-w: calc(var(--base-h) * 0.5625);
  --total-w: calc(var(--left-w) + var(--right-w));
  transform: rotateY(-22deg) rotateX(5deg) translateX(5vw);
}
.monitors-wrapper.layout-3 .monitor-left { width: var(--left-w); height: calc(var(--base-h) / 2); top: 0; left: 0; }
.monitors-wrapper.layout-3 .monitor-center { width: var(--left-w); height: calc(var(--base-h) / 2); top: calc(var(--base-h) / 2); left: 0; }
.monitors-wrapper.layout-3 .monitor-right { width: var(--right-w); height: var(--base-h); top: 0; left: var(--left-w); }

.monitors-wrapper.layout-3 .slideshow-img { width: var(--total-w); }
.monitors-wrapper.layout-3 .span-left { transform: translateX(0) translateY(0); }
.monitors-wrapper.layout-3 .span-center { transform: translateX(0) translateY(calc(var(--base-h) * -0.5)); }
.monitors-wrapper.layout-3 .span-right { transform: translateX(calc(var(--left-w) * -1)) translateY(0); }
/* ----------------------- */

@media (max-width: 900px) {
  .hero {
    padding-top: 104px;
  }
  .hero-grid {
    width: min(100%, calc(100% - 36px));
    min-height: 0;
  }
  .hero-copy {
    max-width: 100%;
    padding-top: 0;
  }
  .hero-actions {
    align-items: stretch;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .hero-showcase {
    position: static;
    inset: auto;
    margin-top: 28px;
    pointer-events: auto;
  }
  .monitors-wrapper {
    padding-top: 20px;
    flex-direction: column;
    align-items: center;
  }
  .monitor-glass {
    position: relative;
    transform: none !important;
    width: 100%;
    max-width: 100%;
  }
}


/* ── MARQUEE (wallpaper strips) ─────────────────────────── */
.marquee-section {
  padding: 60px 0;
  overflow: hidden;
  position: relative;
}
.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-section::before { left: 0;  background: linear-gradient(to right, var(--bg), transparent); }
.marquee-section::after  { right: 0; background: linear-gradient(to left,  var(--bg), transparent); }
.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  width: 220px;
  height: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s;
}
.marquee-item:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Gradient color placeholders for marquee */
.wc-1 { background: linear-gradient(135deg,#1a0533,#4a1580); }
.wc-2 { background: linear-gradient(135deg,#0a2040,#1a6080); }
.wc-3 { background: linear-gradient(135deg,#0d3020,#1a6040); }
.wc-4 { background: linear-gradient(135deg,#300a10,#802030); }
.wc-5 { background: linear-gradient(135deg,#1a1500,#605010); }
.wc-6 { background: linear-gradient(135deg,#051a30,#0050a0); }

/* ── STATS STRIP ─────────────────────────────────────────── */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
  background: linear-gradient(90deg, transparent, rgba(110,142,150,.06), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(135deg, #fff 0%, #ffcfbf 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: .82rem; color: var(--text-dim); margin-top: 4px; letter-spacing: .04em; }

/* ── VIDEO DEMO ─────────────────────────────────────────── */
.video-section {
  padding: 92px 0 28px;
}
.video-band {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 26px;
  align-items: center;
  padding: 26px;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    radial-gradient(circle at 0% 0%, rgba(110,142,150,.14) 0%, transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(98,86,139,.08) 0%, transparent 28%);
  box-shadow: var(--shadow-card);
}
.video-copy {
  max-width: 520px;
}
.video-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.video-points span {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.8);
  font-size: .78rem;
  line-height: 1.3;
}
.video-player-shell {
  position: relative;
}
.video-player-shell::before {
  content: '';
  position: absolute;
  inset: 22px 18px -18px;
  border-radius: 26px;
  background: radial-gradient(ellipse at center, rgba(110,142,150,.2) 0%, transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}
.video-player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: #000;
  box-shadow:
    0 28px 80px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.video-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ── SECTIONS COMMON ─────────────────────────────────────── */
.section { padding: 120px 0; }
.section-header { text-align: center; margin-bottom: 72px; }
.section-header .section-subtitle { margin: 16px auto 0; }

/* ── FEATURE CARDS BENTO GRID ───────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.bento-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255,255,255,.12);
  border-left: 1px solid rgba(255,255,255,.08);
  padding: 40px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.bento-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.03) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}

/* Bento layout */
.bento-c1 { grid-column: span 7; }
.bento-c2 { grid-column: span 5; }
.bento-c3 { grid-column: span 4; }
.bento-c4 { grid-column: span 4; }
.bento-c5 { grid-column: span 4; }
.bento-c6 { grid-column: span 12; }

.bento-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.bento-icon--purple  { background: rgba(98,86,139,.16); }
.bento-icon--teal    { background: rgba(110,142,150,.14); }
.bento-icon--amber   { background: rgba(245,166,35,.12); }
.bento-icon--rose    { background: rgba(244,114,182,.12); }
.bento-icon--blue    { background: rgba(59,130,246,.12); }

.bento-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.bento-tag--soon {
  background: rgba(245,166,35,.12);
  color: #f5a623;
  border: 1px solid rgba(245,166,35,.25);
}

.bento-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}
.bento-desc {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Big feature card image */
.bento-visual {
  margin: 24px -36px -36px;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.bento-visual img {
  width: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.bento-card:hover .bento-visual img { transform: scale(1.03); }

/* Monitor display CSS art for modes */
.mode-demo {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}
.mode-screen {
  flex: 1;
  height: 50px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
}
.mode-screen.s1 { background: linear-gradient(135deg,#2a1060,#5030a0); }
.mode-screen.s2 { background: linear-gradient(135deg,#0a3060,#1560a0); }
.mode-screen.s3 { background: linear-gradient(135deg,#0a3020,#106040); }

.span-demo {
  margin-top: 24px;
  height: 50px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(90deg,#2a1060,#5030a0,#1a5090,#0a3060,#0a3020);
  position: relative;
  overflow: hidden;
}
.span-demo::before,
.span-demo::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.2);
}
.span-demo::before { left: 33.3%; }
.span-demo::after  { left: 66.6%; }

/* Smart playback pill list */
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill {
  padding: 6px 14px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .78rem;
  color: var(--text-muted);
  transition: border-color .2s, color .2s;
}
.pill:hover { border-color: var(--border-hi); color: var(--text); }

/* ── SCROLLYTELLING ──────────────────────────────────────── */
.scrolly-section { padding: 80px 0; background: var(--bg); }
.scrolly-container {
  display: flex;
  gap: 80px;
  position: relative;
  align-items: flex-start;
  margin-top: 60px;
}
.scrolly-text {
  flex: 1;
  padding-bottom: 10vh; /* reduced padding so image stops scrolling when step 3 is reached */
}
.scrolly-step {
  padding: 60px 40px;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.2;
  transform: translateX(-20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.scrolly-step.active {
  opacity: 1;
  transform: translateX(0);
}
.step-num {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -.05em;
  color: rgba(255,255,255,.06);
  line-height: 1;
  margin-bottom: 20px;
  transition: color .3s;
}
.scrolly-step.active .step-num {
  color: rgba(255,255,255,.2);
}
.step-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 12px; }
.step-desc { font-size: 1rem; line-height: 1.65; color: var(--text-muted); }

.scrolly-visual {
  flex: 1;
  position: sticky;
  top: 15vh;
  height: 70vh;
  /* we don't need flex inside here since the child is absolute */
}
.scrolly-sticky {
  position: absolute;
  top: 50%;
  left: 0; /* starts at the left edge of the right column (near the middle of the screen) */
  transform: translateY(-50%);
  width: 90vw; /* Huge width so it bleeds off the right edge of the screen */
  max-width: 1400px;
  height: auto;
  aspect-ratio: 4/3;
}
.scrolly-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: contain; /* Shows the UI mockup correctly */
  object-position: left center; /* anchors the image to the left, letting the right side overflow */
  opacity: 0;
  transform: translateX(100px); /* slides in from the right */
  transition: opacity 0.8s var(--ease-out), transform 1.2s var(--ease-out);
}
.scrolly-img.active {
  opacity: 1;
  transform: translateX(0); 
  z-index: 2;
}

@media (max-width: 900px) {
  .scrolly-container { flex-direction: column-reverse; gap: 40px; }
  .scrolly-visual {
    position: sticky;
    top: 80px;
    height: auto;
    z-index: 10;
    padding: 0 20px;
    margin-bottom: -20vh; /* Allow text to flow under it */
  }
  .scrolly-sticky { aspect-ratio: 16/9; }
  .scrolly-text { padding-bottom: 10vh; padding-top: 25vh; }
  .scrolly-step { min-height: 60vh; padding: 40px 20px; text-align: center; }
  .scrolly-step.active { background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8) 50%, transparent); }
}

/* ── APP SHOWCASE ────────────────────────────────────────── */
.showcase-section { padding: 120px 0; }
.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.showcase-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.showcase-img-wrap img {
  width: 100%;
  transition: transform .6s var(--ease-out);
}
.showcase-img-wrap:hover img { transform: scale(1.02); }
.showcase-copy .eyebrow { margin-bottom: 16px; }
.showcase-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.showcase-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.showcase-list-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.showcase-list-text strong { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 3px; }
.showcase-list-text span { font-size: .83rem; color: var(--text-muted); line-height: 1.55; }

/* ── GALLERY SECTION ─────────────────────────────────────── */
.gallery-section { padding: 80px 0; }
.gallery-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.gallery-img-wrap img { width: 100%; transition: transform .6s var(--ease-out); }
.gallery-img-wrap:hover img { transform: scale(1.02); }

/* ── CLAIMS ─────────────────────────────────────────────── */
.comparison-section { padding: 120px 0; }
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: var(--shadow-card);
}
.compare-table th,
.compare-table td {
  padding: 18px 24px;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.compare-table th {
  background: rgba(255,255,255,.035);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.compare-table th:first-child { width: 38%; }
.compare-table th.hl { color: var(--text); }
.compare-table td.bad { color: var(--text-dim); }
.compare-table td.good { color: var(--text); font-weight: 500; }
.compare-table td.good::before { content: '✓ '; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,.02); }
.compare-col-walltune { background: rgba(255,255,255,.03); }

/* ── PRICING ─────────────────────────────────────────────── */
.pricing-section { padding: 120px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-top: 1px solid rgba(255,255,255,.12);
  border-left: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.pricing-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.pricing-card--featured {
  border-color: var(--accent);
  border-top-color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(135deg, rgba(110,142,150,.1) 0%, rgba(98,86,139,.02) 100%);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-glow), inset 0 1px 0 rgba(110,142,150,.2);
}
.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 18px; right: 18px;
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 3px 10px;
  border-radius: 100px;
}
.pricing-label { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.pricing-price { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; }
.pricing-price sub { font-size: 1.2rem; font-weight: 600; vertical-align: top; margin-top: 12px; display: inline-block; }
.pricing-price .period { font-size: .85rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc { font-size: .85rem; color: var(--text-muted); margin: 12px 0 28px; line-height: 1.55; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.pricing-features li { font-size: .875rem; color: var(--text-muted); display: flex; gap: 10px; align-items: center; }
.pricing-features li::before { content: '✓'; color: var(--text); font-weight: 700; flex-shrink: 0; }
.pricing-features li.unavailable::before { content: '—'; color: var(--text-dim); }
.pricing-features li.unavailable { color: var(--text-dim); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section {
  padding: 100px 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)),
    radial-gradient(circle at 50% 0%, rgba(110,142,150,.08) 0%, transparent 45%);
}
.faq-direct-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 960px;
  margin: 0 auto;
}
.faq-direct-item {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05)),
    var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
  padding: 24px 24px 22px;
}
.faq-direct-item h3 {
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
}
.faq-direct-item p {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── CTA FINAL ───────────────────────────────────────────── */
.cta-section {
  padding: 140px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% -20%, rgba(255,255,255,.05) 0%, transparent 60%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.cta-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  max-width: 680px;
  margin: 0 auto 20px;
  line-height: 1.1;
}
.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 44px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cta-note { font-size: .8rem; color: var(--text-dim); }

/* ── FOOTER ─────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1rem; margin-bottom: 12px; }
.footer-brand-icon { width: 28px; height: 28px; border-radius: 7px; overflow: hidden; }
.footer-brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.footer-tagline { font-size: .83rem; color: var(--text-dim); line-height: 1.6; max-width: 220px; }
.footer-col-title { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footer-links-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links-list a { font-size: .875rem; color: var(--text-muted); transition: color .2s; }
.footer-links-list a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: var(--text-dim); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .75rem;
  transition: border-color .2s, color .2s, background .2s;
}
.footer-social a:hover { border-color: var(--border-hi); color: var(--text); background: var(--bg-glass); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .bento-c1, .bento-c2, .bento-c6 { grid-column: span 12; }
  .bento-c3, .bento-c4, .bento-c5 { grid-column: span 6; }
  .showcase-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .video-band { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { padding: 14px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-burger { display: flex; }
  .bento-c3, .bento-c4, .bento-c5 { grid-column: span 12; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-badge { font-size: .68rem; }
  .hero-proof { gap: 8px; }
  .hero-proof-item { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .video-section { padding-top: 72px; }
  .video-band { padding: 18px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .compare-table { display: block; overflow-x: auto; }
}

/* ── Misc polish ─────────────────────────────────────────── */
::selection { background: rgba(255,255,255,.2); color: #fff; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* ═══════════════════════════════════════════════════════════
   SPA SCREEN SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* Viewport that clips all screens */
#app-viewport {
  position: relative;
  min-height: 100vh;
  overflow: clip; /* prevent scroll during transition but allow sticky */
}

/* Every screen is full-width, positioned in flow by default.
   Hidden screens are taken out of flow with visibility+opacity. */
.screen {
  width: 100%;
  transition: opacity 0.45s cubic-bezier(0.22,1,0.36,1),
              transform 0.45s cubic-bezier(0.22,1,0.36,1);
  will-change: opacity, transform;
}

/* Active screen: fully visible */
.screen--active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  position: relative;
}

/* Exiting screen: fade + slight upward slide */
.screen--exit {
  position: absolute;
  top: 0; left: 0; right: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-16px) scale(0.985);
}

/* Entering screen: fade in from slightly below */
.screen--enter {
  position: absolute;
  top: 0; left: 0; right: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px) scale(0.99);
}

/* Hidden screens (not transitioning) */
.screen:not(.screen--active):not(.screen--exit):not(.screen--enter) {
  display: none;
}

/* Nav link active state */
.nav-links a.nav-active { color: var(--text); }

/* Body overflow lock during transition */
body.transitioning { overflow: hidden; }


/* ═══════════════════════════════════════════════════════════
   DOWNLOAD SCREEN
   ═══════════════════════════════════════════════════════════ */

/* sub-screen wrapper: common base */
.sub-screen {
  min-height: 100vh;
  padding-top: 80px; /* nav height */
  position: relative;
  overflow: hidden;
}

/* Download: fully centered single column */
.sub-screen--download {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

/* Soft radial glow behind the icon */
.dl-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(110,142,150,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Single centered column */
.dl-centered {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 36px;
  padding: 60px 40px;
  max-width: 520px;
  width: 100%;
}

/* Animated icon with rings */
.dl-icon-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  animation: ring-pulse 3s ease-in-out infinite;
}
.dl-ring-1 { width: 120px; height: 120px; animation-delay: 0s; }
.dl-ring-2 { width: 160px; height: 160px; animation-delay: 0.5s; border-color: rgba(255,255,255,0.18); }
.dl-ring-3 { width: 200px; height: 200px; animation-delay: 1s;   border-color: rgba(255,255,255,0.08); }

@keyframes ring-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.04); }
}

.dl-app-icon {
  width: 80px; height: 80px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.1);
  z-index: 1;
  position: relative;
}
.dl-app-icon img { width: 100%; height: 100%; object-fit: cover; }

/* Progress states */
.dl-state { width: 100%; max-width: 400px; }
.dl-state--hidden { display: none; }

.dl-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

.dl-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 100px;
  overflow: hidden;
}
.dl-progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 100px;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(255,255,255,0.4);
}

.dl-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 10px;
}
.dl-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.dl-link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.dl-link:hover { color: #fff; }

/* Installation steps */
.dl-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 420px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out) 0.3s, transform 0.5s var(--ease-out) 0.3s;
}
.dl-steps.visible {
  opacity: 1;
  transform: none;
}

.dl-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}
.dl-step:hover { border-color: var(--border-hi); }

.dl-step-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 4px 8px;
  flex-shrink: 0;
  margin-top: 2px;
}

.dl-step-body strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.dl-step-body span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.dl-step-body code {
  font-family: ui-monospace, 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  background: rgba(255,255,255,0.07);
  padding: 1px 6px;
  border-radius: 4px;
  color: #fff;
}

/* Requirements notice */
.dl-req {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: 400px;
  line-height: 1.5;
}
.dl-req svg { flex-shrink: 0; }

/* Back link */
.dl-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
  padding: 6px 0;
}
.dl-back:hover { color: var(--text); }

/* Side info panel */
.dl-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 100px 40px 60px 0;
  justify-content: center;
}

.dl-side-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.dl-side-card:hover { border-color: var(--border-hi); transform: translateX(-4px); }

.dl-side-card--featured { border: 1px solid var(--accent); }

.dl-side-icon { font-size: 1.3rem; margin-bottom: 4px; }
.dl-side-card strong { font-size: 0.9rem; font-weight: 600; }
.dl-side-card span { font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

/* Responsive download screen */
@media (max-width: 900px) {
  .sub-screen {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .dl-center { padding: 60px 32px; }
  .dl-side {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 32px 60px;
    gap: 10px;
  }
  .dl-side-card { flex: 1 1 calc(50% - 10px); }
  .dl-side-card:hover { transform: none; }
}

@media (max-width: 480px) {
  .dl-side-card { flex: 1 1 100%; }
  .dl-center { padding: 40px 20px; }
}


/* ═══════════════════════════════════════════════════════════
   ABOUT SCREEN
   ═══════════════════════════════════════════════════════════ */

.sub-screen--about {
  grid-template-columns: 1fr;
  min-height: 100vh;
  padding-top: 80px;
  display: block;
}

.about-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.about-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8,9,13,0.88);
}

.about-container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

/* About header */
.about-header { max-width: 700px; }
.about-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 16px 0 20px;
}
.about-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 580px;
}

/* Story section */
.about-story {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: start;
}
.about-story--legal {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px);
  gap: 40px;
}
.about-story-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.about-story-text p {
  font-size: 0.975rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.about-story-text p:last-child { margin-bottom: 0; }

.about-story-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: sticky;
  top: 100px;
}
.about-story-card--legal {
  padding: 32px;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.about-stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-stat-label {
  display: block;
  font-size: 0.77rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin-top: 3px;
}

/* Principles */
.about-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
}
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.principle-card:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.principle-icon { font-size: 1.6rem; margin-bottom: 16px; }
.principle-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.principle-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }

/* Tech list */
.tech-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tech-item {
  background: var(--bg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.2s;
}
.tech-item:hover { background: rgba(110,142,150,0.04); }
.tech-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.tech-value { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.about-story-card--legal .tech-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.about-story-card--legal .tech-item {
  min-height: 96px;
}
.about-story-card--legal .tech-value {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* About CTA */
.about-cta {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 20px;
}

/* About responsive */
@media (max-width: 900px) {
  .about-story { grid-template-columns: 1fr; }
  .about-story--legal { grid-template-columns: 1fr; }
  .about-story-card { position: static; }
  .about-story-card--legal .tech-list { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .tech-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .about-container { gap: 64px; padding-top: 48px; }
  .tech-list { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .about-cta { flex-direction: column; align-items: stretch; }
  .about-cta .btn, .about-cta .btn-apple { justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   SERIF ITALIC — Apple-style typographic accent
   ═══════════════════════════════════════════════════════════ */
.hero-serif {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.01em;
}
.section-serif {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.75);
}

/* ═══════════════════════════════════════════════════════════
   IMAGE CAROUSEL
   ═══════════════════════════════════════════════════════════ */
.carousel-section {
  padding: 100px 0 60px;
  background: var(--bg);
}

.carousel-track-wrap {
  margin-top: 60px;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 calc(50vw - 560px); /* center first item */
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 min(900px, 80vw);
  scroll-snap-align: center;
  opacity: 0.45;
  transform: scale(0.95);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.carousel-img-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.carousel-img-wrap:hover img {
  transform: scale(1.04);
}

.carousel-caption {
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* Navigation controls */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  color: var(--text-muted);
}
.carousel-btn svg { width: 16px; height: 16px; }
.carousel-btn:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--border-hi);
  color: var(--text);
  transform: scale(1.05);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dots button {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-hi);
  border: none;
  cursor: pointer;
  transition: width 0.3s var(--ease-out), background 0.3s, border-radius 0.3s;
}
.carousel-dots button.active {
  width: 22px;
  border-radius: 3px;
  background: #fff;
}

/* ── Floating Discord Button ──────────────────────────────── */
.discord-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #5865F2; /* Discord Blurple */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.4);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
}
.discord-float:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.6);
}
.discord-icon {
  width: 28px;
  height: 28px;
}
.discord-callout {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: #1a1a1e;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.discord-callout::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #1a1a1e;
}
.discord-float:hover .discord-callout {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}
/* Mobile adjustment */
@media (max-width: 768px) {
  .discord-float {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  .discord-icon {
    width: 24px;
    height: 24px;
  }
  .discord-callout {
    display: none; /* Hide callout on very small screens to prevent overflow */
  }
}
