/* =============================================
   Clarum — Landing Page CSS
   Dark premium + warm gold brand palette
   ============================================= */

:root {
  --bg: #111009;
  --bg-deep: #0b0a08;
  --bg-surface: #1a1814;
  --bg-elevated: #222019;
  --gold: #c9a84c;
  --gold-dim: #a6883d;
  --gold-subtle: rgba(201, 168, 76, 0.12);
  --text-primary: #f0ead8;
  --text-secondary: #9e9484;
  --text-muted: #6b6358;
  --border: rgba(201, 168, 76, 0.15);
  --border-strong: rgba(201, 168, 76, 0.25);
  --card-bg: #1a1814;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--gold); color: var(--bg); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 3px; }

/* ── Header ── */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.header-link:hover { color: var(--text-primary); }

.header-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--bg);
  background: var(--gold);
  text-decoration: none;
  padding: 8px 20px;
  transition: background 0.2s;
}

.header-cta:hover { background: #d4b355; }

/* ── Hero ── */
.hero {
  padding: 80px 0 64px;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 54px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.btn-landing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--gold);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-landing:hover { background: #d4b355; }

.btn-landing-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.btn-landing-ghost:hover { border-color: var(--gold-dim); color: var(--text-primary); }

.hero-visual { position: relative; }

.hero-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}

.hero-rule {
  max-width: 1100px;
  margin: 64px auto 0;
  padding: 0 48px;
  height: 1px;
  background: var(--border);
}

/* ── Problem ── */
.problem {
  padding: 80px 0;
}

.problem-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 64px;
  align-items: start;
}

.problem-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 8px;
}

.label-rule {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.label-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.problem-body { max-width: 640px; }

.problem-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 32px;
  border-left: 3px solid var(--gold);
  padding-left: 28px;
}

.problem-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}

/* ── Features ── */
.features {
  padding: 80px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 56px;
}

.label-rule-sm {
  display: block;
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-img-wrap {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-img { transform: scale(1.03); }

.feature-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Philosophy ── */
.philosophy {
  padding: 96px 0;
}

.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: center;
}

.philosophy-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.philosophy-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin-top: 12px;
}

.philosophy-body {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

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

.stat {
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--gold);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-divider {
  height: 1px;
  background: var(--border);
}

/* ── Closing ── */
.closing {
  padding: 80px 0;
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

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

.closing-statement {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto;
  font-style: italic;
}

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

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
}

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

/* ── Beta Request Section ── */
.beta-section {
  padding: 96px 0 80px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
}

.beta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.beta-kicker {
  font-size: 11px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.beta-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 16px;
}

.beta-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.beta-form-wrap {
  position: relative;
}

.beta-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.beta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.beta-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.beta-optional {
  font-weight: 400;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
}

.beta-input {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.beta-input::placeholder { color: var(--text-muted); }
.beta-input:focus { border-color: var(--gold); }

.beta-textarea {
  resize: vertical;
  min-height: 88px;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.5;
}

.beta-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.beta-submit {
  background: var(--gold);
  color: var(--bg);
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.beta-submit:hover { background: #d4b355; }
.beta-submit:disabled { opacity: 0.6; cursor: default; }

.beta-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
}

.beta-error {
  font-size: 13px;
  color: #c26b6b;
  min-height: 18px;
}

.beta-confirm {
  padding: 32px 0;
  text-align: left;
}

.beta-confirm-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--gold);
  margin-bottom: 12px;
}

.beta-confirm-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Hero CTA */
.hero-cta {
  margin-top: 32px;
}

.hero-cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 32px;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s;
}

.hero-cta-btn:hover { background: #d4b355; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }

  .hero-headline { font-size: 38px; }
  .hero-image { height: 260px; }

  .problem-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }

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

  .philosophy-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }

  .closing-statement { font-size: 28px; }

  .header-inner, .features-inner, .footer-inner {
    padding: 0 24px;
  }

  .header-nav { gap: 20px; }

  .beta-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 24px;
  }

  .beta-headline { font-size: 36px; }
  .beta-section { padding: 64px 0 56px; }

  .beta-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}