/* ============================
   LANDING PAGE — Homer Agent Funnel
   Dark OpenClaw aesthetic + Simpsons accents
   Reuses :root variables from style.css
   ============================ */

/* === GLOBAL LANDING === */
.landing-page {
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  height: auto;
  overflow-y: auto;
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  transition: all 0.35s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.navbar.hidden {
  transform: translateY(-100%);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-brand-icon {
  font-size: 1.1rem;
  color: var(--accent);
  display: flex;
  align-items: center;
}
.nav-brand-text {
  font-family: "Simpsonfont", cursive;
  font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-tertiary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-cta {
  padding: 8px 20px;
  font-family: "Simpsonfont", "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1.5px solid rgba(253, 216, 53, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-left: 6px;
}
.nav-cta:hover {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
  overflow: hidden;
  background: url('640250735_897237429736236_8218658532225793599_n.jpg') center center / cover no-repeat;
}

/* Dark overlay so text stays readable over the bright image */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 15, 0.75) 0%,
    rgba(5, 5, 15, 0.55) 40%,
    rgba(5, 5, 15, 0.65) 70%,
    rgba(10, 10, 15, 0.90) 100%
  );
  z-index: 1;
}

.hero-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(ellipse, rgba(253, 216, 53, 0.07) 0%, rgba(253, 216, 53, 0.02) 40%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  animation: glow-breathe 6s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1; transform: translateX(-50%) scale(1.05); }
}

/* === SPRINGFIELD SKY — hidden (image.png replaces these) === */
.sky-stars,
.cloud,
.sky-horizon-glow,
.skyline-svg {
  display: none;
}

.sky-stars-legacy {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.sky-stars::before,
.sky-stars::after {
  content: '';
  position: absolute;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  background: transparent;
}
.sky-stars::before {
  box-shadow:
    82px 48px 0 0.5px rgba(255,255,255,0.35),
    230px 95px 0 0.5px rgba(255,255,255,0.25),
    378px 22px 0 1px rgba(255,255,255,0.45),
    520px 140px 0 0.5px rgba(255,255,255,0.2),
    645px 70px 0 0.5px rgba(255,255,255,0.35),
    780px 38px 0 1px rgba(255,255,255,0.3),
    920px 110px 0 0.5px rgba(255,255,255,0.25),
    1050px 55px 0 0.5px rgba(255,255,255,0.4),
    1180px 88px 0 0.5px rgba(255,255,255,0.2),
    1320px 30px 0 1px rgba(255,255,255,0.35),
    150px 200px 0 0.5px rgba(255,255,255,0.18),
    420px 175px 0 0.5px rgba(255,255,255,0.15),
    700px 210px 0 0.5px rgba(255,255,255,0.18),
    990px 195px 0 0.5px rgba(255,255,255,0.15),
    1250px 165px 0 0.5px rgba(255,255,255,0.2);
  animation: twinkle-a 5s ease-in-out infinite alternate;
}
.sky-stars::after {
  box-shadow:
    55px 130px 0 0.5px rgba(255,255,255,0.3),
    185px 160px 0 0.5px rgba(255,255,255,0.2),
    310px 58px 0 0.5px rgba(255,255,255,0.35),
    450px 105px 0 1px rgba(255,255,255,0.25),
    580px 35px 0 0.5px rgba(255,255,255,0.3),
    725px 150px 0 0.5px rgba(255,255,255,0.2),
    855px 78px 0 0.5px rgba(255,255,255,0.4),
    1000px 25px 0 1px rgba(255,255,255,0.3),
    1120px 142px 0 0.5px rgba(255,255,255,0.25),
    1280px 72px 0 0.5px rgba(255,255,255,0.35),
    40px 248px 0 0.5px rgba(255,255,255,0.12),
    500px 238px 0 0.5px rgba(255,255,255,0.1),
    850px 255px 0 0.5px rgba(255,255,255,0.12),
    1150px 228px 0 0.5px rgba(255,255,255,0.1),
    1380px 218px 0 0.5px rgba(255,255,255,0.15);
  animation: twinkle-b 7s ease-in-out infinite alternate;
}
@keyframes twinkle-a {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 0.45; }
}
@keyframes twinkle-b {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 0.85; }
}

/* === SPRINGFIELD SKY — Clouds === */
.cloud {
  position: absolute;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.018);
  z-index: 1;
  pointer-events: none;
}
.cloud::before,
.cloud::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud-1 {
  width: 180px;
  height: 35px;
  top: 12%;
  left: -220px;
  animation: cloud-drift 90s linear infinite;
}
.cloud-1::before { width: 55px; height: 55px; top: -22px; left: 40px; }
.cloud-1::after  { width: 40px; height: 40px; top: -14px; left: 100px; }

