/* =====================
   SUPPLYPILOT THEME
   ===================== */

:root {
  --bg: #0F172A;
  --bg-2: #1E293B;
  --bg-3: #0B1320;
  --fg: #F1F5F9;
  --fg-muted: #94A3B8;
  --accent: #F59E0B;
  --accent-dim: #D97706;
  --ok: #10B981;
  --warning: #F59E0B;
  --alert: #EF4444;
  --border: rgba(241,245,249,0.08);
}

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

html {
  scroll-behavior: smooth;
}

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

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--fg);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 32px 96px;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245,158,11,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,158,11,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero-bg-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(245,158,11,0.06) 0%, transparent 70%);
}
.hero-content {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  width: fit-content;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--ok);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.05;
  color: var(--fg);
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 480px;
  line-height: 1.65;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 24px 28px;
  background: rgba(30,41,59,0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--fg);
  line-height: 1;
}
.stat-unit {
  font-size: 18px;
  color: var(--accent);
}
.stat-label {
  font-size: 12px;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  margin: 0 24px;
}

/* ---- DASHBOARD CARD ---- */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dashboard-card {
  background: rgba(30,41,59,0.8);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(8px);
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dashboard-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
}
.dashboard-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ok);
  background: rgba(16,185,129,0.12);
  padding: 4px 10px;
  border-radius: 100px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--ok);
  animation: pulse-dot 2s ease-in-out infinite;
}
.dashboard-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dr {
  position: relative;
  background: rgba(15,23,42,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  overflow: hidden;
}
.dr-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(16,185,129,0.1);
  border-radius: 10px 0 0 10px;
}
.dr-ok .dr-bar { background: rgba(16,185,129,0.12); }
.dr-warning .dr-bar { background: rgba(245,158,11,0.12); }
.dr-alert .dr-bar { background: rgba(239,68,68,0.15); }
.dr {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  z-index: 1;
  position: relative;
}
.dr-supplier {
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dr-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  white-space: nowrap;
}
.dr-status--ok { background: rgba(16,185,129,0.15); color: var(--ok); }
.dr-status--warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.dr-status--alert { background: rgba(239,68,68,0.15); color: var(--alert); }
.dr-eta { font-size: 12px; color: var(--fg-muted); white-space: nowrap; }
.dashboard-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.da-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
}
.da-active {
  color: var(--ok);
}
.da-icon {
  font-size: 14px;
  width: 20px;
  height: 20px;
  background: rgba(16,185,129,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}
.hero-tagline-right {
  padding: 0 4px;
}
.hero-tagline-right p {
  font-size: 14px;
  color: var(--fg-muted);
  font-style: italic;
  line-height: 1.5;
}

/* ---- PROOF ---- */
.proof {
  padding: 48px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(30,41,59,0.25);
}
.proof-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.proof-label {
  font-size: 15px;
  color: var(--fg-muted);
  font-weight: 400;
}
.proof-types {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.proof-type {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15,23,42,0.6);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.proof-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
}

/* ---- FEATURES ---- */
.features {
  padding: 96px 32px;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.features-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--accent);
}
.features-header h2,
.how-header h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.015em;
  max-width: 560px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.feature-card {
  background: rgba(30,41,59,0.4);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s;
}
.feature-card:hover {
  border-color: rgba(245,158,11,0.3);
}
.feature-card--main {
  grid-row: span 2;
  background: rgba(245,158,11,0.04);
  border-color: rgba(245,158,11,0.15);
}
.feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(245,158,11,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.feature-card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
}
.feature-card p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
  flex: 1;
}
.feature-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.fd-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(16,185,129,0.12);
  color: var(--ok);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- HOW ---- */
.how {
  padding: 96px 32px;
  background: rgba(15,23,42,0.5);
}
.how-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.how-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.how-old {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: start;
}
.how-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.how-col-label {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: inline-block;
}
.how-col-label--old {
  background: rgba(239,68,68,0.1);
  color: #FCA5A5;
  border: 1px solid rgba(239,68,68,0.2);
}
.how-col-label--new {
  background: rgba(16,185,129,0.1);
  color: var(--ok);
  border: 1px solid rgba(16,185,129,0.2);
}
.how-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.how-step:last-child {
  border-bottom: none;
}
.hs-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.25);
  color: #FCA5A5;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Syne', sans-serif;
}
.hs-num--new {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.25);
  color: var(--ok);
}
.how-step p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.5;
}
.how-step--new p {
  color: rgba(209,213,219,0.85);
}
.how-connector {
  width: 2px;
  height: 20px;
  background: rgba(239,68,68,0.2);
  margin-left: 12px;
}
.how-connector--new {
  background: rgba(16,185,129,0.2);
}
.how-vs {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--fg-muted);
  padding-top: 80px;
  opacity: 0.5;
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: 96px 32px;
}
.manifesto-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.manifesto-quote blockquote {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.45;
  color: var(--fg);
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  font-style: normal;
}
.manifesto-attr {
  display: flex;
  align-items: center;
  gap: 14px;
}
.manifesto-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.manifesto-attr strong {
  display: block;
  font-size: 14px;
  color: var(--fg);
}
.manifesto-attr span {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
}
.manifesto-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.manifesto-pillar h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 10px;
}
.manifesto-pillar p {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- CLOSING ---- */
.closing {
  padding: 96px 32px 120px;
  position: relative;
  overflow: hidden;
}
.closing-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,158,11,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.closing h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
  color: var(--fg);
  letter-spacing: -0.025em;
}
.closing-body {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto;
}
.closing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.closing-tags span {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(30,41,59,0.6);
  border: 1px solid var(--border);
  color: var(--fg-muted);
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
}
.footer-copy {
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover {
  color: var(--fg);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card--main {
    grid-column: span 2;
    grid-row: span 1;
  }
  .how-old {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .how-vs {
    padding: 0;
    text-align: center;
  }
  .manifesto-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 600px) {
  .hero {
    padding: 56px 20px 72px;
  }
  .features, .how, .manifesto, .closing {
    padding: 64px 20px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card--main {
    grid-column: span 1;
  }
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  .stat-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .proof-types {
    gap: 8px;
  }
}