*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #070707;
  --surface:   #0d0d0d;
  --panel:     #111111;
  --border:    rgba(255, 255, 255, 0.07);
  --text:      #ece8e1;
  --muted:     #5c5650;
  --sub:       #2a2622;
  --accent:    #c8102e;
  --accent2:   #e8163a;
  --accent-rgb: 200, 16, 46;
}

/* ── Website theme overrides ─────────────────────── */
[data-theme="crimson"] {
  --icon-filter: none;
  --accent: #ff1040; --accent2: #cc0030; --accent-rgb: 255,16,64;
  --bg: #130205; --surface: #1e0408; --panel: #2a060c;
  --text: #f0c8cc; --muted: #7a4050; --sub: #350a12;
  --border: rgba(255,255,255,0.06);
}
[data-theme="dark"] {
  --icon-filter: hue-rotate(192deg) saturate(1.2);
  --accent: #00d4ff; --accent2: #2ad4ff; --accent-rgb: 0,212,255;
  --bg: #070b0e; --surface: #0d1218; --panel: #121820;
  --text: #d8e8f8; --muted: #556677; --sub: #1a2330;
  --border: rgba(255,255,255,0.07);
}
[data-theme="light"] {
  --icon-filter: hue-rotate(198deg) saturate(0.9) brightness(0.85);
  --accent: #0088bb; --accent2: #006699; --accent-rgb: 0,136,187;
  --bg: #f0f4f8; --surface: #ffffff; --panel: #f5f7fa;
  --text: #192434; --muted: #6888a8; --sub: #c0ccd8;
  --border: rgba(0,0,0,0.08);
}
[data-theme="redstone"] {
  --icon-filter: hue-rotate(2deg) saturate(1.3) brightness(1.1);
  --accent: #ff2222; --accent2: #e00000; --accent-rgb: 255,34,34;
  --bg: #0f0304; --surface: #1a0507; --panel: #250810;
  --text: #f0d0d0; --muted: #7a3838; --sub: #310c15;
  --border: rgba(255,255,255,0.06);
}
[data-theme="diamond"] {
  --icon-filter: hue-rotate(193deg) saturate(1.1) brightness(1.15);
  --accent: #5ae4ff; --accent2: #2ab8e0; --accent-rgb: 90,228,255;
  --bg: #030c12; --surface: #061520; --panel: #0a1e2d;
  --text: #c8e8f8; --muted: #3a6878; --sub: #0e2838;
  --border: rgba(255,255,255,0.06);
}
[data-theme="emerald"] {
  --icon-filter: hue-rotate(157deg) saturate(1.1);
  --accent: #00c97a; --accent2: #009a58; --accent-rgb: 0,201,122;
  --bg: #040e08; --surface: #08160f; --panel: #0c1e15;
  --text: #c0f0d8; --muted: #3a7050; --sub: #10271b;
  --border: rgba(255,255,255,0.06);
}
[data-theme="gold"] {
  --icon-filter: hue-rotate(47deg) saturate(1.2);
  --accent: #ffd740; --accent2: #d4aa00; --accent-rgb: 255,215,64;
  --bg: #0c0800; --surface: #160f00; --panel: #1f1500;
  --text: #f8e8b0; --muted: #806820; --sub: #281c00;
  --border: rgba(255,255,255,0.06);
}
[data-theme="coal"] {
  --icon-filter: saturate(0%) brightness(1.15);
  --accent: #c8c8c8; --accent2: #a0a0a0; --accent-rgb: 200,200,200;
  --bg: #181818; --surface: #222222; --panel: #2c2c2c;
  --text: #e8e8e8; --muted: #909090; --sub: #404040;
  --border: rgba(255,255,255,0.07);
}
[data-theme="lapis"] {
  --icon-filter: hue-rotate(217deg) saturate(1.0);
  --accent: #4d8fff; --accent2: #2b6fdd; --accent-rgb: 77,143,255;
  --bg: #020810; --surface: #060f1e; --panel: #0a1528;
  --text: #c8d8f8; --muted: #3a5888; --sub: #0f1d38;
  --border: rgba(255,255,255,0.06);
}
[data-theme="copper"] {
  --icon-filter: hue-rotate(22deg) saturate(1.1);
  --accent: #ff7a2e; --accent2: #d05a10; --accent-rgb: 255,122,46;
  --bg: #0f0600; --surface: #1a0d00; --panel: #261400;
  --text: #f8d8b0; --muted: #8a5030; --sub: #311b00;
  --border: rgba(255,255,255,0.06);
}
[data-theme="iron"] {
  --icon-filter: hue-rotate(211deg) saturate(0.25) brightness(1.2);
  --accent: #ccd8e8; --accent2: #a0b4c8; --accent-rgb: 204,216,232;
  --bg: #0c0e10; --surface: #131618; --panel: #1a1e22;
  --text: #dce8f4; --muted: #708090; --sub: #22272c;
  --border: rgba(255,255,255,0.07);
}
[data-theme="ancient-debris"] {
  --icon-filter: hue-rotate(29deg) saturate(0.7) brightness(0.9);
  --accent: #b07040; --accent2: #8a5228; --accent-rgb: 176,112,64;
  --bg: #0e0a06; --surface: #1a1208; --panel: #261a0c;
  --text: #e8d8b8; --muted: #8a6840; --sub: #322212;
  --border: rgba(255,255,255,0.06);
}
[data-theme="end"] {
  --icon-filter: hue-rotate(275deg) saturate(1.1);
  --accent: #b060ff; --accent2: #8838d8; --accent-rgb: 176,96,255;
  --bg: #060210; --surface: #0d0520; --panel: #140830;
  --text: #e0c8f8; --muted: #6040a0; --sub: #1c0c40;
  --border: rgba(255,255,255,0.06);
}
[data-theme="cherry"] {
  --icon-filter: hue-rotate(335deg) saturate(1.1);
  --accent: #ff5899; --accent2: #d83070; --accent-rgb: 255,88,153;
  --bg: #0e0408; --surface: #1a0810; --panel: #260c18;
  --text: #f8c8d8; --muted: #904060; --sub: #321020;
  --border: rgba(255,255,255,0.06);
}
[data-theme="warped"] {
  --icon-filter: hue-rotate(174deg) saturate(1.05);
  --accent: #00e5cc; --accent2: #00b8a0; --accent-rgb: 0,229,204;
  --bg: #020e0c; --surface: #051814; --panel: #08221c;
  --text: #b8f0e8; --muted: #38786a; --sub: #0c2c24;
  --border: rgba(255,255,255,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.accent { color: var(--accent); }

/* ── REVEAL ANIMATIONS ───────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.22s; }
.reveal.delay-3 { transition-delay: 0.34s; }
.reveal.visible  { opacity: 1; transform: none; }

.reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-line.delay-1 { transition-delay: 0.13s; }
.reveal-line.delay-2 { transition-delay: 0.26s; }
.reveal-line.visible  { opacity: 1; transform: none; }

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 7, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-icon {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  filter: var(--icon-filter, none);
  transition: filter 0.4s ease;
}

.nav-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 1px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta { color: var(--accent) !important; }
.nav-cta:hover { color: var(--accent2) !important; }

/* ── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.25s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--accent2);
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.4);
  transform: translateY(-2px);
}

.btn-large {
  font-size: 0.88rem;
  padding: 17px 40px;
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 28px 70px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 20%, transparent 75%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 15%;
  left: -8%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.11) 0%, transparent 65%);
  pointer-events: none;
  animation: pulse-glow 5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50%       { opacity: 1;    transform: scale(1.1); }
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.6rem, 7vw, 6.8rem);
  line-height: 0.93;
  letter-spacing: 1.5px;
  margin-bottom: 28px;
  overflow: hidden;
}

.accent-line { color: var(--accent); }

.hero-sub {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 38px;
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.3px;
}

/* ── APP MOCKUP ───────────────────────────────────────────────────────────── */
.hero-preview {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-wrapper {
  position: relative;
}

.mockup-glow {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.28) 0%, transparent 70%);
  filter: blur(22px);
  pointer-events: none;
}

.app-mockup {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow:
    0 48px 110px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(200, 16, 46, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-mockup:hover {
  transform: perspective(1000px) rotateY(-1deg) rotateX(0deg);
}

.mockup-bar {
  background: #090909;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.mockup-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  margin-left: 8px;
}

.mockup-body {
  display: flex;
  min-height: 248px;
}

.mockup-sidebar {
  width: 112px;
  background: #080808;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mockup-tab {
  padding: 8px 14px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
  margin: 0 6px;
  transition: background 0.15s, color 0.15s;
}

.mockup-tab.active {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
}

.mockup-content {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color 0.15s;
}

.mockup-card:hover { border-color: rgba(var(--accent-rgb), 0.28); }

.mockup-card-icon { font-size: 1rem; }
.mockup-card-info { flex: 1; }

.mockup-card-name {
  font-family: 'DM Mono', monospace;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text);
}

.mockup-card-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  color: var(--muted);
}

.mockup-play {
  font-size: 0.65rem;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.13);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-new {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  padding: 7px 12px;
  text-align: center;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: hint-float 3s ease-in-out infinite;
}

@keyframes hint-float {
  0%, 100% { opacity: 0.18; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.35; transform: translateX(-50%) translateY(5px); }
}

.hero-scroll-hint span {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--muted), transparent);
}

