:root {
  --bg: #0b1220;
  --bg-card: #121a2e;
  --bg-soft: #f5f7fb;
  --text: #e8edf7;
  --text-muted: #9aa8c3;
  --text-dark: #1a2332;
  --text-dark-muted: #5a6b85;
  --accent: #2f7cf6;
  --accent-hover: #1a6ae8;
  --accent-soft: rgba(47, 124, 246, 0.12);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 14px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo span { color: var(--accent); font-weight: 600; }

.logo-img-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo-img {
  height: 2.25rem;
  width: auto;
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 0.2rem 0.55rem;
}

.logo-img--light {
  /* full-color logo on dark header */
}

.hero-cover-wrap {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.hero-cover {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover { background: var(--accent-hover); color: #fff; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--accent);
  border: 1px solid #c5d4ef;
}

.btn-outline:hover { background: var(--accent-soft); color: var(--accent-hover); }

.btn-dark {
  background: var(--bg);
  color: #fff;
}

.btn-dark:hover { background: #1a2540; color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(160deg, #0b1220 0%, #152238 50%, #1a3055 100%);
  color: var(--text);
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(47, 124, 246, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(99, 179, 237, 0.08), transparent);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero .lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  max-width: 36rem;
}

.hero .tagline {
  font-size: 0.95rem;
  color: #7d8faa;
  margin-bottom: 1.75rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.map-preview {
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.map-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 124, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 124, 246, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

.map-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.map-dot.green { background: #137333; top: 35%; left: 28%; }
.map-dot.blue { background: #2f7cf6; top: 55%; left: 62%; }
.map-dot.red { background: #c5221f; top: 42%; left: 78%; }

.map-route {
  position: absolute;
  top: 38%;
  left: 30%;
  width: 45%;
  height: 20%;
  border-top: 3px solid rgba(47, 124, 246, 0.7);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.preview-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.preview-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.legend-courier::before { background: #137333; }
.legend-order::before { background: #c5221f; }
.legend-route::before { background: #2f7cf6; }

/* Sections */
section { padding: 4.5rem 0; }

section.alt { background: var(--bg-soft); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.section-lead {
  color: var(--text-dark-muted);
  max-width: 42rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* Audience cards */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card {
  background: #fff;
  border: 1px solid #e4eaf4;
  border-radius: var(--radius);
  padding: 1.35rem;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.card p { font-size: 0.92rem; color: var(--text-dark-muted); }

.alt .card { background: #fff; }

/* Idea block */
.idea-block {
  background: linear-gradient(135deg, #0f1a2e, #1a3055);
  color: var(--text);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.idea-block h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.idea-block p { color: var(--text-muted); font-size: 1.02rem; }
.idea-block strong { color: #fff; }

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: #fff;
  border: 1px solid #e4eaf4;
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-dark-muted); }

/* Connect */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.connect-card {
  background: #fff;
  border: 1px solid #e4eaf4;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.connect-card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.connect-card p { font-size: 0.88rem; color: var(--text-dark-muted); }

.flow-diagram {
  background: var(--bg);
  color: #c5d4ef;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.88rem;
  text-align: center;
  overflow-x: auto;
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.status-list {
  list-style: none;
  margin-top: 1rem;
}

.status-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e8edf5;
  font-size: 0.92rem;
  color: var(--text-dark-muted);
}

.status-list strong { color: var(--text-dark); }

.status-online { color: #137333; }
.status-stale { color: #b06000; }
.status-offline { color: #888; }
.status-problem { color: #c5221f; }

/* Tech */
.tech-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem 1.5rem;
  list-style: none;
}

.tech-list li {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  padding-left: 1.25rem;
  position: relative;
}

.tech-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.tech-note {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dark-muted);
  font-style: italic;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.price-card {
  background: #fff;
  border: 1px solid #e4eaf4;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(47, 124, 246, 0.12);
}

.price-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.price-card p { font-size: 0.9rem; color: var(--text-dark-muted); }

/* Limitations */
.limit-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.5rem 1.5rem;
}

.limit-list li {
  font-size: 0.92rem;
  color: var(--text-dark-muted);
  padding: 0.4rem 0 0.4rem 1.5rem;
  position: relative;
}

.limit-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #aab4c8;
}

/* CTA */
.cta {
  background: linear-gradient(160deg, #0b1220, #1a3055);
  color: var(--text);
  text-align: center;
  padding: 4rem 0;
}

.cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.cta p {
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--bg);
  color: var(--text-muted);
  padding: 2.5rem 0;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid a { color: #c5d4ef; }
.footer-grid a:hover { color: #fff; }

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: #6b7a94;
}

.cabinet-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
}

.cabinet-list li {
  font-size: 0.9rem;
  color: var(--text-dark-muted);
  padding: 0.35rem 0;
}

.cabinet-list li::before { content: "• "; color: var(--accent); }

@media (max-width: 900px) {
  .hero-grid, .split, .connect-grid, .pricing-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .nav { display: none; }
  .header-cta { margin-left: auto; }
}
