@font-face {
  font-family: "Plex";
  src: url("/assets/plex-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #040711;
  --panel: #0c111b;
  --line: #1a202b;
  --text: #f4f6fa;
  --sub: #9aa3b2;
  --accent: #55ff8a;
  --accent-ink: #04130a;
  --link: #7fb0ff;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, .brand { font-family: "Plex", system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sub { color: var(--sub); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(4, 7, 17, 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 24px; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 32px; object-fit: contain; }
.brand b { font-weight: 700; }
.brand span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: var(--sub); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav a.hide-sm { display: none; } .nav { gap: 16px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 24px; font-weight: 600; font-size: 16px; }
.btn { white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.btn.small { height: 38px; padding: 0 16px; font-size: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto -10%; height: 620px; background: radial-gradient(closest-side, rgba(85, 255, 138, 0.16), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 20px; color: var(--sub); max-width: 34em; margin: 22px 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { font-size: 14px; color: var(--sub); margin-top: 16px; }
.phone { justify-self: center; width: min(300px, 78vw); border-radius: 38px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 8px #0a0e17; overflow: hidden; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; } }

/* sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
section > .wrap > h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 12px; }
section > .wrap > p.sub { max-width: 40em; margin-bottom: 36px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--sub); margin: 0; font-size: 15.5px; }
.card .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(85, 255, 138, 0.12); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 20px; height: 20px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.plan.pro { border-color: rgba(85, 255, 138, 0.5); }
.plan h3 { font-size: 22px; }
.plan .price { font-family: "Plex", system-ui, sans-serif; font-size: 34px; margin: 10px 0 2px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--sub); font-size: 15.5px; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(85, 255, 138, 0.14); color: var(--accent); vertical-align: middle; margin-left: 8px; }

/* text pages */
.doc { padding: 56px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 38px 0 12px; }
.doc h3 { font-size: 18px; margin: 24px 0 8px; }
.doc p, .doc li { color: #cfd5df; }
.doc ul { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin: 6px 0; }
.doc .meta { color: var(--sub); font-size: 15px; margin-bottom: 28px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--sub); font-weight: 600; }
details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
details p { color: var(--sub); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 600; font-size: 15px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--sub); }
.dot.ok { background: var(--accent); }
.dot.bad { background: #ff6b6b; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--sub); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--sub); }
footer a:hover { color: var(--text); }
