/* ==============================
   ATLAS — Theme Stylesheet
   ============================== */

:root {
  --bg:           #0c0c0e;
  --bg-alt:       #111114;
  --surface:       #16161a;
  --surface-2:     #1e1e24;
  --gold:          #c9a84c;
  --gold-dim:      #8a7035;
  --gold-glow:     rgba(201,168,76,0.18);
  --text:          #ede8df;
  --text-muted:    #888580;
  --text-faint:    #4a4845;
  --border:        rgba(201,168,76,0.12);
  --border-hover:  rgba(201,168,76,0.28);
  --radius:        4px;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
.display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Layout ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad {
  padding: 7rem 0;
}

/* ---- Rule ---- */
.rule {
  border: none;
  border-top: 1px solid var(--border);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-bg svg {
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  margin-bottom: 1.75rem;
}

.hero-headline {
  font-size: clamp(3.2rem, 8vw, 7rem);
  max-width: 900px;
}

.hero-headline em {
  font-style: normal;
  color: var(--gold);
}

.hero-sub {
  margin-top: 1.75rem;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.hero-meta {
  margin-top: 3rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ---- What ---- */
.what {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.what-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.what-body {
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.what-body strong {
  color: var(--text);
}

/* ---- Pillars ---- */
.pillars {
  background: var(--bg);
}

.pillars-label {
  text-align: center;
  margin-bottom: 4rem;
}

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

.pillar {
  background: var(--bg);
  padding: 3rem 2.5rem;
  transition: background 0.3s ease;
}

.pillar:hover {
  background: var(--surface);
}

.pillar-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.pillar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

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

/* ---- Loop ---- */
.loop {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.loop-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.loop-headline {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.loop-steps {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.loop-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.loop-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold-glow);
  border: 1px solid var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 0.15rem;
}

.loop-step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.loop-step-text strong {
  color: var(--text);
  font-weight: 500;
}

/* ---- Closing ---- */
.closing {
  background: var(--bg);
  text-align: center;
}

.closing-label {
  margin-bottom: 2rem;
}

.closing-headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.08;
}

.closing-headline em {
  font-style: normal;
  color: var(--gold);
}

.closing-body {
  margin-top: 1.75rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.75;
}

/* ---- Signup Form ---- */
.closing-cta {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.signup-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 460px;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-faint);
}

.signup-form input[type="email"]:focus {
  border-color: var(--gold-dim);
}

.signup-form button {
  padding: 0.75rem 1.5rem;
  background: var(--gold);
  color: #0c0c0e;
  border: none;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.signup-form button:hover {
  background: #d4b558;
}

.signup-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.signup-msg {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 1.4em;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .what-grid,
  .loop-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .hero-meta {
    gap: 1.5rem;
  }

  .section-pad {
    padding: 4rem 0;
  }
}
