/* ─────────────────────────────────────────────────────────────────────────────
   styles.css — Landing page
   Aesthetic: Dark editorial. Warm amber accent. Instrument Serif × Satoshi.
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  --bg:           #0e0d0c;
  --bg-raised:    #161412;
  --bg-border:    #272320;
  --text:         #f0ebe3;
  --text-muted:   #8a8076;
  --text-faint:   #4a453f;
  --accent:       #e8a838;
  --accent-dim:   rgba(232, 168, 56, 0.12);
  --accent-glow:  rgba(232, 168, 56, 0.2);
  --error:        #e86038;
  --success:      #56b98a;
  --radius-sm:    4px;
  --radius:       8px;
  --radius-lg:    16px;
  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body:    'Satoshi', system-ui, sans-serif;
  --max-w:        1100px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  /* Subtle noise texture for depth */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

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

/* Screen-reader only */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

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

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: opacity var(--transition);
}
.brand:hover { opacity: 0.8; }
.brand-mark { color: var(--accent); font-size: 14px; }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(232, 168, 56, 0.35);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.01em;
  transition: background var(--transition), border-color var(--transition);
}
.nav-cta:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
}

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-eyebrow { margin-bottom: 28px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 168, 56, 0.2);
  padding: 5px 12px;
  border-radius: 100px;
}
.badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  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: var(--font-display);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 800px;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  background: var(--accent);
  color: #0e0d0c;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  border: none;
  transition: box-shadow var(--transition), transform var(--transition), background var(--transition);
  box-shadow: 0 4px 24px var(--accent-glow);
}
.btn-primary:hover {
  background: #f0b840;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

/* ─── Hero subscribe form ────────────────────────────────────────────────────── */
.hero-subscribe-form {
  width: 100%;
  max-width: 520px;
  margin-bottom: 56px;
}

.hero-input-group {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}

.btn-hero-submit {
  height: 52px;
  padding: 0 28px;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.btn-hero-submit .btn-loading { display: none; }
.btn-hero-submit.loading .btn-text    { display: none; }
.btn-hero-submit.loading .btn-loading { display: inline; }

/* ─── Hero visual placeholder ────────────────────────────────────────────────── */
/* TODO: Replace .hero-visual with <img src="your-screenshot.png" alt="..."> */
.hero-visual {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  background: var(--bg-raised);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(0,0,0,0.4),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
.hero-visual-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.placeholder-ui {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.placeholder-bar {
  height: 12px;
  background: var(--bg-border);
  border-radius: 6px;
  animation: shimmer 2s ease-in-out infinite;
}
.placeholder-bar.wide   { width: 100%; }
.placeholder-bar.medium { width: 72%; }
.placeholder-bar.short  { width: 45%; }
.placeholder-row {
  display: flex;
  gap: 16px;
}
.placeholder-block {
  flex: 1;
  height: 80px;
  background: var(--bg-border);
  border-radius: var(--radius);
  animation: shimmer 2s ease-in-out infinite;
}
.placeholder-block:nth-child(2) { animation-delay: 0.2s; }
.placeholder-block:nth-child(3) { animation-delay: 0.4s; }

@keyframes shimmer {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 0.8; }
}

/* ─── Features ───────────────────────────────────────────────────────────────── */
.features {
  border-top: 1px solid var(--bg-border);
  padding: 96px 24px;
}
.features-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.features-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 56px;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feature-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--bg-border);
  transition: background var(--transition);
}
.feature-item:first-child { border-top: 1px solid var(--bg-border); }
.feature-item:hover { background: rgba(255,255,255,0.012); }

.feature-icon {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--text-faint);
  padding-top: 4px;
  transition: color var(--transition);
}
.feature-item:hover .feature-icon { color: var(--accent); }

.feature-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

/* ─── Waitlist ────────────────────────────────────────────────────────────────── */
.waitlist {
  background: var(--bg-raised);
  border-top: 1px solid var(--bg-border);
  border-bottom: 1px solid var(--bg-border);
  padding: 96px 24px;
}
.waitlist-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.waitlist-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.waitlist-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
}
.waitlist-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.65;
}

/* Form */
.waitlist-form { width: 100%; }
.input-group {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-bottom: 12px;
}
.email-input {
  flex: 1;
  height: 52px;
  padding: 0 20px;
  background: var(--bg);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.email-input::placeholder { color: var(--text-faint); }
.email-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.email-input.error { border-color: var(--error); }

.btn-submit {
  height: 52px;
  padding: 0 24px;
  background: var(--accent);
  color: #0e0d0c;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-submit:hover:not(:disabled) {
  background: #f0b840;
  transform: translateY(-1px);
}
.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-loading { display: none; }
.btn-submit.loading .btn-text    { display: none; }
.btn-submit.loading .btn-loading { display: inline; }

.form-message {
  min-height: 20px;
  font-size: 13px;
  text-align: center;
  transition: opacity var(--transition);
}
.form-message.success { color: var(--success); }
.form-message.error   { color: var(--error); }

.form-fine-print {
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ─── Footer CTA (secondary email capture above footer) ──────────────────────── */
.footer-cta {
  border-top: 1px solid var(--bg-border);
  padding: 80px 24px;
  text-align: center;
}

.footer-cta-inner {
  max-width: 560px;
  margin: 0 auto;
}

.footer-cta-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 12px;
}

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

.footer-cta-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  padding: 40px 24px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: var(--text-faint);
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-link {
  font-size: 13px;
  color: var(--text-faint);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--text-muted); }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 64px 20px 56px; }

  .hero-input-group {
    flex-direction: column;
  }
  .btn-hero-submit {
    width: 100%;
    height: 48px;
  }

  .input-group {
    flex-direction: column;
  }
  .btn-submit {
    width: 100%;
    height: 48px;
  }
  .email-input { height: 48px; }

  .feature-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feature-icon {
    font-size: 20px;
  }

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

  .nav-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
