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

:root {
  --bg: #0C0A09;
  --bg-elevated: #1C1917;
  --bg-subtle: #151311;
  --text: #FAFAF9;
  --text-muted: #A8A29E;
  --text-dim: #57534E;
  --accent: #F97316;
  --accent-soft: rgba(249, 115, 22, 0.15);
  --border: #292524;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Source type colors */
  --reddit: #FF4500;
  --publication: #3B82F6;
  --instagram: #E1306C;
  --twitter: #1DA1F2;
  --yelp: #D32323;
  --google: #4285F4;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Safe area support for notched devices */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  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");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1000;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 200;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 200;
}

h3 {
  font-size: 1.5rem;
  font-weight: 400;
}

em {
  font-style: italic;
  color: var(--accent);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px 0;
  padding-top: max(24px, env(safe-area-inset-top));
  z-index: 100;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}

.lang-btn {
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  background: var(--accent);
  color: var(--bg);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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

.hero-demo {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 32px;
}

.hero h1 span {
  display: block;
}

.thin {
  font-weight: 200;
  color: var(--text-muted);
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* Waitlist form */
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 440px;
}

.waitlist-input {
  flex: 1;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-input::placeholder {
  color: var(--text-dim);
}

.waitlist-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.waitlist-input.locked {
  color: var(--text-dim);
  pointer-events: none;
  border-color: var(--border);
}

.waitlist-btn {
  padding: 16px 28px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.waitlist-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.3);
}

.waitlist-note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* Problem section */
.problem {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 64px;
}

.problem-item {
  background: var(--bg-subtle);
  padding: 48px 32px;
}

.problem-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  opacity: 0.6;
}

.problem-item h3 {
  font-size: 1.125rem;
  font-family: var(--font-body);
  font-weight: 500;
  margin-bottom: 12px;
}

.problem-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Demo section */
.demo {
  position: relative;
  overflow: hidden;
  padding: 120px 0 160px;
}

.demo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 1000px;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.demo-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.demo-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-top: 20px;
}

/* Phone mockup */
.phone-container {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-frame {
  width: 300px;
  height: 620px;
  background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
  border-radius: 38px;
  padding: 6px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.phone-frame:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

/* Dynamic Island */
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
}

/* App interface inside phone */
.app-header {
  padding: 44px 12px 10px;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 1) 0%, rgba(10, 10, 10, 0.95) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}

.app-logo svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.app-location {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.625rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 10px;
}

.app-location svg {
  width: 10px;
  height: 10px;
  color: var(--accent);
}

.app-profile {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #fb923c 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 600;
  color: #000;
}

