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

:root {
  --bg:         #0d0f0d;
  --surface:    #141714;
  --surface2:   #1a1e1a;
  --border:     rgba(255,255,255,0.08);
  --border2:    rgba(255,255,255,0.12);
  --green:      #4ade80;
  --green-dim:  #22c55e;
  --green-glow: rgba(74,222,128,0.15);
  --text:       #e8f0e8;
  --text-mid:   #9ab09a;
  --text-soft:  #5a705a;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans:  'Syne', 'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 66px;
  background: rgba(13,15,13,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo svg { color: var(--green); }

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-ghost {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border2);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--border2); }

.btn-primary {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: #0d0f0d;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 8px;
  background: var(--green);
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-primary:hover { background: var(--green-dim); transform: translateY(-1px); }
.btn-large { padding: 15px 36px; font-size: 15px; border-radius: 10px; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  padding: 120px 5vw 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,222,128,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,222,128,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,222,128,0.08) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.hero-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,222,128,0.05) 0%, transparent 70%);
  bottom: 0; right: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74,222,128,0.08);
  border: 1px solid rgba(74,222,128,0.2);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}
.pill-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.5vw, 62px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-content h1 em {
  font-style: italic;
  color: var(--green);
}

.hero-sub {
  font-size: 16px;
  color: var(--text-mid);
  max-width: 440px;
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 36px;
}

.hero-footnote {
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 14px;
  letter-spacing: 0.3px;
}

/* ── SIGNUP CARD ── */
.signup-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 28px 28px 24px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px var(--border),
    0 24px 64px rgba(0,0,0,0.5),
    0 0 60px var(--green-glow);
}

.signup-tabs {
  display: flex;
  gap: 4px;
  background: var(--surface2);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}
.tab-btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text-soft);
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.form-field {
  margin-bottom: 16px;
}
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.form-field input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input::placeholder { color: var(--text-soft); }
.form-field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(74,222,128,0.1);
}
.field-hint {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 5px;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.5;
}
.form-check input { width: auto; margin-top: 2px; accent-color: var(--green); }
.form-check a { color: var(--green); text-decoration: none; }

.btn-submit {
  width: 100%;
  padding: 13px;
  background: var(--green);
  color: #0d0f0d;
  border: none;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.3px;
}
.btn-submit:hover { background: var(--green-dim); transform: translateY(-1px); }

.form-footer {
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-soft);
  text-align: center;
}

.forgot-link {
  display: block;
  font-size: 12px;
  color: var(--green);
  text-decoration: none;
  text-align: right;
  margin-top: -8px;
  margin-bottom: 18px;
}

/* Success states */
.signup-success {
  display: none;
  text-align: center;
  padding: 20px 8px;
}
.success-icon {
  width: 52px; height: 52px;
  background: rgba(74,222,128,0.12);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--green);
  margin: 0 auto 16px;
}
.signup-success h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
}
.signup-success p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}
.signup-success a { color: var(--green); text-decoration: none; }
.success-sub { margin-top: 10px; font-size: 12px; }

/* ── MOCKUP ── */
.hero-mockup {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.mockup-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 22px;
  width: 320px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}
.mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dot.r { background: #ff5f57; }
.mockup-dot.y { background: #febc2e; }
.mockup-dot.g { background: #28c840; }
.mockup-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}

.mockup-date {
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mockup-habits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.habit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
  padding: 8px 10px;
  background: var(--surface2);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.habit-row.done { color: var(--text); }
.habit-check {
  width: 20px; height: 20px;
  background: rgba(74,222,128,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--green);
  flex-shrink: 0;
}
.habit-check.empty {
  background: var(--surface);
  border: 1px solid var(--border2);
}
.habit-streak { margin-left: auto; font-size: 11px; }

.mockup-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-soft);
}
.score-bar {
  flex: 1;
  height: 5px;
  background: var(--surface2);
  border-radius: 3px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  border-radius: 3px;
}
.score-pct { color: var(--green); font-weight: 600; }

.mockup-email-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(74,222,128,0.06);
  border: 1px solid rgba(74,222,128,0.15);
  border-radius: 10px;
  padding: 10px 12px;
}
.email-badge-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.email-badge-title { font-size: 12px; font-weight: 600; color: var(--text); }
.email-badge-sub { font-size: 11px; color: var(--text-soft); }

/* ── FEATURES ── */
.features {
  padding: 100px 5vw;
  max-width: 1200px;
  margin: 0 auto;
}
.features-header {
  margin-bottom: 60px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.features-header h2, .how-inner h2, .emails-inner h2, .faq-inner h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.feat {
  background: var(--surface);
  padding: 30px 26px;
  transition: background 0.2s;
}
.feat:hover { background: var(--surface2); }

.feat-icon-wrap {
  width: 40px; height: 40px;
  background: rgba(74,222,128,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 16px;
  border: 1px solid rgba(74,222,128,0.15);
}
.feat h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.feat p { font-size: 13px; color: var(--text-mid); line-height: 1.65; }

/* ── HOW IT WORKS ── */
.how {
  padding: 80px 5vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.how-inner h2 { margin-bottom: 50px; }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.step {
  flex: 1;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 26px;
}
.step-num {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--green);
  line-height: 1;
  margin-bottom: 14px;
  opacity: 0.6;
}
.step-body h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.step-body p { font-size: 13px; color: var(--text-mid); line-height: 1.65; }
.step-body strong { color: var(--green); font-weight: 600; }

.step-arrow {
  font-size: 24px;
  color: var(--text-soft);
  margin-top: 36px;
  flex-shrink: 0;
}

/* ── EMAIL TYPES ── */
.emails-section {
  padding: 100px 5vw;
  max-width: 1200px;
  margin: 0 auto;
}
.emails-inner { }
.emails-inner h2 { margin-bottom: 12px; }
.section-sub { font-size: 15px; color: var(--text-mid); margin-bottom: 50px; max-width: 480px; }

.email-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.email-type {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}
.email-type:hover { border-color: rgba(74,222,128,0.3); }
.email-type-icon { font-size: 24px; margin-bottom: 12px; }
.email-type h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.email-type p { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ── FAQ ── */
.faq {
  padding: 80px 5vw;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-inner h2 { margin-bottom: 36px; }

.faq-list { display: flex; flex-direction: column; gap: 4px; }
.faq-item { border: 1px solid var(--border2); border-radius: 10px; overflow: hidden; }
.faq-q {
  width: 100%;
  padding: 18px 20px;
  background: var(--surface2);
  border: none;
  text-align: left;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--surface); }
.faq-q span { color: var(--green); font-size: 20px; transition: transform 0.2s; }
.faq-q.open span { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  background: var(--surface2);
}
.faq-a.open { display: block; }

/* ── CTA FINAL ── */
.cta-final {
  padding: 100px 5vw;
  text-align: center;
}
.cta-final h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 32px;
  letter-spacing: -0.5px;
}
.cta-final h2 em { color: var(--green); font-style: italic; }
.cta-note { margin-top: 14px; font-size: 12px; color: var(--text-soft); }

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 52px 5vw 28px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-brand { }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 12px;
}
.footer-logo svg { color: var(--green); }
.footer-brand p { font-size: 13px; color: var(--text-soft); line-height: 1.7; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: var(--text-mid); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom {
  max-width: 1100px;
  margin: 22px auto 0;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-soft);
}

/* ── MOBILE ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero-mockup { display: none; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .email-types { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; }
  .step-arrow { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .email-types { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}
