/* GraphHelix Marketing Landing Page */

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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --foreground: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --section-alt: #f1f5f9;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--foreground);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-brand svg {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, box-shadow 0.15s;
  border-radius: var(--radius-md);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 0.625rem 1.5rem;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.625rem 1.5rem;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

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

.hero {
  padding: 8rem 0 5rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.hero h1 .highlight {
  color: var(--primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* ── Features ──────────────────────────────── */

.features {
  padding: 5rem 0;
  background: var(--bg-subtle);
}

.section-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 3rem;
}

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

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: rgba(37, 99, 235, 0.3);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

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

.how-it-works {
  padding: 5rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: calc(16.67% + 2rem);
  right: calc(16.67% + 2rem);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.step p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 280px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.cta-section {
  padding: 5rem 0;
  background: var(--bg-subtle);
  text-align: center;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

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

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Waitlist Form ─────────────────────────── */

.waitlist-form {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-form input[type="email"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-message {
  font-size: 0.875rem;
  margin-top: 0.5rem;
  min-height: 1.25rem;
}

.form-message.success {
  color: #16a34a;
}

.form-message.error {
  color: #dc2626;
}

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

@media (max-width: 768px) {
  .hero {
    padding: 6.5rem 0 3.5rem;
  }

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

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

  .hero-actions {
    flex-direction: column;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }

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

  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .steps::before {
    display: none;
  }

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

  .cta-section h2 {
    font-size: 1.625rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
