/* ============================================
   WORKSPACE GRIDDER — Scroll-Driven Landing
   ============================================ */

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

:root {
  --bg: #0a0a0c;
  --bg-off: #101014;
  --text: #e8e8f0;
  --text-2: #888898;
  --text-3: #505060;
  --cyan: #00f6ff;
  --magenta: #ff07ff;
  --accent: #00f6ff;
  --accent-light: rgba(0,246,255,0.08);
  --magenta-light: rgba(255,7,255,0.08);
  --border: rgba(255,255,255,0.06);
  --border-hard: rgba(255,255,255,0.12);
  --glow-cyan: 0 0 30px rgba(0,246,255,0.25);
  --glow-magenta: 0 0 30px rgba(255,7,255,0.25);
  --gradient: linear-gradient(135deg, #00f6ff, #ff07ff);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --mono: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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


/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 56px; display: flex; align-items: center;
  padding: 0 32px;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.scrolled {
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; width: 100%; margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.nav-logo {
  display: flex; align-items: center;
}
.nav-logo img { height: 50px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; justify-self: center; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gradient); color: #000 !important;
  padding: 7px 18px; border-radius: 8px;
  font-weight: 600 !important; transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; }
.nav-right { display: flex; align-items: center; justify-self: end; }
.nav-btn-white {
  padding: 7px 18px; border-radius: 8px;
  background: #fff; color: #000 !important;
  font-size: 13px; font-weight: 600 !important;
  transition: opacity 0.2s !important;
}
.nav-btn-white:hover { opacity: 0.85; }


/* ============ SCENE SYSTEM ============ */
/* Each scene has a tall outer container (for scroll distance)
   and a sticky inner that pins to the viewport */
.scene { position: relative; }

.scene-hero { height: 250vh; }
.scene-hero-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.gi-grid {
  position: absolute;
  top: 56px; left: 0; right: 0; bottom: 0;
  display: grid;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  background: rgba(107,110,249,0.04);
}

.bgapp-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.20);
  z-index: 1;
  pointer-events: none;
}

.gi-cell {
  border: 0.25px solid rgba(255,255,255,0.10);
  position: relative;
}


.scene-chaos { height: 500vh; position: relative; z-index: 1; }
.scene-chaos-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.scene-features { height: 500vh; }
.scene-features-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; align-items: center;
  padding: 0 80px;
  overflow: hidden;
}

.scene-gridsnap { height: 500vh; }
.scene-gridsnap-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 40px 60px;
  overflow: hidden;
}
.scene-gridsnap .showcase-visual { flex: none; }
.scene-gridsnap .showcase-screen {
  width: min(720px, 80vw);
  height: min(460px, 50vh);
}
.scene-gridsnap .showcase-text {
  text-align: center;
  max-width: 600px;
}

.scene-downtown { height: 400vh; }
.scene-downtown-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 80px;
  padding: 0 100px;
  overflow: hidden;
}

.scene-hud { height: 300vh; }
.scene-hud-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 80px;
  padding: 0 100px;
  overflow: hidden;
}

.scene-cycles { height: 400vh; }
.scene-cycles-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 80px;
  padding: 0 100px;
  overflow: hidden;
}

.scene-langs { height: 350vh; }
.scene-langs-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.scene-custom { height: 300vh; }
.scene-custom-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 80px;
  padding: 0 100px;
  overflow: hidden;
}


.scene-download { height: 200vh; }
.scene-download-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}


/* ============ HERO ============ */
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 700px;
  will-change: transform, opacity;
}

.hero-badge {
  display: inline-block; padding: 6px 14px;
  background: var(--accent-light); border: 1px solid rgba(0,246,255,0.15);
  border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--cyan);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0; transform: translateY(20px);
  transition: all 0.8s var(--ease) 0.2s;
}
.hero-badge.visible { opacity: 1; transform: none; }

.hero-title {
  font-size: clamp(44px, 7vw, 80px);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.hero-line-1, .hero-line-2 {
  display: block;
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s var(--ease);
}
.hero-line-1 {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-line-1.visible { opacity: 1; transform: none; transition-delay: 0.35s; }
.hero-line-2 {
  position: relative;
}
.hero-line-2.visible { opacity: 1; transform: none; transition-delay: 0.5s; }
.hero-line-2::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; right: 0;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.hero-line-2.grad::after { opacity: 1; }

.hero-scroll-cue.grad span {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px; line-height: 1.7; color: var(--text-2);
  max-width: 520px; margin: 0 auto 48px;
  opacity: 0; transform: translateY(20px);
  transition: all 0.8s var(--ease) 0.65s;
}
.hero-subtitle.visible { opacity: 1; transform: none; }

.hero-scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  opacity: 0; transition: opacity 0.8s 1s;
}
.hero-scroll-cue.visible { opacity: 1; }
.hero-scroll-cue span {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-3);
}
.hero-scroll-cue .cue-or {
  font-size: 10px; text-transform: none;
  letter-spacing: 0; color: rgba(255,255,255,0.15);
}

/* Fixed scroll nav arrows */
.scroll-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.3s ease;
}
.scroll-nav:hover { opacity: 0.8; }