.cloud-2 {
  width: 250px;
  height: 45px;
  top: 26%;
  right: -300px;
  animation: cloud-drift-rev 120s linear infinite;
}
.cloud-2::before { width: 70px; height: 70px; top: -28px; left: 55px; }
.cloud-2::after  { width: 55px; height: 55px; top: -20px; left: 140px; }

.cloud-3 {
  width: 140px;
  height: 28px;
  top: 40%;
  left: -180px;
  animation: cloud-drift 70s linear 15s infinite;
}
.cloud-3::before { width: 42px; height: 42px; top: -17px; left: 30px; }
.cloud-3::after  { width: 32px; height: 32px; top: -10px; left: 75px; }

@keyframes cloud-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 400px)); }
}
@keyframes cloud-drift-rev {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100vw - 500px)); }
}

/* === SPRINGFIELD SKY — Horizon glow === */
.sky-horizon-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(253, 216, 53, 0.035) 0%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

/* === SPRINGFIELD SKYLINE === */
.skyline-svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 170px;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  gap: 14px;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(253, 216, 53, 0.2);
  padding: 6px 18px;
  border-radius: 30px;
  animation: hero-text-in 0.6s ease-out 0.1s both;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--springfield-green);
  box-shadow: 0 0 8px rgba(102, 187, 106, 0.6);
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* Heading */
.hero-heading {
  font-family: "Simpsonfont", cursive;
  font-size: 3.2rem;
  line-height: 1.1;
  letter-spacing: 2px;
  animation: hero-text-in 0.6s ease-out 0.25s both;
}
.hero-heading .accent {
  color: var(--accent);
  display: block;
  text-shadow: 0 0 40px rgba(253, 216, 53, 0.15);
}

/* Subtitle */
.hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  animation: hero-text-in 0.6s ease-out 0.45s both;
}

/* CTA group */
.hero-cta-group {
  display: flex;
  gap: 14px;
  align-items: center;
  animation: hero-text-in 0.6s ease-out 0.6s both;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: "Simpsonfont", "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(253, 216, 53, 0.2);
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(253, 216, 53, 0.35);
}
.cta-primary:active {
  transform: translateY(0);
}
.cta-large {
  padding: 18px 44px;
  font-size: 1.1rem;
}

.cta-secondary {
  padding: 14px 28px;
  font-family: "Simpsonfont", "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border: 1.5px solid var(--border-active);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.cta-secondary:hover {
  color: var(--text-primary);
  border-color: var(--text-tertiary);
  background: var(--bg-hover);
}

/* === HERO TERMINAL === */
.hero-terminal {
  width: 100%;
  max-width: 560px;
  margin-top: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  animation: hero-text-in 0.8s ease-out 0.8s both;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(253, 216, 53, 0.05);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: var(--bart-red); }
.terminal-dot.yellow { background: var(--accent); }
.terminal-dot.green { background: var(--springfield-green); }
.terminal-title {
  margin-left: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

.terminal-body {
  padding: 14px 16px;
  min-height: 100px;
  font-size: 0.8rem;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.terminal-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.user-label {
  color: var(--homer-blue);
  font-weight: 600;
  margin-right: 8px;
}
.homer-label {
  color: var(--accent);
  font-weight: 600;
  margin-right: 8px;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  background: var(--springfield-green-dim);
  color: var(--springfield-green);
  padding: 3px 12px;
  border-radius: 20px;
}

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

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

/* === DONUT RAIN === */
.donut-rain {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.donut-particle {
  position: absolute;
  top: -40px;
  width: var(--d-size, 16px);
  height: var(--d-size, 16px);
  border-radius: 50%;
  border: 3px solid var(--donut-pink);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(244, 143, 177, 0.3);
  animation: donut-fall linear infinite;
  animation-delay: var(--d-delay, 0s);
  animation-duration: var(--d-dur, 14s);
  opacity: 0;
  user-select: none;
}
/* Frosting bite mark on each donut */
.donut-particle::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -1px;
  width: 40%;
  height: 40%;
  background: var(--bg-primary);
  border-radius: 50%;
}

@keyframes donut-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  5%   { opacity: 0.15; }
  50%  { transform: translateY(50vh) rotate(180deg); opacity: 0.12; }
  95%  { opacity: 0.08; }
  100% { transform: translateY(calc(100vh + 60px)) rotate(360deg); opacity: 0; }
}

/* === STATS BAR === */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 22px 40px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.stat-pill strong {
  color: var(--text-primary);
  font-weight: 700;
}
.stat-icon { font-size: 0.95rem; }
.stat-icon-lu { font-size: 0.85rem; color: var(--text-tertiary); }
.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--springfield-green);
  box-shadow: 0 0 6px rgba(102, 187, 106, 0.5);
}
.stat-divider {
  width: 1px;
  height: 16px;
  background: var(--border-light);
}

