@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --fg-primary: #f0eee6;
  --fg-secondary: #9a9aad;
  --fg-muted: #5e5e72;
  --accent: #ff6b2b;
  --accent-glow: rgba(255, 107, 43, 0.15);
  --accent-dark: #cc5522;
  --border: rgba(255, 255, 255, 0.06);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg-primary);
  color: var(--fg-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(255, 107, 43, 0.2);
  border-radius: 100px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

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

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

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 800px;
}

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

.hero-sub {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--fg-secondary);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
}

/* ─── HERO CTA ─── */
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn-hero-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  background: transparent;
  color: var(--fg-secondary);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-hero-ghost:hover {
  border-color: var(--fg-muted);
  color: var(--fg-primary);
}

.hero-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat .number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg-primary);
}

.hero-stat .label {
  font-size: 13px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── HOW IT WORKS ─── */
.how-section {
  padding: 120px 40px;
  background: var(--bg-secondary);
  position: relative;
}

.how-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 64px;
  max-width: 600px;
}

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

.step {
  background: var(--bg-card);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
}

.step:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.step:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.15;
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.step h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  position: relative;
}

.step p {
  color: var(--fg-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  position: relative;
}

/* ─── WHAT FIELDFLOW REPLACES ─── */
.replace-section {
  padding: 120px 40px;
  position: relative;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 0;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.compare-col {
  padding: 40px 36px;
  background: var(--bg-card);
  border-radius: var(--radius);
}

.compare-col.old {
  border: 1px solid rgba(255, 80, 80, 0.1);
}

.compare-col.new {
  border: 1px solid rgba(255, 107, 43, 0.15);
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 107, 43, 0.03));
}

.compare-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--fg-muted);
  padding-top: 40px;
}

.compare-heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.compare-col.old .compare-heading { color: #ff5050; }
.compare-col.new .compare-heading { color: var(--accent); }

.compare-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.5;
}

.compare-item:last-child {
  border-bottom: none;
}

.compare-item .icon {
  margin-right: 8px;
}

/* ─── CLOSING ─── */
.closing {
  padding: 140px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.closing h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.closing p {
  font-size: 1.15rem;
  color: var(--fg-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto;
}

/* ─── FOOTER ─── */
footer {
  padding: 40px;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 13px;
  color: var(--fg-muted);
  font-family: 'Space Grotesk', sans-serif;
}

footer .brand {
  color: var(--fg-secondary);
  font-weight: 600;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .hero-stats {
    gap: 32px;
  }

  .how-section,
  .replace-section,
  .closing {
    padding: 80px 24px;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .step:last-child { border-radius: 0 0 var(--radius) var(--radius); }

  .compare-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .compare-arrow {
    transform: rotate(90deg);
    padding: 0;
  }
}