.scroll-nav-up {
  top: 72px;
  opacity: 0;
  pointer-events: none;
  transition: top 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.scroll-nav-up.visible {
  opacity: 0.35;
  pointer-events: auto;
}
.scroll-nav-down {
  bottom: 16px;
  transition: bottom 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.scroll-nav-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.scroll-nav-down .scroll-nav-arrow {
  transform: rotate(45deg);
}
.scroll-nav-down.at-hero .scroll-nav-arrow {
  animation: bounceArrowDown 2s ease-in-out infinite;
}
.scroll-nav-down.at-hero {
  opacity: 0.6;
}

@keyframes bounceArrowDown {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
  50% { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

.scroll-nav-up .scroll-nav-arrow {
  transform: rotate(-135deg);
}


/* ============ CHAOS SCENE ============ */
.chaos-grid {
  position: absolute;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.chaos-stage {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  max-height: 56.25vw; /* 16:9 aspect cap */
  pointer-events: none;
  z-index: 2;
}

.chaos-win {
  position: absolute;
  background: var(--bg-off);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
  will-change: transform, left, top, width, height;
}

.chaos-win.ordered {
  border-color: rgba(0,246,255,0.2);
  box-shadow: 0 0 20px rgba(0,246,255,0.08), 0 2px 12px rgba(0,0,0,0.3);
  transition: border-color 0.4s, box-shadow 0.4s;
}

.cw-chrome {
  display: flex; gap: 5px; padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cw-chrome span {
  width: 8px; height: 8px; border-radius: 50%;
}
.cw-chrome span:nth-child(1) { background: #ff5f57; }
.cw-chrome span:nth-child(2) { background: #febc2e; }
.cw-chrome span:nth-child(3) { background: #28c840; }

.cw-label {
  padding: 10px 12px;
  font-size: 11px; font-weight: 600; color: var(--text-3);
  font-family: var(--mono); letter-spacing: 0.02em;
}

/* Chaotic positions (default / no-JS fallback) */
.cw-1 { width: 18%; height: 22%; top: 12%; left: 8%; transform: rotate(-3deg); }
.cw-2 { width: 15%; height: 18%; top: 18%; left: 35%; transform: rotate(2deg); z-index: 2; }
.cw-3 { width: 20%; height: 24%; top: 25%; left: 60%; transform: rotate(-1deg); }
.cw-4 { width: 14%; height: 16%; top: 58%; left: 12%; transform: rotate(1.5deg); }
.cw-5 { width: 16%; height: 19%; top: 62%; left: 40%; transform: rotate(-2deg); z-index: 1; }
.cw-6 { width: 14%; height: 15%; top: 55%; left: 72%; transform: rotate(2.5deg); }

/* Text overlays */
.chaos-text, .order-text {
  position: absolute; z-index: 10;
  text-align: center; max-width: 500px;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.chaos-text {
  opacity: 0; transform: translateY(20px);
}
.chaos-text.visible {
  opacity: 1; transform: none;
}

.chaos-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 12px;
}
.order-label {
  display: block;
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 20px;
}

.chaos-title, .order-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 14px;
}

.chaos-desc {
  font-size: 16px; color: var(--text-2); line-height: 1.7;
}

.order-text {
  opacity: 0; transform: translateY(20px);
  padding: 48px 60px;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(0,246,255,0.06) 0%, rgba(255,7,255,0.03) 40%, transparent 70%);
}
.order-text.visible {
  opacity: 1; transform: none;
}

.order-logo-full {
  display: block;
  max-width: 380px; height: auto;
  margin: 60px auto 24px;
  border-radius: 8px;
  filter: drop-shadow(0 0 40px rgba(0,246,255,0.2)) drop-shadow(0 0 80px rgba(255,7,255,0.12));
}

.order-title {
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ============ BACKGROUND APP SCENE ============ */
.scene-bgapp { height: 400vh; position: relative; z-index: 1; }
.scene-bgapp-sticky {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  display: flex; align-items: center; justify-content: center;
  gap: 80px; padding: 0 100px;
  overflow: hidden;
}

.bgapp-screen {
  position: relative; z-index: 2;
  width: 440px; height: 280px;
  background: #1a1a1e;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 440px;
  box-shadow: 0 0 80px 40px rgba(0,0,0,0.7), 0 0 160px 80px rgba(0,0,0,0.4);
  opacity: 0;
}

/* Menu bar */
.bgapp-menubar {
  height: 24px;
  background: rgba(30,30,34,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; align-items: center;
  padding: 0 10px;
  font-size: 10px; font-weight: 500;
  color: var(--text-2);
  position: relative; z-index: 3;
}
.bgapp-apple {
  width: 10px; height: 12px;
  background: var(--text-2);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 17' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.2 5.7c-1.3.8-2 1.9-2 3.4 0 1.7.9 2.9 2.2 3.5-.3 1-1.2 2.6-2.4 3.9-.9 1-1.8 1.5-2.8 1.5s-1.5-.5-2.8-.5c-1.4 0-2 .5-2.9.5S1 17 .2 15.8C-.8 14.3-1 11.3.9 9c.8-1.1 2-1.8 3.2-1.8 1.1 0 2 .6 2.7.6s1.5-.7 2.9-.6c.8 0 2.2.3 3 1.5h.5zM9.5 4.5C8.3 4.5 7.4 3.5 7.5 2c1.3.1 2.5 1.1 2.5 2.5h-.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 14 17' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.2 5.7c-1.3.8-2 1.9-2 3.4 0 1.7.9 2.9 2.2 3.5-.3 1-1.2 2.6-2.4 3.9-.9 1-1.8 1.5-2.8 1.5s-1.5-.5-2.8-.5c-1.4 0-2 .5-2.9.5S1 17 .2 15.8C-.8 14.3-1 11.3.9 9c.8-1.1 2-1.8 3.2-1.8 1.1 0 2 .6 2.7.6s1.5-.7 2.9-.6c.8 0 2.2.3 3 1.5h.5zM9.5 4.5C8.3 4.5 7.4 3.5 7.5 2c1.3.1 2.5 1.1 2.5 2.5h-.5z'/%3E%3C/svg%3E") center / contain no-repeat;
  margin-right: 14px;
}
.bgapp-menus { display: flex; gap: 12px; flex: 1; }
.bgapp-menus span { opacity: 0.6; font-size: 10px; }
.bgapp-tray {
  display: flex; align-items: center; gap: 8px;
  margin-left: auto;
}
.bgapp-tray-icon {
  width: 12px; height: 12px; border-radius: 2px;
  background: rgba(255,255,255,0.2);
}
.bgapp-wsg-icon {
  width: 16px; height: 16px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  z-index: 5;
}
.bwi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 100%; height: 100%;
  padding: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
}
.bwi-grid span {
  background: #0a0a0c;
}
.bwi-grid span:nth-child(1) { background: #00f6ff; }
.bwi-grid span:nth-child(2) { background: #0a0a0c; }
.bwi-grid span:nth-child(3) { background: #0a0a0c; }
.bwi-grid span:nth-child(4) { background: #ff07ff; }

/* Desktop windows (blurred) */
.bgapp-desktop { position: absolute; inset: 24px 0 0; z-index: 1; }
.bgapp-dwin {
  position: absolute;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 5px;
}
.bdw-1 { top: 12%; left: 5%; width: 45%; height: 50%; }
.bdw-2 { top: 18%; left: 35%; width: 40%; height: 45%; }
.bdw-3 { top: 25%; left: 55%; width: 38%; height: 48%; }

/* Dropdown panel */
.bgapp-dropdown {
  position: absolute;
  top: 24px; right: 40px;
  width: 150px;
  padding: 8px;
  background: rgba(20,20,24,0.97);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6), 0 0 20px rgba(0,246,255,0.06);
  z-index: 10;
  opacity: 0;
  transform: translateY(-8px) scaleY(0.9);
  transform-origin: top center;
}
.bgapp-dd-row { display: flex; gap: 4px; margin-bottom: 4px; }
.bgapp-dd-btn {
  flex: 1; aspect-ratio: 1.3;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  position: relative;
}
.bgapp-dd-btn::after {
  content: ''; position: absolute;
  background: var(--cyan); border-radius: 1px; opacity: 0.5;
}
.bdd-full::after { inset: 20%; }
.bdd-left::after { top: 20%; left: 20%; bottom: 20%; width: 30%; }
.bdd-right::after { top: 20%; right: 20%; bottom: 20%; width: 30%; }
.bdd-tl::after { top: 20%; left: 20%; width: 30%; height: 30%; }
.bdd-tr::after { top: 20%; right: 20%; width: 30%; height: 30%; }
.bdd-bl::after { bottom: 20%; left: 20%; width: 30%; height: 30%; }
.bdd-br::after { bottom: 20%; right: 20%; width: 30%; height: 30%; }
.bgapp-dd-divider {
  height: 1px; background: rgba(255,255,255,0.06);
  margin: 6px 0;
}
.bgapp-dd-label {
  font-size: 9px; font-weight: 600; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 4px; padding-left: 2px;
}
.bgapp-dd-slot {
  flex: 1; padding: 4px 0; text-align: center;
  font-size: 9px; font-weight: 600; color: var(--text-3);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  font-family: var(--mono);
}

/* Spotlight glow behind WSG icon */
.bgapp-glow {
  position: absolute;
  top: 0; right: 30px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(0,246,255,0.2) 0%, transparent 70%);
  transform: translate(0, -30px);
  z-index: 2; opacity: 0;
  pointer-events: none;
}

/* Text */
.bgapp-text {
  max-width: 400px;
  position: relative; z-index: 2;
  padding: 32px;
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, transparent 80%);
}
.bgapp-label, .bgapp-headline, .bgapp-desc {
  opacity: 0; transform: translateY(20px);
}
.bgapp-headline { overflow: hidden; }
.bgapp-hl-left, .bgapp-hl-right {
  display: block;
  will-change: transform, opacity;
}
.bgapp-hl-right { text-align: right; }

@media (max-width: 900px) {
  .scene-bgapp-sticky { flex-direction: column; padding: 80px 32px; gap: 32px; text-align: center; }
  .bgapp-screen { width: 320px; height: 210px; flex: none; }
  .bgapp-text { text-align: center; }
  .bgapp-desc { margin: 0 auto; }
}
@media (max-width: 640px) {
  .bgapp-screen { width: 280px; height: 180px; }
}


/* ============ FEATURES SCENE ============ */
.features-left {
  flex: 0 0 320px;
  opacity: 0; transform: translateX(-30px);
  transition: all 0.8s var(--ease);
}
.features-left.visible { opacity: 1; transform: none; }

.features-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--magenta); margin-bottom: 12px;
}

.features-title {
  font-size: 40px; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.1;
}

.features-right {
  flex: 1; position: relative; height: 300px;
  margin-left: 60px;
}

.feature-slide {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.feature-slide.active {
  opacity: 1; transform: none;
  pointer-events: auto;
}

.feature-num {
  font-size: 64px; font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.5;
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 12px;
}

.feature-slide h3 {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 14px;
}

.feature-slide p {
  font-size: 17px; line-height: 1.7;
  color: var(--text-2); max-width: 440px;
}

/* Progress dots */
.features-progress {
  position: absolute; right: 80px;
  display: flex; flex-direction: column; gap: 10px;
}

.fp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-3); opacity: 0.3;
  transition: all 0.4s var(--ease);
}
.fp-dot.active {
  background: var(--cyan); opacity: 1;
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(0,246,255,0.5);
}


/* ============ SHOWCASE SCENES (shared layout) ============ */
.showcase-visual {
  flex: 0 0 400px;
}

.showcase-screen {
  width: 400px; height: 260px;
  background: var(--bg-off);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden; position: relative;
  box-shadow: 0 0 40px rgba(0,246,255,0.06);
}

.showcase-text {
  max-width: 420px;
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s var(--ease);
}
.showcase-text.visible {
  opacity: 1; transform: none;
}

.showcase-label {
  display: block;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 12px;
}
.showcase-label.sc-magenta { color: var(--magenta); }

.showcase-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 16px;
}

.showcase-desc {
  font-size: 17px; line-height: 1.7; color: var(--text-2);
}


/* ============ GRIDSNAP SCENE ============ */

.gs-grid-bg {
  position: absolute; inset: 10px;
  background-image:
    repeating-linear-gradient(to right, rgba(0,246,255,0.12) 0, rgba(0,246,255,0.12) 1px, transparent 1px, transparent),
    repeating-linear-gradient(to bottom, rgba(0,246,255,0.12) 0, rgba(0,246,255,0.12) 1px, transparent 1px, transparent);
  background-size: calc(100% / 12) calc(100% / 8);
  border: 1px solid rgba(0,246,255,0.12);
  border-radius: 4px;
  opacity: 0;
}

.gs-cursor {
  position: absolute;
  width: calc((100% - 20px) / 12);
  height: calc((100% - 20px) / 8);
  background: rgba(107, 110, 249, 0.3);
  border: 1.5px solid #6B6EF9;
  border-radius: 2px;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
}

.gs-start-cell, .gs-end-cell {
  position: absolute;
  width: calc((100% - 20px) / 12);
  height: calc((100% - 20px) / 8);
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
}
.gs-start-cell { background: var(--cyan); z-index: 20; }
.gs-end-cell { background: var(--magenta); z-index: 25; }

.gs-selection {
  position: absolute;
  border-radius: 3px;
  z-index: 12;
  opacity: 0;
  pointer-events: none;
  background: rgba(0,0,0,0.4);
}

.gs-win {
  position: absolute;
  background: rgba(16, 16, 20, 0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 5px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  overflow: hidden;
  z-index: 5;
}

.gw-bar {
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center;
  padding-left: 5px;
}

.gw-bar::before {
  content: '';
  width: 3px; height: 3px; border-radius: 50%;
  background: #ff5f57;
  box-shadow: 5px 0 0 #febc2e, 10px 0 0 #28c840;
}

.gw-label {
  padding: 3px 5px;
  font-size: 7px;
  font-family: var(--mono);
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.02em;
}


/* ============ DOWNTOWN SCENE ============ */
.dt-frame {
  position: absolute;
  inset: calc(56px + 8vw) 8vw 12vw 8vw;
  border: 1.5px solid rgba(255,7,255,0.4);
  border-radius: 20px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  -webkit-mask: conic-gradient(from 0deg, transparent 0, transparent var(--dt-hide, 360deg), #000 var(--dt-hide, 360deg));
  mask: conic-gradient(from 0deg, transparent 0, transparent var(--dt-hide, 360deg), #000 var(--dt-hide, 360deg));
}

.dt-monitor {
  position: relative;
  width: 400px; height: 260px;
  flex: 0 0 400px;
}
.dt-outline-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 5; pointer-events: none;
}
.dt-outline-svg rect {
  stroke: rgba(255,255,255,0.2);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 1300;
  stroke-dashoffset: 1300;
}
.dt-screen {
  position: absolute; inset: 0;
  background: var(--bg-off);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
}
.dt-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, transparent 20%, rgba(10,10,12,0.85) 100%);
  opacity: 0; z-index: 4; pointer-events: none;
}
.dt-bg-win {
  position: absolute;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  z-index: 0; opacity: 0;
}
.dbw-1 { top: 5%; left: 3%; width: 22%; height: 25%; }
.dbw-2 { top: 6%; right: 3%; width: 18%; height: 22%; left: auto; }
.dbw-3 { bottom: 8%; left: 5%; width: 20%; height: 22%; }

.dt-zone {
  position: absolute;
  top: 20%; left: 25%; width: 50%; height: 60%;
  border: 2px solid rgba(255,7,255,0.4);
  border-radius: 8px;
  background: rgba(255,7,255,0.04);
  opacity: 0;
}
.dt-win {
  position: absolute;
  top: 8%; left: 5%; width: 28%; height: 28%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,246,255,0.3);
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(0,246,255,0.08);
  opacity: 0;
}
.dt-bar {
  height: 14px; background: var(--cyan); border-radius: 6px 6px 0 0; opacity: 0.8;
}

/* Text stagger — parent always visible, children animate individually */
.dt-text-wrap { opacity: 1 !important; transform: none !important; }
.dt-label, .dt-title, .dt-desc {
  opacity: 0; transform: translateY(20px);
}


/* ============ HUD SCENE ============ */
.hud-warp {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.scene-hud-sticky .showcase-visual,
.scene-hud-sticky .showcase-text { position: relative; z-index: 2; }

.hud-demo { flex: 0 0 400px; }

.hud-screen {
  width: 400px; height: 300px;
  background: var(--bg-off);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden; position: relative;
  box-shadow: 0 0 40px rgba(0,246,255,0.06);
}

.hud-panel {
  position: absolute;
  bottom: 16px; left: 50%; transform: translateX(-50%);
  width: 180px; padding: 10px;
  background: rgba(16,16,20,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(0,246,255,0.08), 0 10px 40px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; gap: 5px;
  z-index: 2;
  opacity: 0;
  animation: hudPanelAppear 8s ease-in-out infinite;
}

@keyframes hudPanelAppear {
  0%, 6%   { opacity: 0; }
  12%, 72% { opacity: 1; }
  82%, 100% { opacity: 0; }
}

.hud-row { display: flex; gap: 5px; }

.hud-btn {
  flex: 1; aspect-ratio: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  position: relative;
  transition: all 0.3s;
}

.hud-btn::after {
  content: '';
  position: absolute;
  background: var(--cyan);
  border-radius: 2px;
  opacity: 0.5;
}

.hud-full::after { inset: 20%; }
.hud-left::after { top: 20%; left: 20%; bottom: 20%; width: 30%; }
.hud-right::after { top: 20%; right: 20%; bottom: 20%; width: 30%; }
.hud-tl::after { top: 20%; left: 20%; width: 30%; height: 30%; }
.hud-tr::after { top: 20%; right: 20%; width: 30%; height: 30%; }
.hud-bl::after { bottom: 20%; left: 20%; width: 30%; height: 30%; }
.hud-br::after { bottom: 20%; right: 20%; width: 30%; height: 30%; }
.hud-center::after { top: 25%; left: 25%; width: 50%; height: 50%; }
.hud-dt::after { top: 20%; left: 20%; width: 60%; height: 60%; background: var(--magenta); }

/* Hover simulation: full → magenta then cyan, left → magenta then cyan, right → magenta (selected) */
.hud-full  { animation: hudBtnVisit1 8s ease-in-out infinite; }
.hud-left  { animation: hudBtnVisit2 8s ease-in-out infinite; }
.hud-right { animation: hudBtnSelect 8s ease-in-out infinite; }

@keyframes hudBtnVisit1 {
  0%, 13% { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }
  16%, 20% { border-color: rgba(255,7,255,0.6); background: rgba(255,7,255,0.12); }
  24%, 72% { border-color: rgba(0,246,255,0.4); background: rgba(0,246,255,0.06); }
  82%, 100% { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }
}

@keyframes hudBtnVisit2 {
  0%, 20% { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }
  24%, 28% { border-color: rgba(255,7,255,0.6); background: rgba(255,7,255,0.12); }
  32%, 72% { border-color: rgba(0,246,255,0.4); background: rgba(0,246,255,0.06); }
  82%, 100% { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }
}

@keyframes hudBtnSelect {
  0%, 28% { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); }
  32%, 72% { border-color: rgba(255,7,255,0.7); background: rgba(255,7,255,0.15); box-shadow: 0 0 10px rgba(255,7,255,0.2); }
  82%, 100% { border-color: rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); box-shadow: none; }
}

/* Window being dragged → snaps to right-half (matching selected icon) */
.hud-win {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0,246,255,0.3);
  border-radius: 6px;
  box-shadow: 0 0 16px rgba(0,246,255,0.1);
  z-index: 1;
  animation: hudWinDrop 8s var(--ease) infinite;
}

.hud-winbar {
  height: 12px; background: var(--cyan); border-radius: 6px 6px 0 0; opacity: 0.8;
}

@keyframes hudWinDrop {
  0%, 6%   { top: 15%; left: 20%; width: 45%; height: 35%; opacity: 0.5; }
  12%, 30% { top: 20%; left: 30%; width: 38%; height: 30%; opacity: 0.7; }
  40%, 72% { top: 10px; right: 10px; left: auto; width: calc(50% - 14px); height: calc(100% - 20px); opacity: 1; border-color: rgba(0,246,255,0.5); }
  82%, 100% { top: 15%; left: 20%; width: 45%; height: 35%; opacity: 0.5; border-color: rgba(0,246,255,0.3); right: auto; }
}


/* ============ CYCLE POSITIONS SCENE ============ */
.cy-win {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,7,255,0.3);
  border-radius: 6px;
  box-shadow: 0 0 16px rgba(255,7,255,0.1);
  animation: cyCycle 12s var(--ease) infinite;
}

.cy-bar {
  height: 14px; background: var(--magenta); border-radius: 6px 6px 0 0; opacity: 0.8;
}

@keyframes cyCycle {
  0%, 5%   { top: 12px; left: 50%; width: calc(50% - 12px); height: calc(100% - 24px); }
  10%, 15% { top: 12px; left: 12px; width: calc(100% - 24px); height: calc(50% - 16px); }
  20%, 25% { top: 50%; left: 12px; width: calc(100% - 24px); height: calc(50% - 12px); }
  30%, 35% { top: 12px; left: 12px; width: calc(66.66% - 16px); height: calc(50% - 16px); }
  40%, 45% { top: 50%; left: 12px; width: calc(66.66% - 16px); height: calc(50% - 12px); }
  50%, 55% { top: 12px; left: 66.66%; width: calc(33.33% - 12px); height: calc(100% - 24px); }
  60%, 65% { top: 12px; left: 12px; width: calc(100% - 24px); height: calc(33.33% - 14px); }
  70%, 75% { top: calc(33.33% + 2px); left: 12px; width: calc(100% - 24px); height: calc(33.33% - 4px); }
  80%, 85% { top: calc(66.66%); left: 12px; width: calc(100% - 24px); height: calc(33.33% - 12px); }
  92%, 100% { top: 12px; left: 50%; width: calc(50% - 12px); height: calc(100% - 24px); }
}

/* Floating position icons */
.cy-icons-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.scene-cycles-sticky .showcase-visual,
.scene-cycles-sticky .showcase-text { position: relative; z-index: 2; }

.cy-icon {
  position: absolute;
  width: 44px; height: 30px;
  background: rgba(0,246,255,0.04);
  border: 1px solid rgba(0,246,255,0.15);
  border-radius: 4px;
  opacity: 0;
  will-change: transform, opacity;
}
.cy-icon-area {
  position: absolute;
  background: rgba(0,246,255,0.35);
  border-radius: 1px;
}


/* ============ LANGUAGES SCENE ============ */
.langs-wave {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.langs-rosetta {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.rosetta-layer {
  position: absolute;
  left: -20%; right: -20%;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.06);
  pointer-events: none;
  will-change: transform;
}

.rl-1 {
  top: 10%;
  font-size: clamp(14px, 2vw, 22px);
  color: rgba(0,246,255,0.08);
}
.rl-2 {
  top: 35%;
  font-size: clamp(18px, 2.8vw, 30px);
  color: rgba(255,7,255,0.07);
}
.rl-3 {
  top: 60%;
  font-size: clamp(12px, 1.6vw, 18px);
  color: rgba(0,246,255,0.06);
}
.rl-4 {
  top: 85%;
  font-size: clamp(16px, 2.2vw, 24px);
  color: rgba(255,7,255,0.055);
}

.langs-content {
  position: relative; z-index: 1;
  text-align: center; max-width: 600px;
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s var(--ease);
}
.langs-content.visible { opacity: 1; transform: none; }

.langs-content .showcase-label { text-align: center; }

.langs-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.1; margin-bottom: 12px;
}

.langs-sub {
  font-size: 16px; color: var(--text-2); line-height: 1.6;
  margin-bottom: 36px;
}

.langs-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 48px 14px;
  padding-top: 10px;
}

.lang-tag {
  position: relative;
  isolation: isolate;
  padding: 10px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--text);
  letter-spacing: 0.01em;
  opacity: 0; transform: translateY(16px);
  transition: all 0.6s var(--ease);
}