/* === HOW IT WORKS === */
.how-section {
  position: relative;
  padding: 100px 40px;
  background: url('image2.png') center center / cover no-repeat;
}
.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.93) 0%,
    rgba(10, 10, 15, 0.72) 40%,
    rgba(10, 10, 15, 0.72) 60%,
    rgba(10, 10, 15, 0.93) 100%
  );
  z-index: 0;
}
.how-section > * {
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-family: "Simpsonfont", cursive;
  font-size: 2.8rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step-card {
  flex: 1;
  max-width: 300px;
  text-align: center;
  padding: 32px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
}
.step-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.step-number {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inverse);
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(253, 216, 53, 0.3);
}

.step-icon-wrap {
  font-size: 1.6rem;
  margin-bottom: 16px;
  margin-top: 8px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(253, 216, 53, 0.15);
  margin-left: auto;
  margin-right: auto;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 60px;
  flex-shrink: 0;
  width: 40px;
}

/* === FEATURES SECTION === */
.features-section {
  position: relative;
  padding: 100px 40px;
  background: url('image.png') center center / cover no-repeat;
  border-top: 1px solid var(--border);
}
.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.93) 0%,
    rgba(10, 10, 15, 0.70) 40%,
    rgba(10, 10, 15, 0.70) 60%,
    rgba(10, 10, 15, 0.93) 100%
  );
  z-index: 0;
}
.features-section > * {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--card-accent, var(--accent));
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--border-active);
  border-left-color: var(--card-accent, var(--accent));
  background: var(--bg-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrap {
  font-size: 1.3rem;
  margin-bottom: 14px;
  color: var(--card-accent, var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
}
.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.feature-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.feature-mini {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.mini-label {
  color: var(--text-secondary);
  font-weight: 500;
}
.mini-value {
  color: var(--accent);
}
.mini-green {
  color: var(--springfield-green);
}

/* === QUOTES (Social Proof) === */
.quotes-section {
  padding: 80px 40px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.quote-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.3s ease;
}
.quote-card:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.quote-icon {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: 12px;
  opacity: 0.5;
}
.quote-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  flex-shrink: 0;
}
.quote-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}
.quote-role {
  font-size: 0.72rem;
  color: var(--text-tertiary);
}

/* === DASHBOARD PREVIEW === */
.preview-section {
  padding: 100px 40px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.preview-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.preview-frame {
  position: relative;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(253, 216, 53, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transform: perspective(1200px) rotateX(2deg) rotateY(-1deg);
  transition: transform 0.5s ease;
}
.preview-frame:hover {
  transform: perspective(1200px) rotateX(0) rotateY(0);
}

/* Mock dashboard */
.mock-dashboard {
  display: flex;
  height: 380px;
}

.mock-sidebar {
  width: 200px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  flex-shrink: 0;
}
.mock-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}
.mock-sidebar-brand span:first-child { font-size: 1rem; }
.mock-conv {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-conv.active {
  background: var(--accent-muted);
  color: var(--accent);
}

.mock-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.mock-topbar {
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  gap: 8px;
}
.mock-topbar-badge {
  font-size: 0.6rem;
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}
.mock-mode-toggle {
  margin-left: auto;
  display: flex;
  gap: 2px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 2px;
}
.mock-mode {
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.mock-mode.active {
  background: var(--bg-hover);
  color: var(--accent);
}

.mock-chat {
  flex: 1;
  padding: 16px;
  overflow: hidden;
}
.mock-msg {
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  font-size: 0.72rem;
  line-height: 1.5;
}
.mock-msg-user {
  justify-content: flex-end;
}
.mock-msg-user .mock-bubble {
  background: var(--homer-blue-dim);
  border: 1px solid rgba(66, 165, 245, 0.2);
  padding: 8px 12px;
  border-radius: 12px 12px 4px 12px;
  color: var(--text-primary);
  max-width: 75%;
}
.mock-msg-homer {
  align-items: flex-start;
}
.mock-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.mock-msg-text {
  color: var(--text-secondary);
  max-width: 75%;
}
.mock-input-live {
  margin: 0 14px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 4px 4px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.mock-input-live:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-muted);
}
.mock-input-field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: "Simpsonfont", "Inter", sans-serif;
  font-size: 0.7rem;
  color: var(--text-primary);
  padding: 4px 0;
}
.mock-input-field::placeholder {
  color: var(--text-tertiary);
}
.mock-send-live {
  width: 26px;
  height: 26px;
  border: none;
  background: var(--accent);
  color: var(--text-inverse);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.mock-send-live:hover {
  background: #FFEB3B;
  transform: scale(1.05);
}
/* Mock typing indicator */
.mock-typing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-style: italic;
}
.mock-typing-dots {
  display: flex;
  gap: 2px;
}
.mock-typing-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.mock-typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.mock-typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.mock-panel {
  width: 180px;
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  padding: 12px 10px;
  flex-shrink: 0;
}
.mock-panel-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}
.mock-panel-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  color: var(--text-secondary);
  padding: 4px 0;
}
.mock-panel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--springfield-green);
}
.mock-tool-badge {
  margin-left: auto;
  font-size: 0.58rem;
  background: var(--springfield-green-dim);
  color: var(--springfield-green);
  padding: 2px 6px;
  border-radius: 10px;
}

