/* =============================================
   SPARKFLOW — Landing Page
   Dark navy #0a0f1c + amber #f59e0b
   ============================================= */

:root {
  --bg: #0a0f1c;
  --bg-2: #0f1629;
  --bg-card: #111827;
  --fg: #f1f5f9;
  --fg-2: #94a3b8;
  --accent: #f59e0b;
  --accent-dim: rgba(245, 158, 11, 0.1);
  --border: rgba(255, 255, 255, 0.07);
  --font-head: 'Syne', sans-serif;
  --font-body: 'Figtree', sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--fg); line-height: 1.65; overflow-x: hidden; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px;
  background: rgba(10, 15, 28, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__name { font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; color: var(--fg); }
.nav__tagline { font-size: 0.78rem; color: var(--fg-2); letter-spacing: 0.04em; }

/* HERO */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 56px 120px;
  min-height: 100vh; display: flex; align-items: center;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero__bg-glow {
  position: absolute; top: -15%; left: -8%;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.07) 0%, transparent 65%);
  filter: blur(80px);
}
.hero__bg-glow-2 {
  position: absolute; bottom: -10%; right: -5%;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.05) 0%, transparent 65%);
  filter: blur(80px);
}

.hero__layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; width: 100%; max-width: 1300px; margin: 0 auto;
  align-items: center;
}

.hero__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 28px;
}

.hero__headline {
  font-family: var(--font-head); font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.035em;
  color: var(--fg); margin-bottom: 24px;
}

.hero__sub {
  font-size: 1.05rem; color: var(--fg-2); line-height: 1.75;
  max-width: 480px; margin-bottom: 52px;
}

/* Hero Stats */
.hero__stats {
  display: flex; align-items: center;
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px 8px; width: fit-content;
}
.hero__stat { text-align: center; padding: 0 28px; }
.hero__stat-value {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 800;
  color: var(--accent); display: inline;
}
.hero__stat-unit {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; color: var(--accent);
}
.hero__stat-label { display: block; font-size: 0.72rem; color: var(--fg-2); margin-top: 4px; }
.hero__stat-divider { width: 1px; height: 40px; background: rgba(245, 158, 11, 0.15); flex-shrink: 0; }

