/* ============================================
   AI Workflow Course — Sanity Design System
   Dark, precise, nocturnal command center
   ============================================ */

/* ---------- Fonts & Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Sanity Core Palette */
  --black: #0b0b0b;
  --surface: #212121;
  --border: #353535;
  --border-subtle: #212121;
  --white: #ffffff;
  --silver: #b9b9b9;
  --gray: #797979;
  --light: #ededed;

  /* Accent */
  --red: #f36458;
  --blue: #0052ef;
  --green: #19d600;

  /* Spacing (8px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  /* Typography */
  --font: 'Space Grotesk', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Radius */
  --r-xs: 3px;
  --r-sm: 5px;
  --r-md: 6px;
  --r-lg: 12px;
  --r-pill: 99999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 0.2s var(--ease);
  --t-med: 0.4s var(--ease);
  --t-slow: 0.6s var(--ease);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

a { color: var(--silver); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--blue); }

img { max-width: 100%; display: block; }

/* ---------- Container ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-4); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  height: 56px;
  gap: var(--sp-5);
}
.nav-brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  letter-spacing: -0.32px;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--white); }
.nav-links {
  display: flex;
  gap: var(--sp-3);
  flex: 1;
}
.nav-link {
  font-size: 13px;
  color: var(--silver);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: var(--white);
  background: var(--surface);
}
.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--surface);
}
.nav-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--red);
  transition: width 0.1s linear;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--silver);
  transition: all var(--t-fast);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 11, 11, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-5);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med);
  }
  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { font-size: 18px; }
  .nav-inner { padding: 0 var(--sp-4); }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: var(--sp-9) 0 var(--sp-8);
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--silver);
  background: var(--surface);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  margin-bottom: var(--sp-5);
}
.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(48px, 8vw, 112px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: clamp(-1.5px, -0.04em, -4.48px);
  color: var(--white);
  margin-bottom: var(--sp-5);
}
.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--silver);
  line-height: 1.4;
  max-width: 600px;
  letter-spacing: -0.24px;
}
.hero-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gray);
  margin-top: var(--sp-5);
  text-transform: uppercase;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(243, 100, 88, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

/* ---------- Pills / Badges ---------- */
.pill {
  display: inline-block;
  padding: var(--sp-2) var(--sp-3);
  background: var(--surface);
  color: var(--silver);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
}
.pill-accent {
  background: rgba(243, 100, 88, 0.1);
  color: var(--red);
  border-color: rgba(243, 100, 88, 0.3);
}
.pill-sm {
  display: inline-block;
  padding: var(--sp-1) var(--sp-2);
  background: var(--surface);
  color: var(--silver);
  font-size: 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  margin: 3px;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--sp-8) 0;
}
.section-alt {
  background: var(--surface);
}
.section-header {
  margin-bottom: var(--sp-7);
}
.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.68px;
  line-height: 1.08;
  margin-top: var(--sp-3);
}
.section-desc {
  color: var(--silver);
  font-size: 18px;
  margin-top: var(--sp-3);
  line-height: 1.5;
  letter-spacing: -0.18px;
}

/* Mono Label */
.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: 0.5px;
}

/* ---------- Section Dividers ---------- */
.section-divider {
  padding: var(--sp-9) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 50%, rgba(243, 100, 88, 0.04), transparent),
    radial-gradient(ellipse 50% 60% at 70% 40%, rgba(0, 82, 239, 0.04), transparent);
  pointer-events: none;
}
.divider-content { position: relative; z-index: 1; }
.section-num {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 700;
  color: var(--white);
  opacity: 0.06;
  line-height: 1;
  letter-spacing: -4px;
}
.section-divider h2 {
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 700;
  letter-spacing: -2.88px;
  line-height: 1.05;
  margin-top: calc(var(--sp-4) * -1);
}
.divider-sub {
  color: var(--silver);
  font-size: 18px;
  margin-top: var(--sp-3);
}
.divider-sub::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--red);
  margin: var(--sp-4) auto 0;
  border-radius: 1px;
}

