/* noderai VPN — visual language shared with the Telegram bot artwork:
   graphite background with a soft top glow, near-white type, no colour accents,
   geometric display sans (Montserrat) over a calm UI sans (Manrope). */

:root {
  /* The logo has two colours and no third: #0b0b0d plate, #f4f4f4 type.
     Everything below is built from those two, plus the greys between them, so
     the page is the logo rather than a page near it. The violet accent this
     used to carry is the site's own invention and had nothing to do with the
     brand, which is why the logo read as a pasted-in box. */
  --plate:   #0b0b0d;   /* the logo's own background, measured */
  --ink:     #f4f4f4;   /* the logo's lettering, measured */

  --bg: var(--plate);
  --surface: #121215;
  --surface-2: #17171b;
  --line: #1d1d21;
  --line-strong: #292930;

  --text: var(--ink);
  --muted: #9c9ca2;
  --dim: #6a6a70;

  --ok: #4ade80;
  --warn: #fbbf24;
  --danger: #fb7185;

  /* The accent is the lettering, not a colour. A black-and-white logo cannot
     have a violet button: the button was the one thing on the page that had
     nothing to do with the brand. */
  --accent: var(--ink);
  --accent-deep: #d6d6d8;
  --accent-soft: #d8d8dc;
  /* Used at style.css:253 and :298 in gradients that fill .console-chart bars
     and .bar spans -- that is, the traffic and subscription progress bars on
     the signed-in dashboard. It was never defined anywhere in the repo, and an
     unregistered custom property makes the whole declaration invalid at
     computed-value time, so `background` silently fell back to transparent:
     a subscriber saw an empty grey track with no fill and no way to read how
     much of the period was left. Brand stays two greys -- this is the mid
     tone between --accent and --accent-deep, not a colour. */
  --accent-2: #e4e4e6;
  --accent-line: rgba(244, 244, 244, 0.26);
  --accent-tint: rgba(244, 244, 244, 0.07);
  --accent-glow: rgba(244, 244, 244, 0.10);

  --radius: 20px;
  --radius-sm: 12px;
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  /* Flat, and exactly the logo's plate colour. Every wash, glow and gradient
     tried here made the logo's own background end against a lighter field, and
     the eye drew the edge the owner kept reporting. Matching a hex value under
     a gradient does not help; the gradient has to go. */
  background: var(--plate);
}



body > * { position: relative; z-index: 1; }

a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: clamp(34px, 7vw, 82px); font-weight: 900; }
/* Long Russian words do not hyphenate by default, so a heading that fits
   the desktop grid runs off a phone instead of wrapping. */
h1, h2, h3 { overflow-wrap: break-word; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }

p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 26px 22px 70px; }
.wrap.narrow { max-width: 860px; }

/* ---------- header ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 56px;
}

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .word { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: 0.02em; }
/* The full brand name, as on the logo: "VPN by noderai", not "noderai". */
/* The logo sits in the corner, sized like a masthead rather than a thumbnail.
   Its plate is the same near-black as the page, so it needs no border and no
   shadow -- a frame around it would draw a box where the background already
   agrees. height is capped so a wide logo cannot push the nav taller than the
   hero heading on a small screen. */
/* The logo in the corner, on every page. Kept as one rule with two limits:
   the cropped plate is wide (383x147), so a height-only rule lets it claim a
   third of a phone screen. */
.brand-logo { height: 40px; width: auto; max-width: 168px; display: block; border-radius: 0; }
@media (max-width: 720px) {
  .brand-logo { height: 30px; max-width: 126px; }
}
.brand img, .brand-logo {
  /* Both constraints, not just height: the cropped plate is wide (383x147), so
     a height-only rule lets it claim a third of a phone screen. */
  height: 40px; width: auto; max-width: 168px; display: block;
  border-radius: 0;
}
@media (max-width: 720px) {
  /* The logo in the corner, on every page. Kept as one rule with two limits:
   the cropped plate is wide (383x147), so a height-only rule lets it claim a
   third of a phone screen. */
.brand-logo { height: 40px; width: auto; max-width: 168px; display: block; border-radius: 0; }
@media (max-width: 720px) {
  .brand-logo { height: 30px; max-width: 126px; }
}
.brand img, .brand-logo { height: 30px; max-width: 126px; }
  /* 520px is wider than a phone, and max-width alone does not clamp to the
     viewport -- the paragraph ran off the right edge instead of wrapping. */
  .hero p.lead { font-size: 16px; max-width: 100%; }
  h1 { font-size: 32px; }
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:hover { color: var(--text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  /* Filled with the logo's lettering, so the text on it is the logo's plate --
     white on white made the primary action invisible. */
  background: var(--ink);
  color: var(--plate);
  font: 700 15px/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 30px -12px var(--accent-glow);
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { filter: brightness(1.1); box-shadow: 0 14px 34px -12px var(--accent-glow); }
.btn:active { transform: translateY(1px); }

.btn.ghost {
  background: var(--accent-tint);
  border-color: var(--accent-line);
  color: var(--text);
}

.btn.ghost:hover { background: rgba(244, 244, 244, 0.08); border-color: var(--line-strong); }

.btn.small { padding: 11px 18px; font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- surfaces ---------- */

.card {
  /* Flat plate colour, like the page. The lighter fill and the top-down
     gradient are what made a card look like a panel floating over the site. */
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card + .card { margin-top: 18px; }

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 14px; }

.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: 1.3fr 0.7fr; }

.tag {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent-soft);
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  font: 700 12px/1 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-soft);
}

.value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 36px);
  letter-spacing: -0.01em;
  margin: 10px 0 4px;
}

