/* ============================================
   AltHub Landing Page — Editorial Design
   ============================================ */

/* --- CSS Variables --- */
:root {
  --bg: #f0ece4;
  --text: #111;
  --text-muted: #666;
  --text-light: #999;
  --border: #e5e5e5;
  --accent: #ff2d3b;
  --olive: #2a3028;
  --dark: #111;
  --dark-text: #fafaf8;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-height: 64px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  cursor: none;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  background: none;
  cursor: none;
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* --- Particle Intro --- */
.particle-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.particle-intro canvas {
  width: 100%;
  height: 100%;
}

.particle-intro.fade-out {
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__logo-img {
  height: 26px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #1a1a1f;
  padding: 4px 8px;
}

.nav__logo-text {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.3s;
  letter-spacing: 0;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link--cta {
  color: var(--text);
  font-weight: 500;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 24px;
  padding: 4px 0;
}

.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .nav__toggle {
    display: flex;
  }
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}

.mobile-menu--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__link {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  transition: color 0.3s;
}

.mobile-menu__link:hover {
  color: var(--accent);
}

.nav__toggle--active span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav__toggle--active span:nth-child(2) {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  background: #000;
  overflow: hidden;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero .hero__scroll {
  position: relative;
  z-index: 1;
}

.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 120px;
}

.hero__title {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
  color: #fafaf8;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: heroWordIn 1s var(--ease-out) forwards;
}

.hero__word:nth-child(1) {
  animation-delay: 0.3s;
}

.hero__line:nth-child(2) .hero__word {
  animation-delay: 0.5s;
}

.hero__word--serif em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

@keyframes heroWordIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 32px;
  align-items: center;
}

.hero__link {
  font-size: 1rem;
  font-weight: 500;
  color: #fafaf8;
  transition: color 0.3s;
  letter-spacing: -0.01em;
}

.hero__link:hover {
  color: var(--accent);
}

.hero__link--muted {
  color: rgba(255, 255, 255, 0.5);
}

.hero__link--muted:hover {
  color: #fafaf8;
}

.hero__scroll {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 32px;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
}

.hero__scroll-text {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

/* --- Marquee --- */
.marquee {
  padding: 18px 0;
  overflow: hidden;
  background: #000;
  color: var(--dark-text);
  position: relative;
  z-index: 2;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.marquee__item {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  opacity: 0.7;
}

.marquee__dot {
  opacity: 0.5;
  font-size: 1rem;
  flex-shrink: 0;
  color: #5a6a4a;
}

@keyframes marqueeScroll {
  to {
    transform: translateX(-50%);
  }
}

/* --- Sections --- */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--border);
}

.section__header {
  margin-bottom: 64px;
}

.section__number {
  display: block;
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--olive);
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.section__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

/* --- Feature Rows --- */
.features {
  border-top: 1px solid var(--border);
}

.feature-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, padding-left 0.3s;
  cursor: default;
}

.feature-row:hover {
  background: rgba(0, 0, 0, 0.015);
  padding-left: 12px;
  padding-right: 12px;
  margin-left: -12px;
  margin-right: -12px;
}

.feature-row__num {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--text-light);
  letter-spacing: 0.1em;
  padding-top: 4px;
}

.feature-row__content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: baseline;
}

