/* ===========================
   INSTAFLOW — THEME CSS
   =========================== */

/* --- Fonts --- */
:root {
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1e1e1e;
  --border: #2a2a2a;
  --fg: #f0ede6;
  --fg-muted: #8a8782;
  --accent: #c8f537;
  --accent-dim: rgba(200, 245, 55, 0.12);
  --red: #ff5f5f;
}

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

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

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

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.nav-tagline {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Hero --- */
.hero {
  padding: 100px 32px 80px;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--fg);
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 420px;
}

/* Hero card stack */
.hero-card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.hero-card:hover {
  border-color: var(--accent);
  transform: translateX(-4px);
}
.card-icon {
  color: var(--accent);
  margin-bottom: 4px;
}
.card-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
}
.card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}
.card-sub {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* --- Problem --- */
.problem {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 80px 32px;
}
.problem-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.problem-label, .how-label, .features-label, .agency-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.problem-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  max-width: 600px;
}
.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
}
.problem-stat {
  background: var(--bg);
  padding: 36px 32px;
}
.pstat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.pstat-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.5;
}
.problem-bottom {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--fg-muted);
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

/* --- How It Works --- */
.how {
  padding: 80px 32px;
}
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.how-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  max-width: 600px;
}
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step { position: relative; }
.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 20px;
}
.step-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.step-desc {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* --- Features --- */
.features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 80px 32px;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.features-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  max-width: 600px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.feat {
  background: var(--surface);
  padding: 36px 32px;
  transition: background 0.2s ease;
}
.feat:hover { background: var(--surface-2); }
.feat-icon {
  color: var(--accent);
  margin-bottom: 16px;
}
.feat-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feat-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* --- Agency --- */
.agency {
  padding: 80px 32px;
  border-top: 1px solid var(--border);
}
.agency-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.agency-headline {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
  max-width: 600px;
}
.agency-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.ag-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
}
.ag-featured {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.ag-tier {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.ag-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 24px;
}
.ag-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-muted);
}
.ag-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ag-features li {
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}
.ag-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Closing --- */
.closing {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.closing-text {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.closing-text strong {
  color: var(--fg);
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}
.footer-desc {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.8125rem;
  color: var(--fg-muted);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.75rem;
  color: var(--border);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { display: none; }
  .problem-stats { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr; gap: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .agency-cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 24px; align-items: flex-start; }
  .hero { padding: 64px 24px 56px; }
  .problem, .how, .features, .agency, .closing { padding: 64px 24px; }
  .nav-inner { padding: 16px 24px; }
}