/* ========================
   FRAMEWAVE — Theme CSS
   ======================== */

:root {
  --bg:          #0C0A09;
  --bg-surface:  #161412;
  --bg-card:     #1C1917;
  --accent:      #F59E0B;
  --accent-dim:  #92640A;
  --text:        #F5F0E8;
  --text-muted:  #A89F94;
  --text-dim:    #6B6258;
  --border:      rgba(245,240,232,0.08);
  --border-mid:  rgba(245,240,232,0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  8rem;

  --radius-sm: 6px;
  --radius-md: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background:  var(--bg);
  color:       var(--text);
  font-family: var(--font-body);
  font-size:   16px;
  line-height: 1.6;
  overflow-x:  hidden;
}

img { display: block; max-width: 100%; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.45) saturate(0.7);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    #0C0A09 0%,
    rgba(12,10,9,0.6) 50%,
    rgba(12,10,9,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) var(--space-lg);
  max-width: 860px;
}

.hero-eyebrow {
  margin-bottom: var(--space-md);
}

.pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  text-transform: uppercase;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.hero-lede {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.65;
}

/* ── Shared section styles ── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

/* ── Features ── */
.features {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--border);
}

.feature-card {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.2s;
}

.feature-card:hover {
  background: var(--bg-surface);
}

.feature-card--dark {
  background: var(--bg-surface);
  padding: var(--space-lg);
  justify-content: space-between;
  gap: var(--space-md);
}

.feature-icon-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
  flex-shrink: 0;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.75) saturate(0.85);
}

.feature-card:hover .feature-img {
  transform: scale(1.03);
  filter: brightness(0.85) saturate(0.95);
}

.feature-meta {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  flex: 1;
}

.feature-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-sm);
}

.feature-desc--light {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.feature-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.feature-bullets li {
  font-size: 0.8rem;
  color: var(--text-dim);
  padding-left: 1rem;
  position: relative;
}

.feature-bullets li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-size: 0.7rem;
}

/* Stat stack */
.stat-item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
}

.stat-item:last-of-type {
  border-bottom: none;
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ── Philosophy ── */
.philosophy {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.philosophy-inner {
  max-width: 760px;
}

.philosophy-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-md);
}

.philosophy-quote {
  border-left: 2px solid var(--accent);
  padding-left: var(--space-md);
  margin-bottom: var(--space-md);
}

.philosophy-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

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

/* ── Process ── */
.process {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg);
}

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

.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  transition: background 0.2s;
}

.step:hover {
  background: var(--bg-surface);
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
  margin: 0 calc(-1 * var(--space-sm));
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding-top: 0.25rem;
}

.step-body {
  padding-bottom: var(--space-sm);
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

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

/* ── Closing ── */
.closing {
  padding: var(--space-xl) var(--space-lg);
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 680px;
}

.closing-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.closing-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  max-width: 520px;
}

/* ── Footer ── */
.site-footer {
  padding: var(--space-lg) var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
}

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

.footer-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-note {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .hero-content {
    padding: var(--space-lg) var(--space-md);
  }

  .features {
    padding: var(--space-lg) var(--space-md);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .philosophy,
  .process,
  .closing {
    padding: var(--space-lg) var(--space-md);
  }

  .site-footer {
    padding: var(--space-md);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .step {
    grid-template-columns: 48px 1fr;
  }

  .closing-headline br,
  .section-heading br {
    display: none;
  }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }
