:root {
  --bg: #070d1a;
  --bg2: #0c1528;
  --card: #0f1a31;
  --line: #1c2a47;
  --ink: #e8eef8;
  --muted: #8b9cb8;
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --amber: #f59e0b;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 14px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--font);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  background: radial-gradient(1200px 600px at 80% -10%, #0f2747 0%, transparent 60%), var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0 0 .5em; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  position: sticky; top: 0; z-index: 10;
  background: rgba(7,13,26,.75); backdrop-filter: blur(12px);
}
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--display); font-size: 18px; font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--cyan); font-weight: 600; }
.topnav { display: flex; align-items: center; gap: 10px; }
.langs { display: inline-flex; gap: 2px; margin-right: 6px; }
.langs a { color: var(--muted); font-size: 12px; font-weight: 700; padding: 4px 7px; border-radius: 6px; }
.langs a.on, .langs a:hover { color: var(--ink); background: rgba(255,255,255,.06); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px/1 var(--font); cursor: pointer; color: var(--ink); background: transparent;
  transition: transform .12s, background .2s, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #04111f; }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: #2c3f66; background: rgba(255,255,255,.03); }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; padding: 12px; }

/* ---------- hero */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  padding: clamp(40px, 8vw, 110px) clamp(16px, 4vw, 48px) 60px; max-width: 1240px; margin: 0 auto;
}
.eyebrow { color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 62px); line-height: 1.04; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--cyan), #a78bfa); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: #b8c5db; font-size: clamp(16px, 1.6vw, 19px); max-width: 560px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }
.fine { color: var(--muted); font-size: 13px; }

.hero-art { border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, #0d1a33, #08101f); padding: 10px; box-shadow: 0 40px 80px -30px rgba(34,211,238,.25); }
.netmap { width: 100%; height: auto; display: block; }
.netmap .gridline { stroke: rgba(255,255,255,.04); }
.netmap .street { stroke: rgba(255,255,255,.07); stroke-width: 14; fill: none; stroke-linecap: round; }
.netmap .fiber { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
.netmap .f1 { stroke: var(--cyan); }
.netmap .f2 { stroke: #a78bfa; animation-duration: 2s; }
.netmap .f3 { stroke: var(--cyan); animation-duration: 2.3s; }
.netmap .f4 { stroke: #60a5fa; stroke-dasharray: 3 6; }
@keyframes flow { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .netmap .fiber { animation: none; } }
.netmap .node rect, .netmap .node circle { stroke: #fff; stroke-width: 2; }
.netmap .olt rect { fill: var(--red); }
.netmap .olt text { fill: #fff; font: 700 9px var(--font); text-anchor: middle; }
.netmap .ceo circle { fill: var(--amber); }
.netmap .cto rect { fill: var(--green); }
.netmap .cto.warn rect { fill: var(--amber); }
.netmap .client circle { fill: #38bdf8; stroke: #fff; stroke-width: 1.5; }
.netmap .tip rect { fill: rgba(5,10,20,.92); stroke: var(--line); }
.netmap .tip text { fill: var(--ink); font: 600 12px var(--font); }
.netmap .tip text.dim { fill: var(--green); font-weight: 500; font-size: 11px; }

.features { max-width: 1240px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px); }
.features h2 { font-size: clamp(26px, 3vw, 36px); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 18px; margin-top: 14px; }
.card p { color: #a9b7cf; margin: 0; font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: rgba(34,211,238,.1); position: relative; }
.ico::after { content: ''; position: absolute; inset: 11px; border-radius: 4px; border: 2px solid var(--cyan); }
.ico-splice::after { border-radius: 50%; border-color: var(--amber); }
.ico-trace::after { border-color: var(--green); border-width: 2px 0; border-radius: 0; }
.ico-kmz::after { border-color: #a78bfa; }
.ico-team::after { border-radius: 50% 50% 4px 4px; }
.ico-free::after { border-color: var(--green); border-radius: 50%; }

.band {
  max-width: 1240px; margin: 30px auto 70px; padding: 32px clamp(20px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(34,211,238,.12), rgba(167,139,250,.1));
}
.band h2 { font-size: clamp(22px, 2.6vw, 30px); }
.band p { margin: 0; color: #b8c5db; max-width: 640px; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px clamp(16px, 4vw, 48px); color: var(--muted); font-size: 13px; border-top: 1px solid rgba(255,255,255,.05); }

/* ---------- auth */
.auth-wrap { display: grid; place-items: center; padding: clamp(28px, 7vw, 80px) 16px; }
.auth-card {
  width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(22px, 4vw, 34px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.auth-card h1 { font-size: 26px; }
.auth-card .sub { color: var(--muted); margin: -4px 0 20px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; color: #c4d0e4; margin-bottom: 14px; }
.auth-card label small { color: var(--muted); font-weight: 500; }
.auth-card input, .auth-card select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font: 15px var(--font);
}
.auth-card input:focus, .auth-card select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,211,238,.15); }
.auth-card .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.auth-card .check input { width: auto; margin: 3px 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-between { display: flex; justify-content: flex-end; margin: -6px 0 16px; font-size: 14px; }
.alt { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.alert { padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.alert.err { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #fecaca; }
.alert.ok { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.35); color: #bbf7d0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .topnav .btn-ghost { display: none; }
}
@media (max-width: 480px) {
  .two { grid-template-columns: 1fr; }
  .topbar .langs { display: none; }
  .foot .langs { display: inline-flex; }
}

/* ---------- contract */
.doc { padding: clamp(24px, 5vw, 60px) 16px; }
.doc-card { max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 4vw, 44px); }
.doc-card h1 { font-size: clamp(24px, 3vw, 32px); }
.doc-card h2 { font-size: 18px; margin-top: 1.6em; color: var(--cyan); }
.doc-card p { color: #c4d0e4; }
