/* =====================================================
   THE COLOURITY CORE — Stylesheet
   ===================================================== */

:root {
  --purple: #7C3AED;
  --purple-light: #A78BFA;
  --blue: #3B82F6;
  --teal: #14B8A6;
  --teal-light: #5EEAD4;
  --bg-dark: #030712;
  --card-bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --gradient-brand: linear-gradient(135deg, var(--purple) 0%, var(--blue) 50%, var(--teal) 100%);
  --shadow-glow: 0 0 40px rgba(124,58,237,0.15), 0 0 80px rgba(59,130,246,0.1);
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

/* --- Background Aurora & Particles --- */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #080d1a 0%, #030712 100%);
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: orbDrift 20s infinite ease-in-out alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--purple);
  top: -10%;
  left: 10%;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: var(--blue);
  bottom: -20%;
  right: -10%;
  animation-delay: -5s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: var(--teal);
  top: 40%;
  left: 60%;
  animation-delay: -10s;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { transform: translate(80px, 50px) scale(1.15) rotate(90deg); }
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* --- Header & Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo-brand {
  display: block;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--gradient-brand);
  color: var(--text-primary) !important;
  padding: 8px 18px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.35);
}

/* --- Simulation Tag --- */
.simulation-tag {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 90;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-light);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.tag-pulse {
  width: 6px;
  height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
  animation: pulseTag 1.5s infinite;
}

@keyframes pulseTag {
  0% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.5; }
}

/* --- Container & Cinematic Setup --- */
.experience-container {
  width: 100%;
}

.story-section {
  display: none;
  min-height: 100vh;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 80px;
  align-items: center;
  justify-content: center;
  position: relative;
}

.story-section.active {
  display: flex;
}

.text-center {
  text-align: center;
}

/* --- Section 1: Wardrobe --- */
.headline {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.subheadline {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 48px;
}

.wardrobe-container {
  width: 240px;
  height: 360px;
  perspective: 1000px;
  margin: 0 auto 48px;
}

.wardrobe {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  background: #090f1e;
  border: 3px solid #1e293b;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transition: border-color 0.5s ease;
}

.wardrobe-door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: #111827;
  border: 1.5px solid #334155;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
  z-index: 2;
  cursor: pointer;
}

.door-left {
  left: 0;
  border-radius: 9px 0 0 9px;
  transform-origin: left center;
}

.door-right {
  right: 0;
  border-radius: 0 9px 9px 0;
  transform-origin: right center;
}

.wardrobe.open .door-left {
  transform: rotateY(-130deg);
}

.wardrobe.open .door-right {
  transform: rotateY(130deg);
}

.wardrobe-interior {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.2) 0%, rgba(3,7,18,0.95) 80%);
  border-radius: 9px;
  overflow: hidden;
  z-index: 1;
}

.interior-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: var(--gradient-brand);
  filter: blur(30px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease;
}

.wardrobe.open .interior-glow {
  opacity: 0.8;
  animation: glowPulse 2s infinite alternate;
}

@keyframes glowPulse {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.6; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.9; }
}

