/* ============================================================
   Adaptive Learning Intervention Engine — Global Design Tokens
   近未来 × 気品 × ブランドサイト
   ============================================================ */

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

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg-primary:    #050912;
  --color-bg-secondary:  #0a1020;
  --color-bg-surface:    #0f1829;
  --color-bg-elevated:   #162035;
  --color-border:        rgba(58, 125, 255, 0.12);
  --color-border-strong: rgba(58, 125, 255, 0.28);

  --color-accent:        #3A7DFF;
  --color-accent-soft:   rgba(58, 125, 255, 0.10);
  --color-accent-mid:    rgba(58, 125, 255, 0.25);
  --color-accent-glow:   rgba(58, 125, 255, 0.45);

  --color-cyan:          #00D4FF;
  --color-cyan-soft:     rgba(0, 212, 255, 0.12);
  --color-violet:        #7C3AED;
  --color-violet-soft:   rgba(124, 58, 237, 0.12);
  --color-emerald:       #10B981;
  --color-emerald-soft:  rgba(16, 185, 129, 0.12);
  --color-amber:         #F59E0B;
  --color-amber-soft:    rgba(245, 158, 11, 0.12);
  --color-rose:          #F43F5E;
  --color-rose-soft:     rgba(244, 63, 94, 0.12);

  --color-text-primary:   #F0F4FF;
  --color-text-secondary: #7B91B6;
  --color-text-muted:     #3D5280;
  --color-text-disabled:  #253048;

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.75rem;
  --text-6xl:  5rem;

  /* Spacing (8pt grid) */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4), 0 0 0 1px var(--color-border);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.5), 0 0 0 1px var(--color-border);
  --shadow-lg:    0 8px 40px rgba(0,0,0,0.6), 0 0 0 1px var(--color-border-strong);
  --shadow-glow:  0 0 30px var(--color-accent-glow), 0 0 60px rgba(58,125,255,0.15);
  --shadow-glow-sm: 0 0 12px var(--color-accent-mid);

  /* Transitions */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration-base: 0.3s;
  --duration-slow: 0.5s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── Background Grid Noise ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(58,125,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58,125,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(58,125,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-sm  { max-width: 720px; }
.container-lg  { max-width: 1440px; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  background: rgba(5, 9, 18, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--duration-base) var(--ease-out);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.navbar-logo .logo-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
  animation: pulse-dot 2.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.navbar-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
  transition: color var(--duration-fast) var(--ease-out);
  position: relative;
}
.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-base) var(--ease-out);
}
.navbar-links a:hover { color: var(--color-text-primary); }
.navbar-links a:hover::after { transform: scaleX(1); }
.navbar-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.03em;
  transition:
    transform var(--duration-base) var(--ease-spring),
    box-shadow var(--duration-base) var(--ease-out),
    background var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--duration-fast);
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #3A7DFF 0%, #6B5BFF 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(58,125,255,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(58,125,255,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}
.btn-secondary:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent), var(--shadow-glow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-4);
}
.btn-ghost:hover { color: var(--color-text-primary); }

.btn-lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}
.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn-loading {
  pointer-events: none;
  opacity: 0.7;
}
.btn-loading .btn-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}
.card-highlight {
  background: linear-gradient(135deg, var(--color-bg-elevated) 0%, rgba(58,125,255,0.05) 100%);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-glow-sm);
}
.card-glass {
  background: rgba(15, 24, 41, 0.6);
  backdrop-filter: blur(12px);
}

/* ── Tags & Status ───────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-accent  { background: var(--color-accent-soft);  color: var(--color-accent); border: 1px solid var(--color-accent-mid); }
.tag-success { background: var(--color-emerald-soft); color: var(--color-emerald); border: 1px solid rgba(16,185,129,0.3); }
.tag-warning { background: var(--color-amber-soft);   color: var(--color-amber);   border: 1px solid rgba(245,158,11,0.3); }
.tag-danger  { background: var(--color-rose-soft);    color: var(--color-rose);    border: 1px solid rgba(244,63,94,0.3); }
.tag-violet  { background: var(--color-violet-soft);  color: #A78BFA;              border: 1px solid rgba(124,58,237,0.3); }
.tag-cyan    { background: var(--color-cyan-soft);    color: var(--color-cyan);    border: 1px solid rgba(0,212,255,0.3); }

/* ── Form Elements ───────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
}
.form-input, .form-select, .form-textarea {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text-primary);
  font-size: var(--text-sm);
  transition:
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
  outline: none;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft), var(--shadow-glow-sm);
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--color-text-muted);
}
.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B91B6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 16px;
  padding-right: var(--space-10);
}
.form-select option { background: var(--color-bg-elevated); }
.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* Range slider */
.form-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  outline: none;
  border: 1px solid var(--color-border);
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring);
}
.form-range::-webkit-slider-thumb:hover { transform: scale(1.3); }

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}
.form-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid var(--color-border-strong);
  border-radius: 4px;
  background: var(--color-bg-elevated);
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast);
  flex-shrink: 0;
}
.form-checkbox input[type="checkbox"]:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.form-checkbox-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}