.ok { color: var(--ok); }
.warn { color: var(--warn); }
.danger { color: var(--danger); }

/* ---------- hero ---------- */

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; padding: 30px 0 90px; }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin-top: 20px; }
/* One colour, from the logo's own palette. The three-stop gradient (violet to
   pale lilac to cyan) is what made the heading look like a poster rather than a
   service: the words ended in a different colour from the ones they continued,
   and on a phone the last word was cut off entirely. */
.hero h1 .outline { color: var(--accent-soft); }

.console {
  background:
    radial-gradient(100% 70% at 80% 0%, rgba(244, 244, 244, 0.035) 0%, transparent 60%),
    linear-gradient(160deg, #1c1e23, #101216);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 30px 80px -40px var(--accent-glow);
  transform: rotate(1.4deg);
}

.console-head { display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; }
.console-speed { font-family: var(--font-display); font-weight: 900; font-size: 46px; letter-spacing: -0.02em; margin: 22px 0 6px; }
.console-speed small { font-size: 15px; font-weight: 600; color: var(--muted); }
.console-chart { display: flex; align-items: flex-end; gap: 7px; height: 96px; margin: 18px 0 22px; }
.console-chart i {
  flex: 1;
  display: block;
  background: linear-gradient(180deg, var(--accent-2) 0%, var(--accent) 65%, var(--accent-deep) 100%);
  border-radius: 4px;
  opacity: 0.9;
}
.console-foot { display: flex; justify-content: space-between; color: var(--dim); font-size: 13px; }

.section { padding: 30px 0 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }

.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 40px);
  margin: 16px 0 6px;
}
.price small { font-family: var(--font-body); font-weight: 400; font-size: 15px; color: var(--muted); }

.feature h3 { margin: 0 0 10px; }
.feature p { color: var(--muted); }
.card.featured {
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, rgba(244, 244, 244, 0.045), transparent 60%) var(--surface);
}

/* ---------- data rows ---------- */

.rows { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #ffffff06; }
.row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.row:last-child { border-bottom: 0; }
.row strong { color: var(--text); font-weight: 600; }

.bar { height: 10px; border-radius: 999px; background: #23252a; overflow: hidden; margin: 12px 0 8px; }
.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  border-radius: 999px;
}

/* ---------- profile header ---------- */

.profile { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(244, 244, 244, 0.10); border: 1px solid var(--line-strong);
  border: 1px solid var(--accent-line);
  font-family: var(--font-display); font-weight: 800;
}
.profile .spacer { margin-left: auto; }

/* ---------- login ---------- */

.login-box {
  max-width: 440px;
  margin: 12vh auto 0;
  padding: 40px 30px;
  text-align: center;
  /* The same colour as the page. The panel was a shade lighter with a
     top-down gradient, and that lift was what drew a box around the logo
     sitting on it -- the page-level fix, one level down. A panel only
     disappears into the page if it is the page's colour. */
  background: var(--plate);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 90px -50px var(--accent-glow);
}
.login-box img { height: 40px; margin-bottom: 22px; }
.login-box p { color: var(--muted); margin-top: 10px; }
.login-box .error { color: var(--danger); min-height: 22px; margin-top: 14px; }

/* ---------- documents ---------- */

.doc h2 { margin: 34px 0 10px; }
.doc p, .doc li { color: #d9dbe1; }
/* :not(.btn) is the whole fix. This rule is an article rule -- it exists so
   body links inside a document are the soft accent rather than body text --
   and it was reaching the call-to-action buttons too. Specificity 0,1,1 against
   .btn's 0,1,0, so it won: the label turned #d8d8dc on the #f4f4f4 button face,
   a measured 1.29:1 where 4.5:1 is the floor. On /tariffs, /faq and /support
   that left "Войти в кабинет", "Тарифы" and "Открыть бота" -- the primary
   action on the page -- as light text on a light button. Flagged in the audit
   of 2026-10-02 and left in place until now. */
.doc a:not(.btn) { color: var(--accent-soft); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--dim); font: 600 13px/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; }

/* ---------- footer ---------- */

.footer {
  margin-top: 90px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: space-between;
}
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent-soft); }

:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 6px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-bottom: 60px; }
  .grid.three, .grid.two { grid-template-columns: 1fr; }
  .console { transform: none; }
  .nav-links { display: none; }
  .row { grid-template-columns: 1fr; gap: 4px; }
  .footer { margin-top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