/* ── SECTIONS ─────────────────────────────────────────────────────────────── */
.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-header { margin-bottom: 60px; }

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 18px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.93;
  letter-spacing: 1px;
}

/* ── FEATURES ─────────────────────────────────────────────────────────────── */
.features {
  padding: 120px 28px;
  border-top: 1px solid var(--border);
}

.features-list {
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: grid;
  grid-template-columns: 80px 1px 1fr;
  gap: 0 36px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid var(--border);
}

.feature-item:first-child { border-top: 1px solid var(--border); }

.feature-item:hover .feature-num { color: var(--accent); }

.feature-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.6rem;
  color: var(--sub);
  line-height: 1;
  padding-top: 6px;
  transition: color 0.25s;
}

.feature-divider {
  background: var(--border);
  align-self: stretch;
}

.feature-body { padding: 5px 0; }

.feature-body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 12px;
}

.feature-body p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.78;
  max-width: 540px;
}

/* ── THEMES ───────────────────────────────────────────────────────────────── */
.themes {
  padding: 120px 28px;
  border-top: 1px solid var(--border);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.theme-tile {
  background: var(--tb, #111);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 28px 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  min-height: 120px;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease;
}

.theme-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.theme-tile.active {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
  transform: translateY(-3px);
}

.theme-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.05rem;
  color: var(--tc, #fff);
  letter-spacing: 1px;
}

.theme-accent-bar {
  height: 3px;
  border-radius: 2px;
  opacity: 0.75;
}

/* ── DOWNLOAD ─────────────────────────────────────────────────────────────── */
.download {
  position: relative;
  padding: 160px 28px;
  border-top: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 860px;
  height: 420px;
  background: radial-gradient(ellipse, rgba(var(--accent-rgb), 0.09) 0%, transparent 65%);
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite;
}

.download-inner {
  position: relative;
  z-index: 1;
}

.download-inner .section-label { margin-bottom: 16px; }

.download-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4.5rem, 11vw, 9rem);
  line-height: 0.88;
  letter-spacing: 2px;
  margin-bottom: 28px;
}

.download-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 44px;
  line-height: 1.7;
}

.download-meta {
  margin-top: 26px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  letter-spacing: 0.4px;
}

.sep { opacity: 0.3; }

/* ── FOOTER ───────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 28px;
  text-align: center;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  letter-spacing: 1px;
}

.footer-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.65;
}

.footer-copy {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--sub);
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  .hero-sub   { margin-inline: auto; }
  .hero-badge { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-preview { display: none; }
  .themes-grid { grid-template-columns: repeat(3, 1fr); }
  .theme-tile { min-height: 100px; padding: 20px 12px 16px; }
}

@media (max-width: 600px) {
  .nav-links { gap: 18px; }
  .feature-item {
    grid-template-columns: 56px 1px 1fr;
    gap: 0 20px;
    padding: 28px 0;
  }
  .feature-num { font-size: 2rem; }
  .feature-body h3 { font-size: 1.5rem; }
  .themes-grid { grid-template-columns: repeat(3, 1fr); }
  .download-title { letter-spacing: 1px; }
}