.langs-content.visible .lang-tag { opacity: 1; transform: none; }
.langs-content.visible .lang-tag:nth-child(1) { transition-delay: 0.1s; }
.langs-content.visible .lang-tag:nth-child(2) { transition-delay: 0.18s; }
.langs-content.visible .lang-tag:nth-child(3) { transition-delay: 0.26s; }
.langs-content.visible .lang-tag:nth-child(4) { transition-delay: 0.34s; }
.langs-content.visible .lang-tag:nth-child(5) { transition-delay: 0.42s; }
.langs-content.visible .lang-tag:nth-child(6) { transition-delay: 0.5s; }
.langs-content.visible .lang-tag:nth-child(7) { transition-delay: 0.58s; }

/* Flag backgrounds — fade in via pseudo-element */
.lang-tag::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
  pointer-events: none;
  z-index: -1;
}
.langs-content.colored .lang-tag::after { opacity: 1; }

/* EN — Union Jack blue/red */
.lang-tag:nth-child(1)::after { background: linear-gradient(135deg, rgba(0,82,165,0.25), rgba(206,17,38,0.2)); }
.langs-content.colored .lang-tag:nth-child(1) { border-color: rgba(0,82,165,0.4); }

/* DE — Schwarz/Rot/Gold */
.lang-tag:nth-child(2)::after { background: linear-gradient(180deg, rgba(0,0,0,0.12) 33%, rgba(221,0,0,0.18) 33% 66%, rgba(255,206,0,0.25) 66%); }
.langs-content.colored .lang-tag:nth-child(2) { border-color: rgba(255,206,0,0.4); }

