/* =========================================================
   Acme — Landing Page Stylesheet
   Vibe: dark editorial, warm accent, strong typography
   ========================================================= */

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

:root {
  --bg:          #0e0e0e;
  --bg-alt:      #141414;
  --bg-border:   #1e1e1e;
  --text:        #f0ede8;
  --text-muted:  #7a776f;
  --text-dim:    #3a3830;
  --accent:      #e8ff5a;
  --accent-glow: rgba(232, 255, 90, 0.12);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Syne', system-ui, sans-serif;
  --max-w:        1080px;
  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
}

/* ---- Utilities ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  background: rgba(14, 14, 14, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--bg-border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(232, 255, 90, 0.35);
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 8rem 1.5rem 6rem;
  max-width: var(--max-w);
  margin: 0 auto;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 13ch;
  margin-bottom: 1.5rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 2.75rem;
  line-height: 1.6;
}

/* Email capture */
.capture-form {
  width: 100%;
  max-width: 520px;
}

.capture-row {
  display: flex;
  gap: 0;
  border: 1px solid #2e2e2e;
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.capture-row:focus-within {
  border-color: var(--accent);
}

.capture-input {
  flex: 1;
  background: #161616;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.85rem 1.1rem;
  min-width: 0;
}

.capture-input::placeholder {
  color: #484440;
}

.capture-btn {
  background: var(--accent);
  border: none;
  cursor: pointer;
  color: #0e0e0e;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  transition: opacity 0.2s, background 0.2s;
  flex-shrink: 0;
}

.capture-btn:hover:not(:disabled) {
  opacity: 0.88;
}

.capture-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-arrow {
  transition: transform 0.2s var(--ease);
}

.capture-btn:hover:not(:disabled) .btn-arrow {
  transform: translateX(3px);
}

.capture-fine {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* Hero backdrop glow */
.hero-backdrop {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 640px;
  pointer-events: none;
  opacity: 0.7;
}

.backdrop-shape {
  width: 100%;
  height: auto;
}

/* =========================================================
   PROBLEM
   ========================================================= */
.problem {
  padding: 6rem 0;
  border-top: 1px solid var(--bg-border);
  background: var(--bg-alt);
}

.problem-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3rem;
  align-items: start;
}

.problem-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 0.3rem;
}

.problem-body p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 58ch;
}

.problem-body p + p {
  margin-top: 1.2rem;
}

/* =========================================================
   FEATURES
   ========================================================= */
.features {
  padding: 6rem 0;
  border-top: 1px solid var(--bg-border);
}

.features-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 3.5rem;
  color: var(--text);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-card {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 2rem;
  align-items: start;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--bg-border);
  transition: background 0.2s;
}

.feature-card:first-child {
  border-top: 1px solid var(--bg-border);
}

.feature-card:hover {
  background: rgba(232, 255, 90, 0.025);
  margin: 0 -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.feature-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding-top: 0.2rem;
}

.feature-content h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.feature-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 52ch;
}

.feature-accent {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.feature-card:hover .feature-accent {
  opacity: 1;
  transform: scale(1.05);
}

/* =========================================================
   BOTTOM CTA
   ========================================================= */
.cta-bottom {
  padding: 6rem 0;
  border-top: 1px solid var(--bg-border);
  background: var(--bg-alt);
}

.cta-bottom-inner {
  text-align: center;
}

.cta-bottom h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.cta-bottom p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-scroll-btn {
  display: inline-block;
  background: var(--accent);
  color: #0e0e0e;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.9rem 1.8rem;
  border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.cta-scroll-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--bg-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* =========================================================
   TOAST
   ========================================================= */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  z-index: 999;
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s;
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: rgba(232, 255, 90, 0.4);
  color: var(--accent);
}

.toast.error {
  border-color: rgba(255, 80, 80, 0.4);
  color: #ff7070;
}

/* =========================================================
   SCROLL-TRIGGERED NAV
   ========================================================= */

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .hero {
    padding: 7rem 1.5rem 4rem;
    align-items: flex-start;
  }

  .hero-backdrop {
    display: none;
  }

  .capture-row {
    flex-direction: column;
  }

  .capture-btn {
    justify-content: center;
    padding: 1rem;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .feature-card {
    grid-template-columns: 40px 1fr;
  }

  .feature-accent {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 400px) {
  .capture-row {
    border-radius: 3px;
  }
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow,
.hero-headline,
.hero-sub,
.capture-form {
  animation: fadeUp 0.7s var(--ease) both;
}

.hero-headline  { animation-delay: 0.08s; }
.hero-sub       { animation-delay: 0.16s; }
.capture-form   { animation-delay: 0.24s; }