.btn-glow {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 99px;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-glow:hover {
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-glow:hover::before {
  opacity: 1;
}

/* --- Section 2: Core Awakens --- */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 64px;
}

.garment-field {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5;
}

.draggable-garment {
  position: absolute;
  width: 90px;
  height: 90px;
  cursor: grab;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.draggable-garment:hover {
  transform: scale(1.12);
}

.garment-svg {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.garment-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
  letter-spacing: 0.02em;
  background: rgba(15,23,42,0.8);
  padding: 2px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Core Orb Breather */
.core-orbit {
  width: 200px;
  height: 200px;
  margin: 80px auto 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.core-breather {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.6) 80%);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: coreHeartbeat 4s infinite ease-in-out;
  box-shadow: 0 0 30px rgba(124,58,237,0.1);
}

.core-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  background: var(--gradient-brand);
  opacity: 0.15;
  filter: blur(15px);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.core-ring {
  position: absolute;
  top: -15px; left: -15px; right: -15px; bottom: -15px;
  border-radius: 50%;
  border: 1.5px dashed rgba(59,130,246,0.3);
  animation: coreRingRotate 20s infinite linear;
}

.core-status {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
  transition: color 0.3s ease;
}

@keyframes coreHeartbeat {
  0% { transform: scale(1); box-shadow: 0 0 30px rgba(124,58,237,0.15); }
  50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(59,130,246,0.3); }
  100% { transform: scale(1); box-shadow: 0 0 30px rgba(124,58,237,0.15); }
}

@keyframes coreRingRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.core-breather.active .core-glow {
  opacity: 0.6;
  filter: blur(25px);
}

.core-breather.active .core-status {
  color: var(--teal-light);
}

/* --- Section 3: Specialists --- */
.specialist-stage {
  width: 100%;
  max-width: 900px;
  min-height: 480px;
  background: var(--card-bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.specialist-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.specialist-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.specialist-info {
  flex: 1;
}

.spec-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.specialist-info h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.spec-title {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 24px;
}

.spec-quote {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-style: italic;
}

.spec-visual {
  width: 320px;
  height: 320px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Vision Scan Visual */
.vision-scan-box {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.scan-laser {
  position: absolute;
  left: 0; width: 100%;
  height: 3px;
  background: var(--purple-light);
  box-shadow: 0 0 15px var(--purple-light);
  top: 0;
  animation: scanLaserAnim 3s infinite ease-in-out;
}

@keyframes scanLaserAnim {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.scan-garment-svg {
  width: 150px;
  height: 150px;
  stroke: rgba(255,255,255,0.15);
  transition: stroke 0.5s ease;
}

.detection-tag {
  position: absolute;
  background: rgba(20,184,166,0.1);
  border: 1px solid rgba(20,184,166,0.3);
  color: var(--teal-light);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease;
}

.spec-tag-1 { top: 30%; left: 10%; transition-delay: 0.5s; }
.spec-tag-2 { top: 50%; right: 10%; transition-delay: 1s; }
.spec-tag-3 { bottom: 25%; left: 25%; transition-delay: 1.5s; }

.specialist-slide.active .detection-tag {
  opacity: 1;
  transform: scale(1);
}

.specialist-slide.active .scan-garment-svg {
  stroke: var(--purple-light);
}

/* Colour Specialist Visual */
.colour-flow-container {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 32px;
}

.liquid-gradients {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.liquid-drop {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  filter: blur(2px);
  animation: dropFloat 4s infinite ease-in-out alternate;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.drop-blue { animation-delay: 0s; }
.drop-beige { animation-delay: -1.3s; }
.drop-white { animation-delay: -2.6s; }

@keyframes dropFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-15px); }
}

.palette-swatch-list {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.swatch-card {
  width: 70px;
  height: 45px;
  background: var(--color);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.swatch-card span {
  font-size: 0.52rem;
  font-weight: 700;
  color: #000000;
  background: rgba(255,255,255,0.8);
  padding: 1px 4px;
  border-radius: 3px;
  letter-spacing: -0.01em;
}

/* Wardrobe Specialist Visual */
.wardrobe-thread-container {
  width: 100%; height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thread-network {
  width: 220px;
  height: 220px;
}

.connecting-thread {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawThread 4s infinite linear forwards;
}

@keyframes drawThread {
  100% { stroke-dashoffset: 0; }
}

.thread-toast {
  position: absolute;
  bottom: 24px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-light);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.toast-indicator {
  width: 6px; height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
}

/* Aura Visual */
.styling-outfit-container {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.outfit-snap-box {
  position: relative;
  width: 150px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.snap-garment {
  position: absolute;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.snap-top {
  top: 10%;
  transform: translateY(-20px);
}

.snap-bottom {
  bottom: 10%;
  transform: translateY(20px);
}

.specialist-slide.active .snap-top {
  transform: translateY(0);
}

.specialist-slide.active .snap-bottom {
  transform: translateY(0);
}

.aura-bubble {
  background: var(--gradient-brand);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  animation: bubbleFloat 2s infinite alternate;
}

@keyframes bubbleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* --- Section 4: The Pipeline --- */
.pipeline-container {
  margin: 64px auto 80px;
  position: relative;
  max-width: 800px;
  padding: 24px;
}

.pipeline-line {
  position: absolute;
  top: 50%; left: 5%; right: 5%;
  height: 2px;
  background: rgba(255,255,255,0.06);
  z-index: 1;
}

.pipeline-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.pipe-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}

.node-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.pipe-node.active .node-dot {
  background: var(--blue);
  border-color: var(--text-primary);
  box-shadow: 0 0 15px var(--blue);
}

.pipe-node.active .node-label {
  color: var(--text-primary);
  font-weight: 700;
}

.decision-counter-panel {
  margin-top: 56px;
  background: var(--card-bg-glass);
  border: 1px solid var(--border-glass);
  padding: 24px 48px;
  border-radius: 16px;
  display: inline-block;
  backdrop-filter: blur(12px);
}

.counter-step {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple-light);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.counter-number {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.counter-unit {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.pipeline-headline {
  font-size: 2rem;
  font-weight: 800;
  margin-top: 48px;
  line-height: 1.3;
}

.hidden-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

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

/* --- Section 5: Why Different --- */
.compare-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: 100%;
}

.compare-card {
  background: var(--card-bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 48px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.compare-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.compare-card h4 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.compare-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
}

.compare-graphic {
  background: rgba(0,0,0,0.25);
  border-radius: 12px;
  padding: 24px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.03);
}

.static-folder {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1.5px dashed rgba(255,255,255,0.1);
  padding: 12px 24px;
  border-radius: 8px;
}

.intelligent-loop {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.loop-step {
  background: rgba(255,255,255,0.05);
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

.loop-step.text-purple {
  border-color: var(--purple-light);
  color: var(--purple-light);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.2);
}

.loop-arrow {
  color: var(--text-muted);
}

/* --- Section 6: Memory --- */
.memory-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 64px auto 0;
  background: var(--card-bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
  backdrop-filter: blur(12px);
}

.memory-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.day-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.day-item-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.day-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.memory-insight-card {
  flex: 1;
  background: rgba(20,184,166,0.04);
  border: 1px solid rgba(20,184,166,0.15);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: left;
  position: relative;
}

.insight-pulse {
  position: absolute;
  top: 12px; right: 12px;
  width: 8px; height: 8px;
  background: var(--teal-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--teal-light);
  animation: pulseTag 2s infinite;
}

.insight-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--teal-light);
  line-height: 1.5;
}

/* --- Section 7: The Morning Story --- */
.story-backdrop {
  width: 100%;
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(15,23,42,0.6) 0%, rgba(3,7,18,0.95) 90%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  overflow: hidden;
}

.story-spotlight {
  position: absolute;
  top: 0; left: 50%;
  width: 300px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(124,58,237,0.1) 0%, transparent 100%);
  transform: translateX(-50%);
  clip-path: polygon(40% 0%, 60% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

.story-narrative {
  position: relative;
  z-index: 2;
  padding: 32px;
  max-width: 600px;
}

.narrative-small {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.narrative-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 32px;
}

.narrative-transition {
  margin-top: 40px;
}

.transition-core-pulse {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--purple);
  margin: 0 auto 24px;
  box-shadow: 0 0 20px var(--purple);
  animation: glowPulse 2s infinite alternate;
}

.narrative-quote {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --- Section 8: Transformation --- */
.transform-sequence {
  display: flex;
  gap: 24px;
  width: 100%;
}

.transform-step {
  flex: 1;
}

.step-card {
  background: var(--card-bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px;
  height: 240px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-muted);
  opacity: 0.25;
}

.step-card h5 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-visual-messy, .step-visual-organized, .step-visual-matched {
  height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  overflow: hidden;
}

.mess-item {
  position: absolute;
  font-size: 1.5rem;
}

.organized-slot {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0 4px;
}

.matched-outfit-glow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--teal-light);
  text-shadow: 0 0 10px rgba(20, 184, 166, 0.4);
}

.plus-sign {
  color: var(--text-muted);
}

/* --- Section 9: Invisible Work --- */
.invisible-work-canvas-container {
  width: 100%;
  height: 400px;
  position: relative;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  margin-top: 48px;
  overflow: hidden;
}

#collision-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.outfit-merge-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
  pointer-events: none;
}

.outfit-merge-overlay.merged {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.svg-glow-path {
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
}

/* --- Section 10: Philosophy Grid --- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.philosophy-card {
  background: var(--card-bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 32px;
  text-align: left;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.philosophy-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.15);
}

.card-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 16px;
}

.philosophy-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.philosophy-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- Section 11: Ending --- */
.ending-stage {
  width: 100%;
  min-height: 80vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 120px;
}

.ending-text-group {
  margin-bottom: 80px;
}

.ending-line {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.mt-64 { margin-top: 64px; }

/* Morphing branding elements */
.ending-branding-morph {
  position: relative;
  width: 240px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 64px 0;
}

.morphing-core-dot {
  width: 16px;
  height: 16px;
  background: var(--purple);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--purple);
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.morph-logo-wrap {
  position: absolute;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

/* Drawing animations for infinity */
.logo-svg-draw {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}

.morph-logo-wrap.active .logo-infinity-path {
  animation: drawInfinity 2s forwards ease-in-out;
}

@keyframes drawInfinity {
  100% { stroke-dashoffset: 0; }
}

.logo-text-fade {
  opacity: 0;
  transition: opacity 1s ease 1s;
}

.morph-logo-wrap.active .logo-text-fade {
  opacity: 1;
}

.final-cta-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.5s ease 2s, transform 1.5s ease 2s;
}

.final-cta-wrap.active {
  opacity: 1;
  transform: translateY(0);
}

.final-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 24px;
}

.btn-glow-large {
  display: inline-block;
  text-decoration: none;
  background: var(--gradient-brand);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  padding: 16px 44px;
  border-radius: 99px;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-glow-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(124,58,237,0.3), 0 0 100px rgba(59,130,246,0.2);
}

.final-philosophy {
  margin-top: 48px;
  max-width: 480px;
}

.philosophy-quote {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .simulation-tag { top: 80px; right: 12px; font-size: 0.65rem; }
  
  .specialist-stage { padding: 24px; }
  .specialist-slide { padding: 0; flex-direction: column; text-align: center; gap: 24px; }
  .spec-visual { width: 100%; max-width: 280px; height: 260px; }
  
  .pipeline-nodes { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .pipe-node { flex: 0 0 30%; }
  .pipeline-line { display: none; }
  
  .compare-container { grid-template-columns: 1fr; }
  .memory-grid { flex-direction: column; gap: 24px; text-align: center; }
  .transform-sequence { flex-direction: column; }
  .philosophy-grid { grid-template-columns: 1fr; }
}
