/* ============================================================
   SIFTHOOK LANDING PAGE — DESIGN SYSTEM & STYLES
   Bloom AI-inspired ultra-dark bioluminescent aesthetic
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700;800;900&family=Micro+5&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Backgrounds */
  --bg-void: #000000;
  --bg-primary: #030305;
  --bg-secondary: #08080c;
  --bg-tertiary: #0c0c12;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.045);

  /* Accent Palette — Bioluminescent */
  --accent-green: #00ff88;
  --accent-green-dim: #00cc6a;
  --accent-cyan: #00e5ff;
  --accent-red: #ff3355;
  --accent-red-dim: #cc2244;
  --accent-amber: #ffaa33;

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.35);
  --text-faint: rgba(255, 255, 255, 0.15);

  /* Borders & Lines */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-glow: rgba(0, 255, 136, 0.3);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-strong: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(24px);
  --glass-blur-light: blur(12px);

  /* Shadows & Glows */
  --glow-green: 0 0 30px rgba(0, 255, 136, 0.15), 0 0 60px rgba(0, 255, 136, 0.05);
  --glow-green-strong: 0 0 20px rgba(0, 255, 136, 0.25), 0 0 50px rgba(0, 255, 136, 0.1);
  --glow-red: 0 0 30px rgba(255, 51, 85, 0.15), 0 0 60px rgba(255, 51, 85, 0.05);
  --shadow-deep: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  /* Typography */
  --font-brand: 'Micro 5', monospace;
  --font-heading: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --max-width: 1280px;
  --max-width-wide: 1440px;
  --container-padding: 48px;

  /* Timing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.18s;
  --duration-normal: 0.36s;
  --duration-slow: 0.6s;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

ul, ol { list-style: none; }

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
}

.container--wide {
  max-width: var(--max-width-wide);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}

.reveal.is-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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   4. NOISE OVERLAY (Bloom-style grain texture)
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='256' height='256'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 256px 256px;
}

/* ============================================================
   5. HEADER / NAV
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--duration-normal) ease,
              border-color var(--duration-normal) ease,
              backdrop-filter var(--duration-normal) ease;
}

.site-header.is-scrolled {
  background: rgba(3, 3, 5, 0.8);
  backdrop-filter: var(--glass-blur-light);
  -webkit-backdrop-filter: var(--glass-blur-light);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-lg);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  position: relative;
}

.logo-icon {
  width: 32px;
  height: 32px;
  position: relative;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
}

.logo-text {
  font-family: var(--font-brand);
  font-size: 32px;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-green);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

/* GitHub icon */
.nav-github {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}

.nav-github:hover {
  color: var(--text-primary);
}

.nav-github svg {
  width: 20px;
  height: 20px;
}

/* Star button */
.btn-star {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-card);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-light);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.btn-star:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: var(--glow-green);
}

.btn-star svg {
  width: 16px;
  height: 16px;
}

.btn-star .star-count {
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-fast) ease;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

/* Canvas background */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* Hero background image */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient overlays */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: 
    radial-gradient(ellipse 80% 60% at 50% 40%, transparent 0%, var(--bg-void) 100%),
    linear-gradient(180deg, transparent 0%, var(--bg-void) 95%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section label (Bloom style) */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: var(--space-xl);
}

.section-label::before {
  content: '✦';
  font-size: 10px;
}

/* Hero headline */
.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.hero-headline .highlight {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero subheadline */
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: var(--space-2xl);
}

.hero-sub strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* CTA button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-void);
  background: var(--accent-green);
  border: 1px solid var(--accent-green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2), 0 0 40px rgba(0, 255, 136, 0.08);
  transition: all var(--duration-normal) var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.35), 0 0 60px rgba(0, 255, 136, 0.12);
}

.btn-cta:hover::before {
  opacity: 1;
}

.btn-cta .arrow {
  display: inline-flex;
  transition: transform var(--duration-fast) ease;
}

.btn-cta:hover .arrow {
  transform: translateX(3px);
}

/* Hero actions row */
.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
  justify-content: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-card);
  transition: all var(--duration-fast) ease;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--glass-bg);
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
}

/* Terminal card (macOS-style) */
.terminal-card {
  width: min(560px, 100%);
  border-radius: var(--radius-lg);
  background: rgba(10, 10, 14, 0.85);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot--red { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-right: 36px;
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
}

.terminal-prompt {
  color: var(--accent-green);
}

.terminal-command {
  color: var(--text-primary);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 18px;
  background: var(--accent-green);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   7. SECTION DIVIDER (Bloom-style thin line)
   ============================================================ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle) 20%, var(--border-subtle) 80%, transparent);
}

/* ============================================================
   8. BLAST RADIUS SECTION
   ============================================================ */
