/* ============================================================
   AI MIND MAP — Oatmeal & Ink Design System
   Warm light mode. Ember accent. Premium & distinctive.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&display=swap');

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* --- Backgrounds (warm white, NOT harsh pure white) --- */
  --bg-primary:      #F7F4F0;
  --bg-secondary:    #EDE9E3;
  --bg-tertiary:     #E4DED6;
  --bg-input:        #FFFFFF;
  --bg-glass:        rgba(247, 244, 240, 0.9);
  --bg-glass-strong: rgba(247, 244, 240, 0.97);

  /* --- Single accent: Ember Orange --- */
  --accent-primary:  #E8611A;
  --accent-hover:    #C44D0F;
  --accent-dim:      #B03D08;
  --accent-subtle:   rgba(232, 97, 26, 0.08);
  --accent-glow:     0 0 20px rgba(232, 97, 26, 0.15);

  /* Keep old names for backwards compat — mapped to ember */
  --accent-purple: #E8611A;
  --accent-cyan:   #D4901F;
  --accent-pink:   #C44D0F;
  --accent-green:  #1A7F37;
  --accent-orange: #D4901F;

  /* --- Secondary: Amber gold (use sparingly) --- */
  --amber:        #D4901F;
  --amber-bright: #B8760F;

  /* --- Code green (dark for light bg) --- */
  --code-green: #1A7F37;

  /* --- Typography (warm dark, never pure black) --- */
  --text-primary:   #1A1614;
  --text-secondary: #5C5248;
  --text-muted:     #8C8278;
  --text-code:      #C44D0F;

  /* --- Borders (warm ink-tinted) --- */
  --border-subtle: rgba(26, 22, 18, 0.08);
  --border-mid:    rgba(26, 22, 18, 0.14);
  --border-strong: rgba(26, 22, 18, 0.22);
  --border-active: rgba(232, 97, 26, 0.5);

  /* --- Gradients --- */
  --gradient-hero:        linear-gradient(135deg, #E8611A, #D4901F);
  --gradient-purple-pink: linear-gradient(135deg, #E8611A, #F0A835);

  /* --- Glows (all ember-toned) --- */
  --glow-purple: 0 0 20px rgba(232, 97, 26, 0.15);
  --glow-cyan:   0 0 20px rgba(212, 144, 31, 0.12);
  --glow-pink:   0 0 20px rgba(200, 80, 15, 0.12);

  /* --- Radii --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* --- Transitions --- */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.45s ease;

  /* --- Spacing (8px grid) --- */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
}

/* ============================================================
   2. RESET / NORMALIZE
   ============================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Selection */
::selection {
  background: rgba(232, 97, 26, 0.2);
  color: #1A1614;
}

::-moz-selection {
  background: rgba(232, 97, 26, 0.2);
  color: #1A1614;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: rgba(232, 97, 26, 0.3);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(232, 97, 26, 0.5);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 97, 26, 0.3) var(--bg-secondary);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Geist', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.1rem;
  font-weight: 500;
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Gradient text: ink-to-ember */
.text-gradient {
  background: linear-gradient(135deg, #1A1614 0%, #E8611A 55%, #D4901F 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 5s ease infinite;
}

.text-gradient-pink {
  background: linear-gradient(135deg, #E8611A, #F0A835);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-glow {
  color: var(--accent-primary);
}

.text-cyan      { color: var(--amber); }
.text-purple    { color: var(--accent-primary); }
.text-pink      { color: var(--accent-hover); }
.text-green     { color: var(--code-green); }
.text-orange    { color: var(--amber); }
.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center    { text-align: center; }
.text-sm  { font-size: 0.875rem; }
.text-lg  { font-size: 1.25rem; }
.text-xl  { font-size: 1.5rem; }
.text-2xl { font-size: 2rem; }

.font-mono {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
}

.font-light    { font-weight: 300; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 600; }

/* Inline code */
code, kbd, samp {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  font-size: 0.875em;
  color: var(--text-code);
  background: rgba(232, 97, 26, 0.07);
  border: 1px solid rgba(232, 97, 26, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.4em;
}

/* Code blocks: keep dark for maximum contrast on light page */
pre {
  font-family: 'Geist Mono', 'JetBrains Mono', monospace;
  background: #1A1614;
  border: 1px solid rgba(26, 22, 18, 0.15);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #FFB347;
  position: relative;
  box-shadow: 0 4px 24px rgba(26, 22, 18, 0.12);
}

pre::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #E8611A, #D4901F, transparent);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  border: none;
  font-size: inherit;
  color: inherit;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.section {
  padding: 6rem 0;
  position: relative;
  z-index: 1;
}

.section-sm { padding: 4rem 0; }
.section-lg { padding: 8rem 0; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* Flex */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }

/* Gaps */
.gap-xs  { gap: 0.25rem; }
.gap-sm  { gap: 0.5rem; }
.gap-md  { gap: 1rem; }
.gap-lg  { gap: 1.5rem; }
.gap-xl  { gap: 2rem; }
.gap-2xl { gap: 3rem; }

/* Margins */
.mb-sm  { margin-bottom: 0.5rem; }
.mb-md  { margin-bottom: 1rem; }
.mb-lg  { margin-bottom: 1.5rem; }
.mb-xl  { margin-bottom: 2rem; }
.mb-2xl { margin-bottom: 3rem; }
.mb-3xl { margin-bottom: 4rem; }
.mt-sm  { margin-top: 0.5rem; }
.mt-md  { margin-top: 1rem; }
.mt-lg  { margin-top: 1.5rem; }
.mt-xl  { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============================================================
   5. COMPONENTS
   ============================================================ */

/* --- Cards --- */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card:hover {
  border-color: rgba(232, 97, 26, 0.25);
  box-shadow: 0 8px 32px rgba(26, 22, 18, 0.1), 0 0 0 1px rgba(232, 97, 26, 0.1);
  transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

.card-icon  { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.card-title { font-size: 1.25rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.75rem; }
.card-text  { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7; }

.card-green { border-color: rgba(26, 127, 55, 0.15); }
.card-green:hover { border-color: rgba(26, 127, 55, 0.3); box-shadow: 0 0 20px rgba(26, 127, 55, 0.1); }

.card-pink { border-color: rgba(232, 97, 26, 0.15); }
.card-pink:hover { border-color: rgba(232, 97, 26, 0.35); box-shadow: var(--accent-glow); }

.card-cyan { border-color: rgba(212, 144, 31, 0.15); }
.card-cyan:hover { border-color: rgba(212, 144, 31, 0.35); box-shadow: var(--glow-cyan); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: all var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(232, 97, 26, 0.25), 0 1px 2px rgba(232, 97, 26, 0.1);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 97, 26, 0.3);
}

.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-primary);
  border: 1px solid var(--border-mid);
  box-shadow: 0 1px 3px rgba(26, 22, 18, 0.08);
}

.btn-secondary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-ghost {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.btn-lg   { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm   { padding: 0.5rem 1rem; font-size: 0.82rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-md); }

/* --- Badges --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  font-family: 'Geist Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid;
}

.badge-purple,
.badge-primary {
  background: rgba(232, 97, 26, 0.09);
  color: #C44D0F;
  border-color: rgba(232, 97, 26, 0.2);
}

.badge-cyan,
.badge-amber {
  background: rgba(212, 144, 31, 0.09);
  color: #A0700A;
  border-color: rgba(212, 144, 31, 0.2);
}

.badge-green {
  background: rgba(26, 127, 55, 0.08);
  color: #1A7F37;
  border-color: rgba(26, 127, 55, 0.2);
}

.badge-pink,
.badge-warm {
  background: rgba(26, 22, 18, 0.05);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}

.badge-orange {
  background: rgba(212, 144, 31, 0.09);
  color: #A0700A;
  border-color: rgba(212, 144, 31, 0.2);
}

/* --- Tags --- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-family: 'Geist Mono', monospace;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}
.tag:hover { border-color: rgba(232, 97, 26, 0.3); color: var(--accent-primary); }

.tag-purple { background: rgba(232, 97, 26, 0.07); color: var(--accent-primary); }
.tag-cyan   { background: rgba(212, 144, 31, 0.07); color: var(--amber); }

/* --- Inputs --- */
.input {
  background: var(--bg-input);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-family: 'Geist', sans-serif;
  font-size: 0.875rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
  width: 100%;
  box-shadow: inset 0 1px 3px rgba(26, 22, 18, 0.06);
}
.input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(232, 97, 26, 0.1); }
.input::placeholder { color: var(--text-muted); }

/* --- Glass Panel --- */
.glass-panel {
  background: rgba(247, 244, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

/* --- Dividers --- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-mid), transparent);
  border: none;
  margin: 2rem 0;
}

/* --- Code Block with Copy --- */
.code-block {
  position: relative;
  background: #1A1614;
  border: 1px solid rgba(26, 22, 18, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 22, 18, 0.15);
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #E8611A, #D4901F, transparent);
}

.code-block pre {
  margin: 0;
  border: none;
  padding: 1.25rem 1.5rem;
  padding-right: 4rem;
  background: transparent;
  color: #FFB347;
  box-shadow: none;
}

.code-block pre::before { display: none; }

.code-block .copy-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.7rem;
  color: #C8B8A8;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: 'Geist', sans-serif;
}

.code-block .copy-btn:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.code-block .copy-btn.copied {
  background: rgba(26, 127, 55, 0.2);
  color: #1A7F37;
  border-color: rgba(26, 127, 55, 0.35);
}

/* ============================================================
   6. NAVIGATION
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(247, 244, 240, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(247, 244, 240, 0.98);
  border-bottom-color: var(--border-mid);
  box-shadow: 0 1px 0 var(--border-mid), 0 4px 16px rgba(26, 22, 18, 0.08);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Geist Mono', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-icon { font-size: 1.25rem; }

.nav-logo .logo-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-logo span { color: var(--accent-primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  position: relative;
  padding: 0.4rem 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all var(--transition-fast);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--accent-subtle);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  border-radius: 1px;
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

.nav-link.active {
  color: var(--accent-primary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(26, 22, 18, 0.08);
}

.nav-github:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-subtle);
}

.nav-github svg { width: 18px; height: 18px; fill: currentColor; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(247, 244, 240, 0.98);
  border-bottom: 1px solid var(--border-mid);
  padding: 1.5rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 999;
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  box-shadow: 0 8px 24px rgba(26, 22, 18, 0.1);
}

.mobile-nav.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-nav .nav-link {
  font-size: 1.1rem;
  padding: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav .nav-link::after { display: none; }

/* ============================================================
   7. ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

@keyframes ember-flicker {
  0%, 100% { opacity: 1; }
  25%       { opacity: 0.85; }
  75%       { opacity: 0.95; }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

@keyframes count-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes neuralShift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.32s; }
.reveal-delay-4 { transition-delay: 0.45s; }
.reveal-delay-5 { transition-delay: 0.55s; }

/* Animation Utilities */
.animate-fadeInUp   { animation: fadeInUp 0.6s ease forwards; }
.animate-float      { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }
.animate-gradient   { background-size: 200% 200%; animation: gradient-shift 4s ease infinite; }
.animate-breathe    { animation: breathe 3s ease-in-out infinite; }

/* ============================================================
   8. SPECIAL EFFECTS
   ============================================================ */

/* Subtle warm dot-grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(26, 22, 18, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Warm animated background */
.neural-bg {
  background: linear-gradient(135deg, #F7F4F0 0%, #F2ECE4 40%, #F7F4F0 70%, #F4EFE8 100%);
  background-size: 400% 400%;
  animation: neuralShift 25s ease infinite;
}

/* Ambient cursor glow */
.cursor-glow {
  position: fixed;
  pointer-events: none;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(232, 97, 26, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.08s linear, top 0.08s linear;
  z-index: 0;
  will-change: left, top;
}

/* Gradient Border */
.gradient-border { position: relative; }
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-hero);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hover-lift { transition: transform var(--transition-normal); }
.hover-lift:hover { transform: translateY(-4px); }

.glow-on-hover { transition: box-shadow var(--transition-normal); }
.glow-on-hover:hover { box-shadow: var(--glow-purple); }

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(232, 97, 26, 0.08), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

.particle-bg { position: relative; overflow: hidden; }
.particle-bg canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.3;
}

/* Orbs: very subtle on light bg */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
  z-index: 0;
  opacity: 0.4;
}

.orb-purple { background: rgba(232, 97, 26, 0.12); width: 400px; height: 400px; }
.orb-cyan   { background: rgba(212, 144, 31, 0.08); width: 300px; height: 300px; animation-delay: -5s; }
.orb-pink   { background: rgba(232, 97, 26, 0.05);  width: 250px; height: 250px; animation-delay: -9s; }

.node-hotspot { filter: drop-shadow(0 0 6px rgba(232, 97, 26, 0.6)); }

/* ============================================================
   9. SPECIFIC SECTIONS
   ============================================================ */

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 5rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero h1 { margin-bottom: 1.5rem; }

.hero .subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-install { max-width: 450px; margin: 0 auto 2rem; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { font-size: 1.05rem; color: var(--text-secondary); }

.section-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Geist Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--accent-primary);
  opacity: 0.5;
  display: inline-block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  font-family: 'Geist', sans-serif;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.75;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, var(--accent-primary)), transparent);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 600;
  font-family: 'Geist Mono', monospace;
  color: var(--text-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 22, 18, 0.08);
}

.bento-hero  { grid-column: span 7; grid-row: span 5; }
.bento-tall  { grid-column: span 5; grid-row: span 5; }
.bento-wide  { grid-column: span 7; grid-row: span 3; }
.bento-small { grid-column: span 5; grid-row: span 3; }
.bento-sq    { grid-column: span 4; grid-row: span 3; }
.bento-card  { background: var(--bg-secondary); padding: 2rem; display: flex; flex-direction: column; overflow: hidden; transition: background var(--transition-normal); }
.bento-card:hover { background: var(--bg-tertiary); }

.card-accent-border {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.card-accent-border::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 97, 26, 0.6), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.card-accent-border:hover::before { opacity: 1; }

.lang-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: 'Geist Mono', monospace;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: default;
  box-shadow: 0 1px 3px rgba(26, 22, 18, 0.06);
}

.lang-badge:hover {
  border-color: rgba(232, 97, 26, 0.4);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.real-data-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.1rem;
  background: rgba(26, 127, 55, 0.06);
  border: 1px solid rgba(26, 127, 55, 0.2);
  border-radius: 99px;
  font-size: 0.78rem;
  color: #1A7F37;
  font-family: 'Geist Mono', monospace;
}

.real-data-banner .dot {
  width: 7px;
  height: 7px;
  background: #1A7F37;
  border-radius: 50%;
  box-shadow: 0 0 6px #1A7F37;
  animation: pulse-glow 2s ease-in-out infinite;
}

.comparison-card { border-radius: var(--radius-lg); overflow: hidden; }
.comparison-card .card-header { padding: 1rem 1.5rem; font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.comparison-card.bad  .card-header { background: rgba(220, 53, 69, 0.07);  color: #DC3545; border-bottom: 1px solid rgba(220, 53, 69, 0.15); }
.comparison-card.good .card-header { background: rgba(26, 127, 55, 0.07); color: #1A7F37; border-bottom: 1px solid rgba(26, 127, 55, 0.15); }
.comparison-card pre { border: none; border-radius: 0; margin: 0; }

.agents-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2rem; }
.agent-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}
.agent-item:hover { border-color: rgba(232, 97, 26, 0.3); color: var(--text-primary); transform: translateY(-2px); }
.agent-icon { font-size: 1.3rem; }

/* Footer */
.footer {
  border-top: 1px solid var(--border-mid);
  padding: 3rem 0;
  background: var(--bg-secondary);
}
.footer-content { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-links   { display: flex; gap: 1.5rem; }
.footer-link    { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--transition-fast); text-decoration: none; }
.footer-link:hover { color: var(--text-primary); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; }
.footer-tech { color: var(--text-muted); font-size: 0.8rem; }

/* CTA */
.cta-section { text-align: center; position: relative; }
.cta-section h2 { margin-bottom: 1.5rem; }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4.5rem 0; }
  .bento-hero, .bento-tall, .bento-wide, .bento-small, .bento-sq {
    grid-column: span 12;
    grid-row: span auto;
  }
  .bento-grid { grid-auto-rows: auto; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.25rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.75rem; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .hero .subtitle { font-size: 1rem; }
  .hero-cta { flex-direction: column; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .agents-grid { gap: 1rem; }
  .agent-item { padding: 0.6rem 1rem; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 1.85rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 3rem 0; }
  .container { padding: 0 1rem; }
  .card { padding: 1.5rem; }
  .btn-lg { padding: 0.85rem 1.5rem; font-size: 0.95rem; }
  .stat-number { font-size: 2.25rem; }
  .section-header { margin-bottom: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

