@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ─── Design Tokens ─────────────────────────────────────────────────────────── */

:root {
  --bg-base: #0f1117;
  --bg-surface: #1c1f2a;
  --bg-window: #161922;
  --bg-raised: #252836;
  --bg-raised-hover: #2d3145;
  --border-subtle: rgba(255,255,255,0.04);
  --border-standard: rgba(255,255,255,0.08);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;
  --accent-mauve: #cba6f7;
  --accent-blue: #89b4fa;
  --accent-teal: #10b981;
  --accent-teal-400: #2dd4bf;
  --accent-ember: #f59e0b;
  --accent-ember-400: #fb923c;
  --accent-ember-600: #ea580c;
  --accent-cyan: #22d3ee;
  --accent-rose: #FF6B8A;
}

/* ─── Reset & Base ───────────────────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(203, 166, 247, 0.3);
  color: var(--text-primary);
}

img {
  width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  color: var(--accent-mauve);
}

code, pre, .mono {
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-window);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-raised);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--bg-raised-hover);
}

/* ─── Animations ─────────────────────────────────────────────────────────────── */

@keyframes fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}

@keyframes shimmer-border {
  0%   { border-color: rgba(203, 166, 247, 0.15); }
  50%  { border-color: rgba(203, 166, 247, 0.45); }
  100% { border-color: rgba(203, 166, 247, 0.15); }
}

@keyframes wave {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── Layout ─────────────────────────────────────────────────────────────────── */

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 24px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
  line-height: 1.7;
}

/* ─── Cards ──────────────────────────────────────────────────────────────────── */

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-standard);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card-glow-active {
  border-color: rgba(203, 166, 247, 0.35);
  box-shadow: 0 0 0 1px rgba(203, 166, 247, 0.15), 0 4px 24px rgba(203, 166, 247, 0.08);
}

/* ─── Tags & Badges ──────────────────────────────────────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--bg-raised);
  border: 1px solid var(--border-standard);
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-ember {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-ember);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-teal {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-teal);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-mauve {
  background: rgba(203, 166, 247, 0.12);
  color: var(--accent-mauve);
  border: 1px solid rgba(203, 166, 247, 0.2);
}

.badge-blue {
  background: rgba(137, 180, 250, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(137, 180, 250, 0.2);
}

/* ─── Buttons ────────────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  background: var(--accent-ember);
  color: #0f1117;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--accent-ember-400);
  color: #0f1117;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: inherit;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-standard);
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.16);
  color: var(--text-primary);
  background: var(--bg-raised);
}

/* ─── Navbar ─────────────────────────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.navbar-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}

.navbar-logo-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.navbar .btn-primary {
  padding: 6px 14px;
  font-size: 0.8125rem;
}

.navbar .btn-primary svg {
  width: 14px;
  height: 14px;
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */

.hero {
  padding: 96px 24px 80px;
  text-align: center;
  animation: fade-in 0.6s ease both;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-title-accent {
  background: linear-gradient(135deg, var(--accent-ember) 0%, var(--accent-mauve) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-screenshot {
  max-width: 960px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border-standard);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.hero-screenshot img {
  border-radius: 12px;
}

/* ─── Feature Grid ───────────────────────────────────────────────────────────── */

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

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-standard);
  border-radius: 12px;
  padding: 28px 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── How It Works pipeline ──────────────────────────────────────────────────── */

.pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
  padding-bottom: 8px;
}

.pipeline-step {
  flex: 1;
  min-width: 160px;
  background: var(--bg-surface);
  border: 1px solid var(--border-standard);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  position: relative;
}

.pipeline-step + .pipeline-step {
  margin-left: 12px;
}

.pipeline-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-raised);
  border: 1px solid var(--border-standard);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-ember);
  margin: 0 auto 12px;
  font-family: "JetBrains Mono", "SF Mono", "Fira Code", monospace;
}

.pipeline-step-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pipeline-step-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pipeline-arrow {
  display: flex;
  align-items: center;
  padding: 0 4px;
  color: var(--text-faint);
  font-size: 1.25rem;
  flex-shrink: 0;
  align-self: center;
}

/* ─── Screenshot sections ────────────────────────────────────────────────────── */

.screenshot-section {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.screenshot-section.reverse {
  direction: rtl;
}

.screenshot-section.reverse > * {
  direction: ltr;
}

.screenshot-text {}

.screenshot-text .section-title {
  font-size: 1.625rem;
}

.screenshot-text .section-subtitle {
  margin-bottom: 20px;
}

.screenshot-image {
  border-radius: 12px;
  border: 1px solid var(--border-standard);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.screenshot-image img {
  border-radius: 12px;
}

/* ─── CTA Section ────────────────────────────────────────────────────────────── */

.cta-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-standard);
  border-radius: 16px;
  padding: 56px 40px;
  animation: shimmer-border 4s ease infinite;
}

.cta-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.875rem;
}

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

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ─── Dividers ───────────────────────────────────────────────────────────────── */

.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .section {
    padding: 48px 16px;
  }

  .hero {
    padding: 64px 16px 48px;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .screenshot-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .screenshot-section.reverse {
    direction: ltr;
  }

  .pipeline {
    flex-direction: column;
  }

  .pipeline-step + .pipeline-step {
    margin-left: 0;
    margin-top: 12px;
  }

  .pipeline-arrow {
    transform: rotate(90deg);
    align-self: center;
    padding: 4px 0;
  }

  .cta-box {
    padding: 40px 24px;
  }

  .navbar-inner {
    padding: 0 16px;
  }

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

@media (max-width: 480px) {
  .section-title {
    font-size: 1.625rem;
  }

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