/* ═══════════════════════════════════════════════════════════════════════════════ */
/* DireWatt Theme — Full Landing Page                                            */
/* ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --dw-bg-primary: #08090d;
  --dw-bg-secondary: #0f1218;
  --dw-bg-card: rgba(17, 20, 28, 0.8);
  --dw-bg-card-solid: #11141c;
  --dw-bg-card-hover: #181c26;
  --dw-bg-glass: rgba(14, 17, 24, 0.72);
  --dw-border: rgba(255, 255, 255, 0.06);
  --dw-border-subtle: rgba(255, 255, 255, 0.04);
  --dw-border-focus: rgba(6, 182, 212, 0.4);
  --dw-text-primary: #f0f1f3;
  --dw-text-secondary: #b0b6c3;
  --dw-text-muted: #8a9bb8;
  --dw-cyan: #22d3ee;
  --dw-cyan-dim: rgba(34, 211, 238, 0.1);
  --dw-amber: #fbbf24;
  --dw-green: #34d399;
  --dw-red: #f87171;
  --dw-purple: #a78bfa;
  --dw-font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace;
  --dw-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --dw-radius: 16px;
  --dw-radius-sm: 10px;
  --dw-radius-xs: 6px;
  --dw-shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
  --dw-shadow-elevated: 0 4px 12px rgba(0,0,0,0.4), 0 16px 48px rgba(0,0,0,0.3);
  --dw-shadow-glow: 0 0 20px rgba(34, 211, 238, 0.08);
}

/* ─── Global Reset ───────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--dw-font-sans);
  background: var(--dw-bg-primary);
  color: var(--dw-text-primary);
  line-height: 1.6;
}

a { color: var(--dw-cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Hide Drupal chrome */
.layout-container { max-width: none; padding: 0; margin: 0; }
main { padding: 0; margin: 0; }
.tabs, .breadcrumb, .block-page-title-block,
header[role="banner"], .site-header, nav.breadcrumb,
.region-breadcrumb, footer.site-footer, .region-footer { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* LANDING PAGE — Cinematic Parallax                                             */
/* ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --lp-warm: #f0e8d4;
  --lp-warm-60: rgba(240, 232, 212, 0.6);
  --lp-warm-30: rgba(240, 232, 212, 0.3);
  --lp-gold: #c9a84c;
  --lp-gold-30: rgba(201, 168, 76, 0.3);
  --lp-display: 'Playfair Display SC', 'Abril Fatface', Georgia, serif;
  --lp-body: 'EB Garamond', 'Playfair Display', Georgia, serif;
}

.dw-landing {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background: #000;
  color: var(--lp-warm);
}

/* ─── Canvas (fixed, renders video + corruption postfx) ─────────────────────── */

.dw-land__canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}


/* ═══════════════════════════════════════════════════════════════════════════════ */
/* CINEMATIC CARDS                                                                */
/* ═══════════════════════════════════════════════════════════════════════════════ */

:root {
  --lp-warm: #f0e8d4;
  --lp-warm-60: rgba(240, 232, 212, 0.6);
  --lp-warm-30: rgba(240, 232, 212, 0.3);
  --lp-gold: #c9a84c;
  --lp-gold-30: rgba(201, 168, 76, 0.3);
  --lp-display: 'Playfair Display SC', 'Abril Fatface', Georgia, serif;
  --lp-body: 'EB Garamond', 'Playfair Display', Georgia, serif;
}

.dw-landing { min-height: 100vh; overflow-x: hidden; position: relative; background: #000; color: var(--lp-warm); }

/* Canvas */
.dw-land__canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; }

/* ─── Custom Cursor ──────────────────────────────────────────────────────────── */
.dw-cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; mix-blend-mode: difference; }
.dw-cursor__dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; transform: translate(-50%,-50%); transition: transform 0.15s; }
.dw-cursor__ring { position: absolute; top: -14px; left: -14px; width: 32px; height: 32px; border: 1.5px solid rgba(255,255,255,0.45); border-radius: 50%; transition: width 0.35s cubic-bezier(.23,1,.32,1), height 0.35s cubic-bezier(.23,1,.32,1), top 0.35s cubic-bezier(.23,1,.32,1), left 0.35s cubic-bezier(.23,1,.32,1), border-color 0.3s; }
.dw-cursor--hover .dw-cursor__ring { width: 56px; height: 56px; top: -26px; left: -26px; border-color: var(--lp-gold); }
.dw-cursor--hover .dw-cursor__dot { transform: translate(-50%,-50%) scale(0); }
@media (hover: none) { .dw-cursor { display: none; } }
@media (hover: hover) { .dw-landing { cursor: none; } .dw-landing a, .dw-landing button, .dw-landing input { cursor: none; } }

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* CARDS — each one is a full viewport                                           */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.dw-card {
  position: relative; z-index: 10;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: clamp(40px, 8vh, 100px) clamp(24px, 6vw, 60px);
  text-align: center;
}

/* ─── Special card variants ──────────────────────────────────────────────────── */

/* Full black — a beat of silence (no visible box — shader handles darkness) */
.dw-card--black { }

/* Flash — bright text moment */
.dw-card--flash .dw-card__text { color: #fff; text-shadow: 0 0 60px rgba(255,255,255,0.3); }

/* Inversion — the negative. Everything reverses. */
.dw-card--invert { filter: invert(1); }
.dw-card--invert .dw-card__text { color: #000; }

/* Finale */
.dw-card--finale { gap: 20px; }

/* ─── Title Animation ────────────────────────────────────────────────────────── */
.dw-card--title { gap: 0; }

.dw-title {
  text-align: center;
  opacity: 0;
  animation: titleFadeIn 5s ease 1.5s forwards;
}

@keyframes titleFadeIn {
  0%   { opacity: 0; }
  100% { opacity: 1; }
}

.dw-title__line {
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.dw-title__char {
  font-family: var(--lp-display);
  font-size: clamp(72px, 14vw, 180px);
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 0.9;
  display: inline-block;
  text-shadow: 0 0 40px rgba(255,255,255,0.15);
}

/* The "A" in WATT — flickers like a broken neon tube, blood dripping inside */
.dw-title__char--flicker {
  background: linear-gradient(
    180deg,
    #ff3333 0%,
    #ff3333 30%,
    #cc1111 45%,
    #880000 60%,
    #440000 80%,
    #220000 100%
  );
  background-size: 100% 250%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 20px rgba(255,50,50,0.5)) drop-shadow(0 0 60px rgba(255,50,50,0.2));
  animation: neonFlicker 4s linear 7s infinite, bloodPulse 6s ease-in-out infinite;
}

@keyframes bloodPulse {
  0%, 100% { background-position: 0% 20%; }
  50%      { background-position: 0% 45%; }
}

@keyframes neonFlicker {
  0%    { opacity: 1; }
  3%    { opacity: 0.1; }
  5%    { opacity: 0.85; }
  8%    { opacity: 0.05; }
  9%    { opacity: 0.9; }
  12%   { opacity: 1; }
  20%   { opacity: 1; }
  21%   { opacity: 0.15; }
  23%   { opacity: 0.9; }
  24%   { opacity: 0.1; }
  26%   { opacity: 1; }
  54%   { opacity: 1; }
  55%   { opacity: 0.2; }
  56%   { opacity: 0.85; }
  57%   { opacity: 0.08; }
  59%   { opacity: 1; }
  82%   { opacity: 1; }
  83%   { opacity: 0.15; }
  84.5% { opacity: 1; }
  100%  { opacity: 1; }
}

/* Gold accent line — draws from center */
.dw-title__rule {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210,180,120,0.4), transparent);
  margin: 20px auto 0;
  transform: scaleX(0);
  animation: ruleDraw 1.5s ease 6s forwards;
}

