:root {
  /* Colors - earthy, fresh palette */
  --bg: #FAFAF8;
  --bg-secondary: #F5F4F0;
  --text: #1A1A18;
  --text-muted: #6B6B66;
  --text-subtle: #9A9A94;
  --accent: #2D5A3D;
  --accent-light: #4A8B5C;
  --accent-bg: #E8F0EA;
  --grass: #3D7A4A;
  --grass-light: #5AAF6A;
  --border: #E5E5E0;
  --border-strong: #D0D0C8;

  /* Typography */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 48px;
  --space-2xl: 80px;
  --space-3xl: 120px;

  /* Sizing */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Grain overlay */
.grain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.03;
  z-index: 1000;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  background: rgba(250, 250, 248, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  font-size: 24px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--text);
  color: var(--bg) !important;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main content */
main {
  padding-top: 80px;
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at top center, rgba(61, 122, 74, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: var(--accent-bg);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 auto var(--space-lg);
  max-width: 900px;
  text-align: center;
}

.hero-line {
  display: block;
  animation: fadeInUp 0.6s ease-out backwards;
}

.hero-line:nth-child(1) { animation-delay: 0.1s; }
.hero-line:nth-child(2) { animation-delay: 0.2s; }

.hero-line-accent {
  color: var(--grass);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  max-width: 580px;
  margin: 0 auto var(--space-md);
  font-size: 22px;
  color: var(--text);
  line-height: 1.6;
  animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

/* Works with section */
.works-with {
  text-align: center;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
}

.works-with-label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.works-with-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  min-width: 140px;
}

.logo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: var(--border-strong);
}

.logo-item img {
  height: 36px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
}

.logo-item svg {
  height: 36px;
  width: 36px;
  opacity: 0.9;
}

.logo-item span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

/* Callout section */
.callout-section {
  padding: var(--space-lg) var(--space-xl);
  max-width: 700px;
  margin: 0 auto;
}

.callout-box {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  text-align: center;
}

.callout-label {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(45, 90, 61, 0.1);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
}

.callout-text {
  font-size: 18px;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

.callout-text strong {
  color: var(--text-dark);
}

.callout-tagline {
  font-size: 15px;
  color: var(--text-muted);
  font-style: italic;
  margin: var(--space-md) 0 0;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--accent);
  color: white;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.cta-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 90, 61, 0.25);
}

.cta-secondary {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: var(--space-md);
  transition: color 0.2s;
}

.cta-secondary:hover {
  color: var(--text);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  margin-top: var(--space-2xl);
  animation: fadeInUp 0.8s ease-out 0.5s backwards;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.2),
    0 30px 60px -30px rgba(0, 0, 0, 0.3),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-notch {
  width: 100px;
  height: 28px;
  background: var(--text);
  border-radius: 20px;
  margin: 0 auto 12px;
  position: relative;
}

.phone-notch::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #333;
  border-radius: 50%;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.phone-screen {
  background: var(--bg);
  border-radius: 28px;
  height: calc(100% - 40px);
  padding: var(--space-md);
  overflow: hidden;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-md);
  font-size: 12px;
  color: var(--text-muted);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--grass);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.conversation {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.message {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
}

.message.user {
  background: var(--accent-bg);
  color: var(--accent);
  align-self: flex-end;
  max-width: 85%;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: var(--space-sm);
}

.waveform span {
  width: 3px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
  animation: wave 1s ease-in-out infinite;
}

.waveform span:nth-child(1) { animation-delay: 0s; height: 8px; }
.waveform span:nth-child(2) { animation-delay: 0.1s; height: 16px; }
.waveform span:nth-child(3) { animation-delay: 0.2s; height: 10px; }
.waveform span:nth-child(4) { animation-delay: 0.3s; height: 18px; }
.waveform span:nth-child(5) { animation-delay: 0.4s; height: 12px; }
.waveform span:nth-child(6) { animation-delay: 0.5s; height: 14px; }
.waveform span:nth-child(7) { animation-delay: 0.6s; height: 8px; }
.waveform span:nth-child(8) { animation-delay: 0.7s; height: 10px; }

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}

.message.assistant {
  background: var(--bg-secondary);
  color: var(--text);
  align-self: flex-start;
  max-width: 90%;
}

.voice-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  margin-bottom: var(--space-sm);
}