.feature-row__title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feature-row__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .feature-row {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }
  .feature-row__content {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* --- Stats / Teams --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

.stat__number {
  display: block;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

.teams__text {
  max-width: 680px;
}

.teams__text p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- Download --- */
.download__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.download__item {
  padding: 40px 32px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #f0ece4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.download__item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -12px rgba(0,0,0,0.1);
}

.download__item--featured {
  border: 2px solid var(--olive, #2a3028);
  background: linear-gradient(180deg, #ede9e0 0%, #f0ece4 100%);
  position: relative;
}

.download__item--featured::before {
  content: 'Recommended';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--olive, #2a3028);
  color: #f0ece4;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.download__title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.download__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.download__link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--olive, #2a3028);
  padding: 10px 28px;
  border-radius: 100px;
  transition: background 0.3s, transform 0.2s;
  letter-spacing: -0.01em;
}

.download__link:hover {
  background: #3a4a38;
  transform: scale(1.03);
}

.download__note {
  margin-top: 16px;
  font-size: 0.6875rem;
  color: var(--text-light);
  line-height: 1.6;
}

.download__note code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.625rem;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .download__grid {
    grid-template-columns: 1fr;
  }
  .download__item {
    border-right: none;
  }
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: #f5f4f0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer__right {
  display: flex;
  gap: 28px;
}

.footer__link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.footer__link:hover {
  color: var(--text);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer__bottom p {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer__right {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for feature rows */
.feature-row.reveal:nth-child(2) { transition-delay: 0.06s; }
.feature-row.reveal:nth-child(3) { transition-delay: 0.12s; }
.feature-row.reveal:nth-child(4) { transition-delay: 0.18s; }
.feature-row.reveal:nth-child(5) { transition-delay: 0.24s; }
.feature-row.reveal:nth-child(6) { transition-delay: 0.30s; }

/* Download items stagger */
.download__item.reveal:nth-child(2) { transition-delay: 0.08s; }
.download__item.reveal:nth-child(3) { transition-delay: 0.16s; }

/* --- Section padding mobile --- */
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  .container {
    padding: 0 20px;
  }
  .hero__actions {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* --- Section Blur on Scroll --- */
.section-blur {
  filter: blur(8px);
  opacity: 0.4;
  transition: filter 0.8s ease, opacity 0.8s ease;
}

.section-blur.in-view {
  filter: blur(0);
  opacity: 1;
}

/* --- Feature Wheel --- */
.wheel {
  position: relative;
  height: 200vh;
  background: #2d3a38;
}

.wheel__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Soft white glow — left and right */
.wheel__glow-left,
.wheel__glow-right {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.wheel__glow-left {
  left: 0;
  background: radial-gradient(ellipse at -10% 25%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.08) 40%, transparent 70%);
}

.wheel__glow-right {
  right: 0;
  background: radial-gradient(ellipse at 110% 70%, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.06) 40%, transparent 70%);
}

.wheel__left {
  position: relative;
  flex: 1;
  height: 100%;
  z-index: 1;
}

.wheel__name {
  position: absolute;
  font-size: clamp(2.5rem, 5.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: rgba(250, 248, 240, 0.12);
  cursor: default;
  will-change: transform, color, opacity;
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.wheel__right {
  width: 380px;
  display: flex;
  align-items: center;
  padding-right: 60px;
  z-index: 1;
}

.wheel__info {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.wheel__info.visible { opacity: 1; transform: translateY(0); }

.wheel__info-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fafaf0;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.wheel__info-desc {
  color: rgba(250, 248, 240, 0.5);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.wheel__progress {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 200px;
  background: rgba(250, 248, 240, 0.1);
  z-index: 2;
}

.wheel__progress-fill {
  width: 100%;
  height: 0%;
  background: rgba(250, 248, 240, 0.5);
  transition: height 0.1s linear;
}

@media (max-width: 768px) {
  .wheel__progress { right: 20px; height: 120px; }
}

/* --- Horizon — Three.js scroll-through --- */
.horizon {
  position: relative;
  height: 500vh;
  background: #000;
}

.horizon__canvas {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  display: block;
}

.horizon__overlay {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.horizon__section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 32px;
  max-width: 650px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.horizon__eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
  font-weight: 500;
}

.horizon__title {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #ff3040;
  margin-bottom: 24px;
}

.horizon__desc {
  font-size: 0.9375rem;
  color: #ffffff;
  line-height: 1.8;
}

/* --- Smooth color transitions between ALL sections --- */
/* Horizon (black) → About (cream) */
.horizon::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}

/* --- Lamp Section (Built for teams) --- */
.lamp {
  position: relative;
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lamp__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lamp__cone--left,
.lamp__cone--right {
  position: absolute;
  top: 40%;
  width: 15rem;
  height: 14rem;
  overflow: hidden;
  transition: width 0.8s ease;
}

.lamp.lamp--active .lamp__cone--left,
.lamp.lamp--active .lamp__cone--right {
  width: 30rem;
}

.lamp__cone--left {
  right: 50%;
  background: conic-gradient(from 70deg at center top, #ff2020, transparent, transparent);
  mask-image: linear-gradient(to bottom, white, transparent), linear-gradient(to right, transparent, white);
  -webkit-mask-image: linear-gradient(to bottom, white, transparent), linear-gradient(to right, transparent, white);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.lamp__cone--right {
  left: 50%;
  background: conic-gradient(from 290deg at center top, transparent, transparent, #ff2020);
  mask-image: linear-gradient(to bottom, white, transparent), linear-gradient(to left, transparent, white);
  -webkit-mask-image: linear-gradient(to bottom, white, transparent), linear-gradient(to left, transparent, white);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.lamp__blur {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 12rem;
  background: #000;
  filter: blur(40px);
}

.lamp__line {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translateX(-50%);
  width: 15rem;
  height: 2px;
  background: #ff2020;
  box-shadow: 0 0 20px #ff2020, 0 0 60px #ff2020;
  transition: width 0.8s ease;
}

.lamp.lamp--active .lamp__line {
  width: 30rem;
}

.lamp__orb {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 9rem;
  border-radius: 50%;
  background: #ff2020;
  opacity: 0.6;
  filter: blur(60px);
  box-shadow: 0 0 80px #ff2020, 0 0 150px #ff000088;
  transition: width 0.8s ease, opacity 0.8s ease;
}

.lamp.lamp--active .lamp__orb {
  width: 20rem;
  opacity: 0.7;
}

.lamp__mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: #000;
}

.lamp__content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 600px;
  padding: 0 32px;
  margin-top: 10vh;
}

.lamp__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 32px;
}

.lamp__stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-bottom: 28px;
}

.lamp__stats .stat__number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #f1f5f9;
  display: block;
}

.lamp__stats .stat__label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
}

.lamp__desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 500px;
  margin: 0 auto;
}

/* About (cream) → Wheel (teal) */
.about { position: relative; }
.about::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 250px;
  background: linear-gradient(to bottom, transparent, #2d3a38);
  pointer-events: none;
  z-index: 3;
}

/* Wheel (teal) top blend from about */
.wheel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 150px;
  background: linear-gradient(to bottom, #2d3a38, transparent);
  pointer-events: none;
  z-index: 3;
}

/* Wheel (teal) → Features (navy) */
.wheel::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 250px;
  background: linear-gradient(to bottom, transparent, #0a0e1f);
  pointer-events: none;
  z-index: 3;
}

/* Features (navy) → AI (black) */
.section--features { position: relative; }
.section--features::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 250px;
  background: linear-gradient(to bottom, transparent, #000);
  pointer-events: none;
  z-index: 3;
}

/* AI (black) → Lamp (black) — both black, no gradient needed */

/* Lamp (black) → Download (cream) */
.lamp::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 250px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 3;
}

/* Download top blend from lamp */
.section--download::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 150px;
  background: linear-gradient(to bottom, var(--bg), transparent);
  pointer-events: none;
  z-index: 1;
}
.section--download { position: relative; }

/* --- About — Container Scroll --- */
.about {
  background: var(--bg);
  padding: 0 16px;
}

.about__scroll {
  height: 80rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 0;
}

.about__header {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 700px;
  width: 100%;
  z-index: 2;
  will-change: transform;
}

.about__eyebrow {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-weight: 500;
}

.about__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
}

.about__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.about__subtitle {
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 550px;
  margin: 0 auto;
}

.about__card {
  position: sticky;
  top: 10%;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  border: 4px solid #6C6C6C;
  padding: 8px;
  background: #222;
  border-radius: 30px;
  box-shadow: 0 0 #0000004d, 0 9px 20px #0000004a, 0 37px 37px #00000042, 0 84px 50px #00000026, 0 149px 60px #0000000a, 0 233px 65px #00000003;
  will-change: transform;
  perspective: 1000px;
}

.about__card-inner {
  width: 100%;
  height: 40rem;
  overflow: hidden;
  border-radius: 22px;
  background: #111;
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  border-radius: 22px;
}

.about__pills {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.about__pill {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .about__scroll {
    height: 60rem;
  }

  .about__card-inner {
    height: 25rem;
  }

  .about__card {
    padding: 4px;
    border-radius: 20px;
  }

  .about__header {
    top: 5%;
  }
}

/* --- Features Timeline — dark editorial layout --- */
.section--features {
  background: #0a0e1f;
  color: #f0ece4;
  padding: 0;
  border-top: none;
  margin-top: -1px;
}

.section--features .container {
  max-width: 100%;
  padding: 0;
}

.section--features .section__header {
  padding: 80px 60px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.section--features .section__number {
  color: #f0ece470;
}

.section--features .section__title {
  color: #f0ece4;
}

/* --- AI Section --- */
.section--ai {
  padding: 0;
  background: #000;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai__card {
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.96);
  position: relative;
  overflow: hidden;
}

.ai__spotlight {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  height: 169%;
  width: 84%;
  top: -40%;
  left: 0;
  opacity: 0;
  animation: spotlightFade 2s ease forwards;
}

@keyframes spotlightFade {
  to { opacity: 1; }
}

.ai__content {
  display: flex;
  height: 100vh;
}

.ai__text {
  flex: 1;
  padding: 48px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ai__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(to bottom, #fafafa, #a3a3a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
  margin: 16px 0 24px;
}

.ai__desc {
  color: #d4d4d4;
  font-size: 0.9375rem;
  line-height: 1.8;
  max-width: 480px;
}

.ai__features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e5e5e5;
  font-size: 0.875rem;
  font-weight: 500;
}

.ai__feature-icon {
  font-size: 1.1rem;
}

.ai__scene {
  flex: 1;
  position: relative;
  min-height: 400px;
  overflow: hidden;
}

.ai__scene spline-viewer {
  width: 100%;
  height: calc(100% + 80px);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

@media (max-width: 768px) {
  .ai__content {
    flex-direction: column;
  }

  .ai__text {
    padding: 32px 24px;
  }

  .ai__scene {
    min-height: 300px;
  }

  .section--ai {
    padding: 60px 16px;
  }
}

.timeline {
  position: relative;
  min-height: 400vh;
}

/* Fixed number bottom-left, fixed text top-right */
.timeline__num-fixed {
  position: fixed;
  bottom: 8%;
  left: 60px;
  font-size: clamp(8rem, 18vw, 16rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 1);
  line-height: 1;
  letter-spacing: -0.04em;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline__text-fixed {
  position: fixed;
  top: 15%;
  right: 60px;
  z-index: 2;
  max-width: 350px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.timeline__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: #ffffff;
  transition: opacity 0.4s ease, transform 0.3s ease;
}

/* Image moves diagonally */
.timeline__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Track just needs to fill the sticky container */
.timeline__images-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.timeline__image-wrap {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

.timeline__image-wrap.blurred {
  filter: blur(4px);
  opacity: 0.3;
}

.timeline__image-wrap.focused {
  filter: blur(0);
  opacity: 1;
}

.timeline__image {
  width: 580px;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
}

/* Hide old layout elements */
.timeline__item { display: none; }
.timeline__num { display: none; }
.timeline__text { display: none; }

.timeline__desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  max-width: 380px;
  transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
  .timeline__item {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 60px 24px;
  }

  .timeline__image {
    max-width: 100%;
    height: 220px;
    margin: 0 !important;
  }

  .timeline__num {
    font-size: 5rem;
    left: 24px;
    bottom: 10px;
  }

  .timeline__text {
    padding: 24px 0;
  }

  .section--features .section__header {
    padding: 60px 24px 30px;
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
  mix-blend-mode: difference;
}