/* FR — Bleu/Blanc/Rouge */
.lang-tag:nth-child(3)::after { background: linear-gradient(90deg, rgba(0,85,164,0.25) 33%, rgba(255,255,255,0.06) 33% 66%, rgba(239,65,53,0.22) 66%); }
.langs-content.colored .lang-tag:nth-child(3) { border-color: rgba(0,85,164,0.4); }

/* PT — Verde/Amarelo */
.lang-tag:nth-child(4)::after { background: linear-gradient(135deg, rgba(0,155,58,0.22), rgba(255,223,0,0.2)); }
.langs-content.colored .lang-tag:nth-child(4) { border-color: rgba(0,155,58,0.4); }

/* ES — Rojo/Amarillo/Rojo */
.lang-tag:nth-child(5)::after { background: linear-gradient(180deg, rgba(198,11,30,0.22) 25%, rgba(255,196,0,0.25) 25% 75%, rgba(198,11,30,0.22) 75%); }
.langs-content.colored .lang-tag:nth-child(5) { border-color: rgba(198,11,30,0.4); }

/* IT — Verde/Bianco/Rosso */
.lang-tag:nth-child(6)::after { background: linear-gradient(90deg, rgba(0,140,69,0.22) 33%, rgba(255,255,255,0.06) 33% 66%, rgba(205,33,42,0.22) 66%); }
.langs-content.colored .lang-tag:nth-child(6) { border-color: rgba(0,140,69,0.4); }

