/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #faf7f0;
  --bg-dark: #0d1b2a;
  --fg: #1a1a2e;
  --fg-muted: #6b6b7a;
  --accent: #e85d2b;
  --accent-warm: #f4a261;
  --surface: #ffffff;
  --border: #e8e4d9;
  --shadow: rgba(13,27,42,0.08);
  --radius: 12px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 40px;
  background: rgba(250,247,240,0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.wordmark {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wordmark-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.wordmark-tag {
  font-size: 0.72rem;
  color: var(--fg-muted);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 40px 80px;
  background: var(--bg);
}

.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--fg);
  margin-bottom: 28px;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  font-weight: 300;
}

/* === DASHBOARD MOCK === */
.dashboard-mock {
  background: var(--bg-dark);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(13,27,42,0.2), 0 4px 16px rgba(13,27,42,0.12);
  font-family: 'DM Sans', system-ui, sans-serif;
}

.mock-header {
  background: rgba(255,255,255,0.05);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.mock-dots span:first-child { background: #e85d2b; }
.mock-dots span:nth-child(2) { background: #f4a261; }
.mock-dots span:last-child { background: #4ade80; }

.mock-title {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.mock-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 12px 14px;
}

.mock-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.mock-status.active { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.4); }

.mock-info { flex: 1; min-width: 0; }

.mock-task {
  display: block;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.88);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-meta {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
}

.mock-badge {
  font-size: 0.65rem;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.5);
}

.mock-badge.green { background: rgba(74,222,128,0.15); color: #4ade80; }
.mock-badge.blue { background: rgba(96,165,250,0.15); color: #60a5fa; }
.mock-badge.purple { background: rgba(192,132,252,0.15); color: #c084fc; }

.mock-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.metric { text-align: center; }

.metric-val {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
  color: #faf7f0;
  letter-spacing: -0.02em;
}

.metric-label {
  display: block;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.35);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

/* === MANIFESTO === */
.manifesto {
  background: var(--bg-dark);
  padding: 80px 40px;
}

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

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: #faf7f0;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* === WHAT IT DOES === */
.what-it-does {
  padding: 100px 40px;
  background: var(--bg);
}

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 60px;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.capability {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.capability:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow);
}

.cap-icon {
  margin-bottom: 20px;
}

.cap-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.cap-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* === HOW IT WORKS === */
.how-it-works {
  padding: 100px 40px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
}

.step {
  flex: 1;
  padding: 0 32px;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--border);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 20px;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.65;
  font-weight: 300;
}

.step-connector {
  width: 60px;
  flex-shrink: 0;
  position: relative;
  margin-top: 20px;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

/* === PRINCIPLES === */
.principles {
  padding: 80px 40px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}

.principle {
  background: var(--surface);
  padding: 40px 32px;
  text-align: center;
}

.principle-metric {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

.principle-text {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* === CLOSING === */
.closing {
  background: var(--bg-dark);
  padding: 120px 40px;
  text-align: center;
}

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

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: #faf7f0;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.closing-sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 400;
}

/* === FOOTER === */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 32px 40px;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #faf7f0;
}

.footer-sep {
  color: rgba(255,255,255,0.2);
}

.footer-by {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer-note {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-row {
    flex-direction: column;
    gap: 40px;
  }

  .step-connector { display: none; }

  .principles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 600px) {
  .hero, .manifesto, .what-it-does, .how-it-works, .principles, .closing {
    padding-left: 24px;
    padding-right: 24px;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-headline { font-size: 2.2rem; }
}