/* ===========================
   CSS VARIABLES & RESET
   =========================== */
:root {
  --bg: #141414;
  --bg-surface: #1c1c1c;
  --bg-raised: #242424;
  --accent: #c9a96e;
  --accent-dim: rgba(201, 169, 110, 0.15);
  --text: #f0ebe2;
  --text-dim: rgba(240, 235, 226, 0.55);
  --text-muted: rgba(240, 235, 226, 0.3);
  --border: rgba(201, 169, 110, 0.12);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

*, *::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: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 52ch;
}

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.75rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.04em;
}

.nav-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 3rem 6rem;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(201, 169, 110, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(201, 169, 110, 0.03) 0%, transparent 50%),
    linear-gradient(180deg, #0d0d0d 0%, #141414 40%, #1a1a1a 100%);
  pointer-events: none;
}

/* Subtle grain texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 11rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2.5rem;
  font-style: italic;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 4rem;
}

.hero-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.hero-detail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.hero-detail-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-detail-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
}

.hero-detail-divider {
  width: 1px;
  height: 2.5rem;
  background: var(--border);
}

/* ===========================
   PHILOSOPHY
   =========================== */
.philosophy {
  padding: 8rem 3rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.philosophy-header {
  margin-bottom: 5rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.philosophy-card {
  padding: 2.5rem 2.5rem 3rem;
  border-right: 1px solid var(--border);
  position: relative;
}

.philosophy-card:last-child {
  border-right: none;
}

.philosophy-icon {
  margin-bottom: 1.75rem;
}

.philosophy-card-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.3;
}

.philosophy-card-body {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ===========================
   HOW IT WORKS
   =========================== */
.howitworks {
  padding: 8rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.howitworks-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.howitworks-inner .section-title {
  margin-bottom: 4rem;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.step {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 3rem;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  padding-top: 0.25rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.step-body {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 52ch;
}

/* ===========================
   THE BOX
   =========================== */
.thebox {
  padding: 8rem 3rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.thebox-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.thebox-header {
  margin-bottom: 4rem;
}

.box-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 5rem;
  border: 1px solid var(--border);
}

.box-item {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1.5rem;
  padding: 2rem 2rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.box-item:nth-child(2n) {
  border-right: none;
}

.box-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.box-item-img {
  width: 5rem;
  height: 5rem;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.box-item-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-item-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.box-item-desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-dim);
}

.box-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
}

.box-tier {
  text-align: center;
}

.box-tier-divider {
  width: 1px;
  height: 5rem;
  background: var(--border);
}

.box-tier-label {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.box-tier-featured .box-tier-label {
  color: var(--accent);
}

.box-tier-price {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.box-tier-price span {
  font-size: 1.2rem;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-weight: 300;
}

.box-tier-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ===========================
   THE SOURCE
   =========================== */
.thesource {
  padding: 8rem 3rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.thesource-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.thesource-header {
  margin-bottom: 4rem;
}

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

.source-statement p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.source-stats {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-top: 0.5rem;
}

.source-stat {
  border-left: 2px solid var(--accent);
  padding-left: 1.75rem;
}

.source-stat-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.source-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ===========================
   CLOSING
   =========================== */
.closing {
  padding: 10rem 3rem;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 800px;
  margin: 0 auto;
}

.closing-rule {
  width: 4rem;
  height: 1px;
  background: var(--accent);
  margin-bottom: 3rem;
  opacity: 0.5;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 3rem;
}

.closing-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-dim);
  margin-bottom: 1.75rem;
}

.closing-body-emphasis {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text);
  font-size: 1.2rem;
  margin-top: 3rem;
}

/* ===========================
   WAITLIST FORM
   =========================== */
.waitlist-form {
  margin-top: 3rem;
  max-width: 520px;
}

.waitlist-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.waitlist-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  transition: border-color 0.2s;
  outline: none;
}

.waitlist-field input::placeholder { color: var(--text-muted); }
.waitlist-field input:focus { border-color: var(--accent); }

.waitlist-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tier-option { cursor: pointer; }

.tier-option input { display: none; }

.tier-card {
  padding: 1.1rem 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.tier-option input:checked + .tier-card {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.tier-name {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.tier-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
}

.tier-price span {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-dim);
}

.waitlist-submit {
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: #141414;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s;
}

.waitlist-submit:hover:not(:disabled) { opacity: 0.88; }
.waitlist-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.waitlist-error {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #e07070;
  min-height: 1.2em;
}

.waitlist-success-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

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

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
  .nav { padding: 1.25rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 4rem; }
  .hero-detail { gap: 1.5rem; }

  .philosophy { padding: 5rem 1.5rem; }
  .philosophy-grid { grid-template-columns: 1fr; }
  .philosophy-card { border-right: none; border-bottom: 1px solid var(--border); padding: 2rem 0; }
  .philosophy-card:last-child { border-bottom: none; }

  .howitworks { padding: 5rem 1.5rem; }
  .step { grid-template-columns: 4rem 1fr; gap: 1.5rem; }

  .thebox { padding: 5rem 1.5rem; }
  .box-items { grid-template-columns: 1fr; }
  .box-item { border-right: none; border-bottom: 1px solid var(--border); }
  .box-item:last-child, .box-item:nth-last-child(2) { border-bottom: none; }
  .box-pricing { flex-direction: column; gap: 2rem; }
  .box-tier-divider { width: 4rem; height: 1px; }

  .thesource { padding: 5rem 1.5rem; }
  .source-grid { grid-template-columns: 1fr; gap: 3rem; }

  .closing { padding: 6rem 1.5rem; }
  .waitlist-row { grid-template-columns: 1fr; }
  .waitlist-tiers { grid-template-columns: 1fr; }
  .footer { padding: 3rem 1.5rem; }
}