.app-content {
  padding: 12px;
  height: calc(100% - 130px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Bottom navigation */
.app-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(10, 10, 10, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 4px;
  backdrop-filter: blur(10px);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-dim);
  font-size: 0.5625rem;
  transition: color 0.2s;
}

.nav-item.active {
  color: var(--accent);
}

.nav-item svg {
  width: 18px;
  height: 18px;
}

/* Chat bubbles */
.chat-user {
  align-self: flex-end;
  max-width: 85%;
  background: var(--accent);
  color: #000;
  padding: 12px 16px;
  border-radius: 18px 18px 4px 18px;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.chat-response {
  align-self: flex-start;
  max-width: 95%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.response-thinking {
  font-size: 0.6875rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.thinking-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  animation: thinking 1.4s ease-in-out infinite;
}

.thinking-dot:nth-child(2) { animation-delay: 0.2s; }
.thinking-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes thinking {
  0%, 80%, 100% { opacity: 0.3; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* Restaurant card in phone */
.result-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.result-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
}

.result-match {
  font-size: 0.625rem;
  padding: 3px 8px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent);
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.result-meta {
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.result-why {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.result-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.result-source {
  font-size: 0.5625rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

.result-source.reddit {
  color: var(--reddit);
  background: rgba(255, 69, 0, 0.1);
}

.result-source.pub {
  color: var(--publication);
  background: rgba(59, 130, 246, 0.1);
}

.result-source.michelin {
  color: #FFD700;
  background: rgba(255, 215, 0, 0.15);
  font-weight: 500;
}

.result-source.more {
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
}

.result-order {
  background: rgba(249, 115, 22, 0.1);
  border-left: 2px solid var(--accent);
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
}

.result-order-label {
  font-size: 0.5625rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.result-order-text {
  font-size: 0.6875rem;
  color: var(--text);
}

/* Phone home indicator */
.phone-home-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  z-index: 10;
}

/* Result card scroll-based highlighting */
.result-card {
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.result-card.inactive {
  opacity: 0.5;
  transform: scale(0.97);
  filter: grayscale(0.3);
}

.result-card.active {
  opacity: 1;
  transform: scale(1);
  filter: grayscale(0);
}

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

/* Responsive phone */
@media (max-width: 600px) {
  .phone-frame {
    width: 270px;
    height: 560px;
    transform: none;
  }

  .phone-frame:hover {
    transform: none;
  }
}

/* Legacy - kept for any remaining references */
.demo-restaurant-why {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.demo-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-source {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--bg);
  border-radius: 4px;
  color: var(--text-dim);
  border: 1px solid transparent;
  transition: all 0.2s;
}

.demo-source[data-type="reddit"] {
  color: var(--reddit);
  border-color: rgba(255, 69, 0, 0.3);
  background: rgba(255, 69, 0, 0.1);
}

.demo-source[data-type="publication"] {
  color: var(--publication);
  border-color: rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.1);
}

.demo-source[data-type="instagram"] {
  color: var(--instagram);
  border-color: rgba(225, 48, 108, 0.3);
  background: rgba(225, 48, 108, 0.1);
}

.demo-order {
  margin-top: 16px;
  padding: 16px;
  background: var(--accent-soft);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.demo-order-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}

.demo-order-text {
  font-size: 0.9375rem;
  color: var(--text);
}

/* Methodology section */
.methodology {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.methodology-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 64px;
  align-items: center;
}

.methodology-content h2 {
  margin-bottom: 32px;
}

.methodology-list {
  list-style: none;
}

.methodology-list li {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.methodology-list li:last-child {
  border-bottom: none;
}

.methodology-number {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  opacity: 0.7;
}

.methodology-text {
  color: var(--text-muted);
  line-height: 1.6;
}

.methodology-text strong {
  color: var(--text);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.methodology-visual {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Synthesis visualization - abstract and atmospheric */
.synthesis-container {
  position: relative;
  width: 400px;
  height: 400px;
  perspective: 1000px;
}

/* Orbital rings */
.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.02);
}

.orbit-1 {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  animation: orbit-rotate 120s linear infinite;
}

.orbit-2 {
  width: 70%;
  height: 70%;
  top: 15%;
  left: 15%;
  border-color: rgba(255, 255, 255, 0.06);
  animation: orbit-rotate 90s linear infinite reverse;
}

.orbit-3 {
  width: 40%;
  height: 40%;
  top: 30%;
  left: 30%;
  border-color: rgba(255, 255, 255, 0.04);
  animation: orbit-rotate 60s linear infinite;
}

@keyframes orbit-rotate {
  from {
    transform: rotate(0deg) translateZ(0);
  }

  to {
    transform: rotate(360deg) translateZ(0);
  }
}

/* Source orbs - abstract, no labels */
.source-orb {
  position: absolute;
  border-radius: 50%;
  z-index: 10;
}

/* Glow effect using box-shadow instead of blur filter to avoid artifacts */
.source-orb::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.4;
  filter: blur(4px);
  /* Reduced blur */
}

/* Reddit orbs */
.orb-reddit-1 {
  width: 16px;
  height: 16px;
  background: var(--reddit);
  top: 12%;
  left: 18%;
  box-shadow: 0 0 15px var(--reddit);
  animation: float 8s ease-in-out infinite;
}

.orb-reddit-2 {
  width: 10px;
  height: 10px;
  background: var(--reddit);
  top: 75%;
  left: 12%;
  box-shadow: 0 0 10px var(--reddit);
  animation: float 10s ease-in-out infinite reverse;
}

/* Publication orbs */
.orb-pub-1 {
  width: 20px;
  height: 20px;
  background: var(--publication);
  top: 8%;
  right: 22%;
  box-shadow: 0 0 20px var(--publication);
  animation: float 9s ease-in-out infinite;
  animation-delay: -2s;
}

.orb-pub-2 {
  width: 12px;
  height: 12px;
  background: var(--publication);
  top: 45%;
  right: 8%;
  box-shadow: 0 0 12px var(--publication);
  animation: float 11s ease-in-out infinite reverse;
  animation-delay: -4s;
}

.orb-pub-3 {
  width: 8px;
  height: 8px;
  background: var(--publication);
  bottom: 28%;
  right: 18%;
  box-shadow: 0 0 8px var(--publication);
  animation: float 13s ease-in-out infinite;
  animation-delay: -1s;
}

/* Instagram orbs */
.orb-insta-1 {
  width: 14px;
  height: 14px;
  background: var(--instagram);
  bottom: 18%;
  left: 28%;
  box-shadow: 0 0 15px var(--instagram);
  animation: float 10s ease-in-out infinite;
  animation-delay: -3s;
}

/* Local/other orbs */
.orb-local-1 {
  width: 10px;
  height: 10px;
  background: #10B981;
  bottom: 35%;
  right: 35%;
  box-shadow: 0 0 10px #10B981;
  animation: float 12s ease-in-out infinite reverse;
  animation-delay: -5s;
}

/* Dim/low-signal orbs */
.orb-dim-1 {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.05);
  top: 35%;
  left: 8%;
  filter: blur(2px);
  animation: float 15s ease-in-out infinite;
}

.orb-dim-2 {
  width: 18px;
  height: 18px;
  background: rgba(255, 255, 255, 0.03);
  bottom: 15%;
  right: 8%;
  filter: blur(2px);
  animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(0, -10px);
  }
}

/* Center convergence point */
.synthesis-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.center-core {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow:
    0 0 20px var(--accent),
    0 0 40px rgba(249, 115, 22, 0.6),
    0 0 80px rgba(249, 115, 22, 0.3);
  animation: pulse-core 4s ease-in-out infinite;
  z-index: 2;
}

.center-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: ripple 4s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.center-ring:nth-child(2) {
  animation-delay: -1s;
}

.center-ring:nth-child(3) {
  animation-delay: -2s;
}

.center-ring:nth-child(4) {
  animation-delay: -3s;
}

@keyframes pulse-core {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
}

@keyframes ripple {
  0% {
    width: 24px;
    height: 24px;
    opacity: 0.8;
    border-width: 2px;
  }

  100% {
    width: 140px;
    height: 140px;
    opacity: 0;
    border-width: 0px;
  }
}

/* Data Flow Particles */
.data-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.particle-1 {
  animation: data-flow 3s ease-in infinite;
  transform-origin: 120px 0;
}

.particle-2 {
  animation: data-flow 4s ease-in infinite;
  transform-origin: -100px 60px;
  animation-delay: 1s;
}

.particle-3 {
  animation: data-flow 3.5s ease-in infinite;
  transform-origin: 0 -140px;
  animation-delay: 2s;
}

.particle-4 {
  animation: data-flow 4.5s ease-in infinite;
  transform-origin: -80px -80px;
  animation-delay: 0.5s;
}

.particle-5 {
  animation: data-flow 3.2s ease-in infinite;
  transform-origin: 100px 100px;
  animation-delay: 1.5s;
}

/* The particles start far out and converge to center */
@keyframes data-flow {
  0% {
    transform: rotate(var(--angle, 0deg)) translateX(180px);
    opacity: 0;
    width: 2px;
  }

  20% {
    opacity: 1;
    width: 4px;
  }

  100% {
    transform: rotate(var(--angle, 0deg)) translateX(0);
    opacity: 0;
    width: 1px;
  }
}

/* Connection lines (subtle) */
.connection-line {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.2), transparent);
  width: 150px;
  transform-origin: left center;
  opacity: 0.2;
}

.line-1 {
  transform: rotate(0deg) translateX(20px);
}

.line-2 {
  transform: rotate(72deg) translateX(20px);
}

.line-3 {
  transform: rotate(144deg) translateX(20px);
}

.line-4 {
  transform: rotate(216deg) translateX(20px);
}

.line-5 {
  transform: rotate(288deg) translateX(20px);
}

/* Legend - simplified */
.synthesis-legend {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.legend-dot.reddit {
  background: var(--reddit);
}

.legend-dot.publication {
  background: var(--publication);
}

.legend-dot.instagram {
  background: var(--instagram);
}

.legend-dot.local {
  background: #10B981;
}

/* Audience section */
.audience {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.audience-statement {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-style: italic;
  font-weight: 200;
  line-height: 1.4;
  color: var(--text-muted);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  max-width: 900px;
  transition: color 0.3s;
}

.audience-statement:last-child {
  border-bottom: none;
}

.audience-statement:hover {
  color: var(--text);
}

.audience-statement span {
  color: var(--accent);
  font-style: normal;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 160px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.final-cta h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
}

.final-cta>.container>p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}

.final-cta .waitlist-form {
  margin: 0 auto;
  justify-content: center;
}

/* Footer */
footer {
  padding: 48px 0;
  padding-bottom: max(48px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--bg);
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s;
  z-index: 1000;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .waitlist-form {
    margin-left: auto;
    margin-right: auto;
  }

  .waitlist-note {
    text-align: center;
  }

  .hero-demo {
    order: -1;
  }

  .hero-demo .phone-frame {
    width: 270px;
    height: 560px;
    transform: none;
  }

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

  .methodology-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .methodology-visual {
    order: -1;
    height: 350px;
  }

  .synthesis-container {
    width: 320px;
    height: 320px;
  }

  .synthesis-legend {
    gap: 12px;
  }
}

@media (max-width: 600px) {
  section {
    padding: 80px 0;
  }

  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero-layout {
    gap: 32px;
  }

  .hero-demo .phone-frame {
    width: 250px;
    height: 520px;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
    margin-bottom: 16px;
  }

  .hero h1 {
    margin-bottom: 24px;
  }

  .hero-sub {
    font-size: 1.0625rem;
    margin-bottom: 32px;
  }

  .waitlist-form {
    flex-direction: column;
    max-width: 100%;
  }

  .waitlist-input {
    padding: 14px 16px;
  }

  .waitlist-btn {
    width: 100%;
    padding: 14px 24px;
  }

  .problem-item {
    padding: 32px 20px;
  }

  .problem-item h3 {
    font-size: 1rem;
  }

  .problem-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .demo {
    padding: 80px 0 100px;
  }

  .demo-header {
    margin-bottom: 40px;
  }

  .demo-header p {
    font-size: 1rem;
  }

  .methodology-visual {
    height: 280px;
  }

  .synthesis-container {
    width: 260px;
    height: 260px;
  }

  .synthesis-legend {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    bottom: -50px;
    width: 100%;
  }

  .legend-item {
    font-size: 0.6rem;
  }

  .methodology-list li {
    padding: 16px 0;
    gap: 12px;
  }

  .methodology-number {
    font-size: 1rem;
  }

  .methodology-text {
    font-size: 0.9375rem;
  }

  .audience-statement {
    font-size: 1.375rem;
    padding: 32px 0;
  }

  .final-cta {
    padding: 100px 0;
  }

  .final-cta h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .final-cta > .container > p {
    font-size: 1rem;
    margin-bottom: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    gap: 20px;
  }

  nav {
    padding: 16px 0;
  }

  .logo {
    font-size: 1.125rem;
  }

  .logo-icon {
    width: 20px;
    height: 20px;
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 0.75rem;
  }
}

/* Extra small devices */
@media (max-width: 380px) {
  .container {
    padding: 0 12px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .hero-demo .phone-frame {
    width: 230px;
    height: 478px;
  }

  .synthesis-container {
    width: 220px;
    height: 220px;
  }

  .synthesis-legend {
    gap: 6px;
  }

  .legend-item {
    font-size: 0.55rem;
  }

  .audience-statement {
    font-size: 1.25rem;
    padding: 24px 0;
  }

  .waitlist-input,
  .waitlist-btn {
    padding: 12px 16px;
    font-size: 0.9375rem;
  }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
  .phone-frame {
    transform: none;
  }

  .phone-frame:hover {
    transform: none;
  }

  .waitlist-btn:hover {
    transform: none;
    box-shadow: none;
  }

  .waitlist-btn:active {
    transform: scale(0.98);
  }

  .demo-source:hover {
    background: var(--bg);
  }
}
