/* ============================================================
   MEALGORITHM LANDING PAGE — STYLE SHEET
   Engineering Blueprint Aesthetic + Material 3 Colors
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand Colors (from app theme) */
  --ink-blue: #233466;
  --ink-blue-rgb: 35, 52, 102;
  --gold: #DBC66E;
  --gold-light: #F8E287;
  --gold-rgb: 219, 198, 110;
  --cream: #FFF9EE;
  --cream-dark: #F5EDDC;
  --green-soft: #A9D0B3;
  --green-light: #C5ECCE;
  --error-red: #BA1A1A;

  /* Neutrals */
  --white: #FFFFFF;
  --black: #0A0A0A;
  --gray-50: #FAFAFA;
  --gray-100: #F0EDE6;
  --gray-200: #E0DCD2;
  --gray-300: #C5C0B4;
  --gray-400: #9A9588;
  --gray-500: #706B5F;
  --gray-600: #4A4640;
  --gray-700: #2E2B27;
  --gray-800: #1A1816;

  /* Typography */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Blueprint grid */
  --grid-color: rgba(35, 52, 102, 0.04);
  --grid-size: 40px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-display);
  background-color: var(--cream);
  color: var(--ink-blue);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Blueprint Grid Background ---- */
.blueprint-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
}

/* ---- Selection ---- */
::selection {
  background: rgba(var(--gold-rgb), 0.3);
  color: var(--ink-blue);
}

/* ---- Utility Classes ---- */
.text-accent {
  color: var(--gold);
  position: relative;
}

/* ---- Links ---- */
a {
  color: inherit;
  text-decoration: none;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav--scrolled {
  background: rgba(255, 249, 238, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(var(--ink-blue-rgb), 0.08);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  z-index: 10;
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
}

.nav__links {
  display: flex;
  gap: var(--space-xl);
}

.nav__link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.6;
  transition: opacity 0.3s ease, color 0.3s ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover {
  opacity: 1;
}

.nav__link:hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink-blue);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out-expo);
}

.nav__mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav__mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255, 249, 238, 0.98);
  backdrop-filter: blur(20px);
  padding: var(--space-lg) var(--space-xl);
  flex-direction: column;
  gap: var(--space-md);
  border-bottom: 1px solid rgba(var(--ink-blue-rgb), 0.08);
  transform: translateY(-10px);
  opacity: 0;
  transition: all 0.3s var(--ease-out-expo);
}

.nav__mobile-menu.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  z-index: 1;
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: rgba(var(--ink-blue-rgb), 0.05);
  border: 1px solid rgba(var(--ink-blue-rgb), 0.1);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--gray-500);
  margin-bottom: var(--space-lg);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green-soft);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero__title {
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.hero__title-accent::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: 0;
  right: 0;
  height: 0.08em;
  background: var(--gold);
  opacity: 0.3;
  border-radius: 2px;
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--gray-500);
  max-width: 480px;
  margin-bottom: var(--space-2xl);
}

.hero__subtitle-highlight {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-blue);
  background: rgba(var(--gold-rgb), 0.15);
  padding: 0.1em 0.4em;
  border-radius: 4px;
}

/* Buttons */
.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--ink-blue);
  color: var(--cream);
}

.btn--primary:hover {
  background: #1a274d;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(var(--ink-blue-rgb), 0.25);
}

.btn--primary svg {
  transition: transform 0.3s var(--ease-out-expo);
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-blue);
  border: 1.5px solid rgba(var(--ink-blue-rgb), 0.2);
}

.btn--ghost:hover {
  border-color: var(--ink-blue);
  background: rgba(var(--ink-blue-rgb), 0.04);
  transform: translateY(-2px);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 0.95rem;
  border-radius: 14px;
}

/* Phone Blueprint */
.hero__visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-blueprint {
  position: relative;
  width: 300px;
  filter: drop-shadow(0 20px 60px rgba(var(--ink-blue-rgb), 0.08));
}

.phone-blueprint__svg {
  width: 100%;
  height: auto;
}

/* SVG Draw Animation */
.draw-line {
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw 2s var(--ease-out-expo) forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* Phone Annotations */
.phone-annotation {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeSlideIn 0.6s var(--ease-out-expo) forwards;
}

.phone-annotation--1 {
  top: 12%;
  right: -30%;
  animation-delay: 2.4s;
}

.phone-annotation--2 {
  top: 45%;
  right: -35%;
  animation-delay: 2.6s;
}

.phone-annotation--3 {
  top: 70%;
  right: -28%;
  animation-delay: 2.8s;
}

.phone-annotation__line {
  width: 40px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.phone-annotation__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gray-400);
  white-space: nowrap;
  padding: 3px 8px;
  background: rgba(var(--gold-rgb), 0.08);
  border: 1px solid rgba(var(--gold-rgb), 0.2);
  border-radius: 4px;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll Indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0.4;
  animation: fadeInUp 1s ease 3s both;
}

