* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #212121;
  color: #b4d4f5;
  font-family: 'Courier New', Courier, monospace;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* STATIC TOP ZONE */
.static-zone {
  height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  gap: 0.8rem;
}

/* LOGO CONTAINER */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.cs-logo {
  width: 130px;
  height: 130px;
  filter: drop-shadow(0 0 6px #5588bb);
  animation: logo-pulse 4s ease-in-out 2.5s infinite;
}

/* STATIC flask parts */
.outer-ring,
.flask-part {
  fill: none;
  stroke: #5588bb;
  stroke-width: 2;
  stroke-linecap: round;
}

/* .outer-ring {
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  animation: draw-circle 2s ease forwards,
             logo-pulse 4s ease-in-out 2.5s infinite;
} */

.flask-part {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: draw-line 1s ease forwards 1.5s;
}

/* ROTATING crystal core — yin-yang inside flask belly */
.crystal-core {
  transform-origin: 60px 82px;
  opacity: 0;
  animation: fade-in 0.5s ease forwards 2.5s,
             crystal-spin 5s linear 3s infinite;
}

.yang-curve {
  fill: none;
  stroke: #00ccff;
  stroke-width: 2;
  stroke-linecap: round;
}

.yin-curve {
  fill: none;
  stroke: #ff8833;
  stroke-width: 2;
  stroke-linecap: round;
}

.yang-dot {
  fill: #00ccff;
  stroke: none;
}

.yin-dot {
  fill: #ff8833;
  stroke: none;
}

/* KEYFRAMES */
@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px #5588bb); }
  50%       { filter: drop-shadow(0 0 16px #00ccff); }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes crystal-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.5rem;
  text-shadow: 0 0 1px #e5ebf0;
}

.tagline {
  font-size: 1.0rem;
  color: #00ccff;
}

.descriptor {
  font-size: 0.8rem;
  color: #cc7722;
}

.domains {
  font-size: 0.8rem;
  color: #b4d4f5;
  letter-spacing: 0.1rem;
}

/* BOUNDARY */
/* .boundary {
  height: 2px;
  overflow: hidden;
}

.boundary-line {
  height: 50%;
  background: linear-gradient(90deg, transparent, #2c8222, #00ccff, #b4d4f5, transparent);
  animation: scan 3s linear infinite;
} */

@keyframes scan {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* LIVE BOTTOM ZONE */
.live-zone {
  height: 58vh;
  padding: 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow: hidden;
}

.terminal-header {
  color: #00ccff;
  font-size: 0.85rem;
  letter-spacing: 0.2rem;
}

#terminal-output {
  font-size: 0.82rem;
  line-height: 1.6;
  color: #b4d4f5;
  flex: 1;
}

/* symbol-animations.css — append to end of style.css
   (remove any previous domain-morph additions first) */

/* ── CSS COLOR TOKENS ──────────────────────────────────────────────────── */
:root {
  --domain-a: #00ccff;
  --domain-b: #ff8833;
}

/* ── DOMAIN CARD HOVER / ACTIVE ────────────────────────────────────────── */
[data-domain-card] {
  cursor: pointer;
  user-select: none;
  opacity: 0.55;
  transition: opacity 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}
[data-domain-card]:hover {
  opacity: 1;
  color: var(--domain-a);
  text-shadow: 0 0 8px var(--domain-a);
}
[data-domain-card].active {
  opacity: 1;
  color: var(--domain-a);
  text-shadow: 0 0 12px var(--domain-a);
  border-bottom: 1px solid var(--domain-a);
}

/* ── SYMBOL BASE ───────────────────────────────────────────────────────── */
.symbol {
  display: none;
  opacity: 0;
}
.symbol.active {
  display: block;
  opacity: 1;
}

/* ── YIN-YANG: keep existing stroke colors, driven by CSS vars ─────────── */
.yang-curve { stroke: var(--domain-a); transition: stroke 0.6s ease; }
.yin-curve  { stroke: var(--domain-b); transition: stroke 0.6s ease; }
.yang-dot   { fill:   var(--domain-a); transition: fill   0.6s ease; }
.yin-dot    { fill:   var(--domain-b); transition: fill   0.6s ease; }

/* ── DNA HELIX ─────────────────────────────────────────────────────────── */
.dna-strand-a {
  fill: none;
  stroke: #33ccff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 10 4;
  animation: dna-flow 2s linear infinite;
}
.dna-strand-b {
  fill: none;
  stroke: #f166a0;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 10 4;
  animation: dna-flow 2s linear infinite reverse;
}
.dna-rung {
  stroke: rgba(255,255,255,0.35);
  stroke-width: 1.2;
  animation: rung-pulse 1.8s ease-in-out infinite alternate;
}

@keyframes dna-flow {
  from { stroke-dashoffset: 0;   }
  to   { stroke-dashoffset: -28; }
}
@keyframes rung-pulse {
  from { opacity: 0.15; }
  to   { opacity: 0.7;  }
}

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* ── ATOM / FUSION ─────────────────────────────────────────────────────── */
/* 3. NUCLEUS pulse — transform-box so it scales from center */
.nucleus {
  fill: #ff6600;
  filter: drop-shadow(0 0 5px #ff6600);
  animation: nucleus-glow 1.6s ease-in-out infinite alternate;
  /* NO transform-box, NO scale — stays perfectly fixed */
}
@keyframes nucleus-pulse {
  from { transform: scale(0.8); opacity: 0.8; }
  to   { transform: scale(1.2); opacity: 1.0; }
}
.orbit {
  fill: none;
  stroke: rgba(255,204,0,0.35);
  stroke-width: 1;
} 

/* electrons follow offset-path along their orbit ellipse */
/* 2. ELECTRONS — SMIL handles animation now, CSS just sets appearance */
.electron {
  fill: #ffcc00;
  filter: drop-shadow(0 0 3px #ffcc00);
}


@keyframes nucleus-glow {
  from { filter: drop-shadow(0 0 3px #ff6600); opacity: 0.85; }
  to   { filter: drop-shadow(0 0 8px #ff6600); opacity: 1.0;  }
}

/* ── PATENT GEAR ───────────────────────────────────────────────────────── */

.gear-outer {
  fill: none;
  stroke: #00ffee;
  stroke-width: 1.5;
  filter: drop-shadow(0 0 3px rgba(0,204,255,0.4));
  transform-box: fill-box;
  transform-origin: center;
  animation: gear-spin 10s linear infinite;
}
.gear-inner {
  fill: none;
  stroke: #00ccff;
  stroke-width: 1.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: gear-spin 10s linear infinite reverse;
}
.gear-spoke {
  stroke: rgba(0,204,255,0.25);
  stroke-width: 1;
}
@keyframes gear-spin {
  from { transform: rotate(0deg);   }
  to   { transform: rotate(360deg); }
}


/* ── TERMINAL LINES ────────────────────────────────────────────────────── */
.terminal-line {
  font-family: monospace;
  font-size: 0.85rem;
  color: #e0e0e0;
  margin: 4px 0;
  opacity: 0;
}
