/* ===========================
   LOCAFI OS — DESIGN SYSTEM
   =========================== */

:root {
  --bg: #FAF7F2;
  --bg-warm: #F5EFE6;
  --fg: #1A1A1A;
  --fg-muted: #5C5C5C;
  --fg-faint: #9A9A9A;
  --green: #1B4332;
  --green-light: #2D6A4F;
  --green-accent: #40916C;
  --amber: #C47D0E;
  --amber-light: #D97706;
  --cream-dark: #EAE3D8;
  --white: #FFFFFF;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-dark);
  padding: 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(40px, 5vw);
  padding-right: max(40px, 5vw);
}

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

.brand-mark {
  font-size: 18px;
  color: var(--green);
}

.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--green);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
}

/* ---- Hero ---- */
.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: max(80px, 8vw) max(40px, 5vw);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 55%;
  background: linear-gradient(135deg, var(--green) 0%, #0D3320 100%);
  z-index: 0;
  border-radius: 0 0 0 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}

.hero-headline {
  font-size: clamp(42px, 4.5vw, 64px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-headline em {
  font-style: italic;
  color: var(--green);
}

.hero-lede {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Fraunces', serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--green);
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 11px;
  color: var(--fg-faint);
  line-height: 1.4;
  max-width: 80px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--cream-dark);
}

/* ---- Hero Visual ---- */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-mock {
  background: #0D1F17;
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 32px 64px rgba(27, 67, 50, 0.25), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}

.mock-header {
  background: #162D22;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mock-dot.red { background: #FF5F57; }
.mock-dot.yellow { background: #FFBD2E; }
.mock-dot.green { background: #28C840; }

.mock-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.mock-body {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 12px;
  gap: 10px;
  min-height: 220px;
}

.mock-sidebar {
  background: #162D22;
  border-radius: 8px;
  padding: 8px 0;
}

.sidebar-item {
  padding: 7px 10px;
  font-size: 9px;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.sidebar-item.active {
  background: var(--green);
  color: white;
  border-radius: 5px;
  margin: 2px 4px;
}

.mock-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mock-card {
  background: #162D22;
  border-radius: 8px;
  padding: 10px;
}

.mock-card.highlight {
  background: var(--green-light);
  border: 1px solid rgba(64, 145, 108, 0.3);
}

.card-label {
  font-size: 8px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.card-value {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
}

.card-bar {
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
}

.bar-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 2px;
}

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

.card-badge {
  font-size: 7px;
  background: rgba(255,255,255,0.15);
  color: white;
  border-radius: 3px;
  padding: 2px 5px;
  display: inline-block;
  margin-top: 4px;
}

.card-trend {
  font-size: 8px;
  font-weight: 600;
  color: #28C840;
}

/* ---- Manifesto ---- */
.manifesto {
  background: var(--green);
  padding: max(80px, 8vw) max(40px, 5vw);
}

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

.manifesto-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.manifesto-headline {
  font-size: clamp(28px, 3vw, 42px);
  color: white;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
  font-style: italic;
}

.manifesto-body {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  margin-bottom: 20px;
}

.manifesto-lead {
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* ---- Features ---- */
.features {
  background: var(--bg);
  padding: max(80px, 8vw) max(40px, 5vw);
}

.section-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(28px, 3vw, 42px);
  color: var(--fg);
  font-weight: 700;
  max-width: 600px;
  margin-bottom: 56px;
  letter-spacing: -0.5px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--cream-dark);
  border-radius: 16px;
  overflow: hidden;
}

.feature-card {
  background: var(--bg);
  padding: 36px 32px;
  transition: background 0.2s;
}

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

.feature-icon {
  font-size: 24px;
  color: var(--green);
  margin-bottom: 20px;
  display: block;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* ---- Outcomes ---- */
.outcomes {
  background: var(--bg-warm);
  padding: max(80px, 8vw) max(40px, 5vw);
}

.outcomes-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.outcomes-headline {
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--fg);
  letter-spacing: -0.5px;
}

.outcomes-body {
  font-size: 16px;
  color: var(--fg-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.outcome-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.outcome-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.outcome-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.outcome-item strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 15px;
}

.outcome-item span {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.outcomes-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.proof-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--cream-dark);
}

.proof-quote {
  font-family: 'Fraunces', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--fg);
  line-height: 1.65;
  margin-bottom: 20px;
}

.proof-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-avatar {
  width: 40px;
  height: 40px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
}

.proof-name {
  font-weight: 600;
  font-size: 14px;
}

.proof-role {
  font-size: 12px;
  color: var(--fg-faint);
}

.proof-card.secondary {
  background: var(--green);
  border-color: var(--green);
}

.stat-number {
  font-family: 'Fraunces', serif;
  font-size: 48px;
  font-weight: 800;
  color: white;
  letter-spacing: -1px;
}

.stat-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-top: 4px;
}

/* ---- Vision ---- */
.vision {
  background: var(--fg);
  padding: max(80px, 8vw) max(40px, 5vw);
}

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

.vision-tag {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
}

.vision-headline {
  font-size: clamp(28px, 3vw, 44px);
  color: white;
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}

.vision-body {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 20px;
}

.vision-closing {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: var(--amber-light);
  font-style: italic;
  margin-top: 36px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---- Footer ---- */
.footer {
  background: #111;
  padding: 48px max(40px, 5vw);
}

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

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

.footer-brand-mark {
  font-size: 20px;
  color: var(--green-accent);
}

.footer-name {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 16px;
  color: white;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.footer-legal {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 0;
  }
  .hero::before {
    display: none;
  }
  .hero-visual {
    display: none;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .outcomes-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 12px;
  }
  .stat-divider {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .nav-links {
    display: none;
  }
}