@keyframes ruleDraw {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Subtitle */
.dw-title__sub {
  font-family: var(--lp-body);
  font-style: italic;
  font-size: clamp(10px, 1.4vw, 14px);
  color: rgba(255,245,225,0.35);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 16px 0 0;
  opacity: 0;
  animation: subReveal 2s ease 6.8s forwards;
}

@keyframes subReveal {
  0%   { opacity: 0; letter-spacing: 0.5em; }
  100% { opacity: 0.35; letter-spacing: 0.25em; }
}

@media (max-width: 640px) {
  .dw-title__char { font-size: clamp(48px, 16vw, 100px); }
}

/* ─── Cursor readability — single fixed overlay follows mouse ─────────────────── */
.dw-land__read-spot {
  position: fixed; top: 0; left: 0;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,0.7) 0%, transparent 65%);
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
  will-change: transform;
}

/* Text always has heavy shadow for readability over video */
.dw-card__text, .dw-card__display, .dw-card__display--single, .dw-card__trio-word, .dw-card__sub, .dw-card__coming {
  text-shadow: 0 0 40px rgba(0,0,0,0.95), 0 0 80px rgba(0,0,0,0.8), 0 2px 12px rgba(0,0,0,0.9), 0 0 120px rgba(0,0,0,0.6);
}

/* ─── Title Display ──────────────────────────────────────────────────────────── */
.dw-card__display { font-family: var(--lp-display); font-weight: 400; line-height: 0.88; margin: 0 0 40px; }
.dw-card__display-top { display: block; font-size: clamp(80px,16vw,200px); color: var(--lp-warm); text-shadow: 0 0 80px rgba(240,232,212,0.1); }
.dw-card__display-bot { display: block; font-size: clamp(80px,16vw,200px); color: var(--lp-gold); text-shadow: 0 0 60px rgba(201,168,76,0.15); }
.dw-card__display--single { font-size: clamp(48px,10vw,140px); color: var(--lp-warm); text-shadow: 0 0 100px rgba(240,232,212,0.08); margin-bottom: 0; letter-spacing: 0.08em; }

/* Split-text letters */
.dw-card__display .letter, .dw-card__display--single .letter { display: inline-block; opacity: 0; transform: translateY(60px) rotateZ(-8deg); transition: none; }
.dw-card__display .letter.is-visible, .dw-card__display--single .letter.is-visible { opacity: 1; transform: translateY(0) rotateZ(0); transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.23,1,.32,1); }

/* ─── Card Text ──────────────────────────────────────────────────────────────── */
.dw-card__text {
  font-family: var(--lp-body);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--lp-warm);
  margin: 0 0 16px;
  max-width: 800px;
}
.dw-card__text:last-child { margin-bottom: 0; }
.dw-card__text--lg { font-size: clamp(32px, 5vw, 56px); font-style: normal; letter-spacing: 0.04em; }
.dw-card__text--sm { font-size: clamp(18px, 2.4vw, 28px); }
.dw-card__text--dim { color: var(--lp-warm-60); }
.dw-card__text--gold { color: var(--lp-gold); font-style: normal; }

