/* ── DESIGN TOKENS ── */
:root {
  --bg:          #04000F;
  --bg-section:  #060014;
  --purple-dim:  #3B1680;
  --purple-mid:  #7B2FFF;
  --purple-hi:   #B264FF;
  --pink:        #D44EFF;
  --white:       #FFFFFF;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ── NAV DOTS ── */
.nav-dots {
  position: fixed; right: 2rem; top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .75rem;
  z-index: 100;
}
.nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: all .3s ease;
}
.nav-dot.active {
  background: var(--purple-hi);
  box-shadow: 0 0 8px var(--purple-hi);
  transform: scale(1.8);
}

/* ── HERO ── */
#hero {
  position: relative; width: 100vw; height: 100vh;
  overflow: hidden; background: var(--bg);
}
#particle-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
}
/* Gradient overlays: left-side text readability + full bottom fade for scroll transition */
#hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgba(4,0,15,.75) 0%,
      rgba(4,0,15,.40) 45%,
      transparent 75%),
    linear-gradient(to top,
      rgba(4,0,15,1)   0%,
      rgba(4,0,15,.95) 6%,
      rgba(4,0,15,.5)  18%,
      transparent      38%);
  z-index: 2; pointer-events: none;
}

/* Left-aligned, vertically centred text block */
.hero-content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 5vw;
  pointer-events: none;
}

.hero-title {
  line-height: .92;
  color: var(--white);
  text-transform: uppercase;
}
.hero-title .line { overflow: hidden; display: block; }
.hero-title .line span { display: block; }

/* "IMMERSIVE" — huge */
.hero-word--main span {
  font-size: clamp(4.5rem, 15vw, 15rem);
  font-weight: 700;
  letter-spacing: -.03em;
}
/* "EXPERIENCES" — smaller, widely spaced */
.hero-word--sub span {
  font-size: clamp(1.1rem, 3.5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: .32em;
  margin-top: .3em;
}

/* Accenture Song branding — bottom left */
.hero-brand {
  position: absolute; bottom: 2.8rem; left: 5vw;
  z-index: 3;
  font-size: clamp(.85rem, 1.2vw, 1.1rem);
  line-height: 1;
  opacity: 0; /* faded in by GSAP */
}
.hero-brand__name { font-weight: 700; }
.hero-brand__sub  { font-weight: 300; }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .7rem;
  opacity: 0;
}
.scroll-cue__label {
  font-size: .62rem; letter-spacing: .28em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
}
.scroll-cue__line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--purple-hi), transparent);
  animation: linedown 2s ease-in-out infinite;
}
@keyframes linedown {
  0%,100% { transform: scaleY(1); opacity: .6; }
  50%      { transform: scaleY(.5) translateY(8px); opacity: .2; }
}

/* ── SECTIONS ── */
.section {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden; background: var(--bg-section);
}
.section__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(123,47,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,47,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.section__glow {
  position: absolute; border-radius: 50%;
  filter: blur(120px); pointer-events: none;
}
#configurator .section__glow {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(123,47,255,.12) 0%, transparent 70%);
  right: -140px; top: 50%; transform: translateY(-50%);
}
#learning .section__glow {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(180,80,255,.10) 0%, transparent 70%);
  left: -140px; top: 50%; transform: translateY(-50%);
}
.section__inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1400px; margin: 0 auto;
  padding: 7rem 5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
.section__inner--rev { direction: rtl; }
.section__inner--rev > * { direction: ltr; }

