/* ==========================================
   FOREMAN OS — CONSTRUCTION SOFTWARE THEME
   ========================================== */

:root {
  --bg: #0f0f0e;
  --surface: #1a1a17;
  --surface-2: #222220;
  --border: #2e2e2b;
  --fg: #f0ede6;
  --fg-2: #9e9b8e;
  --fg-3: #5c5a54;
  --accent: #f97316;
  --accent-dim: #c25d10;
  --green: #4ade80;
}

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

html { scroll-behavior: smooth; }

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

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(15,15,14,0.9);
  backdrop-filter: blur(12px);
}

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

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
}

.nav-dot { color: var(--accent); }

.nav-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 6rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
}

.hero-headline {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 2rem;
  max-width: 750px;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--fg-2);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 4rem;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  width: fit-content;
  background: var(--surface);
}

.hero-stat {
  padding: 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--fg-2);
  font-family: 'DM Mono', monospace;
  line-height: 1.4;
  max-width: 140px;
}

.hero-stat-sep {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ── MANIFESTO ── */
.manifesto {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
}

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

.manifesto-mark {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 2rem;
  font-family: 'Syne', serif;
}

.manifesto-quote {
  font-size: 1.5rem;
  line-height: 1.5;
  font-weight: 400;
  font-style: italic;
  color: var(--fg);
  margin-bottom: 1.5rem;
  font-family: 'Syne', serif;
}

.manifesto-attr {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--fg-2);
  letter-spacing: 0.04em;
}

/* ── SECTION LABEL ── */
.section-label {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── FEATURES ── */
.features { padding: 7rem 2rem; }

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

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

.features-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--surface);
  padding: 2.25rem 2rem;
  transition: background 0.2s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  color: var(--fg);
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.65;
}

/* ── HOW IT WORKS ── */
.how {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7rem 2rem;
}

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

.how-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4rem;
  max-width: 500px;
}

.how-steps { display: flex; flex-direction: column; gap: 0; }

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

.how-step:last-child { border-bottom: none; }

.how-step::before {
  content: '';
  position: absolute;
  left: 30px;
  top: calc(2.5rem + 48px);
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.how-step:last-child::before { display: none; }

.how-step-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
  min-width: 48px;
  padding-top: 0.2rem;
  letter-spacing: 0.05em;
}

.how-step-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.how-step-desc {
  font-size: 0.9rem;
  color: var(--fg-2);
  line-height: 1.65;
  max-width: 540px;
}

/* ── OUTCOMES ── */
.outcomes {
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
}

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

.outcomes-content { margin-bottom: 4rem; max-width: 700px; }

.outcomes-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.outcomes-body {
  font-size: 1rem;
  color: var(--fg-2);
  line-height: 1.75;
}

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.outcome {
  background: var(--surface);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.outcome-stat {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.outcome-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}

/* ── CLOSING ── */
.closing {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 7rem 2rem;
}

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

.closing-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.closing-body {
  font-size: 1.05rem;
  color: var(--fg-2);
  line-height: 1.75;
}

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

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

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  display: block;
}

.footer-dot { color: var(--accent); }

.footer-tagline {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-2);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-3);
  font-family: 'DM Mono', monospace;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 5rem 1.5rem 4rem; }
  .hero-headline { font-size: 2.8rem; }
  .hero-stats { flex-direction: column; width: 100%; }
  .hero-stat-sep { height: 1px; width: auto; }
  .hero-stat { padding: 1.25rem 1.5rem; }
  .manifesto { padding: 4rem 1.5rem; }
  .manifesto-quote { font-size: 1.2rem; }
  .features { padding: 5rem 1.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .how { padding: 5rem 1.5rem; }
  .how-step { gap: 1.25rem; }
  .outcomes { padding: 5rem 1.5rem; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .closing { padding: 5rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .how-step::before { display: none; }
  .nav-tagline { display: none; }
}