/* ── Progress Bar ────────────────────────────────────────────── */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--color-bg-elevated);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-cyan) 100%);
  transition: width var(--duration-slow) var(--ease-out);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

/* ── Score Ring ──────────────────────────────────────────────── */
.score-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring-track { fill: none; stroke: var(--color-bg-elevated); }
.score-ring-fill  { fill: none; transition: stroke-dashoffset var(--duration-slow) var(--ease-out); }
.score-ring-label {
  position: absolute;
  text-align: center;
}

/* ── Gantt Chart ─────────────────────────────────────────────── */
.gantt-container {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
}
.gantt-header {
  display: grid;
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg-elevated);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 2;
}
.gantt-row {
  display: grid;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(58,125,255,0.06);
  align-items: center;
  transition: background var(--duration-fast);
}
.gantt-row:hover { background: var(--color-accent-soft); }
.gantt-bar {
  height: 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--color-accent) 0%, #6B5BFF 100%);
  position: relative;
  box-shadow: 0 0 8px var(--color-accent-mid);
  transition: box-shadow var(--duration-fast);
}
.gantt-bar:hover { box-shadow: 0 0 16px var(--color-accent-glow); }
.gantt-bar-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── State Score Cards ───────────────────────────────────────── */
.state-metric {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--duration-fast);
}
.state-metric:hover { border-color: var(--color-border-strong); }
.state-metric-title {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.state-metric-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Intervention Alert ──────────────────────────────────────── */
.intervention-alert {
  background: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(244,63,94,0.08) 100%);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  animation: alert-pulse 3s ease-in-out infinite;
}
@keyframes alert-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.2); }
  50%       { box-shadow: 0 0 0 4px rgba(124,58,237,0.08); }
}
.intervention-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-violet-soft);
  border: 1px solid rgba(124,58,237,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

/* ── Step Navigation ─────────────────────────────────────────── */
.step-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.step-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  cursor: default;
  transition: color var(--duration-fast);
}
.step-item.active {
  color: var(--color-text-primary);
  background: var(--color-accent-soft);
}
.step-item.completed { color: var(--color-emerald); }
.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
}
.step-item.active   .step-dot { opacity: 1; box-shadow: 0 0 6px currentColor; }
.step-item.completed .step-dot { opacity: 1; }
.step-divider {
  width: 32px; height: 1px;
  background: var(--color-border);
}

/* ── Typography Utilities ────────────────────────────────────── */
.text-display {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.text-headline {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.text-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.text-subhead {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.text-gradient {
  background: linear-gradient(135deg, #F0F4FF 0%, #7B91B6 60%, #3A7DFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-accent {
  background: linear-gradient(135deg, #3A7DFF 0%, #00D4FF 50%, #6B5BFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-mono {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9em;
  letter-spacing: -0.02em;
}

/* ── Grid Layouts ────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* ── Section Spacing ─────────────────────────────────────────── */
.section { padding: var(--space-24) 0; }
.section-sm { padding: var(--space-16) 0; }
.section-lg { padding: 120px 0; }

/* ── Eyebrow Label ───────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: var(--color-accent);
}

/* ── Tooltip ─────────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast), transform var(--duration-fast);
  z-index: 50;
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Scroll Reveal Animation ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Loading Skeleton ────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    var(--color-bg-elevated) 25%,
    var(--color-bg-surface) 50%,
    var(--color-bg-elevated) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Page Header ─────────────────────────────────────────────── */
.page-header {
  padding-top: 120px;
  padding-bottom: var(--space-16);
  text-align: center;
}
.page-header .eyebrow { justify-content: center; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg-secondary); }
::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--color-text-secondary); }

/* ── Toast Notifications ─────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.toast {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  animation: toast-in var(--duration-base) var(--ease-spring);
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast-success { border-left: 3px solid var(--color-emerald); }
.toast-warning { border-left: 3px solid var(--color-amber); }
.toast-error   { border-left: 3px solid var(--color-rose); }
.toast-info    { border-left: 3px solid var(--color-accent); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-12) 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