/* Glitch */
.dw-card__text--glitch { position: relative; }
.dw-card__text--glitch::before, .dw-card__text--glitch::after { content: attr(data-glitch); position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.dw-card__text--glitch::before { color: #ff3366; clip-path: polygon(0 0,100% 0,100% 40%,0 60%); }
.dw-card__text--glitch::after { color: #33ccff; clip-path: polygon(0 60%,100% 40%,100% 100%,0 100%); }
.dw-card__text--glitch.is-visible::before { animation: glitch-a 3s ease-in-out infinite 1s; }
.dw-card__text--glitch.is-visible::after { animation: glitch-b 3s ease-in-out infinite 1s; }
@keyframes glitch-a { 0%,92%,100% { opacity:0; transform:translate(0); } 93% { opacity:0.8; transform:translate(-4px,-2px); } 96% { opacity:0; transform:translate(5px,3px); } }
@keyframes glitch-b { 0%,94%,100% { opacity:0; transform:translate(0); } 95% { opacity:0.8; transform:translate(4px,2px); } 97% { opacity:0; transform:translate(-3px,-3px); } }

/* ─── Trio ────────────────────────────────────────────────────────────────────── */
.dw-card__trio { display: flex; gap: clamp(32px,6vw,100px); justify-content: center; }
.dw-card__trio-word { font-family: var(--lp-display); font-size: clamp(36px,6vw,80px); color: var(--lp-warm); letter-spacing: 0.1em; text-shadow: 0 0 50px rgba(0,0,0,0.8); cursor: default; transition: color 0.3s, text-shadow 0.3s; }
.dw-card__trio-word:hover { color: var(--lp-gold); text-shadow: 0 0 40px rgba(201,168,76,0.4); }

/* ─── Fade-Up ────────────────────────────────────────────────────────────────── */
[data-fade-up] { opacity: 0; transform: translateY(40px); transition: opacity 1s ease-out, transform 1s cubic-bezier(.23,1,.32,1); }
[data-fade-up].is-visible { opacity: 1; transform: translateY(0); }

/* ─── Login ───────────────────────────────────────────────────────────────────── */
.dw-card__login { width: 100%; max-width: 320px; padding: 28px 24px; background: rgba(0,0,0,0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(240,232,212,0.06); border-radius: 3px; }
.dw-card__login-title { font-family: var(--lp-display); font-size: 18px; font-weight: 400; color: var(--lp-warm); letter-spacing: 0.1em; text-align: center; margin: 0 0 20px; }
.dw-card__login .form-item { margin-bottom: 14px; }
.dw-card__login label { display: block; font-family: var(--lp-body); font-size: 11px; color: var(--lp-warm-30); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 5px; }
.dw-card__login input[type="text"], .dw-card__login input[type="password"] { width: 100%; padding: 10px 12px; font-family: var(--lp-body); font-size: 15px; background: rgba(240,232,212,0.04); border: 1px solid rgba(240,232,212,0.1); border-radius: 2px; color: var(--lp-warm); outline: none; transition: border-color 0.3s, box-shadow 0.3s; }
.dw-card__login input[type="text"]:focus, .dw-card__login input[type="password"]:focus { border-color: var(--lp-gold-30); box-shadow: 0 0 0 2px rgba(201,168,76,0.08); }
.dw-card__login .form-actions { margin-top: 18px; }
.dw-card__login input[type="submit"], .dw-card__login button[type="submit"] { width: 100%; padding: 11px 20px; font-family: var(--lp-body); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid var(--lp-gold-30); border-radius: 2px; cursor: pointer; background: transparent; color: var(--lp-gold); transition: all 0.3s; }
.dw-card__login input[type="submit"]:hover, .dw-card__login button[type="submit"]:hover { background: rgba(201,168,76,0.08); border-color: var(--lp-gold); }
.dw-card__login .description { display: none; }

/* ─── Scroll Cue ──────────────────────────────────────────────────────────────── */
.dw-card__scroll-cue { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); }
.dw-card__scroll-line { width: 1px; height: 56px; background: linear-gradient(180deg, var(--lp-gold-30), transparent); animation: lp-scroll-pulse 2.4s ease-in-out infinite; }
@keyframes lp-scroll-pulse { 0%,100% { opacity:0.2; transform:scaleY(1); } 50% { opacity:0.8; transform:scaleY(1.2); } }

/* ─── Subtitle / CTA ─────────────────────────────────────────────────────────── */
.dw-card__sub { font-family: var(--lp-body); font-style: italic; font-size: clamp(16px,2.2vw,24px); color: var(--lp-warm-60); margin: 0; }
.dw-card__coming { font-family: var(--lp-display); font-size: clamp(14px,1.8vw,20px); color: var(--lp-gold); letter-spacing: 0.25em; text-transform: uppercase; margin: 24px 0 0; }
.dw-card__cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }
.dw-card__btn { display: inline-block; font-family: var(--lp-body); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 15px 44px; background: var(--lp-gold); color: #000; border: none; border-radius: 2px; text-decoration: none; cursor: pointer; transition: transform 0.25s cubic-bezier(.23,1,.32,1), box-shadow 0.3s; will-change: transform; }
.dw-card__btn:hover { transform: translateY(-3px); box-shadow: 0 6px 30px rgba(201,168,76,0.35); text-decoration: none; }
.dw-card__btn--outline { background: transparent; color: var(--lp-gold); border: 1px solid var(--lp-gold-30); }
.dw-card__btn--outline:hover { background: rgba(201,168,76,0.06); border-color: var(--lp-gold); box-shadow: 0 4px 20px rgba(201,168,76,0.15); }

/* ─── Footer ──────────────────────────────────────────────────────────────────── */
.dw-card__footer { position: relative; z-index: 10; padding: 32px; text-align: center; font-family: var(--lp-display); font-size: 14px; color: var(--lp-warm-30); letter-spacing: 0.1em; }

/* ─── Progress Bar ────────────────────────────────────────────────────────────── */
.dw-land__progress { position: fixed; left: 0; top: 0; width: 3px; height: 100vh; z-index: 100; pointer-events: none; }
.dw-land__progress-fill { position: absolute; bottom: 0; left: 0; width: 100%; height: 0%; border-radius: 0 2px 2px 0; }

/* ─── Spotlight Reveal ────────────────────────────────────────────────────────── */
[data-spotlight] { --spot-x: -200px; --spot-y: -200px; --spot-size: clamp(100px, 12vw, 180px); color: var(--lp-gold); -webkit-mask-image: radial-gradient(circle var(--spot-size) at var(--spot-x) var(--spot-y), white 0%, transparent 70%); mask-image: radial-gradient(circle var(--spot-size) at var(--spot-x) var(--spot-y), white 0%, transparent 70%); user-select: none; opacity: 0.85; }

/* ─── Cursor Trail ────────────────────────────────────────────────────────────── */
.dw-land__trail-dot { position: fixed; top: 0; left: 0; background: var(--lp-gold); border-radius: 50%; pointer-events: none; z-index: 9998; mix-blend-mode: screen; transform: translate(-50%, -50%); }
@media (hover: none) { .dw-land__trail-dot { display: none; } }

/* ─── Play Button ─────────────────────────────────────────────────────────────── */
.dw-land__play-btn { position: fixed; bottom: 32px; right: 32px; z-index: 100; width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,0.5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(240,232,212,0.12); color: var(--lp-warm); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s; }
.dw-land__play-btn:hover { border-color: var(--lp-gold); background: rgba(201,168,76,0.1); }
.dw-land__play-btn--active { border-color: var(--lp-gold); box-shadow: 0 0 20px rgba(201,168,76,0.2); }
.dw-land__play-btn svg { pointer-events: none; }

/* ─── Mobile ──────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .dw-card { padding: 40px 20px; }
  .dw-card__login { max-width: 100%; padding: 20px 16px; }
  .dw-card__trio { flex-direction: column; gap: 20px; }
  .dw-land__play-btn { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* MESSAGES (Drupal)                                                             */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.messages--error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--dw-radius-xs);
  color: var(--dw-red);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.messages--status {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  border-radius: var(--dw-radius-xs);
  color: var(--dw-green);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* WATT LANDING PAGE                                                             */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.dw-watt-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Hero — purple-accent variant with animated neural background */
.dw-watt-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  min-height: 100vh;
  padding: 80px 48px;
  overflow: hidden;
  background: var(--dw-bg-primary);
}

/* Layer 1: Subtle hex grid pattern */
.dw-watt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(30deg, rgba(167, 139, 250, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(167, 139, 250, 0.03) 87.5%),
    linear-gradient(150deg, rgba(167, 139, 250, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(167, 139, 250, 0.03) 87.5%),
    linear-gradient(30deg, rgba(167, 139, 250, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(167, 139, 250, 0.03) 87.5%),
    linear-gradient(150deg, rgba(167, 139, 250, 0.03) 12%, transparent 12.5%, transparent 87%, rgba(167, 139, 250, 0.03) 87.5%),
    linear-gradient(60deg, rgba(34, 211, 238, 0.02) 25%, transparent 25.5%, transparent 75%, rgba(34, 211, 238, 0.02) 75%),
    linear-gradient(60deg, rgba(34, 211, 238, 0.02) 25%, transparent 25.5%, transparent 75%, rgba(34, 211, 238, 0.02) 75%);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  pointer-events: none;
  opacity: 0.7;
}

/* Layer 2: Multi-color gradient mesh with animation */
.dw-watt-hero::after {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 600px 500px at 20% 30%, rgba(167, 139, 250, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 500px 600px at 80% 20%, rgba(34, 211, 238, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 60% 80%, rgba(251, 191, 36, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 300px at 10% 70%, rgba(52, 211, 153, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 300px 500px at 90% 60%, rgba(248, 113, 113, 0.04) 0%, transparent 70%);
  animation: dw-watt-mesh-float 25s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes dw-watt-mesh-float {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(3%, -2%) rotate(1deg); }
  66% { transform: translate(-2%, 3%) rotate(-1deg); }
  100% { transform: translate(1%, -1%) rotate(0.5deg); }
}

.dw-watt-hero > * { position: relative; z-index: 1; }

/* ─── Hero Particles & Connections ──────────────────────────────────────────── */

.dw-hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.dw-hero-node {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 0 calc(var(--size) * 2) var(--color), 0 0 calc(var(--size) * 4) color-mix(in srgb, var(--color) 30%, transparent);
  animation: dw-hero-drift var(--dur) ease-in-out infinite alternate;
  --dx: 0px;
  --dy: 0px;
  opacity: 0.7;
}

@keyframes dw-hero-drift {
  0% { transform: translate(0, 0); opacity: 0.5; }
  50% { opacity: 0.9; }
  100% { transform: translate(var(--dx), var(--dy)); opacity: 0.5; }
}

.dw-hero-connections {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dw-hero-line {
  stroke: rgba(167, 139, 250, 0.08);
  stroke-width: 1;
  stroke-dasharray: 6 8;
  animation: dw-hero-pulse-line 4s ease-in-out var(--delay, 0s) infinite;
}

@keyframes dw-hero-pulse-line {
  0%, 100% { stroke-opacity: 0.06; stroke-dashoffset: 0; }
  50% { stroke-opacity: 0.2; stroke-dashoffset: 28; }
}

.dw-watt-hero__content { max-width: 560px; flex-shrink: 0; }

.dw-watt-hero__badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dw-purple);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  animation: dw-watt-badge-pulse 3s ease-in-out infinite;
}

@keyframes dw-watt-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(167, 139, 250, 0); }
  50% { box-shadow: 0 0 12px 2px rgba(167, 139, 250, 0.15); }
}

.dw-watt-hero__title {
  font-family: var(--dw-font-sans);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: #fff;
  text-shadow: 0 0 40px rgba(167, 139, 250, 0.15), 0 0 80px rgba(167, 139, 250, 0.05);
}

.dw-watt-hero__title--accent {
  background: linear-gradient(90deg, var(--dw-purple), var(--dw-cyan), var(--dw-amber), var(--dw-purple));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: dw-gradient-shift 4s linear infinite;
  filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.3));
}

.dw-watt-hero__subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--dw-text-secondary);
  line-height: 1.6;
  margin: 0 0 36px;
}

