/* ─────────────────────────────────────
   FrameOS — Custom Theme
   ───────────────────────────────────── */

:root {
  --bg: #FAF7F2;
  --fg: #1a1a1a;
  --fg-muted: #6b6b6b;
  --accent: #E85D04;
  --accent-dark: #c44d00;
  --border: #e2ddd5;
  --surface: #f0ece4;
  --surface-dark: #e6e0d5;
}

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

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

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

::selection { background: var(--accent); color: #fff; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
}

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

.wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.header-tag {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 500;
}

/* ── Shared ── */
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

/* ── Hero ── */
.hero {
  padding: 6rem 2.5rem 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

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

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

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 420px;
  line-height: 1.7;
}

.hero-image-wrap {
  position: relative;
}

.hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.hero-img-caption {
  position: absolute;
  bottom: -1.75rem;
  right: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.01em;
}

/* Stat row */
.hero-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 3.5rem;
  margin-top: 1rem;
}

.hero-stat {
  padding: 0 3rem 0 0;
  border-right: 1px solid var(--border);
}

.hero-stat:last-child { border-right: none; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat:nth-child(2) { padding-left: 3rem; }
.hero-stat:nth-child(3) { padding-left: 3rem; }

.stat-num {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--fg-muted);
  line-height: 1.4;
  display: block;
  max-width: 200px;
}

/* ── Problem ── */
.the-problem {
  background: var(--fg);
  padding: 7rem 2.5rem;
}

.problem-inner { max-width: 1280px; margin: 0 auto; }

.the-problem .section-label { color: var(--accent); }

.problem-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--bg);
  line-height: 1.1;
  margin-bottom: 4rem;
  letter-spacing: -0.02em;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-bottom: 4rem;
  border-top: 1px solid #333;
}

.problem-item {
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-bottom: 1px solid #333;
  border-right: 1px solid #333;
}

.problem-item:nth-child(3n) { border-right: none; }
.problem-item:nth-child(4),
.problem-item:nth-child(5),
.problem-item:nth-child(6) { border-bottom: none; }

.problem-icon {
  display: block;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.problem-item p {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.5;
}

.problem-conclusion {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-style: italic;
  color: var(--accent);
  border-top: 1px solid #333;
  padding-top: 3rem;
}

/* ── Features ── */
.features {
  padding: 7rem 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.features-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}

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

.feature-card {
  padding: 2rem;
  background: var(--surface);
  border-radius: 2px;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: var(--accent); }

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--fg);
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ── How It Works ── */
.how-it-works {
  background: var(--surface);
  padding: 7rem 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hiw-inner { max-width: 1280px; margin: 0 auto; }

.hiw-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 4rem;
}

.hiw-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 5rem;
}

.hiw-step {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.hiw-step:first-child { border-top: 1px solid var(--border); }

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  min-width: 4rem;
  letter-spacing: -0.02em;
}

.step-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.6;
}

.hiw-image-wrap {
  width: 100%;
  max-width: 640px;
}

.hiw-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* ── Closing ── */
.closing {
  padding: 8rem 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.closing-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.4;
  color: var(--fg);
  max-width: 780px;
  margin: 0 auto 3rem;
  letter-spacing: -0.01em;
}

.closing-body {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.closing-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.02em;
}

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

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.82rem;
  color: var(--fg-muted);
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-img-caption { display: none; }
  .hero-stat-row { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 2rem; }
  .hero-stat:last-child { border-bottom: none; }
  .hero-stat:nth-child(2), .hero-stat:nth-child(3) { padding-left: 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-item { border-right: none; }
  .problem-item:nth-child(4), .problem-item:nth-child(5) { border-bottom: 1px solid #333; }
  .problem-item:last-child { border-bottom: none; }
  .features-grid { grid-template-columns: 1fr; }
  .hiw-step { flex-direction: column; gap: 0.75rem; }
  .footer-inner { flex-direction: column; gap: 1.5rem; align-items: flex-start; }
}

@media (max-width: 600px) {
  .site-header, .hero, .the-problem, .features, .how-it-works, .closing, .site-footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero { padding-top: 3rem; }
}