/* ============================================================
   DNA-Report | MiADNdice — Design System
   Dark Mode · Glassmorphism · Premium UI
   Version 1.0.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================ */
:root {
  /* === Color Palette === */
  --bg-primary:      #050a14;
  --bg-secondary:    #080f1e;
  --bg-card:         rgba(255, 255, 255, 0.04);
  --bg-card-hover:   rgba(255, 255, 255, 0.07);
  --bg-glass:        rgba(255, 255, 255, 0.05);
  --bg-glass-strong: rgba(255, 255, 255, 0.09);

  /* === Brand Gradient === */
  --grad-primary:    linear-gradient(135deg, #00d4ff 0%, #7b2fff 50%, #ff6b6b 100%);
  --grad-accent:     linear-gradient(135deg, #00d4ff 0%, #7b2fff 100%);
  --grad-gold:       linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
  --grad-health:     linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  --grad-danger:     linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  --grad-warn:       linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
  --grad-dark:       linear-gradient(180deg, #050a14 0%, #080f1e 100%);

  /* === Accent Colors === */
  --accent-cyan:     #00d4ff;
  --accent-purple:   #7b2fff;
  --accent-pink:     #ff6b6b;
  --accent-gold:     #ffd200;
  --accent-green:    #38ef7d;
  --accent-red:      #ff416c;

  /* === Semantic Colors === */
  --risk-high:       #ff416c;
  --risk-moderate:   #ffd200;
  --risk-low:        #38ef7d;
  --risk-info:       #00d4ff;

  /* === Text Colors === */
  --text-primary:    #f0f4ff;
  --text-secondary:  #8892a4;
  --text-muted:      #4a5568;
  --text-accent:     #00d4ff;

  /* === Border & Glow === */
  --border-subtle:   rgba(255, 255, 255, 0.07);
  --border-accent:   rgba(0, 212, 255, 0.3);
  --glow-cyan:       0 0 20px rgba(0, 212, 255, 0.3);
  --glow-purple:     0 0 20px rgba(123, 47, 255, 0.3);
  --glow-pink:       0 0 20px rgba(255, 107, 107, 0.3);

  /* === Spacing Scale === */
  --space-xs:   4px;
  --space-sm:   8px;
  --space-md:   16px;
  --space-lg:   24px;
  --space-xl:   40px;
  --space-2xl:  64px;
  --space-3xl:  96px;

  /* === Border Radius === */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* === Typography === */
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'JetBrains Mono', 'Fira Code', monospace;

  /* === Transitions === */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* === Shadows === */
  --shadow-card:  0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-float: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow:  0 0 40px rgba(0, 212, 255, 0.15);
}

/* ============================================================
   2. RESET & BASE STYLES
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

p { color: var(--text-secondary); line-height: 1.7; }

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

.mono {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1400px; }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-col    { display: flex; flex-direction: column; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }
.gap-lg      { gap: var(--space-lg); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }

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

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ============================================================
   5. CARD COMPONENT
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform var(--transition-normal), 
              background var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), var(--glow-cyan);
}

.card--glow {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-card), var(--glow-cyan);
}

.card--danger {
  border-color: rgba(255, 65, 108, 0.3);
  box-shadow: var(--shadow-card), var(--glow-pink);
}

.card--gold {
  border-color: rgba(255, 210, 0, 0.3);
  box-shadow: var(--shadow-card), 0 0 20px rgba(255, 210, 0, 0.15);
}

.card__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--bg-glass-strong);
  flex-shrink: 0;
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card__subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* ============================================================
   6. BADGE COMPONENT
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge--primary  { background: rgba(0, 212, 255, 0.15); color: var(--accent-cyan); border: 1px solid rgba(0, 212, 255, 0.3); }
.badge--success  { background: rgba(56, 239, 125, 0.12); color: var(--accent-green); border: 1px solid rgba(56, 239, 125, 0.3); }
.badge--danger   { background: rgba(255, 65, 108, 0.12); color: var(--risk-high); border: 1px solid rgba(255, 65, 108, 0.3); }
.badge--warning  { background: rgba(255, 210, 0, 0.12); color: var(--accent-gold); border: 1px solid rgba(255, 210, 0, 0.3); }
.badge--purple   { background: rgba(123, 47, 255, 0.15); color: #a78bfa; border: 1px solid rgba(123, 47, 255, 0.3); }
.badge--neutral  { background: rgba(255,255,255,0.06); color: var(--text-secondary); border: 1px solid var(--border-subtle); }

/* ============================================================
   7. BUTTON COMPONENTS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity var(--transition-fast);
}
.btn:hover::before { opacity: 1; }

.btn--primary {
  background: var(--grad-accent);
  color: white;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}
.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--bg-glass-strong);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}
.btn--secondary:hover {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.btn--danger {
  background: var(--grad-danger);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 65, 108, 0.3);
}

.btn--lg { padding: 16px 40px; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.btn--full { width: 100%; }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   8. PROGRESS BAR COMPONENT
   ============================================================ */
.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--grad-accent);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar__fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  animation: shimmer 1.5s infinite;
}

.progress-bar--thick { height: 10px; }
.progress-bar--danger .progress-bar__fill    { background: var(--grad-danger); }
.progress-bar--warning .progress-bar__fill   { background: var(--grad-warn); }
.progress-bar--success .progress-bar__fill   { background: var(--grad-health); }

/* ============================================================
   9. SEMAFORO (RISK INDICATOR) COMPONENT
   ============================================================ */
.semaforo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.semaforo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.semaforo--high .semaforo__dot     { background: var(--risk-high);     box-shadow: 0 0 8px var(--risk-high); }
.semaforo--moderate .semaforo__dot { background: var(--risk-moderate);  box-shadow: 0 0 8px var(--risk-moderate); }
.semaforo--low .semaforo__dot      { background: var(--risk-low);       box-shadow: 0 0 8px var(--risk-low); }
.semaforo--info .semaforo__dot     { background: var(--risk-info);      box-shadow: 0 0 8px var(--risk-info); }

.semaforo__label {
  font-size: 0.85rem;
  font-weight: 500;
}

.semaforo--high .semaforo__label     { color: var(--risk-high); }
.semaforo--moderate .semaforo__label { color: var(--risk-moderate); }
.semaforo--low .semaforo__label      { color: var(--risk-low); }
.semaforo--info .semaforo__label     { color: var(--risk-info); }

/* ============================================================
   10. TIMELINE ITEM COMPONENT
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 48px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-xl);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.timeline-item__dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

.timeline-item__year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item__era {
  display: inline-flex;
  margin-left: var(--space-sm);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.timeline-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-item__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================================
   11. STAT COUNTER COMPONENT
   ============================================================ */
.stat-counter {
  text-align: center;
}

.stat-counter__value {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  font-family: var(--font-mono);
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-counter__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

/* ============================================================
   12. NAV COMPONENT
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--grad-accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav__logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav__link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.nav__link:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--grad-accent);
  color: white;
}

/* ============================================================
   13. SECTION DIVIDER
   ============================================================ */
.section {
  padding: var(--space-3xl) 0;
}

.section--sm {
  padding: var(--space-xl) 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: var(--space-sm);
}

.section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent-cyan);
}