/* Hero glow effect */
.hero-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(61, 122, 74, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Grass illustration */
.grass-illustration {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.grass-blade {
  width: 8px;
  height: var(--height, 60px);
  background: linear-gradient(to top, var(--grass), var(--grass-light));
  border-radius: 4px 4px 0 0;
  transform-origin: bottom;
  animation: sway 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes sway {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Video Proof Section */
.video-proof {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  max-width: 600px;
  margin: 0 auto;
}

.video-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.2),
    0 0 0 1px var(--border);
  aspect-ratio: 1 / 1;
  max-width: 500px;
  margin: 0 auto;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* YouTube Short embed - crop the black bars */
.video-container.youtube-short {
  position: relative;
}

.video-container.youtube-short iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 178%; /* Scale up to crop 9:16 to 1:1 */
  height: 100%;
  border: none;
}

.video-caption {
  margin-top: var(--space-lg);
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

/* Endorsement */
.endorsement {
  text-align: center;
  padding: var(--space-2xl) var(--space-xl);
  background: linear-gradient(135deg, #FFF9E6 0%, #FFF5D6 100%);
  border-radius: var(--radius-lg);
  margin: 0 var(--space-xl);
  max-width: calc(var(--max-width) - var(--space-2xl));
}

.endorsement-content {
  max-width: 700px;
  margin: 0 auto;
}

.endorsement-text {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-style: italic;
  color: var(--text);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.endorsement-subtext {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Section styling */
section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* How it works - Architecture */
.how-it-works-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.architecture {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.arch-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-lg);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.arch-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.arch-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

.arch-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: var(--space-xs);
}

.arch-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.how-it-works-phone {
  display: flex;
  justify-content: center;
}

.how-it-works-phone .phone-mockup {
  transform: scale(0.9);
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.1);
  border-color: var(--border-strong);
}

.feature-large {
  grid-column: span 2;
}

.feature-wide {
  grid-column: span 3;
  background: var(--accent);
  color: white;
}

.feature-icon {
  font-size: 28px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-bg) 0%, rgba(61, 122, 74, 0.08) 100%);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-wide p {
  color: rgba(255, 255, 255, 0.8);
}

.feature-warning {
  background: #FFF5F5;
  border: 1px dashed #E5A0A0;
}

.feature-warning h3 {
  color: #8B4545;
}

.feature-warning p {
  color: #6B5555;
}

.feature-quote {
  text-align: center;
  padding: var(--space-lg);
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  opacity: 0.3;
}

.feature-quote p {
  font-family: var(--font-display);
  font-size: 24px;
  font-style: italic;
  color: white;
  max-width: 600px;
  margin: 0 auto var(--space-md);
}

.quote-author {
  font-size: 14px;
  opacity: 0.7;
}

/* Get Started */
.get-started {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  margin: 0 auto var(--space-3xl);
  max-width: calc(var(--max-width) - var(--space-2xl));
}

.get-started-content p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.code-block {
  background: var(--text);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  overflow-x: auto;
}

.code-comment {
  display: block;
  color: #6B7280;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  margin-bottom: var(--space-xs);
}

.code-block code {
  color: #4ADE80;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 14px;
  line-height: 1.5;
}

.github-cta {
  margin-bottom: var(--space-lg);
}

.github-cta svg {
  flex-shrink: 0;
}

.get-started-note {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--text-subtle);
}

/* Floating elements */
.waitlist-visual {
  position: relative;
  height: 300px;
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.float-emoji {
  position: absolute;
  font-size: 40px;
  left: var(--x);
  top: var(--y);
  animation: float 4s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xl);
  border-top: 1px solid var(--border);
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.footer-built-by {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: var(--space-sm);
}

.footer-built-by a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-built-by a:hover {
  color: var(--accent-light);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

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

/* Responsive */
@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .feature-large,
  .feature-wide {
    grid-column: span 1;
  }

  .get-started {
    grid-template-columns: 1fr;
  }

  .waitlist-visual {
    display: none;
  }

  .nav-links {
    display: none;
  }

  .how-it-works-layout {
    grid-template-columns: 1fr;
  }

  .how-it-works-phone {
    order: -1;
  }

  .how-it-works-phone .phone-mockup {
    transform: scale(0.85);
  }
}

@media (max-width: 600px) {
  nav {
    padding: var(--space-md);
  }

  .hero {
    padding: var(--space-2xl) var(--space-md) var(--space-xl);
  }

  section {
    padding: var(--space-2xl) var(--space-md);
  }

  .input-wrapper {
    flex-direction: column;
  }

  .input-wrapper button {
    width: 100%;
    justify-content: center;
  }

  footer {
    flex-direction: column;
    gap: var(--space-lg);
    text-align: center;
  }
}