.hero__scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--ink-blue);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--ink-blue);
  border-radius: 3px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* GOAP Graph Animation */
.annotation-group {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: inherit;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 0.4; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   SECTIONS — SHARED
   ============================================================ */
section {
  position: relative;
  z-index: 1;
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-5xl) var(--space-xl);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-md);
}

.section__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: var(--space-md) auto 0;
  line-height: 1.7;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-2xl);
  border-radius: 20px;
  background: var(--white);
  border: 1px solid rgba(var(--ink-blue-rgb), 0.06);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(var(--ink-blue-rgb), 0.08);
  border-color: rgba(var(--gold-rgb), 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card--highlight {
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.06), rgba(var(--ink-blue-rgb), 0.02));
  border-color: rgba(var(--gold-rgb), 0.15);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
  color: var(--ink-blue);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.feature-card__desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

.feature-card__desc em {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  font-style: normal;
  background: rgba(var(--gold-rgb), 0.1);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

.feature-card__tag {
  display: inline-block;
  margin-top: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25em 0.6em;
  border-radius: 4px;
  background: rgba(var(--ink-blue-rgb), 0.06);
  color: var(--gray-400);
}

.feature-card__tag--accent {
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--gold);
}

/* ============================================================
   PIPELINE (HOW IT WORKS)
   ============================================================ */
.how-it-works {
  background: var(--ink-blue);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.how-it-works .section__label {
  color: var(--gold-light);
}

.how-it-works .text-accent {
  color: var(--gold-light);
}

.pipeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.pipeline__track {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.pipeline__progress {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--gold), var(--green-soft));
  transition: height 0.1s linear;
  border-radius: 2px;
}

.pipeline__step {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  position: relative;
}

.pipeline__node {
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-blue);
  position: relative;
  z-index: 2;
  transition: all 0.4s var(--ease-out-expo);
}

.pipeline__step.in-view .pipeline__node {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(var(--gold-rgb), 0.2);
}

.pipeline__number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.4s ease;
}

.pipeline__step.in-view .pipeline__number {
  color: var(--gold);
}

.pipeline__content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.pipeline__content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   GOAP ENGINE SECTION
   ============================================================ */
.goap__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-4xl);
  align-items: center;
}

.goap__desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.7;
  margin-top: var(--space-lg);
}

.goap__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.goap__stat {
  padding: var(--space-lg);
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(var(--ink-blue-rgb), 0.06);
}

.goap__stat-value {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-blue);
  line-height: 1;
}

.goap__stat-suffix {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold);
}

.goap__stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-top: var(--space-xs);
  letter-spacing: 0.03em;
}

/* GOAP Graph SVG */
.goap__visual {
  display: flex;
  justify-content: center;
}

.goap-graph {
  width: 100%;
  max-width: 500px;
  height: auto;
}

.goap-node {
  opacity: 0;
  animation: goapNodeIn 0.6s var(--ease-out-expo) forwards;
  animation-delay: var(--delay, 0s);
}

.goap-line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: drawLine 0.8s var(--ease-out-expo) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes goapNodeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

/* ============================================================
   CODE SHOWCASE (COOKLANG)
   ============================================================ */
