/* ============================================
   AulrèOS — Theme CSS
   ============================================ */

/* --- Variables --- */
:root {
  --bg: #faf8f4;
  --bg-warm: #f5f0e8;
  --bg-dark: #1c2e1f;
  --bg-card: #ffffff;
  --primary: #1c2e1f;
  --accent: #c9a84c;
  --accent-light: #e8d5a3;
  --text: #1a1a1a;
  --text-mid: #5a5a52;
  --text-light: #8a8a7d;
  --green: #3a6b4a;
  --green-light: #e8f0e9;
  --amber: #c9a84c;
  --amber-light: #f5edda;
  --border: #e2ddd5;
  --radius: 6px;
}

/* --- Reset & Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

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

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

/* --- Typography --- */
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--primary);
}

.section-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 300;
  color: var(--primary);
}

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

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: var(--bg);
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.logo-text em {
  font-style: normal;
  color: var(--accent);
}

.nav-tagline {
  font-size: 0.78rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* --- Hero --- */
.hero {
  padding-top: 64px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 100%);
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  min-height: calc(100vh - 64px);
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 1.75rem;
}

.hl-line { display: block; }
.hl-italic { font-style: italic; color: var(--green); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 480px;
}

.hero-numbers {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.hn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hn-val {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary);
}

.hn-plus {
  font-size: 1rem;
  color: var(--accent);
}

.hn-label {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.hn-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 1.5rem;
  flex-shrink: 0;
}

/* --- Hero Card (Dashboard Mockup) --- */
.hero-card {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(28, 46, 31, 0.1), 0 4px 12px rgba(28, 46, 31, 0.06);
}

.hc-header {
  background: var(--bg-warm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.hc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hc-dot--green { background: var(--green); }
.hc-dot--amber { background: var(--amber); opacity: 0.7; }

.hc-title {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-left: 0.5rem;
  font-weight: 500;
}

.hc-body { padding: 1.25rem; }

.hc-metric {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.hc-metric-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.35rem;
}

.hc-metric-val {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary);
}

.hc-bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 60px;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.hc-bar-label {
  font-size: 0.72rem;
  color: var(--text-mid);
  font-weight: 500;
}

.hc-bar {
  height: 6px;
  background: var(--bg-warm);
  border-radius: 3px;
  overflow: hidden;
}

.hc-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.hc-bar-fill--green { background: var(--green); }
.hc-bar-fill--amber { background: var(--amber); }

.hc-bar-val {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  text-align: right;
}

.hc-clients {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.hc-clients-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hc-clients-num {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.hc-clients-label {
  font-size: 0.65rem;
  color: var(--text-light);
  line-height: 1.4;
}

.hc-guarantee {
  margin-top: 1rem;
  display: flex;
}

.hc-guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--green-light);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
}

/* --- Stats --- */
.stats {
  background: var(--primary);
  padding: 3rem 0;
}

.stats-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 1rem 3rem;
}

.stat-num {
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.15);
}

/* --- Engines --- */
.engines {
  padding: 7rem 0;
  background: var(--bg);
}

.engines-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.engines-header {
  margin-bottom: 4rem;
  max-width: 560px;
}

.engines-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.engine-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
}

.engine-item:last-child { border-bottom: 1px solid var(--border); }

.engine-num {
  font-family: 'Fraunces', serif;
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.1em;
  padding-top: 0.4rem;
}

.engine-content { max-width: 680px; }

.engine-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-family: 'Fraunces', serif;
}

.engine-desc {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.engine-item--moat .engine-content {
  background: var(--green-light);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(58, 107, 74, 0.15);
  margin-top: -0.5rem;
}

.engine-moat-label {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 0.75rem;
  display: block;
}

/* --- Calculator --- */
.calc {
  background: var(--bg-warm);
  padding: 7rem 0;
}

.calc-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.calc-header {
  margin-bottom: 3.5rem;
  max-width: 560px;
}

.calc-sub {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: center;
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.calc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.calc-field { display: flex; flex-direction: column; gap: 0.4rem; }

.calc-label {
  font-size: 0.72rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.calc-value-display {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--accent);
}

.calc-result {
  text-align: center;
  padding: 2rem;
  background: var(--primary);
  border-radius: 8px;
  color: white;
}

.calc-result-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.calc-result-val {
  font-family: 'Fraunces', serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.calc-result-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
}

.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.cb-row:last-child { border-bottom: none; }

.cb-key { font-size: 0.85rem; color: var(--text-mid); }

.cb-val {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.calc-footnote {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 1.5rem;
  text-align: center;
}

/* --- Guarantee --- */
.guarantee {
  background: var(--primary);
  padding: 7rem 0;
}

.guarantee-inner { max-width: 800px; margin: 0 auto; padding: 0 2rem; text-align: center; }

.guarantee-eyebrow { color: rgba(255,255,255,0.4); }

.g-amount {
  font-family: 'Fraunces', serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.g-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 2.5rem;
}

.g-divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 0 auto 2.5rem;
}

.g-detail {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.g-requirements {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.gr-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* --- Founder --- */
.founder {
  padding: 7rem 0;
  background: var(--bg);
}

.founder-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

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

.founder-heading { margin-bottom: 2rem; }

.founder-body {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.founder-body--bold {
  color: var(--text);
  font-weight: 500;
}

.founder-card {
  text-align: center;
  padding-top: 2rem;
}

.founder-portrait {
  margin-bottom: 1.5rem;
}

.fp-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--green) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-initials {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
}

.founder-name {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.founder-title {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* --- Closing --- */
.closing {
  background: var(--primary);
  padding: 8rem 0;
  text-align: center;
}

.closing-inner { max-width: 900px; margin: 0 auto; padding: 0 2rem; }

.closing-statement {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  color: white;
  line-height: 1.3;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-light);
  max-width: 400px;
  line-height: 1.6;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 4rem;
  }

  .hero-right { display: none; }

  .stats-grid {
    flex-direction: column;
    gap: 1.5rem;
  }

  .stat-divider { width: 40px; height: 1px; }

  .engine-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .calc-result { padding: 1.5rem; }

  .founder-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .nav-tagline { display: none; }
}

@media (max-width: 600px) {
  .hero-numbers {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hn-divider { display: none; }

  .calc-inputs {
    grid-template-columns: 1fr;
  }

  .g-requirements {
    flex-direction: column;
    gap: 1rem;
  }
}