:root {
  --bg: #151515;
  --bg-2: #1C1C1C;
  --bg-3: #242424;
  --line: #2C2C2C;
  --text: #F2F2F2;
  --muted: #A6A6A6;
  --blue: #2F5EA0;
  --blue-bright: #4A80CF;
  --green: #6CC9A5;
  --font: "Nunito", -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --radius: 18px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 48px); margin: 0 auto; }
h1, h2, h3 { font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
p { max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #0d1f18; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 16px; z-index: 100; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; padding: 18px 0; background: rgba(21,21,21,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; letter-spacing: 0.06em; }
.brand svg { width: 36px; height: 36px; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 600; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top nav .btn { padding: 9px 16px; font-size: 14px; color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* Hero */
.hero { position: relative; padding: 80px 0 96px; overflow: hidden; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 800; max-width: 12ch; }
.hero .lede { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 46ch; }
.hero .actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.net { width: 100%; max-width: 520px; justify-self: center; display: block; }
.net .edge { stroke: #fff; stroke-opacity: .10; stroke-width: 1.1; }
.net .node.dim { fill: #fff; fill-opacity: .22; }
.net .hex { fill: var(--blue); }
.net .hot { fill: var(--green); }
.net .ring { fill: none; stroke: var(--green); stroke-width: .8; opacity: 0; transform-origin: center; transform-box: fill-box; animation: ring 3.2s ease-out infinite; }
.net .ring.r2 { animation-delay: 1.6s; }
@keyframes ring { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.6); opacity: 0; } }

/* Sections */
section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; margin-bottom: 48px; align-items: end; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; }

/* Principles strip */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { padding: 28px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.principle svg { width: 28px; height: 28px; margin-bottom: 16px; }
.principle h3 { font-size: 20px; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 15.5px; }

/* Products */
.products { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.product { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); padding: 36px; overflow: hidden; }
.product.featured { background: linear-gradient(135deg, #1a2740 0%, #1C1C1C 60%); }
.product .kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--green); margin-bottom: 18px; }
.product .kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.product .kicker.soon { color: var(--muted); }
.product .kicker.soon::before { background: var(--muted); }
.product h3 { font-size: 30px; margin-bottom: 12px; }
.product p { color: var(--muted); }
.product ul { list-style: none; margin-top: 22px; display: grid; gap: 10px; color: var(--text); font-size: 16px; }
.product li { padding-left: 22px; position: relative; }
.product li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--green); border-radius: 2px; }
.langs { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.langs span { font-size: 13px; font-weight: 600; color: var(--muted); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); }
.langs .more { color: var(--green); border-color: transparent; background: rgba(108,201,165,.1); }
.product.next { display: flex; flex-direction: column; justify-content: space-between; }
.product.next .bottom { margin-top: 32px; font-size: 15px; color: var(--muted); }
.product.next .bottom a, .inline-link { color: var(--green); font-weight: 700; }
.inline-link:hover { text-decoration: underline; }

/* Services */
.service { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; padding: 30px 0; border-top: 1px solid var(--line); }
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service h3 { font-size: 24px; }
.service p { color: var(--muted); }

/* Process */
.process { margin-top: 64px; }
.process h3 { font-size: 24px; margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.step { position: relative; padding: 24px 24px 0 0; border-top: 2px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; color: var(--green); font-size: 14px; margin-bottom: 12px; }
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--green); }
.step h4 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* About */
.about .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.about h2 { font-size: clamp(30px, 3.6vw, 44px); }
.about .text p { color: var(--muted); font-size: 18px; }
.about .text p + p { margin-top: 16px; }
.facts { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.fact { background: var(--bg-2); padding: 18px 20px; }
.fact dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.fact dd { font-size: 16px; font-weight: 700; margin-top: 2px; }

/* Contact */
.contact .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact h2 { font-size: clamp(30px, 3.6vw, 44px); }
.contact p { color: var(--muted); font-size: 18px; }
.mail { display: inline-block; margin-top: 18px; font-weight: 800; font-size: clamp(22px, 2.8vw, 32px); color: var(--text); border-bottom: 2px solid var(--green); padding-bottom: 2px; }
.mail:hover { color: var(--green); }
.contact .note { margin-top: 16px; font-size: 15px; }
.contact .topics { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.topic { padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-size: 15px; }
.topic strong { display: block; font-size: 15px; margin-bottom: 2px; }
.topic span { color: var(--muted); font-size: 14px; }

/* Footer */
footer { padding: 48px 0 40px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
footer .brand { font-size: 18px; margin-bottom: 10px; }
footer .brand svg { width: 28px; height: 28px; }
footer h4 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
footer ul { list-style: none; display: grid; gap: 8px; }
footer ul a:hover { color: var(--text); }
footer .legal { padding-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 13px; }
footer strong { color: var(--text); font-weight: 700; }

/* Simple pages (privacy, 404) */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(34px, 4.5vw, 52px); margin-bottom: 10px; }
.page .meta { color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; }
.page p, .page li { color: var(--muted); max-width: 68ch; }
.page p + p { margin-top: 12px; }
.page ul { padding-left: 20px; margin-top: 8px; display: grid; gap: 6px; }
.page a:not(.btn) { color: var(--green); font-weight: 600; }
.page.center { text-align: center; padding: 120px 0; }
.page.center p { margin: 0 auto 28px; }

@media (max-width: 900px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .net { max-width: 360px; }
  .section-head, .service, .contact .wrap, .about .wrap, .products, footer .cols, footer .legal { grid-template-columns: 1fr; gap: 16px; }
  .principles, .contact .topics { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  section { padding: 64px 0; }
  .product { padding: 28px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 32px); }
  .top nav { gap: 16px; }
  .top nav .hide-sm { display: none; }
  .brand span { display: none; }
  footer .brand span { display: inline; }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .net .ring { animation: none; opacity: .4; transform: scale(1.6); }
}