/* ── SECTION TEXT ── */
.sec-label {
  display: inline-block;
  font-size: .68rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--purple-hi);
  border-left: 2px solid var(--purple-mid);
  padding-left: .7rem; margin-bottom: 1.2rem;
}
.sec-title {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700; line-height: 1.06;
  letter-spacing: -.02em; margin-bottom: 1.4rem;
}
.sec-title em { font-style: normal; color: var(--purple-hi); }
.sec-desc {
  font-size: 1.05rem; line-height: 1.85;
  color: rgba(255,255,255,.55);
  margin-bottom: 2.4rem; max-width: 44ch;
}
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 2rem; }
.tag {
  padding: .28rem .72rem;
  border: 1px solid rgba(123,47,255,.35);
  border-radius: 100px; font-size: .7rem;
  color: var(--purple-hi); letter-spacing: .04em;
  background: rgba(123,47,255,.08);
}
.features { list-style: none; display: flex; flex-direction: column; gap: .85rem; margin-bottom: 3rem; }
.features li {
  display: flex; align-items: flex-start; gap: .85rem;
  font-size: .95rem; color: rgba(255,255,255,.62); line-height: 1.5;
}
.features li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--purple-hi); flex-shrink: 0; margin-top: .52em;
}
.stats-row {
  display: flex; gap: 2.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(123,47,255,.2);
}
.stat__n {
  font-size: 1.8rem; font-weight: 700; display: block;
  line-height: 1; margin-bottom: .35rem;
  background: linear-gradient(135deg, var(--white), var(--purple-hi));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__l { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.32); }

/* ── CONFIGURATOR VISUAL ── */
.cfg-vis {
  display: flex; align-items: center; justify-content: center;
  height: 480px; position: relative;
}
.cube-scene { perspective: 900px; width: 260px; height: 260px; }
.cube-3d {
  width: 100%; height: 100%;
  position: relative; transform-style: preserve-3d;
  animation: cube-auto 28s linear infinite;
}
@keyframes cube-auto {
  0%   { transform: rotateX(14deg) rotateY(0deg); }
  100% { transform: rotateX(14deg) rotateY(360deg); }
}
.cube-face {
  position: absolute; width: 260px; height: 260px;
  border: 1px solid rgba(123,47,255,.3);
  background: rgba(123,47,255,.04);
}
.cube-face::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(123,47,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,47,255,.1) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cube-face::after {
  content: ''; position: absolute; inset: 28px;
  border: 1px solid rgba(178,100,255,.15);
}
.cube-face.f  { transform: translateZ(130px); }
.cube-face.bk { transform: rotateY(180deg) translateZ(130px); }
.cube-face.l  { transform: rotateY(-90deg) translateZ(130px); }
.cube-face.r  { transform: rotateY(90deg) translateZ(130px); }
.cube-face.t  { transform: rotateX(90deg) translateZ(130px); }
.cube-face.bt { transform: rotateX(-90deg) translateZ(130px); }

.orbit-dot {
  position: absolute; border-radius: 50%;
  background: var(--purple-hi);
  box-shadow: 0 0 10px var(--purple-hi);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); opacity: .7; }
  50%      { transform: translateY(-18px); opacity: 1; }
}

/* ── LEARNING VISUAL ── */
.lrn-vis { height: 480px; position: relative; }
#neural-canvas { width: 100%; height: 100%; }

/* ── FOOTER ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(123,47,255,.25), transparent);
}
footer {
  padding: 2.5rem 5rem; background: var(--bg);
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer-copy  { font-size: .75rem; color: rgba(255,255,255,.22); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-word--main span { font-size: clamp(3.5rem, 18vw, 8rem); }
  .hero-word--sub  span { font-size: clamp(.9rem, 5vw, 2rem); }
  .section__inner { grid-template-columns: 1fr; padding: 5rem 2rem; gap: 3rem; }
  .section__inner--rev { direction: ltr; }
  .cfg-vis, .lrn-vis { height: 300px; }
  .cube-scene, .cube-face { width: 180px; height: 180px; }
  .cube-face.f  { transform: translateZ(90px); }
  .cube-face.bk { transform: rotateY(180deg) translateZ(90px); }
  .cube-face.l  { transform: rotateY(-90deg) translateZ(90px); }
  .cube-face.r  { transform: rotateY(90deg) translateZ(90px); }
  .cube-face.t  { transform: rotateX(90deg) translateZ(90px); }
  .cube-face.bt { transform: rotateX(-90deg) translateZ(90px); }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
  .nav-dots { display: none; }
}