/* GR — Μπλε/Λευκό */
.lang-tag:nth-child(7)::after { background: linear-gradient(180deg, rgba(13,94,175,0.22) 50%, rgba(255,255,255,0.1) 50%); }
.langs-content.colored .lang-tag:nth-child(7) { border-color: rgba(13,94,175,0.4); }

.lang-tag:hover {
  filter: brightness(1.3);
}

/* Speech bubbles */
.lang-bubble {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  font-size: 13px; font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  opacity: 0;
  transition: all 0.5s var(--ease);
  pointer-events: none;
}

.lang-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(255,255,255,0.1);
}

.lang-bubble.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* ============ CUSTOMIZATION SCENE ============ */
.custom-grid-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 70%, transparent 100%);
}

.scene-custom-sticky .showcase-visual,
.scene-custom-sticky .showcase-text {
  position: relative;
  z-index: 1;
}

.custom-themes {
  display: flex; flex-direction: column; gap: 10px;
  width: 260px;
}

.theme-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.5s var(--ease);
  animation: themeCardCycle 12s ease-in-out infinite;
}

.theme-card:nth-child(2) { animation-delay: 2.4s; }
.theme-card:nth-child(3) { animation-delay: 4.8s; }
.theme-card:nth-child(4) { animation-delay: 7.2s; }
.theme-card:nth-child(5) { animation-delay: 9.6s; }