.dw-watt-hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dw-watt-hero__stat {
  text-align: left;
  padding: 8px 0;
  transition: transform 0.2s;
}

.dw-watt-hero__stat:hover { transform: translateY(-2px); }

.dw-watt-hero__stat-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--dw-text-primary);
  font-family: var(--dw-font-mono);
  transition: color 0.2s, text-shadow 0.2s;
}

.dw-watt-hero__stat:hover .dw-watt-hero__stat-value {
  color: var(--dw-purple);
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.3);
}

.dw-watt-hero__stat-label {
  display: block;
  font-size: 12px;
  color: var(--dw-text-muted);
  letter-spacing: 0.02em;
}

.dw-watt-hero__stat-divider {
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, transparent, var(--dw-purple), transparent);
  opacity: 0.3;
}

/* Register Card — purple-accent rotating border */
.dw-watt-register-card {
  position: relative;
  background: var(--dw-bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: none;
  border-radius: var(--dw-radius);
  padding: 36px;
  width: 100%;
  max-width: 380px;
  flex-shrink: 0;
  box-shadow: 0 0 40px rgba(167, 139, 250, 0.12), 0 0 80px rgba(34, 211, 238, 0.06), var(--dw-shadow-elevated);
  overflow: hidden;
  z-index: 1;
}

.dw-watt-register-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--dw-radius) + 2px);
  background: conic-gradient(
    from var(--dw-border-angle, 0deg),
    var(--dw-purple),
    var(--dw-cyan),
    var(--dw-amber),
    var(--dw-purple)
  );
  animation: dw-border-spin 4s linear infinite;
  z-index: -2;
}

.dw-watt-register-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: calc(var(--dw-radius) - 2px);
  background: var(--dw-bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: -1;
}

.dw-watt-register-card__header { text-align: center; margin-bottom: 28px; position: relative; }

.dw-watt-register-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--dw-purple);
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.3));
  animation: dw-icon-float 3s ease-in-out infinite;
}

.dw-watt-register-card__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--dw-text-primary);
}

.dw-watt-register-card__desc {
  font-size: 14px;
  color: var(--dw-text-muted);
  margin: 0;
}

/* Registration form fields */
.dw-watt-register-card .form-item { margin-bottom: 18px; }

.dw-watt-register-card label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--dw-text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.dw-watt-register-card input[type="text"],
.dw-watt-register-card input[type="email"],
.dw-watt-register-card input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--dw-font-sans);
  font-size: 15px;
  background: rgba(8, 9, 13, 0.6);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-xs);
  color: var(--dw-text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.dw-watt-register-card input[type="text"]:focus,
.dw-watt-register-card input[type="email"]:focus,
.dw-watt-register-card input[type="password"]:focus {
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1), 0 0 16px rgba(167, 139, 250, 0.08);
  background: rgba(8, 9, 13, 0.8);
}

.dw-watt-register-card .form-actions { margin-top: 24px; }

.dw-watt-register-btn {
  width: 100%;
  padding: 13px 24px;
  font-family: var(--dw-font-sans);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--dw-purple), var(--dw-cyan));
  color: #fff;
  letter-spacing: 0.02em;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.2);
}

.dw-watt-register-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(167, 139, 250, 0.4), 0 0 48px rgba(34, 211, 238, 0.15);
}

.dw-watt-register-btn:active { transform: translateY(0); }

.dw-watt-login-link {
  text-align: center;
  font-size: 13px;
  color: var(--dw-text-muted);
  margin-top: 20px;
}

.dw-watt-login-link a {
  color: var(--dw-purple);
  text-decoration: none;
  font-weight: 600;
}

.dw-watt-login-link a:hover {
  text-decoration: underline;
  color: var(--dw-cyan);
}

.dw-watt-register-card .description {
  font-size: 11px;
  color: var(--dw-text-muted);
  margin-top: 6px;
}

/* Scroll indicator */
.dw-watt-hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--dw-text-muted);
  font-size: 12px;
  letter-spacing: 0.1em;
  animation: dw-bounce 2s ease-in-out infinite;
  cursor: pointer;
  transition: color 0.2s;
}

.dw-watt-hero__scroll:hover { color: var(--dw-purple); }

.dw-watt-hero__scroll-arrow {
  font-size: 18px;
  transition: color 0.2s;
}

.dw-watt-hero__scroll:hover .dw-watt-hero__scroll-arrow {
  color: var(--dw-purple);
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.4));
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* WATT APP PAGE (full-page pet experience)                                      */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.dw-watt-app {
  min-height: 100vh;
  background: var(--dw-bg-primary);
  display: flex;
  flex-direction: column;
}

.dw-watt-app__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--dw-border);
  background: var(--dw-bg-secondary);
}

.dw-watt-app__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--dw-text-primary);
}

.dw-watt-app__brand:hover { text-decoration: none; }

.dw-watt-app__logo {
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.3));
}

