/* ═══════════════════════════════════════════
   MIDDLEHUMAN — FUTURISTIC POSIVITY DESIGN SYSTEM v2
   ═══════════════════════════════════════════ */

:root {
  /* ── Backgrounds ── */
  --bg-primary: #FAF9F0;
  --bg-secondary: #F0EEE6;
  --bg-elevated: #FFFFFF;
  --bg-dark: #0F0F10;

  /* ── Warm Accents ── */
  --accent-coral: #D97757;
  --accent-coral-hover: #C4673A;
  --accent-coral-muted: rgba(217, 119, 87, 0.12);
  --accent-apricot: #F4A98A;
  --accent-gold: #F2CC8F;
  --accent-sage: #81B29A;
  --accent-sage-deep: #2D6A4F;
  --accent-lavender: #C5B8E0;
  --accent-sky: #A8DADC;
  --accent-steel: #5E7A94;

  /* ── Trust Blues ── */
  --ethics-blue: #1D3557;
  --ethics-blue-light: #2A4A7F;

  /* ── Text ── */
  --text-primary: #1A1612;
  --text-secondary: #3D405B;
  --text-muted: #6B5F4E;
  --text-faint: #9C8E7A;
  --text-on-dark: #FAF9F0;

  /* ── Borders ── */
  --hairline: rgba(120, 100, 75, 0.10);
  --hairline-strong: rgba(120, 100, 75, 0.20);

  /* ── Effects ── */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --shadow-soft: 0 4px 16px rgba(19, 19, 20, 0.06);
  --shadow-warm: 0 8px 32px rgba(217, 119, 87, 0.12);
  --shadow-card: 0 2px 12px rgba(19, 19, 20, 0.08);
  --shadow-glow: 0 0 40px rgba(217, 119, 87, 0.15);

  /* ── Typography ── */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* ── Fluid Type ── */
  --text-hero: clamp(3rem, 6vw + 1rem, 5.5rem);
  --text-h2: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  --text-h3: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
  --text-body: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* ── Spacing ── */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --content-width: 68ch;
  --container: 1200px;

  /* ── Animation ── */
  --ease-gentle: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 200ms;
  --duration-medium: 450ms;
  --duration-slow: 800ms;
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

/* ═══════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.section-pad { padding-top: var(--section-pad); padding-bottom: var(--section-pad); }

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

/* ═══════════════════════════════════════════
   ANIMATED MESH BACKGROUND (ENHANCED)
   ═══════════════════════════════════════════ */

.mesh-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.mesh-bg::before,
.mesh-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  will-change: transform;
}

.mesh-bg::before {
  width: 60vw; height: 60vw;
  background: var(--accent-apricot);
  top: -10%; left: -5%;
  animation: mesh-drift-1 25s ease-in-out infinite;
}

.mesh-bg::after {
  width: 50vw; height: 50vw;
  background: var(--accent-lavender);
  bottom: -15%; right: -10%;
  animation: mesh-drift-2 30s ease-in-out infinite;
}

.mesh-bg .orb-3 {
  position: absolute;
  width: 35vw; height: 35vw;
  background: var(--accent-gold);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  top: 40%; right: 20%;
  animation: mesh-drift-3 20s ease-in-out infinite;
}

.mesh-bg .orb-4 {
  position: absolute;
  width: 25vw; height: 25vw;
  background: var(--accent-sky);
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.25;
  top: 20%; right: 40%;
  animation: mesh-drift-1 22s ease-in-out infinite reverse;
}

@keyframes mesh-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(5vw, 3vw) scale(1.05); }
  66% { transform: translate(-3vw, 5vw) scale(0.95); }
}

@keyframes mesh-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-4vw, -3vw) scale(1.08); }
  66% { transform: translate(3vw, -5vw) scale(0.92); }
}

@keyframes mesh-drift-3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(4vw, -4vw); }
}

/* ═══════════════════════════════════════════
   REVEAL ANIMATIONS
   ═══════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out-soft), transform 0.7s var(--ease-out-soft);
}

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

/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--duration-medium) var(--ease-gentle);
  background: transparent;
}

.nav.scrolled {
  background: rgba(250, 249, 240, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
  padding: 0.75rem 0;
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-mark {
  width: 32px; height: 32px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-gentle);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent-coral);
  transition: width var(--duration-medium) var(--ease-out-soft);
}

.nav-links a:hover {
  color: var(--accent-coral);
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: var(--accent-coral);
  color: var(--text-on-dark) !important;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--duration-fast) var(--ease-gentle);
}

.nav-cta:hover {
  background: var(--accent-coral-hover);
  box-shadow: var(--shadow-warm);
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--duration-fast) var(--ease-gentle);
}

/* ═══════════════════════════════════════════
   HERO (ENHANCED WITH GENERATED IMAGE)
   ═══════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 600px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-coral);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-coral-muted);
  border-radius: var(--radius-pill);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-title .highlight {
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-apricot));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, var(--accent-coral), var(--accent-coral-hover));
  color: var(--text-on-dark);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: var(--text-body);
  transition: all var(--duration-fast) var(--ease-gentle);
  box-shadow: 0 4px 16px rgba(217, 119, 87, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(217, 119, 87, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--ethics-blue);
  border: 1.5px solid var(--ethics-blue);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: var(--text-body);
  transition: all var(--duration-fast) var(--ease-gentle);
}

.btn-secondary:hover {
  background: var(--ethics-blue);
  color: var(--text-on-dark);
  transform: translateY(-2px);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--duration-fast) var(--ease-gentle);
}

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

/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-coral);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-sub {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════
   PILLARS SECTION (3-column bento)
   ═══════════════════════════════════════════ */

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem 2.75rem;
  transition: all var(--duration-medium) var(--ease-gentle);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-coral), var(--accent-apricot));
  opacity: 0;
  transition: opacity var(--duration-medium) var(--ease-gentle);
}

.pillar-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
  border-color: transparent;
}

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

.pillar-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.pillar-card:nth-child(1) .pillar-icon { background: var(--accent-coral-muted); }
.pillar-card:nth-child(2) .pillar-icon { background: rgba(129, 178, 154, 0.15); }
.pillar-card:nth-child(3) .pillar-icon { background: rgba(242, 204, 143, 0.2); }

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.pillar-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ═══════════════════════════════════════════
   FUTURE SECTION (Two-column editorial with image)
   ═══════════════════════════════════════════ */

.future-section {
  position: relative;
  overflow: hidden;
}

.future-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.future-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.future-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.future-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   SINGULARITY BAND (NEW)
   ═══════════════════════════════════════════ */

.singularity-band {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.singularity-band .mesh-bg::before {
  background: rgba(217, 119, 87, 0.12);
}
.singularity-band .mesh-bg::after {
  background: rgba(197, 184, 224, 0.10);
}

.singularity-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}

.singularity-content .section-eyebrow {
  color: var(--accent-gold);
}

.singularity-content .section-title {
  color: var(--text-on-dark);
}

.singularity-content .section-sub {
  color: rgba(250, 249, 240, 0.7);
}

.singularity-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════
   PRINCIPLES SECTION
   ═══════════════════════════════════════════ */

.principles-section {
  background: var(--bg-secondary);
  position: relative;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.principle-card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  transition: all var(--duration-medium) var(--ease-gentle);
}

.principle-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.principle-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--accent-coral);
  background: var(--accent-coral-muted);
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.principle-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.principle-card p {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.55;
}

/* ═══════════════════════════════════════════
   VISION SECTION (Full-width band)
   ═══════════════════════════════════════════ */

.vision-band {
  background: linear-gradient(135deg, var(--ethics-blue) 0%, #0F1B2D 100%);
  color: var(--text-on-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vision-band .mesh-bg::before {
  background: rgba(168, 218, 220, 0.15);
}
.vision-band .mesh-bg::after {
  background: rgba(244, 169, 138, 0.12);
}

.vision-band .section-title {
  color: var(--text-on-dark);
}

.vision-band .section-sub {
  color: rgba(250, 249, 240, 0.75);
}

.vision-inner {
  position: relative;
  z-index: 1;
}

.vision-stats {
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 3rem;
  flex-wrap: wrap;
}

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

.vision-stat .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--accent-gold);
  display: block;
}

.vision-stat .stat-label {
  font-size: var(--text-sm);
  color: rgba(250, 249, 240, 0.65);
  margin-top: 0.25rem;
}

/* ═══════════════════════════════════════════
   FLOURISHING SECTION
   ═══════════════════════════════════════════ */

.flourishing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.flourish-card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--duration-medium) var(--ease-gentle);
}

.flourish-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.flourish-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.flourish-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.flourish-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   TIMELINE / PATHWAY SECTION
   ═══════════════════════════════════════════ */

.pathway-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.pathway-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}

.pathway-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-coral), var(--accent-lavender), var(--accent-sage), var(--accent-gold));
  z-index: 0;
}

.pathway-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 2px solid var(--accent-coral);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-coral);
  box-shadow: 0 0 0 6px var(--bg-primary);
}

.pathway-step:nth-child(2) .step-dot { border-color: var(--accent-lavender); color: var(--accent-lavender); }
.pathway-step:nth-child(3) .step-dot { border-color: var(--accent-sage); color: var(--accent-sage); }
.pathway-step:nth-child(4) .step-dot { border-color: var(--accent-gold); color: var(--accent-gold); }

.pathway-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.pathway-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   TESTIMONIAL / QUOTE SECTION
   ═══════════════════════════════════════════ */

.quote-section {
  background: var(--bg-elevated);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.quote-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--accent-apricot);
  line-height: 1;
  margin-bottom: 1rem;
}

.quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.quote-attribution {
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ═══════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════ */

.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-section .section-title {
  margin-bottom: 1rem;
}

.cta-section .section-sub {
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════ */

.newsletter-section {
  background: var(--bg-secondary);
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--text-primary);
  background: var(--bg-elevated);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-gentle);
}

.newsletter-form input:focus {
  border-color: var(--accent-coral);
}

.newsletter-form input::placeholder {
  color: var(--text-faint);
}

.newsletter-form button {
  padding: 0.875rem 1.75rem;
  background: var(--accent-coral);
  color: var(--text-on-dark);
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: var(--text-body);
  transition: all var(--duration-fast) var(--ease-gentle);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--accent-coral-hover);
  box-shadow: var(--shadow-warm);
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */

.footer {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-top: 1px solid rgba(217, 119, 87, 0.15);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(250, 249, 240, 0.6);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 300px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(250, 249, 240, 0.5);
  margin-bottom: 1.25rem;
}

.footer-links a {
  display: block;
  color: rgba(250, 249, 240, 0.7);
  font-size: 0.9rem;
  padding: 0.35rem 0;
  transition: color var(--duration-fast) var(--ease-gentle);
}

.footer-links a:hover {
  color: var(--accent-apricot);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 249, 240, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(250, 249, 240, 0.4);
  font-size: var(--text-sm);
}

.footer-social {
  display: flex;
  gap: 1.25rem;
}

.footer-social a {
  color: rgba(250, 249, 240, 0.5);
  font-size: 0.85rem;
  transition: color var(--duration-fast) var(--ease-gentle);
}

.footer-social a:hover {
  color: var(--accent-apricot);
}

/* ═══════════════════════════════════════════
   VIGNETTE SECTION
   ═══════════════════════════════════════════ */

.vignette-section {
  background: var(--bg-secondary);
}

.vignette-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.vignette-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.vignette-content p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.vignette-scene {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.vignette-scene::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-sage), var(--accent-sky), var(--accent-lavender));
}

.vignette-scene h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.vignette-scene p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.vignette-scene .scene-marker {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-sage);
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════
   AI NEWS SECTION
   ═══════════════════════════════════════════ */

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.news-card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--duration-medium) var(--ease-gentle);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
  border-color: var(--accent-coral);
}

.news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.news-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-coral);
  background: var(--accent-coral-muted);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
}

.news-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.news-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.news-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.news-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--accent-coral);
  transition: color var(--duration-fast) var(--ease-gentle);
  margin-top: auto;
}

.news-link:hover {
  color: var(--accent-coral-hover);
}

/* ═══════════════════════════════════════════
   OCTOPUS / ALIEN MIND SECTION
   ═══════════════════════════════════════════ */

.octopus-section {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}

.octopus-section .mesh-bg::before {
  background: rgba(129, 178, 154, 0.10);
}
.octopus-section .mesh-bg::after {
  background: rgba(168, 218, 220, 0.08);
}

.octopus-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.octopus-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.octopus-emblem {
  width: 220px; height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(129,178,154,0.15) 0%, rgba(129,178,154,0) 70%);
  position: relative;
  font-size: 6rem;
}

.octopus-emblem::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(129, 178, 154, 0.3);
  animation: emblem-pulse 4s ease-in-out infinite;
}

.octopus-content .section-eyebrow {
  color: var(--accent-sage);
}

.octopus-content .section-title {
  color: var(--text-on-dark);
}

.octopus-content .section-sub {
  color: rgba(250, 249, 240, 0.7);
  line-height: 1.7;
}

.octopus-content p {
  color: rgba(250, 249, 240, 0.7);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { max-width: 100%; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 360px; }

  .pillars-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .future-grid { grid-template-columns: 1fr; text-align: center; }
  .singularity-inner { grid-template-columns: 1fr; text-align: center; }
  .octopus-inner { grid-template-columns: 1fr; text-align: center; }
  .vignette-grid { grid-template-columns: 1fr; text-align: center; }
  .octopus-emblem { margin: 0 auto; }
  .singularity-visual img { margin: 0 auto; }
  .principles-grid { grid-template-columns: 1fr; }
  .flourishing-grid { grid-template-columns: repeat(2, 1fr); }
  .pathway-steps { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .pathway-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(250, 249, 240, 0.95);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-bottom: 1px solid var(--hairline);
    gap: 1rem;
  }

  .news-grid { grid-template-columns: 1fr; }
  .flourishing-grid { grid-template-columns: 1fr; }
  .pathway-steps { grid-template-columns: 1fr; }
  .vision-stats { flex-direction: column; gap: 2rem; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════
   CSS LOGO SYMBOL
   ═══════════════════════════════════════════ */

.logo-symbol {
  width: 32px; height: 32px;
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.logo-symbol::before,
.logo-symbol::after {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  border-radius: 50%;
  top: 50%; left: 50%;
}

.logo-symbol::before {
  background: var(--accent-coral);
  transform: translate(-60%, -50%);
  opacity: 0.85;
}

.logo-symbol::after {
  background: var(--accent-lavender);
  transform: translate(-40%, -50%);
  opacity: 0.85;
}

.logo-symbol-star {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 8px; height: 8px;
  background: var(--accent-gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  z-index: 1;
}

/* ═══════════════════════════════════════════
   HERO EMBLEM
   ═══════════════════════════════════════════ */

.hero-emblem {
  width: 280px; height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent-coral);
  opacity: 0.3;
  animation: emblem-pulse 6s ease-in-out infinite;
}

.emblem-ring:nth-child(1) {
  width: 100%; height: 100%;
  border-color: var(--accent-coral);
}

.emblem-ring:nth-child(2) {
  width: 70%; height: 70%;
  border-color: var(--accent-lavender);
  animation-delay: -2s;
}

.emblem-ring:nth-child(3) {
  width: 40%; height: 40%;
  border-color: var(--accent-gold);
  animation-delay: -4s;
}

.emblem-core {
  font-size: 2.5rem;
  color: var(--accent-coral);
  position: relative;
  z-index: 1;
}

@keyframes emblem-pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.15; }
}

/* ═══════════════════════════════════════════
   NETWORK EMBLEM
   ═══════════════════════════════════════════ */

.network-emblem {
  width: 280px; height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-lines {
  position: absolute;
  top: 0; left: 0;
}

.network-node {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent-coral);
  box-shadow: 0 0 12px rgba(217, 119, 87, 0.4);
}

.network-node:nth-child(1) { top: 15%; left: 50%; transform: translateX(-50%); }
.network-node:nth-child(2) { top: 50%; right: 10%; transform: translateY(-50%); background: var(--accent-lavender); box-shadow: 0 0 12px rgba(197, 184, 224, 0.4); }
.network-node:nth-child(3) { bottom: 15%; left: 50%; transform: translateX(-50%); background: var(--accent-gold); box-shadow: 0 0 12px rgba(242, 204, 143, 0.4); }
.network-node:nth-child(4) { top: 50%; left: 10%; transform: translateY(-50%); }
.network-node:nth-child(5) {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-coral);
}

