/* ─── TOKENS ─────────────────────────────────── */
:root {
  --bg:        #0D1117;
  --surface:   #161B22;
  --border:    rgba(245,166,35,0.12);
  --fg:        #E8E6E0;
  --fg-muted:  #8B8A87;
  --accent:    #F5A623;
  --accent-dim: rgba(245,166,35,0.08);
  --radius:    6px;
}

/* ─── BASE ──────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
}
.nav-tag {
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 400;
}

/* ─── HERO ──────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 32px 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,166,35,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,166,35,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 28px;
  font-weight: 500;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(36px, 5.5vw, 62px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 52px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 28px;
  width: fit-content;
}
.proof-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 24px;
}
.proof-stat:first-child { padding-left: 0; }
.proof-num {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--accent);
  line-height: 1;
}
.proof-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Phone mockup */
.hero-illustration {
  display: flex;
  justify-content: flex-end;
}
.phone-mockup {
  filter: drop-shadow(0 24px 60px rgba(245,166,35,0.12));
}
.phone-frame {
  width: 240px;
  background: #1C2128;
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: 28px;
  padding: 14px 14px 14px;
  position: relative;
}
.phone-notch {
  width: 64px;
  height: 20px;
  background: #1C2128;
  border-radius: 0 0 14px 14px;
  margin: 0 auto 10px;
  position: relative;
  z-index: 1;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.email-preview {
  background: #11151C;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.06);
}
.email-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.email-logo {
  width: 28px; height: 28px;
  background: rgba(245,166,35,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.email-meta { flex: 1; }
.email-from {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
}
.email-time {
  font-size: 10px;
  color: var(--fg-muted);
}
.email-subject {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 10px;
  padding: 6px 8px;
  background: rgba(245,166,35,0.06);
  border-radius: 6px;
  border-left: 2px solid var(--accent);
}
.email-preview-body {
  margin-bottom: 12px;
}
.preview-line {
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.07);
  margin-bottom: 5px;
}
.preview-line.long   { width: 100%; }
.preview-line.medium { width: 78%; }
.preview-line.short  { width: 55%; }
.email-highlight {
  background: rgba(245,166,35,0.08);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.highlight-icon {
  width: 30px; height: 30px;
  background: rgba(245,166,35,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.highlight-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 2px;
}
.highlight-desc {
  font-size: 9px;
  color: var(--fg-muted);
}

/* ─── MANIFESTO ─────────────────────────────── */
.manifesto {
  padding: 80px 32px;
  border-top: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.manifesto-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 24px;
}
.manifesto-text {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: var(--fg);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 20px;
}
.manifesto-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 36px;
}
.manifesto-rule {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rule-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.rule-text {
  font-size: 12px;
  color: var(--fg-muted);
  white-space: nowrap;
}

/* ─── FEATURES ──────────────────────────────── */
.features {
  padding: 96px 32px;
  border-top: none;
}
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--fg);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.2s;
}
.feature-card:hover {
  border-color: rgba(245,166,35,0.3);
}
.feature-art {
  margin-bottom: 20px;
}
.feature-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  color: var(--fg);
  margin-bottom: 10px;
  font-weight: 400;
}
.feature-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.feature-example {
  font-size: 12px;
  color: var(--fg-muted);
  padding: 10px 12px;
  background: var(--accent-dim);
  border-radius: 8px;
  border-left: 2px solid var(--accent);
}
.example-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 8px;
}

