/* ═══════════════════════════════════════════════
   COMPOUND — World-class dark landing page
   Inspired by codewiki.google's design language
   ═══════════════════════════════════════════════ */

/* ── TOKENS ──────────────────────────────────── */
:root {
  /* Surfaces */
  --bg:             #000000;
  --bg-raised:      #070a0e;
  --bg-card:        #0f1318;
  --bg-card-hover:  #151b23;

  /* Text */
  --text:           #ffffff;
  --text-2:         #9ca3af;
  --text-3:         #4b5563;

  /* Blue (CodeWiki accent) */
  --blue:           #007af4;
  --blue-soft:      #3a9bff;
  --blue-glow:      rgba(0, 122, 244, 0.25);
  --blue-surface:   #111d2e;

  /* Borders */
  --border:         rgba(255, 255, 255, 0.06);
  --border-2:       rgba(255, 255, 255, 0.12);

  /* Utility */
  --green:          #34d399;
  --red:            #f87171;

  /* Type */
  --serif:          'Instrument Serif', Georgia, serif;
  --sans:           'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:           'JetBrains Mono', 'Fira Code', monospace;

  /* Layout */
  --container:      1200px;
  --gutter:         32px;
  --radius:         20px;
  --radius-sm:      12px;
  --radius-pill:    100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── NAVBAR ──────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 var(--gutter);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}

.nav-social:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ── SECTION SYSTEM ──────────────────────────── */
.section {
  padding: 120px var(--gutter);
}

.section--accent {
  background: var(--bg-raised);
  position: relative;
}

/* Hairline gradient divider on accent sections */
.section--accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2) 30%, var(--border-2) 70%, transparent);
}

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

/* ── LIGHT SECTION VARIANT ───────────────────── */
.section--light {
  background: #f5f6f8;
  position: relative;
}

.section--light::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0.08) 70%, transparent);
}

.section--light::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0.08) 70%, transparent);
}

.section--light .section-label {
  color: var(--blue);
  border-color: rgba(0, 122, 244, 0.3);
  background: rgba(0, 122, 244, 0.08);
}

.section--light .section-title {
  color: #111827;
}

.section--light .section-lead {
  color: #6b7280;
}

.section--light .stack-meta {
  color: #6b7280;
}

.stack-meta-dot {
  color: var(--blue);
  margin: 0 4px;
}

.stack-meta-highlight {
  color: var(--blue);
  font-weight: 600;
}

.section--light .browser-mockup {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 24px 80px -12px rgba(0, 0, 0, 0.15);
}

.section--cta {
  background: var(--bg);
  padding: 160px var(--gutter);
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-inner--narrow {
  max-width: 800px;
}

/* Section label pills */
.section-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-soft);
  border: 1px solid rgba(0, 122, 244, 0.3);
  background: rgba(0, 122, 244, 0.06);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 32px;
}

/* Section titles — Instrument Serif */
.section-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.section-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: 64px;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  padding: 160px var(--gutter) 70px;
  overflow: hidden;
}

/* Atmospheric blue glow behind form */
.hero-glow {
  position: absolute;
  width: 800px;
  height: 500px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -40%);
  background: radial-gradient(ellipse, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

.hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  gap: 40px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-soft);
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(52px, 10vw, 96px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-align: center;
  color: var(--text);
}