@keyframes themeCardCycle {
  0%, 8%  { border-color: rgba(0,246,255,0.5); background: rgba(0,246,255,0.06); box-shadow: 0 0 20px rgba(0,246,255,0.08); }
  20%, 100% { border-color: rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); box-shadow: none; }
}

.tc-dots {
  display: flex; gap: 6px;
}

.tc-dots span {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}

.tc-name {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  letter-spacing: 0.02em;
}


/* ============ STATS SCENE ============ */

/* ============ BGAPP BACKGROUND (fading menu bar) ============ */
.bgapp-bg-menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 28px;
  display: flex; align-items: center;
  padding: 0 16px;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bgapp-bg-menubar-left {
  display: flex; align-items: center; gap: 14px; flex: 1;
}
.bgapp-bg-menubar-left span {
  display: block;
  width: 28px; height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
}
.bgapp-bg-menubar-left span:first-child {
  width: 10px; height: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 3px;
}
.bgapp-bg-menubar-right {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}
.bgapp-bg-menubar-right span {
  display: block;
  width: 12px; height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
}
.bgapp-bg-wsg-icon {
  width: 14px; height: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5px;
  padding: 1px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  animation: bgappIconPulse 3s ease-in-out infinite;
}
.bgapp-bg-wsg-icon span:nth-child(1) { background: rgba(0,246,255,0.4); }
.bgapp-bg-wsg-icon span:nth-child(2) { background: rgba(255,255,255,0.06); }
.bgapp-bg-wsg-icon span:nth-child(3) { background: rgba(255,255,255,0.06); }
.bgapp-bg-wsg-icon span:nth-child(4) { background: rgba(255,7,255,0.4); }