/* ─── NICHE ─────────────────────────────────── */
.niche {
  padding: 80px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.niche-inner {
  max-width: 860px;
  margin: 0 auto;
}
.niche-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.niche-rule-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.niche-rule-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.niche-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 40px;
}
.niche-block {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.niche-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.niche-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 6px;
}
.niche-desc {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* ─── CLOSING ───────────────────────────────── */
.closing {
  padding: 100px 32px;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.closing-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.closing-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.closing-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 48px;
}
.closing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.cstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cstat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.cstat-label {
  font-size: 11px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cstat-sep {
  font-size: 28px;
  color: var(--border);
  font-weight: 200;
  margin-top: -4px;
}

/* ─── FOOTER ────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 32px;
}
.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-name {
  font-weight: 600;
  font-size: 14px;
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-meta {
  font-size: 11px;
  color: rgba(139,138,135,0.5);
}

/* ─── MID CTA ────────────────────────────────── */
.midcta {
  padding: 96px 32px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
}
.midcta-inner {
  max-width: 620px;
  margin: 0 auto;
}
.midcta-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
}
.midcta-rule-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.midcta-rule-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.midcta-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--fg);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.midcta-body {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 36px;
  font-weight: 300;
}
.midcta .cta-form {
  margin: 0 auto;
}

/* ─── RESPONSIVE ────────────────────────────── */
@media (max-width: 640px) {
  .navbar { padding: 12px 20px; }
  .hero { padding: 90px 20px 60px; }
  .hero-illustration { display: none; }
  .hero-proof {
    flex-wrap: wrap;
    gap: 16px;
    width: 100%;
  }
  .proof-stat { padding: 0 16px; }
  .proof-divider { display: none; }

  /* CTA forms — large touch targets */
  .cta-form {
    flex-direction: column;
    max-width: 100%;
  }
  .cta-form .form-name { flex: none; }
  .cta-form input[type="text"],
  .cta-form input[type="email"],
  .cta-form button {
    width: 100%;
    padding: 15px 16px;
    font-size: 16px; /* prevents iOS zoom */
  }

  .feature-grid { grid-template-columns: 1fr; }
  .niche-grid { grid-template-columns: 1fr; }
  .closing-stats { flex-wrap: wrap; }

  /* Mid CTA mobile */
  .midcta { padding: 72px 20px; }
  .midcta .cta-form { max-width: 100%; }

  /* Sticky CTA mobile */
  .sticky-cta {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 8px;
  }
  .sticky-cta-label { width: 100%; text-align: center; }
  .sticky-cta .cta-form {
    flex-direction: column;
    width: 100%;
  }
  .sticky-cta .cta-form input,
  .sticky-cta .cta-form button { width: 100%; }
  .sticky-cta-close { position: absolute; top: 8px; right: 12px; }
}

/* ─── CLOSING CTA ────────────────────────────── */
.closing-cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: opacity 0.15s;
}
.closing-cta:hover { opacity: 0.85; }

/* ─── INLINE CTA FORM (hero + mid-page) ──────── */
.cta-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin-bottom: 8px;
}
.cta-form .form-name {
  flex: 0 0 160px;
}
.cta-form input[type="text"],
.cta-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.cta-form input::placeholder { color: var(--fg-muted); }
.cta-form input:focus { border-color: rgba(245,166,35,0.4); }
.cta-form button {
  padding: 13px 22px;
  background: var(--accent);
  color: var(--bg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.cta-form button:hover { opacity: 0.85; }
.cta-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.cta-subtext {
  font-size: 12px;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.cta-message {
  font-size: 13px;
  margin-top: 10px;
  display: none;
}
.cta-message.success { color: var(--accent); }
.cta-message.error   { color: #ef4444; }

/* ─── STICKY FOOTER BAR ──────────────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(22,27,34,0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-label {
  font-size: 13px;
  color: var(--fg-muted);
  white-space: nowrap;
}
.sticky-cta .cta-form { margin: 0; }
.sticky-cta .cta-form input { padding: 10px 14px; }
.sticky-cta .cta-form button { padding: 10px 20px; }
.sticky-cta-close {
  background: none;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px 8px;
  flex-shrink: 0;
}
.sticky-cta-close:hover { color: var(--fg); }

/* body padding for sticky bar */
body { padding-bottom: 0; }
body.sticky-active { padding-bottom: 72px; }