/* ---------- Grid Layouts ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-5);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.card-tag {
  margin-bottom: var(--sp-3);
}
.card h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin-bottom: var(--sp-2);
}
.card p, .card li {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.5;
  letter-spacing: -0.15px;
}
.card-body-lg {
  font-size: 18px;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: var(--sp-2);
}
.card-muted {
  font-size: 13px;
  color: var(--gray);
}

/* Card Variants */
.card-highlight {
  border-color: var(--red);
  background: linear-gradient(135deg, var(--surface), rgba(243, 100, 88, 0.05));
}
.card-warn {
  border-left: 3px solid var(--red);
}
.card-warn h4 { color: var(--red); }
.card-good {
  border-color: rgba(25, 214, 0, 0.3);
  background: linear-gradient(135deg, var(--surface), rgba(25, 214, 0, 0.03));
}
.card-bad {
  border-color: rgba(243, 100, 88, 0.3);
  background: linear-gradient(135deg, var(--surface), rgba(243, 100, 88, 0.03));
}
.section-alt .card {
  background: var(--black);
}

/* ---------- Check/X Lists ---------- */
.check-list, .x-list {
  list-style: none;
  padding: 0;
}
.check-list li, .x-list li {
  padding: var(--sp-2) 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--silver);
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%2319d600' stroke-width='1.5'/%3E%3Cpath d='M5 8l2 2 4-4' stroke='%2319d600' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.x-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='7' stroke='%23f36458' stroke-width='1.5'/%3E%3Cpath d='M5.5 5.5l5 5M10.5 5.5l-5 5' stroke='%23f36458' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* ---------- Code Blocks ---------- */
.code-block {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  position: relative;
  overflow-x: auto;
}
.section-alt .code-block { background: var(--surface); }
.code-block code {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--silver);
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-block-sm { padding: var(--sp-4); }
.code-block-sm code { font-size: 13px; }
.code-block-lg { padding: var(--sp-6); }
.code-label {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-4);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--gray);
  letter-spacing: 0.5px;
}
.hl-accent { color: var(--red); }
.hl-green { color: var(--green); }

/* ---------- Flow Diagrams ---------- */
.flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin: var(--sp-7) 0;
  flex-wrap: wrap;
}
.flow-node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  text-align: center;
  min-width: 140px;
  flex: 1;
  max-width: 200px;
  transition: all var(--t-med);
}
.flow-node.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 0 20px rgba(0, 82, 239, 0.15);
}
.flow-node-success.active {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green), 0 0 20px rgba(25, 214, 0, 0.15);
}
.flow-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto var(--sp-2);
  color: var(--silver);
  transition: color var(--t-fast);
}
.flow-node.active .flow-icon { color: var(--blue); }
.flow-node-success.active .flow-icon { color: var(--green); }
.flow-icon svg { width: 100%; height: 100%; }
.flow-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  display: block;
}
.flow-sublabel {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  display: block;
  margin-top: 2px;
}
.flow-connector {
  width: 24px;
  flex-shrink: 0;
  color: var(--gray);
  opacity: 0;
  transition: opacity var(--t-med);
}
.flow-connector.visible { opacity: 1; }
.flow-connector svg { width: 100%; height: auto; }

@media (max-width: 768px) {
  .flow { flex-direction: column; gap: var(--sp-2); }
  .flow-node { min-width: 100%; max-width: 100%; }
  .flow-connector {
    transform: rotate(90deg);
    width: 24px;
    height: 24px;
  }
}

/* ---------- Stats ---------- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: var(--sp-7);
  margin: var(--sp-7) 0;
  flex-wrap: wrap;
}
.stat { text-align: center; min-width: 150px; }
.stat-number {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: var(--red);
  letter-spacing: -1.68px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--gray);
  margin-top: var(--sp-2);
}

/* ---------- Progress Bar ---------- */
.progress-track { margin-top: var(--sp-6); }
.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--gray);
  margin-bottom: var(--sp-2);
}
.progress-bar {
  height: 6px;
  background: var(--surface);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--blue));
  border-radius: var(--r-pill);
  transition: width 1.8s var(--ease);
}

/* ---------- Accent Callout ---------- */
.accent-callout {
  font-size: 18px;
  font-weight: 600;
  color: var(--red);
  margin-top: var(--sp-5);
  letter-spacing: -0.18px;
}

/* ---------- Callout Card ---------- */
.callout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-md);
  padding: var(--sp-5);
  margin-top: var(--sp-6);
}
.section-alt .callout-card { background: var(--black); }
.callout-card h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: var(--sp-2);
}
.callout-card p {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.5;
}
.callout-green { border-left-color: var(--green); }
.callout-green h4 { color: var(--green); }

/* ---------- Flip Cards ---------- */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
  min-height: 260px;
  outline: none;
}
.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  transition: transform 0.6s var(--ease);
  transform-style: preserve-3d;
}
.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}
.flip-front, .flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r-md);
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flip-front {
  background: var(--surface);
  border: 1px solid var(--border);
}
.flip-back {
  background: var(--black);
  border: 1px solid var(--border);
  transform: rotateY(180deg);
}
.flip-front h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
}
.flip-front p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.5;
}
.card-mono {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gray);
  margin-bottom: var(--sp-2);
}
.flip-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gray);
  text-transform: uppercase;
  margin-top: auto;
  padding-top: var(--sp-3);
  opacity: 0.5;
  transition: opacity var(--t-fast);
}
.flip-card:hover .flip-hint { opacity: 1; }

/* Accent Colors for pattern cards */
.accent-red { color: var(--red); }
.accent-blue { color: var(--blue); }
.accent-green { color: var(--green); }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 48px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: var(--sp-5);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}
.timeline-marker {
  position: absolute;
  left: -48px;
  top: 2px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid var(--marker-color, var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--marker-color, var(--silver));
  z-index: 1;
}
.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-5);
}
.timeline-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.18px;
}
.timeline-content p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.6;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
}
.filter-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--silver);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.filter-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

/* ---------- Tool Grid ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-4);
}
.tool-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  cursor: default;
}
.tool-card:hover {
  border-color: var(--blue);
  transform: translateX(4px);
}
.tool-card.hidden {
  display: none;
}
.tool-card.animating {
  animation: tool-in 0.3s var(--ease) both;
}
@keyframes tool-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tool-icon-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tool-icon-wrap svg { width: 28px; height: 28px; }
.tool-icon-wrap.writing { color: var(--blue); }
.tool-icon-wrap.coding { color: var(--red); }
.tool-icon-wrap.visual { color: #55beff; }
.tool-icon-wrap.research { color: var(--green); }
.tool-card h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.tool-card p {
  font-size: 12px;
  color: var(--gray);
  margin: 0;
  line-height: 1.4;
}

/* ---------- Action Plan ---------- */
.action-list {
  max-width: 720px;
  margin: 0 auto;
}
.action-item {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  margin-bottom: var(--sp-5);
  padding: var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.action-item:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}
.action-num {
  font-size: 32px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  letter-spacing: -1px;
}
.action-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.18px;
}
.action-content p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.5;
}

/* ---------- Contact Links ---------- */
.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 14px;
  color: var(--silver);
}
.contact-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.contact-link:hover { color: var(--blue); }

/* ---------- Footer ---------- */
.footer {
  padding: var(--sp-8) 0;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}
.footer-text {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: -1.14px;
  margin-bottom: var(--sp-3);
}
.footer-sub {
  font-size: 14px;
  color: var(--gray);
}

/* ---------- Animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
[data-animate="scale-in"] {
  transform: scale(0.92);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger children */
[data-animate="stagger"] > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
[data-animate="stagger"].visible > * {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="stagger"].visible > *:nth-child(1) { transition-delay: 0ms; }
[data-animate="stagger"].visible > *:nth-child(2) { transition-delay: 80ms; }
[data-animate="stagger"].visible > *:nth-child(3) { transition-delay: 160ms; }
[data-animate="stagger"].visible > *:nth-child(4) { transition-delay: 240ms; }
[data-animate="stagger"].visible > *:nth-child(5) { transition-delay: 320ms; }
[data-animate="stagger"].visible > *:nth-child(6) { transition-delay: 400ms; }
[data-animate="stagger"].visible > *:nth-child(7) { transition-delay: 480ms; }
[data-animate="stagger"].visible > *:nth-child(8) { transition-delay: 560ms; }

/* Flow animation handled by JS */
[data-animate="flow"] .flow-node {
  opacity: 0;
  transform: translateY(12px);
  transition: all var(--t-med);
}
[data-animate="flow"].visible .flow-node {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray); }

/* ---------- Focus Visible ---------- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