/* ═══════════════════════════════════════════
   SINGULARITY EMBLEM
   ═══════════════════════════════════════════ */

.singularity-emblem {
  width: 200px; height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217,119,87,0.15) 0%, rgba(217,119,87,0) 70%);
  position: relative;
}

.singularity-emblem::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid rgba(242, 204, 143, 0.3);
  animation: emblem-pulse 4s ease-in-out infinite;
}

.sg-char {
  font-size: 5rem;
  font-family: var(--font-display);
  color: var(--accent-gold);
  line-height: 1;
  opacity: 0.8;
}

/* ═══════════════════════════════════════════
   SOLARPUNK BANNER
   ═══════════════════════════════════════════ */

.solarpunk-banner {
  background: linear-gradient(135deg, rgba(129, 178, 154, 0.08), rgba(242, 204, 143, 0.08));
  border: 1px solid var(--hairline);
}

/* ═══════════════════════════════════════════
   HERO TICKER
   ═══════════════════════════════════════════ */

.hero-ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.6rem 1rem;
  background: rgba(217, 119, 87, 0.08);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  max-width: 560px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-sage);
  flex-shrink: 0;
  animation: ticker-pulse 2s ease-in-out infinite;
}

@keyframes ticker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-emblem-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: 1rem;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════
   RANKINGS SECTION
   ═══════════════════════════════════════════ */

.rankings-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
}

.ranking-card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  transition: all var(--duration-medium) var(--ease-gentle);
  position: relative;
  overflow: hidden;
}

.ranking-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
  border-color: var(--accent-coral);
}

.ranking-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-coral), var(--accent-apricot));
  opacity: 0;
  transition: opacity var(--duration-medium) var(--ease-gentle);
}

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

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.rank-1 .rank-badge { background: linear-gradient(135deg, #FFD700, #FFA500); color: #5C3D00; }
.rank-2 .rank-badge { background: linear-gradient(135deg, #C0C0C0, #A0A0A0); color: #333; }
.rank-3 .rank-badge { background: linear-gradient(135deg, #CD7F32, #A0522D); color: #FFF; }
.rank-n .rank-badge { background: var(--accent-coral-muted); color: var(--accent-coral); }

.ranking-card .model-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.ranking-card .model-provider {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}

.ranking-card .model-score {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent-coral);
  margin-bottom: 0.25rem;
}

.ranking-card .model-metric {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ranking-card .model-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ranking-card .model-price {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-sage);
  background: rgba(129, 178, 154, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  margin-top: 0.75rem;
}

.rankings-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

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

@media (max-width: 768px) {
  .rankings-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-ticker { white-space: normal; }
}

/* ═══════════════════════════════════════════
   BENCHMARK TABLE
   ═══════════════════════════════════════════ */

.benchmark-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.benchmark-table th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-secondary);
}

.benchmark-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--hairline);
}

.benchmark-table tr:last-child td {
  border-bottom: none;
}

.benchmark-table tr:hover td {
  background: rgba(217, 119, 87, 0.04);
}

.bench-score {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent-coral);
}

.bench-bar {
  display: inline-block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-coral), var(--accent-apricot));
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════
   FRAMEWORK COMPARISON
   ═══════════════════════════════════════════ */

.framework-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.framework-card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: all var(--duration-medium) var(--ease-gentle);
}

.framework-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.framework-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.framework-card .fw-best {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-sage);
  margin-bottom: 1rem;
}

.framework-card .fw-stat {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent-coral);
  margin-bottom: 0.25rem;
}

.framework-card .fw-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .framework-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   OPEN SOURCE SECTION
   ═══════════════════════════════════════════ */

.opensource-section {
  background: var(--bg-secondary);
}

.os-card {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all var(--duration-medium) var(--ease-gentle);
}

.os-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.os-card .os-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.os-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.os-card .os-meta {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--accent-sage);
  margin-bottom: 0.5rem;
}

.os-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .mesh-bg::before, .mesh-bg::after,
  .mesh-bg .orb-3, .mesh-bg .orb-4, .ticker-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