.section-title {
  margin-bottom: var(--space-lg);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  margin: 0;
}

/* ============================================================
   14. DRAG & DROP ZONE
   ============================================================ */
.drop-zone {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}

.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.04) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.drop-zone:hover,
.drop-zone.dragging {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
}

.drop-zone:hover::before,
.drop-zone.dragging::before {
  opacity: 1;
}

.drop-zone.dragging {
  border-style: solid;
  box-shadow: var(--shadow-glow);
  transform: scale(1.01);
}

.drop-zone__icon {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 0 10px rgba(0,212,255,0.4));
}

.drop-zone__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.drop-zone__subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.drop-zone__or {
  margin: var(--space-lg) auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: 0.85rem;
  max-width: 200px;
}

.drop-zone__or::before,
.drop-zone__or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

/* Format Pills */
.format-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.format-pill {
  padding: 4px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.format-pill.detected {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ============================================================
   15. FILE PREVIEW CARD
   ============================================================ */
.file-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.file-card__icon {
  font-size: 2rem;
}

.file-card__info { flex: 1; min-width: 0; }

.file-card__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.file-card__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1.1rem;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.file-card__remove:hover {
  color: var(--risk-high);
}

/* ============================================================
   16. STEP INDICATOR (ANALYSIS PROGRESS)
   ============================================================ */
.step-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.step-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.step-item.active  { background: rgba(0, 212, 255, 0.06); }
.step-item.done    { background: rgba(56, 239, 125, 0.05); }
.step-item.pending { opacity: 0.4; }

.step-item__indicator {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-item.pending .step-item__indicator {
  background: var(--bg-glass);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.step-item.active .step-item__indicator {
  background: rgba(0, 212, 255, 0.2);
  color: var(--accent-cyan);
  border: 1px solid var(--accent-cyan);
  animation: pulse 1.5s infinite;
}

.step-item.done .step-item__indicator {
  background: rgba(56, 239, 125, 0.2);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.step-item__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.step-item__sublabel {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   17. PRIVACY BADGE (Hero Banner)
   ============================================================ */
.privacy-banner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: rgba(56, 239, 125, 0.08);
  border: 1px solid rgba(56, 239, 125, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-green);
}

.privacy-banner::before {
  content: '🔒';
  font-size: 1rem;
}

/* ============================================================
   18. ANIMATIONS & KEYFRAMES
   ============================================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
}

@keyframes pulseGlow {
  0%, 100% { filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4)); }
  50%       { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

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

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

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.05); }
}

/* DNA Helix Specific */
@keyframes helixRotate {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

@keyframes particleFloat {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Utility animation classes */
.animate-fadeIn    { animation: fadeIn 0.6s ease both; }
.animate-slideUp   { animation: slideUp 0.6s ease both; }
.animate-slideDown { animation: slideDown 0.4s ease both; }
.animate-scaleIn   { animation: scaleIn 0.4s ease both; }
.animate-float     { animation: floatY 3s ease-in-out infinite; }
.animate-breathe   { animation: breathe 4s ease-in-out infinite; }
.animate-pulse-glow{ animation: pulseGlow 2s ease-in-out infinite; }
.animate-spin      { animation: spin 1s linear infinite; }

/* Staggered delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* ============================================================
   19. BACKGROUND EFFECTS
   ============================================================ */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.08;
}

.bg-orb--cyan {
  width: 600px; height: 600px;
  background: var(--accent-cyan);
  top: -200px; left: -200px;
  animation: breathe 8s ease-in-out infinite;
}

.bg-orb--purple {
  width: 500px; height: 500px;
  background: var(--accent-purple);
  bottom: -150px; right: -150px;
  animation: breathe 10s ease-in-out infinite reverse;
}

.bg-orb--pink {
  width: 350px; height: 350px;
  background: var(--accent-pink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: breathe 12s ease-in-out infinite 2s;
}

/* ============================================================
   20. SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.6); }

/* ============================================================
   21. TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-glass-strong);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-float);
  animation: slideUp 0.3s ease;
}

.toast--success { border-color: rgba(56, 239, 125, 0.4); }
.toast--error   { border-color: rgba(255, 65, 108, 0.4); }
.toast--info    { border-color: rgba(0, 212, 255, 0.4); }

/* ============================================================
   22. RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }

  .nav__links { display: none; }
  .nav__inner { padding: 0 var(--space-md); }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }

  .section  { padding: var(--space-xl) 0; }
  .section--sm { padding: var(--space-lg) 0; }

  .drop-zone { padding: var(--space-xl) var(--space-md); }

  .timeline { padding-left: 36px; }
  .timeline-item__dot { left: -30px; width: 24px; height: 24px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .btn--lg { padding: 14px 28px; }
  .stat-counter__value { font-size: 1.8rem; }
}

/* ============================================================
   23. FOCUS & ACCESSIBILITY
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   24. INPUT STYLES
   ============================================================ */
.input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.input::placeholder { color: var(--text-muted); }

.input-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