.blast-radius {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.blast-radius-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* Split screen comparison */
.blast-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.blast-panel {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-light);
  -webkit-backdrop-filter: var(--glass-blur-light);
  padding: var(--space-lg);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.blast-panel--bad {
  border-color: rgba(255, 51, 85, 0.15);
}

.blast-panel--good {
  border-color: rgba(0, 255, 136, 0.15);
}

.blast-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: var(--space-md);
}

.blast-panel--bad .blast-panel-label {
  background: rgba(255, 51, 85, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255, 51, 85, 0.2);
}

.blast-panel--good .blast-panel-label {
  background: rgba(0, 255, 136, 0.08);
  color: var(--accent-green);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.blast-panel-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.blast-canvas-wrap {
  flex: 1;
  position: relative;
  min-height: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blast-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* ============================================================
   9. BENTO FEATURE GRID
   ============================================================ */
.features {
  position: relative;
  padding: 120px 0;
}

.features-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
}

/* Asymmetric layout */
.bento-card:nth-child(1) { grid-column: 1 / 2; }
.bento-card:nth-child(2) { grid-column: 2 / 4; }
.bento-card:nth-child(3) { grid-column: 1 / 3; }
.bento-card:nth-child(4) { grid-column: 3 / 4; }
.bento-card:nth-child(5) { grid-column: 1 / 4; }

.bento-card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-card);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-light);
  -webkit-backdrop-filter: var(--glass-blur-light);
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  overflow: hidden;
  transition: border-color var(--duration-normal) ease,
              background var(--duration-normal) ease,
              transform var(--duration-normal) var(--ease-out-expo);
}

.bento-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* Glow dot on hover */
.bento-card::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
  pointer-events: none;
}

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

.bento-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 255, 136, 0.06);
  border: 1px solid rgba(0, 255, 136, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 20px;
  color: var(--accent-green);
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.bento-desc {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Feature card 5 (full-width) special layout */
.bento-card:nth-child(5) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.bento-card:nth-child(5) .bento-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg-strong);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  transition: border-color var(--duration-fast) ease,
              color var(--duration-fast) ease;
}

.provider-badge:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* ============================================================
   10. TERMINAL SHOWCASE
   ============================================================ */
.showcase {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.showcase-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
}

.showcase-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-content {
  position: relative;
  z-index: 2;
}

.showcase-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.showcase-terminal {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  background: rgba(6, 6, 10, 0.9);
  border: 1px solid var(--border-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.showcase-terminal .terminal-body {
  padding: 28px 32px;
}

.terminal-comment {
  color: var(--text-muted);
  font-style: italic;
}

.terminal-flag {
  color: var(--accent-cyan);
}

.terminal-line {
  display: block;
  margin-bottom: 4px;
}

.terminal-line + .terminal-line {
  margin-top: 12px;
}

.terminal-output {
  color: var(--text-muted);
  font-size: 13px;
}

.terminal-success {
  color: var(--accent-green);
}

/* ============================================================
   11. FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  text-align: center;
}

.footer-logo {
  font-family: var(--font-brand);
  font-size: 28px;
  color: var(--text-primary);
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-text {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.6;
}

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

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.btn-github--primary {
  background: var(--text-primary);
  color: var(--bg-void);
}

.btn-github--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.btn-github--outline {
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  background: transparent;
}

.btn-github--outline:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-github svg {
  width: 18px;
  height: 18px;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  max-width: 600px;
  justify-content: center;
}

.footer-meta-item {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: var(--space-xl);
}

/* ============================================================
   12. DECORATIVE FLORA OVERLAYS
   ============================================================ */
.flora-overlay {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.flora-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.flora--left {
  left: -10%;
  top: 20%;
  width: 300px;
  transform: scaleX(-1);
}

.flora--right {
  right: -10%;
  bottom: 10%;
  width: 350px;
}

/* ============================================================
   13. GLOW LINE ANIMATION
   ============================================================ */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.15), 0 0 30px rgba(0, 255, 136, 0.05);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.25), 0 0 50px rgba(0, 255, 136, 0.1);
  }
}

