:root {
  /* ===== Surfaces ===== */
  --bg-page:        #0e1117;   /* page background base */
  --bg-page-2:      #0c0f15;   /* gradient partner */
  --surface-1:      #131722;   /* section-dark / raised */
  --surface-2:      #171c28;   /* card */
  --surface-3:      #1e2533;   /* card hover / inset */
  --line:           #2a3242;   /* hairline borders */
  --line-soft:      rgba(255,255,255,.06);

  /* ===== Ink ===== */
  --text-primary:   #eef2f7;
  --text-secondary: #aab4c2;
  --text-muted:     #6f7b8c;

  /* ===== Accent — brass/amber ===== */
  --accent:         #d99b3f;
  --accent-soft:    #f0c074;   /* text/eyebrows on dark */
  --accent-deep:    #9a6a1d;
  --accent-ink:     #1a1206;   /* text ON a filled accent button */
  --accent-glow:    rgba(217,155,63,.16);

  /* ===== Links only ===== */
  --link:           #6ea8e6;
  --link-hover:     #8fb9ea;

  /* ===== Semantic ===== */
  --success: #10b981;
  --error:   #ef4444;

  /* ===== Type families ===== */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;

  /* ===== Spacing ===== */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

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

  /* ===== Transition ===== */
  --transition: 0.2s ease;

  /* ===== Legacy aliases — map old token names onto the new palette
     so existing markup across all pages keeps working unchanged. ===== */
  --bg-primary:     var(--bg-page);
  --bg-secondary:   var(--surface-1);
  --bg-card:        var(--surface-2);
  --bg-card-hover:  var(--surface-3);
  --accent-primary: var(--accent);
  --accent-hover:   var(--accent-soft);
  --accent-dark:    var(--accent-deep);
  --border-color:   var(--line);
  --border-accent:  var(--accent);
}

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1100px 520px at 75% -8%, rgba(217,155,63,.06), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(40,52,72,.45), transparent 60%),
    linear-gradient(180deg, var(--bg-page-2), var(--bg-page));
  background-attachment: fixed;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.2rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--link-hover);
}

/* Shared signature: mono eyebrow/label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

/* Utilities */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

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

.section--dark {
  background-color: var(--surface-1);
}

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

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

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

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* ===== Motion: orchestrated page-load reveal (CSS-only) ===== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fade-up 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: var(--spacing-lg) 0;
  }
}
