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

:root {
  --bg: #fafafa;
  --bg-dim: #f4f4f4;
  --border: #e4e4e4;
  --text: #111111;
  --text-muted: #888888;
  --text-dim: #cccccc;
  --accent: #00c060;
  --accent-text: #007a3d;
  --font: 'JetBrains Mono', monospace;
  --nav-h: 52px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

/* ===== Nav ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 32px;
}

.nav-logo {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-logo .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

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

.lang-toggle {
  font-family: var(--font);
  font-size: 0.7rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.lang-toggle:hover { color: var(--text); border-color: #bbb; }

.btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: none;
  font-weight: 700;
}

.btn-primary:hover { background: #333; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: #bbb; color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--text-muted);
}

/* ===== Hero ===== */
#hero {
  padding-top: 20px;
  min-height: auto;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero-inner { padding: 40px 0; }

.hero-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-tag-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h1 .accent { color: var(--accent-text); }

.hero-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-ctas { display: flex; gap: 8px; }
.hero-ctas .btn { padding: 8px 18px; }

/* ===== Stats ===== */
#stats {
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  padding: 40px 0;
  border-right: 1px solid var(--border);
  padding-left: 40px;
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }

.stat-key {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.stat-val {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-desc { font-size: 0.7rem; color: var(--text-muted); }

/* ===== Section header ===== */
.sec-header {
  padding: 72px 0 40px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.sec-num { font-size: 0.65rem; color: var(--text-dim); }
.sec-title { font-size: 0.78rem; font-weight: 700; color: var(--text); }

/* ===== Pipeline ===== */
#how { border-bottom: 1px solid var(--border); }

.pipeline-row {
  display: grid;
  grid-template-columns: 32px 160px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.pipeline-row:last-child { border-bottom: none; }

.pr-num {
  padding: 20px 0;
  font-size: 0.65rem;
  color: var(--text-dim);
}

.pr-name {
  padding: 20px 24px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.pr-name .status {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--accent-text);
  margin-top: 4px;
}

.pr-desc {
  padding: 20px 0 20px 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.pr-desc svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--text-dim);
}

/* ===== Platform services ===== */
#features { border-bottom: 1px solid var(--border); }

.svc-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.svc-row:last-child { border-bottom: none; }
.svc-row:hover .svc-name { color: var(--accent-text); }

.svc-name {
  padding: 18px 24px 18px 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  border-right: 1px solid var(--border);
  transition: color 0.15s;
}

.svc-desc {
  padding: 18px 0 18px 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Metrics ===== */
#metrics {
  padding: 20px 0 0;
}

.chart-container {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 20px 0;
  margin-top: 0;
}

.chart-container canvas {
  max-height: 140px;
}

.gauges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.gauge {
  text-align: center;
  padding: 12px 8px;
}

.gauge-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-text);
  line-height: 1;
  margin-bottom: 6px;
}

.gauge-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ===== Cities ===== */
#cities { border-bottom: 1px solid var(--border); }

.cities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.city-card {
  padding: 28px 0;
  border-right: 1px solid var(--border);
  padding-right: 32px;
}

.city-card:first-child { padding-left: 0; }
.city-card:last-child { border-right: none; padding-right: 0; }
.city-card + .city-card { padding-left: 32px; }

.city-code { font-size: 0.65rem; color: var(--accent-text); margin-bottom: 6px; font-weight: 700; }
.city-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; }
.city-region { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 20px; }

.city-svc {
  font-size: 0.7rem;
  color: var(--text-muted);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-svc::before { content: '—'; color: var(--text-dim); font-size: 0.65rem; }
.city-svc.on { color: var(--text); }
.city-svc.on::before { content: '+'; color: var(--accent-text); }

/* ===== Contact ===== */
#contact { border-bottom: 1px solid var(--border); }

.contact-inner { padding: 72px 0; }

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 16px;
}

.contact-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 400px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--accent-text);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity 0.15s;
}

.contact-link:hover { opacity: 0.7; }

/* ===== Footer ===== */
footer { padding: 24px 0; }

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

.footer-logo { font-size: 0.75rem; font-weight: 700; }
.footer-logo .dot { color: var(--accent); }
.footer-copy { font-size: 0.7rem; color: var(--text-dim); }

/* ===== Mobile menu ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px 24px;
  z-index: 99;
  flex-direction: column;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover { color: var(--text); }

.mobile-menu-footer {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right .btn-ghost { display: none; }
  .hamburger { display: flex; }

  h1 { font-size: 1.8rem; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-left: 0; padding: 28px 0; }
  .stat-item:last-child { border-bottom: none; }

  .pipeline-row { grid-template-columns: 28px 1fr; }
  .pr-name { border-right: none; grid-column: 2; }
  .pr-desc { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid var(--border); }

  .svc-row { grid-template-columns: 1fr; }
  .svc-name { border-right: none; padding-bottom: 4px; }
  .svc-desc { padding-left: 0; padding-top: 0; }

  .cities-grid { grid-template-columns: 1fr; }
  .city-card { border-right: none; border-bottom: 1px solid var(--border); padding: 28px 0; }
  .city-card + .city-card { padding-left: 0; }
  .city-card:last-child { border-bottom: none; }

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