/* ============================================
   empAIre v2.0 | Obsidian Command, Refined
   Hub architecture. All tokens. All components.
   Gold rim accent detail. Premium dark theme.
   ============================================ */

:root {
  /* Canvas */
  --bg-canvas: #0A0A0F;
  --bg-surface: #141419;
  --bg-surface-raised: #1A1A22;

  /* Borders */
  --border-subtle: #1E1E28;
  --border-accent: #C9A84C;

  /* Text */
  --text-primary: #E8E4DD;
  --text-secondary: #8A8A9A;
  --text-muted: #555566;

  /* Accents */
  --accent-blue: #4A8FE7;
  --accent-gold: #C9A84C;
  --accent-gold-dim: rgba(201,168,76,0.12);
  --accent-gold-glow: rgba(201,168,76,0.06);
  --status-active: #22C55E;
  --status-deploying: #F59E0B;
  --status-soon: #8A8A9A;
  --danger: #EF4444;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 80px;
  --space-4xl: 120px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Type */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1120px;
  --max-prose: 680px;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  min-height: 100vh;
  position: relative;
}

/* Subtle noise overlay for texture depth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Gold accent bar at the very top of the page */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-gold) 30%, var(--accent-gold) 70%, transparent 100%);
  z-index: 200;
  opacity: 0.7;
}

/* Ensure all content sits above noise layer */
body > * {
  position: relative;
  z-index: 1;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent-blue); text-decoration: none; transition: color 200ms ease-out; }
a:hover { color: var(--text-primary); }
ul, ol { list-style: none; }

/* Selection colour */
::selection {
  background: var(--accent-gold-dim);
  color: var(--text-primary);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.prose { max-width: var(--max-prose); }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  line-height: 1.15;
  color: var(--text-primary);
}

h1 {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
}

.stat-number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--text-primary);
}

.stat-number-lg {
  font-size: 4.5rem;
}

.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--accent-gold); }

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20,20,25,0.85);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 200ms ease-out;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

/* Active link underline accent */
.nav-links a.active:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent-gold);
}

/* Nav CTA gold highlight on mobile */
.nav-cta {
  padding: 8px 20px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}

/* Mobile nav */
@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(20,20,25,0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    padding: var(--space-lg);
    gap: var(--space-lg);
  }

  .nav-links.open { display: flex; }

  .nav-cta {
    color: var(--accent-gold) !important;
    border-color: var(--accent-gold) !important;
  }

  .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);
  }
}

/* --- Section Spacing --- */
.section {
  padding: var(--space-3xl) 0;
}

.section-hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  position: relative;
}

/* Subtle radial glow behind hero content */
.section-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, var(--accent-gold-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.section-hero > .container {
  position: relative;
  z-index: 1;
}

/* --- Gold Divider --- */
.divider {
  width: 60px;
  height: 1px;
  border: none;
  margin: 0 auto;
  background: transparent;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  opacity: 0.5;
}

/* Small diamond at center of divider */
.divider::after {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 5px;
  height: 5px;
  background: var(--accent-gold);
  opacity: 0.5;
}

.divider-left {
  margin: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 250ms ease-out;
  border: 1px solid transparent;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--bg-canvas);
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 0 var(--accent-gold-dim);
}

.btn-primary:hover {
  background: transparent;
  color: var(--accent-gold);
  box-shadow: 0 0 24px 0 var(--accent-gold-dim);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

/* CTA button group */
.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  transition: all 300ms ease-out;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, transparent 60%, var(--accent-gold-dim) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 300ms ease-out;
  pointer-events: none;
}

.card:hover {
  background: var(--bg-surface-raised);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card:hover::before {
  opacity: 1;
}

/* --- Division Cards (Hub Grid) --- */
.division-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  transition: all 300ms ease-out;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

.division-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, transparent 60%, var(--accent-gold-dim) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 300ms ease-out;
  pointer-events: none;
}

/* Live card: brighter, gold rim on hover */
.division-card-live:hover {
  background: var(--bg-surface-raised);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border-color: var(--accent-gold-dim);
}

.division-card-live:hover::before {
  opacity: 1;
}

/* Dev/planned cards: muted, no hover lift */
.division-card-dev,
.division-card-planned {
  opacity: 0.65;
  cursor: default;
}

.division-card-dev:hover,
.division-card-planned:hover {
  opacity: 0.75;
}

.division-link {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-gold);
  transition: color 200ms ease-out;
}

.division-link.muted {
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Milestone Cards (ClawTrader) --- */
.milestone-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
}

.milestone-status {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--status-active);
  margin-bottom: var(--space-md);
}

.milestone-status-active {
  color: var(--status-deploying);
}

.milestone-status-next {
  color: var(--text-muted);
}

.milestone-complete {
  border-color: rgba(34,197,94,0.2);
}

.milestone-active {
  border-color: rgba(245,158,11,0.2);
}

.milestone-next {
  opacity: 0.6;
}

/* --- Identity Block (About) --- */
.identity-block {
  text-align: center;
}

.identity-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-raised);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-active .badge-dot {
  background: var(--status-active);
  box-shadow: 0 0 6px var(--status-active);
}

.badge-deploying .badge-dot {
  background: var(--status-deploying);
  box-shadow: 0 0 6px var(--status-deploying);
}

.badge-soon .badge-dot { background: var(--status-soon); }

/* --- Grid --- */
.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-lg);
}

@media (max-width: 1023px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
}

/* --- Process Strip --- */
.process-strip {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  position: relative;
}

.process-step-number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
}

/* Subtle circle behind step number */
.process-step-number::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-gold-glow);
  border: 1px solid var(--accent-gold-dim);
}

.process-step h4 {
  margin-bottom: var(--space-sm);
}