.hero-headline em {
  font-style: italic;
  background: linear-gradient(135deg, var(--text) 20%, var(--blue-soft) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-headline .dot {
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
}

.star-period {
  display: inline-block;
  vertical-align: baseline;
  margin-left: 0.04em;
  position: relative;
  top: 0.03em;
}

.star-period svg {
  width: 0.22em;
  height: 0.22em;
  display: block;
  filter: drop-shadow(0 0 6px rgba(58, 155, 255, 0.7)) drop-shadow(0 0 14px rgba(58, 155, 255, 0.35));
}

.hero-sub {
  font-size: 24px;
  line-height: 1.6;
  text-align: center;
  max-width: 640px;
  /* Gradient text like CodeWiki */
  background: radial-gradient(circle, #ffffff, #547faa);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-fine {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-3);
  font-family: var(--sans);
}

.hero-fine .sep {
  color: var(--text-3);
  opacity: 0.5;
}

/* Desktop: form wrapper centraliza o shell */
.form-mobile-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── FORM SHELL (Shine Trail) ────────────────── */
.hero-form-shell {
  position: relative;
  width: 100%;
  max-width: 656px;
  height: 92.5px;
  border-radius: var(--radius-pill);
  background-color: #2a3548;
  padding: 2px;
  overflow: hidden;
  z-index: 10;
  box-shadow:
    rgba(0, 0, 0, 0.15) 0px 34px 84px -30px,
    rgba(0, 122, 244, 0.2) 0px -80px 100px 60px;
}

/* The shine element that orbits the border */
.shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.shine::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  top: 0;
  left: 0;
  offset-path: rect(0 auto auto 0 round 50px);
  offset-distance: 0%;
  animation: shine-drive 8s linear infinite;
  z-index: 0;
  filter: blur(8px);
}

.shine::after {
  content: none;
}

@keyframes shine-drive {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

/* The form itself sits above the shine border */
.hero-form {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.92);
  border-radius: 48px;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.form-row {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  height: 100%;
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 21px;
  padding: 32px 50px;
  min-width: 0;
  height: 100%;
}

.form-input::placeholder {
  color: #9aa0a6;
}

.form-btn {
  flex-shrink: 0;
  background: #ffffff;
  color: #0d2660;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  border: 1.5px solid rgba(210, 215, 225, 0.55);
  border-radius: 40px;
  padding: 0 28px;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  height: calc(100% - 16px);
  margin-right: 8px;
  position: relative;
  overflow: hidden;
  transition: color 0.25s ease, border-color 0.25s, transform 0.2s ease, box-shadow 0.25s;
}

/* Top gloss shimmer */
.form-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0.0) 50%
  );
  pointer-events: none;
  z-index: 0;
}

.form-btn::after {
  content: none;
}

.form-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

.form-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.form-btn:active::before {
  background: #eaf0ff;
}

/* Desktop: hide the external below-button, show inline */
.form-btn--below {
  display: none;
}

.form-btn.success {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #059669;
  box-shadow:
    -5px -5px 16px rgba(255, 255, 255, 0.12),
     6px  6px 18px rgba(0, 0, 0, 0.45),
    0 8px 28px -4px rgba(52, 211, 153, 0.25),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(52, 200, 140, 0.1);
}

.form-error {
  font-size: 13px;
  color: var(--red);
  text-align: center;
  padding-top: 4px;
  display: none;
}

.form-error:not(:empty) {
  display: block;
}

/* ── CARD GRIDS ──────────────────────────────── */
.card-grid {
  display: grid;
  gap: 20px;
  width: 100%;
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ── BORDER SWEEP (CodeWiki chase-light effect) ── */
/*
 * 3-layer technique:
 *   ::before (z:0) — oversized conic-gradient disc, centered, spinning
 *   ::after  (z:1) — card background at inset: 2px masks the interior
 *   children (z:2) — content sits above both pseudo-elements
 *
 * ::before is a square sized to the card's diagonal so its corners
 * always reach the card edges as it rotates. overflow: hidden clips
 * it to the card border-box. ::after redraws the background inside
 * leaving only ~2px of border where the gradient is visible.
 */

@keyframes card-border-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Layer 1: oversized spinning disc — two lights 180° apart */
.pain-card::before,
.solution-card::before,
.quote-card::before,
.fit-col::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  transform-origin: center center;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(58, 155, 255, 0.6) 8deg,
    rgba(200, 230, 255, 1.0) 16deg,
    rgba(58, 155, 255, 0.6) 24deg,
    transparent 36deg,
    transparent 180deg,
    rgba(58, 155, 255, 0.6) 188deg,
    rgba(200, 230, 255, 1.0) 196deg,
    rgba(58, 155, 255, 0.6) 204deg,
    transparent 216deg,
    transparent 360deg
  );
  /* blur spreads the light so it's visible through the 1px ::after gap */
  filter: blur(3px);
  animation: card-border-spin 9s linear infinite;
  animation-play-state: paused;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

/* Layer 2: card background redrawn to mask the interior */
.pain-card::after,
.solution-card::after,
.quote-card::after,
.fit-col::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-card);
  border-radius: calc(var(--radius) - 1px);
  pointer-events: none;
  z-index: 1;
}

.pain-card:hover::before,
.solution-card:hover::before,
.quote-card:hover::before,
.fit-col:hover::before {
  animation-play-state: running;
  opacity: 1;
}

/* Fit col color variants */
.fit-col--yes::before {
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(52, 211, 153, 0.5) 10deg,
    rgba(180, 255, 220, 1.0) 18deg,
    rgba(52, 211, 153, 0.5) 26deg,
    transparent 40deg,
    transparent 180deg,
    rgba(52, 211, 153, 0.5) 190deg,
    rgba(180, 255, 220, 1.0) 198deg,
    rgba(52, 211, 153, 0.5) 206deg,
    transparent 220deg,
    transparent 360deg
  );
}