.glow-pulse {
  animation: glowPulse 3s ease-in-out infinite;
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float {
  animation: float 6s ease-in-out infinite;
}

/* ============================================================
   14. RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --container-padding: 32px;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bento-card:nth-child(1) { grid-column: 1 / 2; }
  .bento-card:nth-child(2) { grid-column: 2 / 3; }
  .bento-card:nth-child(3) { grid-column: 1 / 2; }
  .bento-card:nth-child(4) { grid-column: 2 / 3; }
  .bento-card:nth-child(5) { 
    grid-column: 1 / 3; 
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --space-4xl: 72px;
    --space-5xl: 96px;
  }

  /* Header mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 3, 5, 0.95);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-normal) var(--ease-out-expo);
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    font-size: 18px;
  }

  /* Hero mobile */
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
  }

  .hero-headline {
    font-size: clamp(28px, 7vw, 44px);
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn-cta,
  .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .terminal-card {
    width: 100%;
  }

  /* Blast radius mobile */
  .blast-comparison {
    grid-template-columns: 1fr;
  }

  .blast-panel {
    min-height: 320px;
  }

  /* Bento mobile */
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card:nth-child(1),
  .bento-card:nth-child(2),
  .bento-card:nth-child(3),
  .bento-card:nth-child(4),
  .bento-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .bento-card:nth-child(5) {
    grid-template-columns: 1fr;
  }

  /* Footer mobile */
  .footer-actions {
    flex-direction: column;
    width: 100%;
  }

  .footer-actions .btn-github {
    width: 100%;
    justify-content: center;
  }

  .footer-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 16px;
  }

  .logo-text {
    font-size: 26px;
  }

  .header-inner {
    height: 60px;
  }

  .hero-headline {
    font-size: clamp(24px, 8vw, 36px);
  }

  .section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .terminal-body {
    padding: 16px;
    font-size: 12px;
  }

  .bento-card {
    padding: var(--space-lg);
  }
}

/* ============================================================
   15. SCROLL-LINKED SEPARATOR
   ============================================================ */
.bloom-separator {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bloom-separator::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, transparent, var(--accent-green), transparent);
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.bloom-separator .bloom-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
  position: relative;
  z-index: 1;
}

/* ============================================================
   16. SPECIAL EFFECTS
   ============================================================ */

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Subtle scan line effect */
.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 5;
}

/* Info Architecture section (Bloom-style numbered list) */
.info-list {
  max-width: 700px;
  margin: 0 auto;
}

.info-list-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-body);
}

.info-list-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.info-list-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
}

.info-list-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
}

/* ============================================================
   17. BLUR-IN TEXT REVEAL (open-design.ai style)
   ============================================================ */
[data-blur-reveal] .blur-word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: translateY(-30px);
  will-change: transform, filter, opacity;
}

[data-blur-reveal][data-revealed="true"] .blur-word {
  animation: blurTextIn 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}

@keyframes blurTextIn {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(-30px);
  }
  40% {
    opacity: 0.6;
    filter: blur(4px);
    transform: translateY(4px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-blur-reveal] .blur-word {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}

/* ============================================================
   18. WORD-BY-WORD OPACITY REVEAL ON SCROLL
   ============================================================ */
[data-word-reveal] {
  line-height: 1.5;
}

[data-word-reveal] .reveal-word {
  opacity: 0.15;
  transition: opacity 0.12s linear;
  will-change: opacity;
}

/* ============================================================
   19. STAGGER ENTRANCE ANIMATION
   ============================================================ */
@keyframes staggerFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-in {
  animation: staggerFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ============================================================
   20. ENHANCED BLOOM SEPARATOR ANIMATION
   ============================================================ */
.bloom-separator::before {
  opacity: 0;
  transition: opacity 0.8s ease, height 0.8s ease;
  height: 0;
}

.bloom-separator .bloom-dot {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.5s ease 0.3s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s;
}

.bloom-separator.is-visible::before {
  opacity: 0.3;
  height: 60px;
}

.bloom-separator.is-visible .bloom-dot {
  opacity: 1;
  transform: scale(1);
}

/* ============================================================
   21. BENTO CARD MOUSE GLOW (follows cursor)
   ============================================================ */
.bento-card::after {
  content: '';
  position: absolute;
  top: var(--mouse-y, -200px);
  left: var(--mouse-x, -200px);
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-card > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   22. HERO ENTRANCE ANIMATION
   ============================================================ */
.hero-content .section-label {
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-content .hero-headline {
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.hero-content .hero-sub {
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.hero-content .hero-actions {
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
}

.hero-content .terminal-card {
  animation: heroEntrance 1s cubic-bezier(0.16, 1, 0.3, 1) 0.85s both;
}

@keyframes heroEntrance {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ============================================================
   23. SMOOTH LINE ANIMATION FOR TERMINAL SHOWCASE
   ============================================================ */
#showcase .terminal-line {
  opacity: 0;
  transform: translateX(-10px);
}

/* ============================================================
   24. ENHANCED HOVER INTERACTIONS
   ============================================================ */
.btn-cta,
.btn-github--primary {
  will-change: transform;
}

.btn-star {
  position: relative;
  overflow: hidden;
}

.btn-star::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 229, 255, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-star:hover::before {
  opacity: 1;
}