.recipe-format {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.code-showcase {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.code-window {
  background: #1E1E2E;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 20px 60px rgba(var(--ink-blue-rgb), 0.15);
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: #181825;
}

.code-window__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-window__dot--red { background: #F38BA8; }
.code-window__dot--yellow { background: #F9E2AF; }
.code-window__dot--green { background: #A6E3A1; }

.code-window__filename {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 8px;
}

.code-window__content {
  padding: var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.9;
  color: #CDD6F4;
  overflow-x: auto;
}

.code-comment { color: #6C7086; }
.code-ingredient { color: #F9E2AF; font-weight: 600; }
.code-container { color: #89B4FA; font-weight: 600; }
.code-temp { color: #F38BA8; font-weight: 600; }
.code-time { color: #A6E3A1; font-weight: 600; }

/* Code Annotations */
.code-annotations {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding-top: var(--space-xl);
}

.code-annotation {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-lg);
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(var(--ink-blue-rgb), 0.06);
  transition: all 0.3s var(--ease-out-expo);
}

.code-annotation:hover {
  transform: translateX(4px);
  border-color: rgba(var(--gold-rgb), 0.3);
}

.code-annotation__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--gold-rgb), 0.1);
  color: var(--gold);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.code-annotation strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.code-annotation p {
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.5;
}

/* ============================================================
   TECH STACK
   ============================================================ */
.tech {
  background: var(--white);
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.tech-card {
  padding: var(--space-xl);
  border-radius: 14px;
  border: 1px solid rgba(var(--ink-blue-rgb), 0.06);
  background: var(--cream);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(var(--ink-blue-rgb), 0.06);
  border-color: rgba(var(--gold-rgb), 0.2);
}

.tech-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.tech-card__icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-blue);
  color: var(--gold-light);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
}

.tech-card__name {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.tech-card p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ============================================================
   CATEGORIES MARQUEE
   ============================================================ */
.categories__marquee {
  overflow: hidden;
  margin-top: var(--space-2xl);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.categories__track {
  display: flex;
  gap: var(--space-md);
  animation: marquee 30s linear infinite;
  width: max-content;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.category-pill {
  flex-shrink: 0;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  background: var(--white);
  border: 1px solid rgba(var(--ink-blue-rgb), 0.1);
  color: var(--ink-blue);
}

.category-pill--accent {
  background: rgba(var(--gold-rgb), 0.1);
  border-color: rgba(var(--gold-rgb), 0.2);
  color: var(--gold);
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta {
  background: linear-gradient(135deg, var(--ink-blue) 0%, #1a274d 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.cta .section__inner {
  position: relative;
  z-index: 2;
}

.cta__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.cta .text-accent {
  color: var(--gold-light);
}

.cta__desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.cta__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.cta .btn--primary {
  background: var(--gold);
  color: var(--ink-blue);
}

.cta .btn--primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 30px rgba(var(--gold-rgb), 0.3);
}

.cta__note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* CTA Blueprint decorations */
.cta__blueprint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.cta__blueprint-svg {
  position: absolute;
  opacity: 0.4;
}

.cta__blueprint-svg--1 {
  width: 300px;
  top: -50px;
  left: -80px;
  animation: floatSlow 20s ease-in-out infinite;
}

.cta__blueprint-svg--2 {
  width: 250px;
  bottom: -60px;
  right: -60px;
  animation: floatSlow 25s ease-in-out infinite reverse;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -15px) rotate(2deg); }
  50% { transform: translate(-5px, 10px) rotate(-1deg); }
  75% { transform: translate(15px, 5px) rotate(1.5deg); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: var(--space-2xl) var(--space-xl);
  position: relative;
  z-index: 1;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__logo {
  width: 28px;
  height: 28px;
}

.footer__name {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--cream);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer__links a:hover {
  opacity: 1;
}

.footer__meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  opacity: 0.35;
}

.footer__separator {
  margin: 0 var(--space-sm);
}

/* ============================================================
   REVEAL ANIMATIONS (Scroll-triggered)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays */
.reveal[data-delay="50"] { transition-delay: 50ms; }
.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="150"] { transition-delay: 150ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="250"] { transition-delay: 250ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="350"] { transition-delay: 350ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }
.reveal[data-delay="450"] { transition-delay: 450ms; }
.reveal[data-delay="500"] { transition-delay: 500ms; }
.reveal[data-delay="600"] { transition-delay: 600ms; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .phone-blueprint {
    width: 240px;
  }

  .phone-annotation {
    display: none;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .goap__layout {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .goap__text {
    text-align: center;
  }

  .code-showcase {
    grid-template-columns: 1fr;
  }

  .tech__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 640px) {
  :root {
    --space-xl: 1.25rem;
    --space-2xl: 2rem;
    --space-3xl: 2.5rem;
    --space-4xl: 3.5rem;
    --space-5xl: 5rem;
    --nav-height: 64px;
  }

  .nav__links {
    display: none;
  }

  .nav__mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--nav-height) + var(--space-xl));
    min-height: auto;
    padding-bottom: var(--space-4xl);
  }

  .hero__title {
    font-size: 2.3rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .phone-blueprint {
    width: 200px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: var(--space-xl);
  }

  .pipeline__step {
    gap: var(--space-md);
  }

  .pipeline__node {
    width: 46px;
    height: 46px;
  }

  .pipeline__track {
    left: 22px;
  }

  .pipeline__content h3 {
    font-size: 1.1rem;
  }

  .goap__stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .goap__stat {
    padding: var(--space-md);
  }

  .goap__stat-value {
    font-size: 1.5rem;
  }

  .tech__grid {
    grid-template-columns: 1fr;
  }

  .code-window__content {
    font-size: 0.72rem;
    padding: var(--space-md);
  }

  .code-annotations {
    gap: var(--space-md);
  }

  .code-annotation {
    padding: var(--space-md);
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    gap: var(--space-lg);
  }

  .btn {
    padding: 0.75rem 1.3rem;
    font-size: 0.8rem;
  }

  .btn--large {
    padding: 0.85rem 1.6rem;
  }

  .cta__title {
    font-size: 2rem;
  }
}

/* ============================================================
   ACCESSIBILITY — REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .draw-line {
    stroke-dashoffset: 0;
  }

  .goap-node {
    opacity: 1;
  }

  .goap-line {
    stroke-dashoffset: 0;
  }

  .categories__track {
    animation: none;
  }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .nav,
  .blueprint-grid,
  .hero__scroll-indicator,
  .cta__blueprint {
    display: none;
  }

  body {
    background: white;
    color: black;
  }
}