.fit-col--no::before {
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(248, 113, 113, 0.5) 10deg,
    rgba(255, 210, 210, 1.0) 18deg,
    rgba(248, 113, 113, 0.5) 26deg,
    transparent 40deg,
    transparent 180deg,
    rgba(248, 113, 113, 0.5) 190deg,
    rgba(255, 210, 210, 1.0) 198deg,
    rgba(248, 113, 113, 0.5) 206deg,
    transparent 220deg,
    transparent 360deg
  );
}

/* Layer 3: all direct children sit above the pseudo-element layers */
.pain-card > *,
.solution-card > *,
.quote-card > *,
.fit-col > * {
  position: relative;
  z-index: 2;
}

/* ── PAIN CARDS ──────────────────────────────── */
.pain-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.pain-card:hover {
  border-color: transparent; /* expõe o ::before na linha da borda */
  transform: translateY(-4px);
}

.pain-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-surface);
  color: var(--blue-soft);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.pain-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.pain-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ── SOLUTION CARDS ──────────────────────────── */
.solution-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.solution-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
}

.sol-number {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 20px;
}

.sol-title {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.sol-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ── BROWSER MOCKUP + EMAIL PREVIEW ─────────── */
.browser-mockup {
  width: 100%;
  max-width: 680px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 24px 80px -12px rgba(0, 0, 0, 0.55);
}

/* Toolbar */
.browser-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #1a1d23;
}

.browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--red { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green { background: #28c840; }

.browser-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #2a2d35;
  border-radius: 6px;
  color: #c0c4cc;
  font-size: 11px;
  font-family: var(--mono);
  white-space: nowrap;
}

.browser-tab svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.browser-address {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  padding: 5px 12px;
  background: #0d0f12;
  border-radius: 6px;
  color: #7a7f8a;
  font-size: 11px;
  font-family: var(--mono);
}

.browser-address svg {
  flex-shrink: 0;
  color: #28c840;
}

.address-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Browser content area */
.browser-content {
  background: #f5f6f8;
  padding: 24px;
}

/* Email card */
.email-mockup {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Email header */
.email-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.email-avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-meta {
  flex: 1;
  min-width: 0;
}

.email-from {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
}

.email-address {
  font-weight: 400;
  color: #6b7280;
}

.email-subject {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-top: 2px;
}

.email-date {
  flex-shrink: 0;
  font-size: 11px;
  color: #9ca3af;
  font-family: var(--mono);
  white-space: nowrap;
  margin-top: 2px;
}

/* Email body - stack sections */
.email-body {
  padding: 24px;
  text-align: left;
}

.email-stack-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.email-stack-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 2px;
}

.email-stack-icon--red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.email-stack-icon--blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.email-stack-icon--green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.email-stack-icon--purple { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

.email-stack-num {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.email-stack-icon--red .email-stack-num { background: #ef4444; }
.email-stack-icon--blue .email-stack-num { background: #3b82f6; }
.email-stack-icon--green .email-stack-num { background: #10b981; }
.email-stack-icon--purple .email-stack-num { background: #8b5cf6; }

.email-stack-text {
  padding-top: 2px;
  text-align: left;
}

.email-stack-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 3px;
  text-align: left;
}

.email-stack-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #6b7280;
  text-align: left;
}

/* Connector line between items */
.email-connector {
  width: 2px;
  height: 20px;
  margin: 4px 0 4px 17px;
  background: linear-gradient(to bottom, #e5e7eb, #d1d5db);
  border-radius: 1px;
}

.stack-meta {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 28px;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ── STATS ROW ───────────────────────────────── */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--text-2);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* ── QUOTE CARDS ─────────────────────────────── */
.quote-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.quote-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
}

.quote-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  margin-bottom: 20px;
}

.quote-author {
  font-size: 13px;
  color: var(--text-3);
  font-family: var(--mono);
}

/* ── AUDIENCE FIT ────────────────────────────── */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  max-width: 800px;
}

.fit-col {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  text-align: left;
  overflow: hidden;
  transition: border-color 0.3s;
}

.fit-col--yes {
  border-color: rgba(52, 211, 153, 0.2);
}

.fit-col--yes:hover {
  border-color: transparent;
}

.fit-col--no {
  border-color: rgba(248, 113, 113, 0.15);
}

.fit-col--no:hover {
  border-color: transparent;
}

.fit-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.fit-col--yes .fit-heading {
  color: var(--green);
}

.fit-col--no .fit-heading {
  color: var(--red);
}

.fit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fit-list li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-2);
  padding-left: 0;
}

/* ── FINAL CTA ───────────────────────────────── */
.cta-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.cta-title .dot {
  color: var(--blue);
}

.cta-sub {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 480px;
  margin-bottom: 40px;
}

/* ── FOOTER ──────────────────────────────────── */
.footer {
  padding: 80px var(--gutter) 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding-bottom: 40px;
  text-align: center;
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.7;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-3);
  font-family: var(--serif);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 64px;
  justify-content: center;
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 4px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 40px;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}