/* Widget */
.hero__right { display: flex; flex-direction: column; gap: 20px; }
.hero__widget {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,158,11,0.06);
}
.widget__header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.025);
  border-bottom: 1px solid var(--border);
}
.widget__dots { display: flex; gap: 5px; }
.widget__dots span { width: 9px; height: 9px; border-radius: 50%; }
.widget__dots span:nth-child(1) { background: #ff5f57; }
.widget__dots span:nth-child(2) { background: #febc2e; }
.widget__dots span:nth-child(3) { background: #28c840; }
.widget__title { flex: 1; font-size: 0.75rem; font-weight: 600; color: var(--fg-2); }
.widget__status { display: flex; align-items: center; gap: 5px; font-size: 0.68rem; color: #22c55e; font-weight: 600; }
.widget__status-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #22c55e;
  animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.widget__chat { padding: 18px; display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; }
.widget__msg { display: flex; }
.widget__msg--ai { justify-content: flex-start; }
.widget__msg--user { justify-content: flex-end; }
.widget__bubble {
  display: inline-block; padding: 9px 13px;
  border-radius: 12px; font-size: 0.82rem; line-height: 1.5;
  max-width: 82%;
}
.widget__msg--ai .widget__bubble {
  background: rgba(255,255,255,0.05); color: var(--fg);
  border-bottom-left-radius: 4px;
}
.widget__msg--user .widget__bubble {
  background: var(--accent); color: #0a0f1c;
  font-weight: 600; border-bottom-right-radius: 4px;
}
.widget__confirmed {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.68rem; color: #22c55e; font-weight: 600;
  margin-top: 6px; padding: 3px 9px;
  background: rgba(34, 197, 94, 0.1); border-radius: 20px;
}
.widget__footer {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.widget__footer span { flex: 1; font-size: 0.82rem; color: var(--fg-2); }
.widget__send {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #0a0f1c;
  display: flex; align-items: center; justify-content: center;
}

/* Metrics */
.hero__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hero__metric {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  text-align: center;
}
.hero__metric-num {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 800;
  color: var(--fg); display: block;
}
.hero__metric-label { font-size: 0.7rem; color: var(--fg-2); display: block; margin-top: 4px; }

/* PROOF */
.proof { padding: 40px 56px; border-bottom: 1px solid var(--border); }
.proof__inner { max-width: 1300px; margin: 0 auto; }
.proof__label { font-size: 0.75rem; color: var(--fg-2); margin-bottom: 28px; text-align: center; letter-spacing: 0.04em; }
.proof__logos { display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap; }
.proof__logo { display: flex; align-items: center; gap: 10px; opacity: 0.4; }
.proof__logo-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: rgba(255,255,255,0.08);
}
.proof__logo span { font-family: var(--font-head); font-size: 0.88rem; font-weight: 600; color: var(--fg); white-space: nowrap; }

/* FEATURES */
.features { padding: 100px 56px; background: var(--bg-2); }
.features__header { text-align: center; max-width: 620px; margin: 0 auto 72px; }
.features__eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.features__title {
  font-family: var(--font-head); font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: var(--fg);
  margin-bottom: 14px;
}
.features__sub { font-size: 0.95rem; color: var(--fg-2); line-height: 1.7; }

.features__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1300px; margin: 0 auto; }

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 32px;
  position: relative; transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.feature-card:hover { transform: translateY(-5px); border-color: rgba(245,158,11,0.2); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.feature-card--featured { border-color: rgba(245, 158, 11, 0.28); }
.feature-card__badge {
  position: absolute; top: -11px; left: 28px;
  background: var(--accent); color: #0a0f1c;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px;
}
.feature-card__icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.feature-card__title {
  font-family: var(--font-head); font-size: 1.15rem; font-weight: 700;
  color: var(--fg); margin-bottom: 10px;
}
.feature-card__desc { font-size: 0.88rem; color: var(--fg-2); line-height: 1.65; margin-bottom: 22px; }
.feature-card__list { display: flex; flex-direction: column; gap: 10px; }
.feature-card__list li {
  font-size: 0.8rem; color: var(--fg-2);
  padding-left: 20px; position: relative;
}
.feature-card__list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
}

/* HOW */
.how { padding: 100px 56px; }
.how__header { text-align: center; max-width: 560px; margin: 0 auto 72px; }
.how__eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.how__title {
  font-family: var(--font-head); font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: var(--fg);
}

.how__steps { display: flex; flex-direction: column; gap: 0; max-width: 820px; margin: 0 auto 56px; }
.how__step {
  display: grid; grid-template-columns: 72px 1fr; gap: 28px; align-items: start;
  padding: 36px 0; border-bottom: 1px solid var(--border);
}
.how__step:last-child { border-bottom: none; }
.how__step-num {
  font-family: var(--font-head); font-size: 1.8rem; font-weight: 800;
  color: rgba(245,158,11,0.2); line-height: 1;
}
.how__step-body h3 {
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 700;
  color: var(--fg); margin-bottom: 8px;
}
.how__step-body p { font-size: 0.88rem; color: var(--fg-2); line-height: 1.7; }

.how__cta-row {
  display: flex; justify-content: center;
  padding: 40px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); max-width: 820px; margin: 0 auto;
}
.how__price { text-align: center; }
.how__price-from { display: block; font-size: 0.78rem; color: var(--fg-2); margin-bottom: 8px; }
.how__price-amount {
  font-family: var(--font-head); font-size: 3.2rem; font-weight: 800;
  color: var(--fg); line-height: 1;
}
.how__price-per { font-size: 1.4rem; color: var(--fg-2); }
.how__price-note { display: block; font-size: 0.8rem; color: var(--fg-2); margin-top: 8px; }

/* QUOTE */
.quote-section { padding: 90px 56px; background: var(--bg-2); }
.quote-section__inner { max-width: 720px; margin: 0 auto; }
.quote-section__mark { margin-bottom: 28px; }
.quote-section__text {
  font-family: var(--font-head); font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 600; color: var(--fg); line-height: 1.55; letter-spacing: -0.01em;
  margin-bottom: 36px;
}
.quote-section__attribution { display: flex; align-items: center; gap: 16px; }
.quote-section__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid rgba(245,158,11,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem; color: var(--accent);
}
.quote-section__name { font-weight: 600; font-size: 0.92rem; color: var(--fg); display: block; }
.quote-section__biz { font-size: 0.8rem; color: var(--fg-2); display: block; }

/* CLOSING */
.closing { padding: 120px 56px; }
.closing__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.closing__title {
  font-family: var(--font-head); font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--fg);
  margin-bottom: 24px;
}
.closing__sub { font-size: 1rem; color: var(--fg-2); line-height: 1.75; max-width: 580px; margin: 0 auto 72px; }

.closing__visual { display: flex; justify-content: center; }
.closing__orb {
  position: relative; width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
}
.closing__orb-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.18);
}
.closing__orb-ring { width: 140px; height: 140px; animation: orbit 7s linear infinite; }
.closing__orb-ring--2 { width: 200px; height: 200px; animation-duration: 10s; animation-direction: reverse; border-color: rgba(245,158,11,0.09); }
.closing__orb-ring--3 { width: 270px; height: 270px; animation-duration: 15s; border-color: rgba(245,158,11,0.05); }
.closing__orb-core {
  width: 72px; height: 72px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.28), rgba(245,158,11,0.04));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px rgba(245,158,11,0.25), 0 0 80px rgba(245,158,11,0.08);
}
@keyframes orbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* FOOTER */
.footer { padding: 52px 56px; border-top: 1px solid var(--border); }
.footer__inner { max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__name { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--fg); }
.footer__tagline { font-size: 0.82rem; color: var(--fg-2); }
.footer__legal { font-size: 0.72rem; color: rgba(255,255,255,0.18); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; gap: 56px; }
  .features__grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .proof__logos { gap: 32px; }
}
@media (max-width: 768px) {
  .nav { padding: 14px 24px; }
  .hero { padding: 56px 24px 80px; }
  .features, .how, .quote-section, .closing { padding: 60px 24px; }
  .proof { padding: 32px 24px; }
  .footer { padding: 40px 24px; }
  .hero__stats { flex-direction: column; gap: 20px; padding: 24px; width: 100%; }
  .hero__stat-divider { width: 100%; height: 1px; }
  .hero__metrics { grid-template-columns: repeat(3, 1fr); }
  .how__step { grid-template-columns: 48px 1fr; gap: 18px; }
  .proof__logos { gap: 24px; }
}