.process-step p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  max-width: 240px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Connecting line */
.process-strip::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 16.67%;
  right: 16.67%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 15%, var(--border-subtle) 85%, transparent);
  z-index: 0;
}

@media (max-width: 767px) {
  .process-strip {
    flex-direction: column;
    gap: var(--space-2xl);
  }
  .process-strip::before { display: none; }
  .process-step { text-align: left; }
  .process-step p { margin: 0; }
}

/* --- Stats Row --- */
.stats-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xl);
}

.stat-block {
  text-align: center;
  flex: 1;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color 300ms ease-out;
}

.stat-block:hover {
  border-color: var(--accent-gold-dim);
}

.stat-block .stat-number {
  margin-bottom: var(--space-sm);
}

.stat-block .label {
  display: block;
}

@media (max-width: 767px) {
  .stats-row {
    flex-direction: column;
    gap: var(--space-md);
  }
}

/* --- CTA Strip --- */
.cta-strip {
  text-align: center;
  padding: var(--space-3xl) 0;
  position: relative;
}

/* Subtle radial glow behind CTA */
.cta-strip::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, var(--accent-gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-strip h2 {
  margin-bottom: var(--space-xl);
  position: relative;
}

.cta-strip .btn {
  position: relative;
}

/* --- Problem Cards (danger left border) --- */
.card-danger {
  border-left: 3px solid var(--danger);
}

.card-danger:hover {
  border-left-color: var(--danger);
}

/* --- Vertical Blocks (numbered list) --- */
.v-block {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
  transition: background 200ms ease-out;
}

.v-block:last-child { border-bottom: none; }

.v-block-number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 2rem;
  color: var(--accent-gold);
  flex-shrink: 0;
  width: 64px;
  opacity: 0.7;
  transition: opacity 200ms ease-out;
}

.v-block:hover .v-block-number {
  opacity: 1;
}

.v-block-content h4 { margin-bottom: var(--space-sm); }
.v-block-content p { color: var(--text-secondary); font-size: 0.9375rem; margin-bottom: var(--space-xs); line-height: 1.6; }
.v-block-kpi {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

@media (max-width: 767px) {
  .v-block { flex-direction: column; gap: var(--space-md); }
  .v-block-number { width: auto; }
}

/* --- Tags / Chips --- */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--accent-blue);
  color: var(--accent-blue);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: all 200ms ease-out;
}

.tag:hover {
  background: rgba(74,143,231,0.08);
}

/* --- Timeline Strip --- */
.timeline-strip {
  display: flex;
  position: relative;
  gap: 0;
}

.timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 var(--space-md);
}

.timeline-step-label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-step h4 { margin-bottom: var(--space-sm); }
.timeline-step p { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.6; }

.timeline-strip::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 10%, var(--border-subtle) 90%, transparent);
}

@media (max-width: 767px) {
  .timeline-strip {
    flex-direction: column;
    gap: var(--space-2xl);
  }
  .timeline-strip::before { display: none; }
  .timeline-step { text-align: left; }
}

/* --- Accordion / FAQ --- */
.accordion-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-sm);
  overflow: hidden;
  transition: border-color 200ms ease-out;
}

.accordion-item:hover {
  border-color: rgba(201,168,76,0.15);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: background 200ms ease-out;
}

.accordion-trigger:hover { background: var(--bg-surface-raised); }

.accordion-icon {
  font-size: 1.25rem;
  color: var(--accent-gold);
  transition: transform 200ms ease-out;
  flex-shrink: 0;
  margin-left: var(--space-md);
  opacity: 0.6;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
  opacity: 1;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease-out;
}

.accordion-body-inner {
  padding: 0 var(--space-xl) var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* --- Investment Frame --- */
.investment-frame {
  text-align: center;
  padding: var(--space-3xl) 0;
}

.investment-frame p {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  max-width: var(--max-prose);
  margin: 0 auto;
}

/* --- Not-For List --- */
.not-for-list li {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  padding: var(--space-sm) 0;
  padding-left: var(--space-xl);
  position: relative;
  line-height: 1.6;
}

.not-for-list li::before {
  content: '\2715';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-size: 0.6875rem;
  opacity: 0.6;
  top: calc(var(--space-sm) + 3px);
}

/* --- Footer --- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-2xl) 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 200ms ease-out;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- Scroll Fade-in --- */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.grid-2 .fade-in:nth-child(2) { transition-delay: 80ms; }
.grid-2 .fade-in:nth-child(3) { transition-delay: 160ms; }
.grid-2 .fade-in:nth-child(4) { transition-delay: 240ms; }
.grid-3 .fade-in:nth-child(2) { transition-delay: 80ms; }
.grid-3 .fade-in:nth-child(3) { transition-delay: 160ms; }

/* --- Book Page --- */
.book-embed-placeholder {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
}

/* Cal embed container */
#cal-embed {
  border-radius: var(--radius-lg) !important;
}

/* --- Privacy / Legal Page --- */
.legal-content {
  max-width: var(--max-prose);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-subtle);
}

.legal-content h3 {
  font-size: 1.125rem;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.legal-content ul li {
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  list-style: disc;
  line-height: 1.6;
}

.legal-content a { color: var(--accent-blue); }

/* --- Responsive Type --- */
@media (max-width: 767px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.125rem; }
  .stat-number { font-size: 2.5rem; }
  .stat-number-lg { font-size: 3rem; }
  .process-step-number { font-size: 2rem; }
  .section-hero { padding: var(--space-3xl) 0 var(--space-2xl); }
  .section { padding: var(--space-2xl) 0; }
  .container { padding: 0 var(--space-md); }
  .identity-text { font-size: 1.25rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  h1 { font-size: 2.5rem; }
}

/* --- Scrollbar styling (Webkit) --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-canvas);
}
::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