.footer-meta-link {
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-meta-link:hover {
  color: var(--text);
}

/* ── REVEAL ANIMATIONS ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children in grids */
.card-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.card-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ── RESPONSIVE ──────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .section { padding: 100px var(--gutter); }
  .section--cta { padding: 120px var(--gutter); }
  .stats-row { gap: 48px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  .nav-inner { height: 60px; }
  .logo-img { height: 36px; }

  .hero {
    padding: 120px var(--gutter) 60px;
    min-height: auto;
  }

  .hero-headline {
    font-size: clamp(40px, 11vw, 64px);
  }

  .hero-sub {
    font-size: 17px;
    max-width: 400px;
  }

  /* Mobile form wrapper — stacks shell + button vertically */
  .form-mobile-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 600px;
  }

  .hero-form-shell {
    max-width: 100%;
    /* keep overflow:hidden so shine orbits correctly */
    overflow: hidden;
    border-radius: 50px;
    padding: 2px;
    height: 68px;
  }

  .hero-form {
    border-radius: 48px;
  }

  .form-row {
    height: 100%;
    flex-direction: row;
  }

  .form-input {
    width: 100%;
    padding: 0 24px;
    font-size: 17px;
    height: 100%;
    text-align: center;
  }

  /* Hide the inline button inside the shell on mobile */
  .form-btn--inline {
    display: none;
  }

  /* Show the external button below the shell */
  .form-btn--below {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    font-size: 16px;
    margin-right: 0;
    border-radius: 50px;
    padding: 0;
  }

  /* On desktop the --below button is hidden */

  .hero-fine {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
  }

  .section {
    padding: 70px var(--gutter);
  }

  .section--cta {
    padding: 90px var(--gutter);
  }

  .section-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .section-lead {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .card-grid--3 {
    grid-template-columns: 1fr;
  }

  .stats-row {
    flex-direction: column;
    gap: 32px;
    align-items: center;
  }

  .stat-num {
    font-size: 32px;
  }

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

  .footer-layout {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .cta-title {
    font-size: clamp(32px, 9vw, 48px);
  }

  /* Browser mockup responsive */
  .browser-tab .tab-label {
    display: none;
  }

  .browser-content {
    padding: 16px;
  }

  .email-header {
    padding: 16px 18px;
    flex-wrap: wrap;
  }

  .email-date {
    width: 100%;
    margin-top: 4px;
    padding-left: 48px;
  }

  .email-body {
    padding: 18px;
  }

  .email-stack-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .email-stack-icon svg {
    width: 16px;
    height: 16px;
  }

  .email-connector {
    margin-left: 15px;
  }

  .hero-glow {
    width: 380px;
    height: 240px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-headline {
    font-size: clamp(34px, 9.5vw, 42px);
  }

  .hero {
    padding: 100px var(--gutter) 50px;
  }

  .hero-sub {
    font-size: 15px;
    max-width: 100%;
  }

  .stat-num {
    font-size: 28px;
  }

  .section {
    padding: 50px var(--gutter);
  }

  .section--cta {
    padding: 60px var(--gutter);
  }

  .pain-card, .solution-card, .quote-card {
    padding: 24px 20px;
  }

  .fit-col {
    padding: 24px 20px;
  }

  .footer {
    padding: 40px var(--gutter) 28px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  .card-grid--3,
  .card-grid--2 {
    gap: 12px;
  }

  /* Browser mockup small mobile */
  .address-text {
    display: none;
  }

  .email-address {
    display: none;
  }

  .browser-content {
    padding: 10px;
  }

  .email-header {
    padding: 14px 16px;
  }

  .email-body {
    padding: 14px;
  }

  .email-stack-name {
    font-size: 14px;
  }

  .email-stack-desc {
    font-size: 12px;
  }

  .browser-toolbar {
    padding: 8px 12px;
    gap: 8px;
  }
}

/* ── REDUCED MOTION ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-glow {
    opacity: 0.3;
  }

  .shine::before,
  .shine::after {
    animation: none;
    opacity: 0.3;
  }
}