/* ──────────────────────────────────────────────
   Acme Landing — main.css
   Vibe: dark, editorial, warm amber accent
   Fonts: Instrument Serif (headings) + DM Sans (body)
   ────────────────────────────────────────────── */

/* ── Tokens ── */
:root {
  --bg:        #07090d;
  --bg-2:      #0e1118;
  --bg-3:      #131721;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.12);
  --text:      #e8e6e1;
  --text-dim:  #8a8580;
  --text-mute: #4d4a46;
  --accent:    #f5a623;
  --accent-dim: rgba(245,166,35,0.15);
  --accent-glow: rgba(245,166,35,0.08);
  --green:     #34c759;
  --red:       #ff453a;
  --radius:    12px;
  --radius-sm: 8px;
  --max-w:     1080px;
  --nav-h:     60px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(7,9,13,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.nav-logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #07090d;
  font-family: 'Instrument Serif', serif;
  font-size: 16px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-name { color: var(--text); }

.nav-cta {
  padding: 8px 18px;
  border: 1px solid var(--border-2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

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

/* ── Hero ── */
.hero {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  text-align: center;
}

/* Radial warm glow behind hero text */
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 40%,
    rgba(245,166,35,0.12) 0%,
    rgba(245,100,20,0.05) 40%,
    transparent 70%
  );
  pointer-events: none;
}

/* Subtle dot-grid texture */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 0%, transparent 100%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s 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: 'Instrument Serif', serif;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-social-proof {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-mute);
}

.hero-social-proof strong {
  color: var(--text-dim);
  font-weight: 500;
}

/* ── Form ── */
.form-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.form-input {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.form-input::placeholder { color: var(--text-mute); }

.form-input:focus {
  border-color: var(--accent);
  background: rgba(245,166,35,0.04);
}

.btn-primary {
  padding: 14px 24px;
  background: var(--accent);
  color: #07090d;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 0 0 rgba(245,166,35,0);
}

.btn-primary:hover {
  opacity: 0.92;
  box-shadow: 0 4px 24px rgba(245,166,35,0.3);
  transform: translateY(-1px);
}

.btn-primary:active { transform: scale(0.98) translateY(0); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.form-msg {
  width: 100%;
  margin-top: 12px;
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: none;
  text-align: left;
}

.form-msg.show { display: block; }

.form-msg.success {
  background: rgba(52,199,89,0.1);
  border: 1px solid rgba(52,199,89,0.2);
  color: var(--green);
}

.form-msg.error {
  background: rgba(255,69,58,0.1);
  border: 1px solid rgba(255,69,58,0.2);
  color: var(--red);
}

/* ── Section shared ── */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 56px;
}

/* ── Features ── */
.features {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

.feature-card {
  background: var(--bg-2);
  padding: 36px 32px;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}

.feature-card:nth-child(1) { border-radius: var(--radius) 0 0 0; }
.feature-card:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
.feature-card:nth-child(3) { border-radius: 0 0 0 var(--radius); }
.feature-card:nth-child(4) { border-radius: 0 0 var(--radius) 0; }

.feature-card:hover {
  background: var(--bg-3);
  border-color: var(--border-2);
}

.feature-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 10px;
}

.feature-body {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
  font-weight: 300;
}

/* ── How it works ── */
.how {
  padding: 100px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.step:last-child { border-bottom: none; }

.step-num {
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  font-weight: 400;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  padding-top: 4px;
}

.step-content h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: #fff;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
  font-weight: 300;
  max-width: 600px;
}

/* ── FAQ ── */
.faq {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.faq-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 64px;
  align-items: start;
}

.faq-header { position: sticky; top: calc(var(--nav-h) + 24px); }

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}

.faq-q:hover { color: #fff; }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-mute);
  transition: transform 0.25s ease, color 0.2s;
}

.faq-q[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  padding-bottom: 20px;
}

.faq-a p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.7;
  font-weight: 300;
}

/* ── CTA band ── */
.cta-band {
  position: relative;
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at 50% 80%,
    rgba(245,166,35,0.1) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.cta-headline {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 36px;
  font-weight: 300;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-mute);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-mute);
}

.footer-links a {
  transition: color 0.2s;
}

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

/* ── Scroll-reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* ── Responsive ── */
@media (max-width: 680px) {
  .hero { padding: 72px 0 88px; }

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

  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .feature-card:nth-child(3),
  .feature-card:nth-child(4) {
    border-radius: 0;
  }

  .feature-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .feature-card:last-child  { border-radius: 0 0 var(--radius) var(--radius); }

  .step {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step-num {
    font-size: 2rem;
    opacity: 0.25;
  }

  .faq-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .faq-header { position: static; }

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

  .form-wrap { flex-direction: column; }

  .form-input { min-width: 0; }
}

@media (max-width: 400px) {
  .hero-headline { font-size: 2.2rem; }
  .cta-headline  { font-size: 1.9rem; }
}