@keyframes bgappIconPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ============ DOWNLOAD SCENE ============ */
.dl-drips-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 50%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 50%, transparent 85%);
}

.dl-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  opacity: 0;
}
.dl-bg-grid.active {
  animation: dlGridPulse 2.4s ease-in-out infinite;
}
@keyframes dlGridPulse {
  0%   { opacity: 0.15; }
  14%  { opacity: 1; }
  28%  { opacity: 0.2; }
  40%  { opacity: 0.75; }
  55%  { opacity: 0.1; }
  100% { opacity: 0.15; }
}

.dl-content {
  text-align: center; position: relative; z-index: 2;
  max-width: 500px;
  opacity: 0; transform: translateY(30px);
  transition: all 0.8s var(--ease);
}
.dl-content.visible { opacity: 1; transform: none; }

.dl-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.dl-desc {
  font-size: 17px; line-height: 1.7;
  color: var(--text-2); margin-bottom: 36px;
}

.dl-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-radius: 12px;
  background: var(--gradient); color: #000;
  font-size: 16px; font-weight: 700;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px rgba(0,246,255,0.2), 0 0 30px rgba(255,7,255,0.2);
}
.dl-btn:hover {
  opacity: 0.9; transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,246,255,0.3), 0 0 50px rgba(255,7,255,0.3);
}

