/* ===================== RESET & BASE ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #09090E;
  --bg-2: #0F0F18;
  --surface: #14141F;
  --surface-2: #1A1A27;
  --border: rgba(255,255,255,0.06);
  --fg: #F0EEE8;
  --fg-muted: rgba(240,238,232,0.5);
  --fg-subtle: rgba(240,238,232,0.25);
  --accent: #00FF88;
  --accent-dim: rgba(0,255,136,0.12);
  --accent-2: #00CC6E;
  --danger: #EF4444;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* noise texture */
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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,14,0.85);
  backdrop-filter: blur(20px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-tagline {
  color: var(--fg-muted);
  font-size: 0.8rem;
  font-weight: 400;
}

@media (max-width: 640px) { .nav-tagline { display: none; } }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn-secondary {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}
.nav-btn-secondary:hover { color: var(--text); border-color: var(--fg-muted); }

.nav-btn-primary {
  padding: 8px 16px;
  background: var(--accent);
  border-radius: 8px;
  color: #000;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  transition: background 0.15s;
}
.nav-btn-primary:hover { background: var(--accent-dim); }

@media (max-width: 480px) { .nav-actions { gap: 6px; } .nav-btn-secondary, .nav-btn-primary { padding: 7px 12px; font-size: 0.8rem; } }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  padding: 140px clamp(24px, 5vw, 80px) 80px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  width: fit-content;
}

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

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

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Chat mockup */
.hero-chat-mockup {
  position: relative;
}

.chat-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00CC6E, #00FF88);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #09090E;
  flex-shrink: 0;
}

.chat-info { flex: 1; }

.chat-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--fg);
}

.chat-status {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}

.chat-green-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.chat-messages {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.msg { display: flex; flex-direction: column; }
.msg.incoming { align-items: flex-start; }
.msg.outgoing { align-items: flex-end; }

.msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
}

.incoming .msg-bubble {
  background: var(--surface-2);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}

.outgoing .msg-bubble {
  background: var(--accent);
  color: #09090E;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.msg-time {
  font-size: 0.65rem;
  color: var(--fg-subtle);
  margin-top: 4px;
  padding: 0 4px;
}

.outgoing .msg-time { text-align: right; }

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.typing-dots {
  display: flex;
  gap: 3px;
  padding: 10px 14px;
  background: var(--surface-2);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.typing-dots span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--fg-subtle);
  animation: typingBounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

/* Code hint */
.hero-code-hint {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.68rem;
  line-height: 1.8;
}

.code-keyword { color: #C084FC; }
.code-fn { color: #60A5FA; }
.code-string { color: #34D399; }

@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 48px; }
  .hero-chat-mockup { max-width: 480px; margin: 0 auto; width: 100%; }
  .hero-code-hint { display: none; }
}

/* ===================== SECTIONS ===================== */
section { position: relative; z-index: 1; }

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--fg-muted);
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 48px;
}

/* ===================== FEATURES ===================== */
.features {
  padding: 80px clamp(24px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}

.feature-card:hover {
  border-color: rgba(0,255,136,0.2);
  background: var(--surface-2);
}

.feature-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

/* ===================== HOW IT WORKS ===================== */
.how-it-works {
  padding: 80px clamp(24px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
}

.step {
  padding: 32px;
  position: relative;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--surface-2);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--fg-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

.step-connector {
  position: absolute;
  top: 32px;
  right: 0;
  width: 1px;
  height: calc(100% - 64px);
  background: linear-gradient(to bottom, rgba(0,255,136,0.3), transparent);
}

@media (max-width: 768px) {
  .steps { grid-template-columns: 1fr; }
  .step-connector { display: none; }
}

/* ===================== PRICING COMPARISON ===================== */
.pricing-comparison {
  padding: 80px clamp(24px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
}

.comparison-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.comp-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.comp-col {
  padding: 16px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comp-col.wasp {
  color: var(--accent);
  background: var(--accent-dim);
}

.comp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.comp-row:last-child { border-bottom: none; }

.comp-feature {
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
}

.comp-val {
  padding: 16px 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 5px;
  border-left: 1px solid var(--border);
}

.wasp-val {
  background: rgba(0,255,136,0.04);
  color: var(--accent);
  border-left: 1px solid rgba(0,255,136,0.15);
}

.comparison-note {
  font-size: 0.75rem;
  color: var(--fg-subtle);
  text-align: center;
}

@media (max-width: 768px) {
  .comp-header, .comp-row { grid-template-columns: 2fr 1fr 1fr; }
  .comp-col:nth-child(n+4), .comp-val:nth-child(n+4) { display: none; }
}

/* ===================== TRUST ===================== */
.trust {
  padding: 80px clamp(24px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}

.trust-block {
  background: var(--surface);
  padding: 36px 28px;
}

.trust-icon {
  margin-bottom: 20px;
}

.trust-block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.trust-block p {
  color: var(--fg-muted);
  font-size: 0.85rem;
  line-height: 1.7;
}

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

/* ===================== CLOSING ===================== */
.closing {
  padding: 100px clamp(24px, 5vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.closing-inner { max-width: 640px; margin: 0 auto; }

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.closing-tagline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #000;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s;
  margin-top: 8px;
}
.cta-btn:hover { background: var(--accent-dim); }

/* ===================== FOOTER ===================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px clamp(24px, 5vw, 80px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-note {
  font-size: 0.78rem;
  color: var(--fg-subtle);
  max-width: 420px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 640px) {
  .hero { padding-top: 100px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .closing { padding: 64px 24px; }
  .features, .how-it-works, .pricing-comparison, .trust { padding: 56px 24px; }
}