.dw-watt-app__name {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--dw-purple), var(--dw-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dw-watt-app__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dw-watt-app__nav a {
  font-size: 13px;
  color: var(--dw-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.dw-watt-app__nav a:hover { color: var(--dw-text-primary); text-decoration: none; }

.dw-watt-app__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* UNDER THE HOOD — Brain Systems Showcase                                       */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.dw-brain-showcase {
  padding: 120px 48px 100px;
  background: var(--dw-bg-primary);
  position: relative;
  overflow: hidden;
}

/* Animated circuit-board dot pattern */
.dw-brain-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(167, 139, 250, 0.06) 1px, transparent 1px),
    radial-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 32px 32px, 48px 48px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
  animation: dw-grid-drift 20s linear infinite;
}

@keyframes dw-grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(32px, 32px); }
}

/* Ambient glow */
.dw-brain-showcase::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 800px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(167, 139, 250, 0.06) 0%,
    rgba(34, 211, 238, 0.03) 40%,
    transparent 70%);
  pointer-events: none;
  animation: dw-ambient-pulse 8s ease-in-out infinite;
}

@keyframes dw-ambient-pulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.dw-brain-showcase__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.dw-brain-showcase__heading {
  text-align: center;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--dw-purple) 0%, var(--dw-cyan) 50%, var(--dw-green) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: dw-gradient-shift 6s ease-in-out infinite;
}

@keyframes dw-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.dw-brain-showcase__subheading {
  text-align: center;
  color: var(--dw-text-secondary);
  font-size: 17px;
  line-height: 1.7;
  margin: 0 auto 56px;
  max-width: 720px;
}

/* ─── Animated Neural Network Viz ───────────────────────────────────────────── */

.dw-brain-viz {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 64px;
  padding: 40px 20px;
  max-width: 700px;
  background: rgba(17, 20, 28, 0.6);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius);
  position: relative;
  overflow: hidden;
}

/* Subtle scan-line animation */
.dw-brain-viz::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 200%;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 4px,
    rgba(167, 139, 250, 0.015) 4px,
    rgba(167, 139, 250, 0.015) 5px
  );
  pointer-events: none;
  animation: dw-scanline 4s linear infinite;
}

@keyframes dw-scanline {
  0% { transform: translateY(0); }
  100% { transform: translateY(50%); }
}

.dw-brain-viz__layer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  position: relative;
}

.dw-brain-viz__node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 0 12px var(--color), 0 0 24px color-mix(in srgb, var(--color), transparent 60%);
  animation: dw-node-pulse 2.5s ease-in-out infinite;
  animation-delay: var(--delay);
  transition: transform 0.2s;
}

.dw-brain-viz__node:hover {
  transform: scale(1.6);
}

@keyframes dw-node-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.85); box-shadow: 0 0 8px var(--color); }
  50% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 16px var(--color), 0 0 32px color-mix(in srgb, var(--color), transparent 50%); }
}

.dw-brain-viz__label {
  font-size: 10px;
  font-weight: 600;
  color: var(--dw-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 10px;
  white-space: nowrap;
}

.dw-brain-viz__connections {
  flex: 1;
  min-width: 60px;
  max-width: 120px;
  height: 160px;
  position: relative;
  overflow: hidden;
}

.dw-brain-viz__signal {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dw-purple);
  box-shadow: 0 0 10px var(--dw-purple);
  animation: dw-signal-travel 2s ease-in-out infinite;
  animation-delay: var(--delay);
}

.dw-brain-viz__signal:nth-child(1) { top: 20%; }
.dw-brain-viz__signal:nth-child(2) { top: 50%; }
.dw-brain-viz__signal:nth-child(3) { top: 80%; }

@keyframes dw-signal-travel {
  0% { left: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ─── Brain System Cards Grid ───────────────────────────────────────────────── */

.dw-brain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.dw-brain-card {
  background: var(--dw-bg-card);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-sm);
  padding: 28px 24px 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

/* Top accent line */
.dw-brain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.4;
  transition: opacity 0.3s;
}

.dw-brain-card:hover::before { opacity: 1; }

.dw-brain-card:hover {
  border-color: color-mix(in srgb, var(--accent), transparent 70%);
  transform: translateY(-4px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 20px color-mix(in srgb, var(--accent), transparent 85%);
}

.dw-brain-card__icon {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
  transition: transform 0.3s;
}

.dw-brain-card:hover .dw-brain-card__icon {
  transform: scale(1.15) rotate(-3deg);
}

.dw-brain-card__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--dw-text-primary);
  transition: color 0.2s;
}

.dw-brain-card:hover .dw-brain-card__title {
  color: var(--accent);
}

.dw-brain-card__desc {
  font-size: 13px;
  color: var(--dw-text-muted);
  line-height: 1.65;
  margin: 0 0 14px;
}

.dw-brain-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dw-brain-card__tags span {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent), transparent 75%);
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s;
}

.dw-brain-card:hover .dw-brain-card__tags span {
  background: color-mix(in srgb, var(--accent), transparent 82%);
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent), transparent 80%);
}

/* ─── Scrolling System Ticker ───────────────────────────────────────────────── */

.dw-brain-ticker {
  overflow: hidden;
  margin-bottom: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
}

.dw-brain-ticker__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: dw-ticker-scroll 30s linear infinite;
}

.dw-brain-ticker__track:hover {
  animation-play-state: paused;
}

@keyframes dw-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.dw-brain-ticker__item {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), transparent 90%);
  border: 1px solid color-mix(in srgb, var(--accent), transparent 78%);
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dw-brain-ticker__item:hover {
  transform: scale(1.08);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent), transparent 70%);
}

/* ─── Education CTA Box ─────────────────────────────────────────────────────── */

.dw-brain-showcase__cta {
  position: relative;
  text-align: center;
  padding: 48px 40px;
  border-radius: var(--dw-radius);
  border: 1px solid rgba(167, 139, 250, 0.15);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.04), rgba(34, 211, 238, 0.04));
  overflow: hidden;
}

.dw-brain-showcase__cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
  pointer-events: none;
  animation: dw-cta-glow-pulse 4s ease-in-out infinite;
}

@keyframes dw-cta-glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.dw-brain-showcase__cta-title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 700;
  margin: 0 0 12px;
  position: relative;
  background: linear-gradient(180deg, #fff 0%, var(--dw-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dw-brain-showcase__cta-desc {
  font-size: 16px;
  color: var(--dw-text-secondary);
  line-height: 1.7;
  margin: 0 auto 32px;
  max-width: 600px;
  position: relative;
}

.dw-brain-showcase__cta-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  position: relative;
}

.dw-brain-showcase__cta-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dw-brain-showcase__cta-stat-value {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--dw-font-mono);
  background: linear-gradient(135deg, var(--dw-purple), var(--dw-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: dw-stat-glow 3s ease-in-out infinite;
}

@keyframes dw-stat-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.3)); }
}

.dw-brain-showcase__cta-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dw-text-muted);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* THINK LOOP PIPELINE                                                           */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.dw-think-loop {
  padding: 120px 48px;
  background: var(--dw-bg-secondary);
  position: relative;
}

.dw-think-loop__inner { max-width: 700px; margin: 0 auto; }