.dl-meta {
  display: flex; justify-content: center; align-items: center;
  gap: 14px; margin-top: 20px;
  font-size: 12px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.dl-sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--text-3);
}


/* ============ FOOTER ============ */
.footer {
  padding: 32px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand {
  display: flex; align-items: center;
}
.footer-brand img { height: 30px; width: auto; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy {
  text-align: center; font-size: 12px; color: var(--text-3);
}


/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .scene-features-sticky { flex-direction: column; padding: 140px 24px 24px; gap: 20px; justify-content: center; align-items: center; box-sizing: border-box; }
  .features-left { flex: none; text-align: center; width: 100%; }
  .features-right { margin-left: 0; width: 100%; height: auto; min-height: 200px; text-align: center; position: relative; }
  .feature-slide { position: absolute; top: 0; left: 0; width: 100%; padding: 0 8px; box-sizing: border-box; }
  .feature-slide.active { position: relative; }
  .features-progress { flex-direction: row; position: static; margin-top: 12px; justify-content: center; }
  .feature-slide p { margin: 0 auto; font-size: 15px; line-height: 1.6; max-width: 90vw; }
  .feature-slide h3 { font-size: 22px; }
  .feature-num { font-size: 42px; margin-bottom: 6px; }

  .scene-gridsnap-sticky,
  .scene-downtown-sticky,
  .scene-hud-sticky,
  .scene-cycles-sticky,
  .scene-custom-sticky { flex-direction: column; padding: 80px 32px; gap: 32px; text-align: center; }
  .showcase-visual { flex: none; }
  .showcase-screen { width: 300px; height: 195px; margin: 0 auto; }
  .dt-monitor { width: 300px; height: 195px; flex: none; margin: 0 auto; }
  .hud-demo { flex: none; }
  .hud-screen { width: 300px; height: 225px; margin: 0 auto; }
  .hud-panel { width: 140px; padding: 8px; }
  .custom-themes { margin: 0 auto; }
  .showcase-desc { margin: 0 auto; }


}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-btn-white { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav { padding: 0 20px; }

  .hero-title { font-size: clamp(36px, 10vw, 56px); }
  .hero-subtitle { font-size: 15px; }

  .chaos-stage { max-height: 75vw; }
  .chaos-title, .order-title { font-size: 28px; }

  .scene-features-sticky { padding: 120px 16px 16px; gap: 14px; }
  .features-title { font-size: 24px; }
  .features-right { min-height: 180px; }
  .feature-slide h3 { font-size: 18px; margin-bottom: 8px; }
  .feature-slide p { font-size: 13px; line-height: 1.5; }
  .feature-num { font-size: 32px; margin-bottom: 4px; }

  .showcase-title { font-size: 24px; }
  .showcase-screen { width: 260px; height: 170px; }
  .hud-screen { width: 260px; height: 195px; }
  .hud-panel { width: 120px; padding: 6px; }
  .custom-themes { width: 220px; }
  .langs-title { font-size: 28px; }


  .footer-inner { flex-direction: column; gap: 12px; }
}

@media (orientation: portrait) {
  .scene-features-sticky { flex-direction: column; padding: 140px 20px 20px; gap: 20px; justify-content: center; align-items: center; box-sizing: border-box; }
  .features-left { flex: none; text-align: center; width: 100%; }
  .features-right { margin-left: 0; width: 100%; height: auto; min-height: 180px; text-align: center; position: relative; }
  .feature-slide { position: absolute; top: 0; left: 0; width: 100%; padding: 0 8px; box-sizing: border-box; }
  .feature-slide.active { position: relative; }
  .features-progress { flex-direction: row; position: static; margin-top: 12px; justify-content: center; }
  .feature-slide p { margin: 0 auto; max-width: 85vw; }
}
