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

:root {
  --bg: #FDF6EC;
  --bg-dark: #1a1a2e;
  --fg: #1a1a2e;
  --accent: #E8723A;
  --accent-light: #E8B84A;
  --text: #2a2a3e;
  --text-muted: #6b6b7e;
  --white: #FFFFFF;
  --border: rgba(232, 114, 58, 0.15);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === NAV === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 246, 236, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.nav-logo-os {
  color: var(--accent);
  margin-left: 2px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-pattern-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  margin-bottom: 24px;
}
.hero-eyebrow-tag {
  display: inline-block;
  background: rgba(232, 114, 58, 0.1);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(232, 114, 58, 0.25);
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--fg);
  margin-bottom: 24px;
}
.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: #d4621f; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Dashboard mockup */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}
.dashboard-mockup {
  background: #0d0d1f;
  border-radius: 16px;
  padding: 0;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(232,114,58,0.1);
  overflow: hidden;
}
.dash-header {
  background: #14142a;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash-dot-red { background: #ff5f57; }
.dash-dot-yellow { background: #febc2e; }
.dash-dot-green { background: #28c840; }
.dash-title {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  margin-left: 8px;
}
.dash-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-map {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.world-map-svg { width: 100%; display: block; }
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.dash-metric {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 10px 12px;
  text-align: center;
}
.dash-metric-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #E8723A;
}
.dash-metric-label {
  display: block;
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-body);
  margin-top: 2px;
}
.dash-chart {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 12px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
  margin-bottom: 8px;
}
.chart-bar {
  flex: 1;
  background: rgba(232, 114, 58, 0.3);
  border-radius: 3px 3px 0 0;
  position: relative;
}
.chart-bar-active { background: #E8723A; }
.chart-bar-label {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8px;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-body);
}
.chart-label {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  text-align: center;
  font-family: var(--font-mono);
}

/* === STATS === */
.stats {
  background: var(--fg);
  padding: 60px 40px;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.stat-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -2px;
  line-height: 1;
}
.stat-desc {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.1);
}

/* === FEATURES === */
.features {
  padding: 100px 40px;
  background: var(--bg);
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--fg);
  max-width: 680px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.feature-card {
  background: var(--bg);
  padding: 40px 32px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--white); }
.feature-icon {
  margin-bottom: 20px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === PLATFORM === */
.platform {
  padding: 100px 40px;
  background: var(--fg);
}
.platform-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.connection-web { width: 100%; }
.conn-svg { width: 100%; height: auto; }
.platform-text .section-tag { display: block; }
.platform-text .section-title {
  text-align: left;
  margin: 16px 0;
}
.platform-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 40px;
}
.platform-facts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.platform-fact {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.fact-num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -1px;
  min-width: 70px;
}
.fact-text {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
}

/* === MANIFESTO === */
.manifesto {
  padding: 100px 40px;
  background: linear-gradient(180deg, #f9f0e4 0%, var(--bg) 100%);
}
.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.manifesto-quote {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}
.mq-decoration { margin-bottom: 32px; }
.mq-text {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--fg);
  font-style: italic;
  margin-bottom: 24px;
}
.mq-attr {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
}
.manifesto-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 16px;
}
.pillar-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--fg);
}
.pillar-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === CLOSING === */
.closing {
  padding: 120px 40px;
  background: var(--fg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
}
.closing-pattern svg { width: 100%; height: 100%; object-fit: cover; }
.closing-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: var(--bg);
  margin-bottom: 24px;
}
.closing-sub {
  font-size: 17px;
  color: rgba(253,246,236,0.65);
  line-height: 1.7;
  margin-bottom: 40px;
}
.closing-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === FOOTER === */
.footer {
  background: #111120;
  padding: 60px 40px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-brand { margin-bottom: 40px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--bg);
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-cta {
  margin-top: 20px;
}
.btn-accent {
  display: inline-block;
  padding: 10px 20px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}
.btn-accent:hover { background: #d4621f; }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; padding: 60px 24px; }
  .hero-visual { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-inner { grid-template-columns: 1fr; }
  .platform-visual { order: -1; }
  .manifesto-pillars { grid-template-columns: 1fr; gap: 20px; }
  .stats-inner { justify-content: center; }
  .stat-divider { display: none; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-inner { padding: 0 24px; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}