.dw-think-loop__heading {
  text-align: center;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #fff 0%, var(--dw-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dw-think-loop__subheading {
  text-align: center;
  color: var(--dw-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 auto 56px;
  max-width: 600px;
}

.dw-think-pipeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.dw-think-pipeline__step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 28px;
  background: var(--dw-bg-card);
  border: 1px solid var(--dw-border);
  border-left: 3px solid var(--step-color);
  border-radius: var(--dw-radius-sm);
  width: 100%;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.dw-think-pipeline__step:hover {
  transform: translateX(6px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 20px color-mix(in srgb, var(--step-color), transparent 85%);
  border-color: color-mix(in srgb, var(--step-color), transparent 50%);
}

.dw-think-pipeline__pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--step-color);
  animation: dw-pipe-pulse 3s ease-in-out infinite;
}

@keyframes dw-pipe-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--step-color); opacity: 0.6; }
  50% { box-shadow: 0 0 20px var(--step-color); opacity: 1; }
}

.dw-think-pipeline__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--step-color), transparent 80%);
  border: 2px solid var(--step-color);
  color: var(--step-color);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dw-think-pipeline__content h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--dw-text-primary);
}

.dw-think-pipeline__content p {
  font-size: 13px;
  color: var(--dw-text-muted);
  line-height: 1.65;
  margin: 0;
}

.dw-think-pipeline__content strong {
  color: var(--dw-text-secondary);
}

.dw-think-pipeline__arrow {
  display: flex;
  justify-content: center;
  padding: 6px 0;
  opacity: 0.3;
  animation: dw-arrow-pulse 2s ease-in-out infinite;
}

@keyframes dw-arrow-pulse {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(3px); }
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* MEMORY DEEP DIVE — Orbital Visualization                                      */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.dw-deep-memory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.dw-deep-memory-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--dw-bg-card);
  border: 1px solid var(--dw-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--dw-radius-xs);
  font-size: 13px;
  color: var(--dw-text-secondary);
  line-height: 1.6;
  transition: transform 0.2s, border-color 0.2s;
}

.dw-deep-memory-item:hover {
  transform: translateX(4px);
  border-color: var(--accent);
}

.dw-deep-memory-item strong { color: var(--dw-text-primary); }

.dw-deep-memory-item__icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Memory constellation visualization */
.dw-memory-viz2 {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 400px;
  margin: 0 auto;
}

/* Central hub */
.dw-memory-viz2__hub {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, rgba(34, 211, 238, 0.06) 70%, transparent 100%);
  border: 1.5px solid rgba(167, 139, 250, 0.3);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
}

.dw-memory-viz2__hub-glow {
  position: absolute; inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.12), transparent 70%);
  animation: dw-mem-hub-pulse 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes dw-mem-hub-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.dw-memory-viz2__hub-label {
  font-size: 12px; font-weight: 700; text-align: center;
  color: var(--dw-text-secondary); line-height: 1.3;
  font-family: var(--dw-font-sans);
}

/* Orbiting nodes */
.dw-memory-viz2__node {
  position: absolute;
  top: calc(50% + var(--dist) * sin(var(--angle)) * -1);
  left: calc(50% + var(--dist) * cos(var(--angle)));
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  z-index: 2;
  animation: dw-mem-node-in 0.6s ease-out var(--delay) both;
}

@keyframes dw-mem-node-in {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.dw-memory-viz2__node-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--dw-bg-card);
  border: 1.5px solid var(--color);
  font-size: 18px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--color) 25%, transparent);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dw-memory-viz2__node:hover .dw-memory-viz2__node-icon {
  transform: scale(1.15);
  box-shadow: 0 0 20px color-mix(in srgb, var(--color) 40%, transparent);
}

.dw-memory-viz2__node-label {
  font-size: 10px; font-weight: 600;
  color: var(--dw-text-muted);
  white-space: nowrap;
  font-family: var(--dw-font-sans);
  letter-spacing: 0.02em;
}

/* SVG connections */
.dw-memory-viz2__svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
}

.dw-memory-viz2__line {
  stroke: var(--color, rgba(167, 139, 250, 0.15));
  stroke-width: 1;
  stroke-opacity: 0.15;
  stroke-dasharray: 4 6;
  animation: dw-mem-line-flow 3s linear var(--delay, 0s) infinite;
}

@keyframes dw-mem-line-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -20; }
}

.dw-memory-viz2__orbit {
  fill: none;
  stroke: rgba(167, 139, 250, 0.08);
  stroke-width: 1;
  stroke-dasharray: 3 8;
  animation: dw-mem-orbit-spin 90s linear infinite;
}

@keyframes dw-mem-orbit-spin {
  0% { transform: rotate(0deg); transform-origin: center; }
  100% { transform: rotate(360deg); transform-origin: center; }
}

/* Traveling data pulses */
.dw-memory-viz2__pulse {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 0 8px var(--color), 0 0 16px color-mix(in srgb, var(--color) 40%, transparent);
  z-index: 2;
  animation: dw-mem-pulse-travel var(--dur) ease-in-out var(--delay) infinite;
  /* Start at center */
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes dw-mem-pulse-travel {
  0%, 100% { top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  10% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% {
    top: calc(50% + var(--dist) * sin(var(--angle)) * -1);
    left: calc(50% + var(--dist) * cos(var(--angle)));
    opacity: 1; transform: translate(-50%, -50%) scale(1.2);
  }
  60% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.8); }
  70% { top: 50%; left: 50%; opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* CHEMISTRY DEEP DIVE                                                           */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.dw-chem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.dw-chem-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--dw-bg-card);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-xs);
  transition: transform 0.2s, border-color 0.2s;
}

.dw-chem-item:hover {
  transform: translateY(-2px);
  border-color: var(--chem-color);
}

.dw-chem-item__molecule {
  flex-shrink: 0;
  opacity: 0.8;
  animation: dw-molecule-spin 12s linear infinite;
}

@keyframes dw-molecule-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.dw-chem-item strong {
  display: block;
  font-size: 13px;
  color: var(--chem-color);
  margin-bottom: 2px;
}

.dw-chem-item span {
  font-size: 12px;
  color: var(--dw-text-muted);
  line-height: 1.5;
}

.dw-chem-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  background: rgba(251, 191, 36, 0.05);
  border: 1px solid rgba(251, 191, 36, 0.15);
  border-radius: var(--dw-radius-xs);
  font-size: 13px;
  color: var(--dw-text-secondary);
  line-height: 1.6;
}

.dw-chem-callout svg { flex-shrink: 0; margin-top: 2px; }

/* Emotion wheel visualization */
.dw-emotion-wheel {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 360px;
  margin: 0 auto;
}

.dw-emotion-wheel__ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 2px solid var(--dw-border);
  animation: dw-emotion-ring-pulse 6s ease-in-out infinite;
}

@keyframes dw-emotion-ring-pulse {
  0%, 100% { border-color: rgba(255, 255, 255, 0.06); box-shadow: none; }
  50% { border-color: rgba(167, 139, 250, 0.15); box-shadow: 0 0 30px rgba(167, 139, 250, 0.05); }
}

.dw-emotion-wheel__emotion {
  position: absolute;
  top: calc(50% + 38% * cos(var(--angle)) - 12px);
  left: calc(50% + 38% * sin(var(--angle)) - 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dw-emotion-wheel__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 0 16px var(--color);
  animation: dw-emotion-dot-pulse 3s ease-in-out infinite;
  animation-delay: calc(var(--angle) / 360 * 3s);
}

@keyframes dw-emotion-dot-pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

.dw-emotion-wheel__name {
  font-size: 11px;
  font-weight: 600;
  color: var(--dw-text-muted);
  white-space: nowrap;
}

.dw-emotion-wheel__center {
  position: absolute;
  inset: 40%;
  border-radius: 50%;
  background: var(--dw-bg-card);
  border: 1px solid var(--dw-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--dw-font-mono);
  color: var(--dw-purple);
  text-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
}

.dw-emotion-wheel__orbit {
  position: absolute;
  inset: 25%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.04);
  animation: dw-ring-rotate 30s linear infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* DAY IN THE LIFE TIMELINE                                                      */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.dw-day-timeline {
  padding: 120px 48px;
  background: var(--dw-bg-primary);
  position: relative;
}

.dw-day-timeline__inner { max-width: 800px; margin: 0 auto; }

.dw-day-timeline__heading {
  text-align: center;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #fff 0%, var(--dw-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dw-day-timeline__subheading {
  text-align: center;
  color: var(--dw-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 auto 56px;
  max-width: 600px;
}

.dw-day-timeline__track {
  position: relative;
  padding-left: 100px;
}

.dw-day-timeline__line {
  position: absolute;
  left: 92px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    var(--dw-amber) 0%,
    var(--dw-green) 20%,
    var(--dw-cyan) 40%,
    var(--dw-purple) 60%,
    var(--dw-red) 80%,
    var(--dw-purple) 100%);
  opacity: 0.3;
}

.dw-day-event {
  position: relative;
  margin-bottom: 32px;
}

.dw-day-event__time {
  position: absolute;
  left: -100px;
  top: 18px;
  width: 80px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--dw-font-mono);
  color: var(--accent);
}

.dw-day-event__dot {
  position: absolute;
  left: -12px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  z-index: 1;
  animation: dw-day-dot-pulse 3s ease-in-out infinite;
}

@keyframes dw-day-dot-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent); }
  50% { box-shadow: 0 0 20px var(--accent), 0 0 32px color-mix(in srgb, var(--accent), transparent 50%); }
}

.dw-day-event__card {
  margin-left: 20px;
  padding: 20px 24px;
  background: var(--dw-bg-card);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.dw-day-event__card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dw-day-event__card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--dw-text-primary);
}

.dw-day-event__card p {
  font-size: 13px;
  color: var(--dw-text-muted);
  line-height: 1.65;
  margin: 0 0 12px;
}

.dw-day-event__card p strong { color: var(--dw-text-secondary); }

.dw-day-event__systems {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dw-day-event__systems span {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--accent), transparent 88%);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent), transparent 75%);
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* PAPERS GRID                                                                   */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.dw-papers {
  padding: 120px 48px;
  background: var(--dw-bg-secondary);
}

.dw-papers__inner { max-width: 1100px; margin: 0 auto; }

.dw-papers__heading {
  text-align: center;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #fff 0%, var(--dw-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dw-papers__subheading {
  text-align: center;
  color: var(--dw-text-secondary);
  font-size: 16px;
  margin: 0 auto 48px;
  max-width: 600px;
}

.dw-papers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.dw-paper-card {
  padding: 20px;
  background: var(--dw-bg-card);
  border: 1px solid var(--dw-border);
  border-radius: var(--dw-radius-xs);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.dw-paper-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dw-paper-card__year {
  font-size: 11px;
  font-weight: 700;
  font-family: var(--dw-font-mono);
  color: var(--dw-cyan);
  margin-bottom: 8px;
}

.dw-paper-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--dw-text-primary);
  margin-bottom: 4px;
  line-height: 1.4;
}

.dw-paper-card__author {
  font-size: 12px;
  color: var(--dw-text-muted);
  margin-bottom: 10px;
}