/* Annotations */
.preview-annotations {
  display: flex;
  justify-content: center;
  padding: 24px 0 0;
  gap: 24px;
  flex-wrap: wrap;
}
.annotation {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.annotation-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* === FINAL CTA === */
.final-cta {
  position: relative;
  padding: 120px 40px;
  text-align: center;
  overflow: hidden;
  background: url('639683975_974863651882669_6318976288150411501_n.jpg') center center / cover no-repeat;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 10, 15, 0.92) 0%,
    rgba(5, 5, 15, 0.60) 40%,
    rgba(5, 5, 15, 0.60) 60%,
    rgba(10, 10, 15, 0.92) 100%
  );
  z-index: 0;
}
.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(253, 216, 53, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.final-cta-content {
  position: relative;
  z-index: 1;
}
.final-heading {
  font-family: "Simpsonfont", cursive;
  font-size: 3.2rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.final-sub {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* === FOOTER === */
.landing-footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  background: var(--bg-primary);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}
.footer-sep {
  color: var(--border-active);
}

/* === TRANSITION OVERLAY === */
.transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.transition-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.transition-spinner {
  font-size: 2rem;
  color: var(--accent);
  animation: donut-spin 1s linear infinite;
}
.transition-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.transition-bar {
  width: 200px;
  height: 3px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.transition-bar-fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.8s ease;
}
.transition-overlay.active .transition-bar-fill {
  width: 100%;
}

@keyframes donut-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === SCROLL ANIMATIONS === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for grid children */
.features-grid .feature-card:nth-child(1) { transition-delay: 0s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.3s; }

.steps-row .step-card:nth-child(1) { transition-delay: 0s; }
.steps-row .step-card:nth-child(3) { transition-delay: 0.15s; }
.steps-row .step-card:nth-child(5) { transition-delay: 0.3s; }

.quotes-grid .quote-card:nth-child(1) { transition-delay: 0s; }
.quotes-grid .quote-card:nth-child(2) { transition-delay: 0.12s; }
.quotes-grid .quote-card:nth-child(3) { transition-delay: 0.24s; }

/* === HERO ANIMATIONS === */
@keyframes hero-text-in {
  from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* === GLOW PULSE === */
.glow-pulse {
  animation: glow-pulse 3s ease-in-out infinite;
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 4px 24px rgba(253, 216, 53, 0.18); }
  50%      { box-shadow: 0 4px 36px rgba(253, 216, 53, 0.32); }
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .navbar { padding: 0 20px; }
  .nav-links { gap: 4px; }
  .nav-link { display: none; }

  .hero { padding: 70px 20px 30px; }
  .hero-heading { font-size: 2.6rem; }
  .hero-subtitle { font-size: 0.88rem; }
  .hero-terminal { max-width: 480px; }

  .steps-row { flex-direction: column; align-items: center; gap: 20px; }
  .step-connector { display: none; }
  .step-card { max-width: 400px; width: 100%; }

  .features-grid { grid-template-columns: 1fr; }
  .features-section { padding: 60px 20px; }
  .how-section { padding: 60px 20px; }

  .quotes-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .quotes-section { padding: 60px 20px; }

  .preview-section { padding: 60px 20px; }
  .preview-frame { transform: none; }
  .preview-frame:hover { transform: none; }
  .mock-sidebar { width: 140px; }
  .mock-panel { display: none; }

  .final-cta { padding: 80px 20px; }
  .final-heading { font-size: 2.4rem; }

  .landing-footer { padding: 20px; }
}

@media (max-width: 600px) {
  .nav-brand-text { display: none; }

  .hero { padding: 60px 16px 20px; }
  .hero-heading { font-size: 2rem; }
  .hero-content { gap: 10px; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .cta-primary, .cta-secondary { width: 100%; text-align: center; justify-content: center; }
  .hero-terminal { max-width: 100%; }
  .hero-terminal { margin-top: 8px; }

  .section-title { font-size: 2.1rem; }
  .stats-inner { gap: 12px; padding: 18px 20px; }
  .stat-divider { display: none; }

  .mock-sidebar { width: 100px; font-size: 0.6rem; }
  .mock-dashboard { height: 280px; }
  .mock-sidebar-brand span:last-child { display: none; }

  .preview-annotations { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 4px; text-align: center; }
}
