/* =====================================================
   Design system — dark theme, Fraunces + Satoshi
   Accent: amber #f59e0b
   ===================================================== */

:root {
  --bg:          #0a0a0a;
  --bg-surface:  #111111;
  --bg-border:   #1e1e1e;
  --text:        #f0ebe3;
  --text-muted:  #7a7067;
  --text-dim:    #3d3830;
  --accent:      #f59e0b;
  --accent-dim:  rgba(245, 158, 11, 0.12);
  --accent-glow: rgba(245, 158, 11, 0.25);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Satoshi', system-ui, sans-serif;
  --radius-sm:   4px;
  --radius-md:   8px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle noise texture */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

/* ── Layout helpers ── */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid var(--bg-border);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}

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

/* ── Hero ── */
.hero {
  position: relative;
  flex: 1;
  padding: 140px 0 100px;
  overflow: hidden;
}

/* Atmospheric amber glow behind hero */
.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.2);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 24px;
  /* Subtle warm tint on the text itself */
  background: linear-gradient(135deg, #f0ebe3 60%, #d4b896 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  line-height: 1.55;
  color: #b5aca1;
  max-width: 540px;
  margin-bottom: 36px;
}

/* ── Feature bullets ── */
.bullets {
  list-style: none;
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullets li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9375rem;
  color: #8f867d;
  transition: color 0.2s;
}

.bullets li:hover { color: var(--text); }

.bullet-dot {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

/* ── Email capture form ── */
.cta-block {
  max-width: 460px;
}

.subscribe-form {}

.input-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.email-input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  -webkit-appearance: none;
}

.email-input::placeholder { color: var(--text-muted); }

.email-input:focus {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.submit-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.submit-btn:hover:not(:disabled) {
  background: #fbbf24;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

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

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

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

.form-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* Success / error feedback */
.form-success {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.form-success.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-success.error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #f87171;
}

/* ── Features section ── */
.features {
  padding: 0 0 96px;
}

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

.feature-card {
  background: var(--bg-surface);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  /* Vertical amber rule on hover */
  transition: background 0.2s var(--ease);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.feature-card:hover {
  background: #161616;
}

.feature-card:hover::before {
  opacity: 1;
}

/* Dividers between cards */
.feature-card + .feature-card {
  border-left: 1px solid var(--bg-border);
}

.feature-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.feature-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.feature-body {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ── Mobile features ── */
@media (max-width: 680px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card + .feature-card {
    border-left: none;
    border-top: 1px solid var(--bg-border);
  }
}

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

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

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-contact {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.18s;
}

.footer-contact:hover { color: var(--accent); }

/* ── Mobile ── */
@media (max-width: 520px) {
  .hero { padding: 100px 0 80px; }

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

  .submit-btn {
    justify-content: center;
    padding: 13px 20px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