.dw-paper-card__system {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  background: rgba(167, 139, 250, 0.1);
  color: var(--dw-purple);
  border: 1px solid rgba(167, 139, 250, 0.2);
  display: inline-block;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* EDUCATION PREVIEW MOCKUP                                                      */
/* ═══════════════════════════════════════════════════════════════════════════════ */

.dw-edu-preview {
  padding: 120px 48px;
  background: var(--dw-bg-primary);
  position: relative;
}

.dw-edu-preview__inner { max-width: 1000px; margin: 0 auto; }

.dw-edu-preview__heading {
  text-align: center;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--dw-purple), var(--dw-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dw-edu-preview__subheading {
  text-align: center;
  color: var(--dw-text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 auto 48px;
  max-width: 640px;
}

.dw-edu-mockup {
  border-radius: var(--dw-radius);
  border: 1px solid var(--dw-border);
  overflow: hidden;
  box-shadow: var(--dw-shadow-elevated), 0 0 60px rgba(167, 139, 250, 0.04);
}

.dw-edu-mockup__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(17, 20, 28, 0.95);
  border-bottom: 1px solid var(--dw-border);
}

.dw-edu-mockup__dots {
  display: flex;
  gap: 6px;
}

.dw-edu-mockup__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.dw-edu-mockup__dots span:first-child { background: #ef4444; }
.dw-edu-mockup__dots span:nth-child(2) { background: #fbbf24; }
.dw-edu-mockup__dots span:nth-child(3) { background: #22c55e; }

.dw-edu-mockup__title {
  font-size: 12px;
  color: var(--dw-text-muted);
  font-family: var(--dw-font-mono);
}

.dw-edu-mockup__body {
  display: flex;
  min-height: 360px;
  background: #0c0e14;
}

.dw-edu-mockup__sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 12px 8px;
  border-right: 1px solid var(--dw-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.dw-edu-mockup__cat {
  font-size: 11px;
  color: var(--dw-text-muted);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dw-edu-mockup__cat--active {
  background: rgba(167, 139, 250, 0.1);
  color: var(--dw-purple);
}

.dw-edu-mockup__topic {
  font-size: 11px;
  color: var(--dw-text-muted);
  padding: 4px 10px 4px 24px;
  border-radius: 4px;
  cursor: default;
}

.dw-edu-mockup__topic--active {
  background: rgba(167, 139, 250, 0.08);
  color: var(--dw-text-primary);
}

.dw-edu-mockup__sep {
  height: 1px;
  background: var(--dw-border);
  margin: 6px 0;
}

.dw-edu-mockup__content {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.dw-edu-mockup__card {
  border-radius: var(--dw-radius-xs);
  overflow: hidden;
}

.dw-edu-mockup__card-header {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
}

.dw-edu-mockup__card-body {
  padding: 12px 14px;
  font-size: 12px;
  color: var(--dw-text-muted);
  line-height: 1.6;
}

.dw-edu-mockup__card--layman .dw-edu-mockup__card-header {
  background: rgba(52, 211, 153, 0.08);
  color: var(--dw-green);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-bottom: none;
}

.dw-edu-mockup__card--layman .dw-edu-mockup__card-body {
  background: rgba(52, 211, 153, 0.03);
  border: 1px solid rgba(52, 211, 153, 0.1);
  border-top: none;
}

.dw-edu-mockup__card--science .dw-edu-mockup__card-header {
  background: rgba(167, 139, 250, 0.08);
  color: var(--dw-purple);
  border: 1px solid rgba(167, 139, 250, 0.15);
  border-bottom: none;
}

.dw-edu-mockup__card--science .dw-edu-mockup__card-body {
  background: rgba(167, 139, 250, 0.03);
  border: 1px solid rgba(167, 139, 250, 0.1);
  border-top: none;
}

.dw-edu-mockup__card--live .dw-edu-mockup__card-header {
  background: rgba(34, 211, 238, 0.08);
  color: var(--dw-cyan);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-bottom: none;
}

.dw-edu-mockup__card--live .dw-edu-mockup__card-body {
  background: rgba(34, 211, 238, 0.03);
  border: 1px solid rgba(34, 211, 238, 0.1);
  border-top: none;
}

.dw-edu-mockup__code {
  font-family: var(--dw-font-mono);
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  color: var(--dw-purple);
}

.dw-edu-mockup__bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dw-edu-mockup__bar {
  height: 24px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--bar-color), transparent 85%);
  width: var(--width);
  display: flex;
  align-items: center;
  padding: 0 10px;
  transition: width 1s ease-out;
  animation: dw-bar-grow 2s ease-out forwards;
  position: relative;
  overflow: hidden;
}

.dw-edu-mockup__bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bar-color), transparent 70%), transparent);
  animation: dw-bar-shimmer 3s ease-in-out infinite;
}

@keyframes dw-bar-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.dw-edu-mockup__bar span {
  font-size: 10px;
  font-weight: 600;
  color: var(--bar-color);
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════════════════════ */
/* RESPONSIVE                                                                    */
/* ═══════════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .dw-hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 32px;
    gap: 40px;
  }

  .dw-hero__content { max-width: 100%; }

  .dw-hero__stats { justify-content: center; }

  .dw-showcase__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .dw-showcase--reversed .dw-showcase__inner { direction: ltr; }

  .dw-showcase__visual { order: -1; }

  .dw-capabilities__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dw-stats-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .dw-stats-bar__item:nth-child(2) { border-right: none; }

  .dw-tech__grid { grid-template-columns: repeat(3, 1fr); }

  .dw-preview__fallback-grid { grid-template-columns: repeat(2, 1fr); }
  .dw-preview__widget--wide { grid-column: span 2; }

  .dw-brain-grid { grid-template-columns: repeat(2, 1fr); }
  .dw-brain-showcase { padding: 80px 32px; }
  .dw-brain-showcase__cta-stats { gap: 32px; }
  .dw-brain-viz { max-width: 100%; }
  .dw-think-loop { padding: 80px 32px; }
  .dw-day-timeline { padding: 80px 32px; }
  .dw-papers { padding: 80px 32px; }
  .dw-papers__grid { grid-template-columns: repeat(2, 1fr); }
  .dw-edu-preview { padding: 80px 32px; }
  .dw-chem-grid { grid-template-columns: 1fr; }

  .dw-watt-hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 32px;
    gap: 40px;
  }
  .dw-watt-hero__content { max-width: 100%; }
  .dw-watt-hero__stats { justify-content: center; }
}

@media (max-width: 640px) {
  .dw-hero {
    padding: 60px 20px;
    min-height: auto;
    padding-bottom: 80px;
  }

  .dw-hero__stats {
    flex-direction: column;
    gap: 12px;
  }

  .dw-hero__stat-divider { display: none; }

  .dw-login-card { padding: 28px 20px; }

  .dw-stats-bar__inner { grid-template-columns: 1fr; }
  .dw-stats-bar__item { border-right: none; border-bottom: 1px solid var(--dw-border); }
  .dw-stats-bar__item:last-child { border-bottom: none; }

  .dw-showcase { padding: 60px 20px; }
  .dw-capabilities { padding: 60px 20px; }
  .dw-how { padding: 60px 20px; }
  .dw-cta { padding: 60px 20px; }

  .dw-capabilities__grid { grid-template-columns: 1fr; }

  .dw-how__steps { flex-direction: column; align-items: center; gap: 24px; }
  .dw-how__step-line { width: 2px; height: 32px; background: linear-gradient(180deg, var(--dw-cyan), transparent); margin: 0; }

  .dw-landing-footer__inner { flex-direction: column; gap: 12px; text-align: center; }

  .dw-showcase__mini-stats { flex-direction: column; }
  .dw-showcase__device-grid { grid-template-columns: 1fr; }
  .dw-tech__grid { grid-template-columns: repeat(2, 1fr); }
  .dw-preview { padding: 60px 20px; }
  .dw-tech { padding: 60px 20px; }
  .dw-preview__fallback-grid { grid-template-columns: 1fr; }
  .dw-preview__widget--wide { grid-column: span 1; }

  .dw-brain-showcase { padding: 60px 20px; }
  .dw-brain-grid { grid-template-columns: 1fr; }
  .dw-brain-showcase__cta-stats { flex-direction: column; gap: 20px; }
  .dw-brain-showcase__cta-stat-value { font-size: 28px; }
  .dw-brain-showcase__cta { padding: 32px 20px; }
  .dw-brain-viz { padding: 24px 12px; flex-wrap: wrap; gap: 12px; }
  .dw-brain-viz__connections { min-width: 40px; height: 80px; }
  .dw-brain-showcase::before { display: none; }
  .dw-brain-showcase::after { display: none; }
  .dw-think-loop { padding: 60px 20px; }
  .dw-day-timeline { padding: 60px 20px; }
  .dw-day-timeline__track { padding-left: 60px; }
  .dw-day-timeline__line { left: 52px; }
  .dw-day-event__time { left: -60px; width: 48px; font-size: 11px; }
  .dw-papers { padding: 60px 20px; }
  .dw-papers__grid { grid-template-columns: 1fr; }
  .dw-edu-preview { padding: 60px 20px; }
  .dw-edu-mockup__sidebar { display: none; }
  .dw-chem-grid { grid-template-columns: 1fr; }

  .dw-watt-hero {
    padding: 60px 20px;
    min-height: auto;
    padding-bottom: 80px;
  }
  .dw-watt-hero__stats { flex-direction: column; gap: 12px; }
  .dw-watt-hero__stat-divider { display: none; }
  .dw-watt-register-card { padding: 28px 20px; }

  /* Reduce animations on mobile for performance */
  .dw-hero::after { display: none; }
  .dw-watt-hero::after { display: none; }
  .dw-hero-particles { display: none; }
  .dw-showcase::before { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════════════════ */
/* PREFERS REDUCED MOTION                                                        */
/* ═══════════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
