/* Routyx site. Colour tokens are the same as the Routyx panel
   (docs/(C) Routyx brand 2026-09-27/(C) Routyx prototype B.html), so the site
   and the product look like one thing. */

/* White + blue is the default (Osama, 2026-10-02); dark (black + blue) stays as a toggle.
   Every colour is a token, so both themes and every section follow them. */
:root, :root[data-theme="light"] {
  --bg: #F7F9FD; --surface: #FFFFFF; --raised: #FFFFFF; --tint: #EEF3FF;
  --line: #E3E9F3; --line2: #CFD8E6;
  --ink: #0E1726; --muted: #5B6778; --blue: #1F5EEA; --blue-2: #3D7BFF; --blue-ink: #fff; --blue-soft: #E6EEFF;
  --good: #13894F; --good-bg: #DDF3E7; --warn: #A86B00; --warn-bg: #FBEFD5;
  --bad: #C8262D; --bad-bg: #FBE0E1; --idle-bg: #EEF1F6;
  --shadow: 0 18px 44px rgba(17,42,99,.12);
  --card-shadow: 0 1px 2px rgba(16,40,90,.05), 0 10px 28px rgba(16,40,90,.06);
  --glass: rgba(255,255,255,.86);
  --stage-top: #F7F9FD; --stage-bot: #E4EDFF; --stage-a: rgba(61,123,255,.22); --stage-b: rgba(124,162,255,.26);
  --dot: rgba(31,94,234,.16);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A0E14; --surface: #111722; --raised: #172030; --tint: #0D1420;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.13);
  --ink: #E6ECF5; --muted: #8C98AB; --blue: #3D7BFF; --blue-2: #5B8FFF; --blue-ink: #fff; --blue-soft: rgba(61,123,255,.15);
  --good: #34C77B; --good-bg: rgba(52,199,123,.15); --warn: #F2B544; --warn-bg: rgba(242,181,68,.15);
  --bad: #F2555A; --bad-bg: rgba(242,85,90,.15); --idle-bg: rgba(255,255,255,.06);
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --card-shadow: 0 1px 2px rgba(0,0,0,.3);
  --glass: rgba(17,23,34,.78);
  --stage-top: #0A0E14; --stage-bot: #0C1528; --stage-a: rgba(61,123,255,.24); --stage-b: rgba(61,123,255,.12);
  --dot: rgba(255,255,255,.06);
  color-scheme: dark;
}

@font-face { font-family: Inter; src: url(../fonts/inter-latin-var.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jbmono-latin-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(../fonts/jbmono-latin-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.mono, .num { font-family: "JetBrains Mono", Consolas, ui-monospace, monospace; }
.muted { color: var(--muted); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 11px; border: 1px solid var(--line2);
  background: var(--raised); color: var(--ink); font: 600 15px/1 inherit; cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; border-color: var(--blue); transform: translateY(-1px); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: var(--blue-ink); box-shadow: 0 8px 26px rgba(61,123,255,.32); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn svg { width: 18px; height: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
[data-contact][hidden] { display: none !important; }

/* ---------- early-access bar + header ---------- */
.ribbon { background: var(--blue-soft); color: var(--ink); font-size: 13.5px; text-align: center; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.ribbon b { color: var(--blue); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--glass);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 30px; width: auto; }
.brand .logo-light { display: none; }
:root[data-theme="light"] .brand .logo-dark { display: none; }
:root[data-theme="light"] .brand .logo-light { display: block; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--muted); font-size: 14.5px; font-weight: 550; padding: 8px 11px; border-radius: 8px; }
.nav a:hover { color: var(--ink); background: var(--idle-bg); text-decoration: none; }
.top .end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.iconbtn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { color: var(--ink); border-color: var(--blue); }
.iconbtn svg { width: 18px; height: 18px; }
.theme-sun { display: none; }
:root[data-theme="light"] .theme-sun { display: block; }
:root[data-theme="light"] .theme-moon { display: none; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; font-size: 16px; }
  .menu-btn { display: grid; }
  .top .end .btn { display: none; }
}

/* rule card + Telegram alert (automation pictures) */
.rule-card .rh { display: flex; align-items: center; gap: 8px; font-weight: 650; margin-bottom: 8px; }
.rule-card code { font-family: "JetBrains Mono", Consolas, monospace; font-size: 12.5px; background: var(--idle-bg); border-radius: 6px; padding: 1px 6px; }
.rule-card .row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; padding: 3px 0; }
.rule-card .row b { color: var(--ink); font-weight: 600; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 20px; font-size: 12px; font-weight: 650; }
.pill.g { background: var(--good-bg); color: var(--good); } .pill.w { background: var(--warn-bg); color: var(--warn); }
.pill.r { background: var(--bad-bg); color: var(--bad); } .pill.b { background: var(--blue-soft); color: var(--blue); }
.pill.i { background: var(--idle-bg); color: var(--muted); }
.tg { display: flex; gap: 12px; align-items: flex-start; }
.tg .tg-ic { width: 36px; height: 36px; border-radius: 50%; background: #2AABEE; display: grid; place-items: center; flex: none; }
.tg .tg-ic svg { width: 19px; height: 19px; }
.tg small { color: var(--muted); display: block; font-size: 12px; }
.tg p { margin: 2px 0 0; font-size: 13.5px; }
.rule-card, .tg { background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 14px; }

/* ---------- panel mock: real HTML with sample data, not a screenshot ---------- */
.panel-mock {
  width: min(620px, 100%); border-radius: 16px; overflow: hidden; border: 1px solid var(--line2);
  background: var(--bg); box-shadow: var(--shadow); display: flex; font-size: 12.5px; line-height: 1.4; margin-top: 8px;
}
.pm-rail { width: 54px; background: var(--surface); border-right: 1px solid var(--line); padding: 10px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; }
.pm-rail img { width: 28px; height: 28px; margin-bottom: 6px; }
.pm-rail span { width: 38px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); }
.pm-rail span.on { background: var(--blue-soft); color: var(--blue); }
.pm-rail svg { width: 17px; height: 17px; }
.pm-main { flex: 1; min-width: 0; }
.pm-top { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.pm-top b { font-size: 13px; }
.pm-search { margin-left: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); background: var(--bg); border-radius: 8px; padding: 4px 9px; color: var(--muted); font-size: 11.5px; min-width: 0; }
.pm-search kbd { font: 10px ui-monospace, monospace; border: 1px solid var(--line2); border-radius: 4px; padding: 0 4px; }
.pm-body { padding: 12px; display: grid; gap: 10px; }
.pm-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pm-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.pm-kpi span { color: var(--muted); font-size: 11px; }
.pm-kpi strong { display: block; font-size: 16px; font-family: "JetBrains Mono", Consolas, monospace; letter-spacing: -.02em; }
.pm-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pm-card h4 { margin: 0; padding: 8px 10px; font-size: 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.pm-card h4 em { font-style: normal; color: var(--muted); font-weight: 500; }
.pm-card table { width: 100%; border-collapse: collapse; }
.pm-card td { padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pm-card tr:last-child td { border-bottom: 0; }
.pm-card td.n { text-align: right; font-family: "JetBrains Mono", Consolas, monospace; }
.pm-needs { display: flex; gap: 8px; align-items: center; padding: 8px 10px; }
.pm-end { margin-left: auto; }
footer .tagline { margin-top: 12px; max-width: 300px; }
.pm-needs .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); flex: none; }
@media (max-width: 560px) {
  .pm-kpis { grid-template-columns: repeat(2, 1fr); }
  .pm-rail { display: none; }
  .pm-hide { display: none; }
}

/* ---------- regular sections ---------- */
section.block { padding: clamp(72px, 10vw, 120px) 0; position: relative; z-index: 3; background: var(--bg); }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 44px; }
.head p { color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.alt .tile { background: var(--bg); }
.tile p { color: var(--muted); margin: 0; font-size: .97rem; }
.tile .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.tile .ic svg { width: 21px; height: 21px; }
.tile .k { font-size: .8rem; font-weight: 650; color: var(--blue); letter-spacing: .04em; margin-bottom: 4px; }

/* numbers band */
.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.numbers .n { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.numbers .n strong { display: block; font: 750 clamp(2.4rem, 4.6vw, 3.4rem)/1 "JetBrains Mono", Consolas, monospace; color: var(--blue); letter-spacing: -.04em; }
.numbers .n span { display: block; margin-top: 10px; color: var(--ink); font-weight: 550; }
.numbers .n em { display: block; font-style: normal; color: var(--muted); font-size: .9rem; margin-top: 2px; }
.small-print { margin-top: 22px; color: var(--muted); font-size: .88rem; max-width: 820px; }

/* why */
.why { counter-reset: why; }
.why .tile { position: relative; padding-top: 26px; }
.why .tile h3 { padding-right: 24px; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.plan { background: var(--bg); border: 1px solid var(--line2); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.plan.mid { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), var(--shadow); }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: .93rem; min-height: 2.9em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.plan .price strong { font: 750 3rem/1 "JetBrains Mono", Consolas, monospace; letter-spacing: -.05em; }
.plan .price span { color: var(--muted); }
.plan .caps { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 6px; }
.plan .caps .pill { font-size: 13px; padding: 4px 10px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 20px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.plan li:last-child { border-bottom: 0; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.plan li.add::before { border: 0; width: 10px; height: 10px; top: 13px; left: 3px; background: linear-gradient(var(--blue), var(--blue)) center/10px 2px no-repeat, linear-gradient(var(--blue), var(--blue)) center/2px 10px no-repeat; transform: none; }
.founder { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font-size: .95rem; }
.tables { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-top: 28px; }
.ptable { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ptable h3 { padding: 16px 18px 12px; margin: 0; font-size: 1rem; border-bottom: 1px solid var(--line); }
.ptable table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.ptable td { padding: 11px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable td:last-child { text-align: right; white-space: nowrap; font-weight: 650; font-family: "JetBrains Mono", Consolas, monospace; font-size: .9rem; }
.ptable td small { display: block; color: var(--muted); font-size: .84rem; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 28px 18px 0; font-weight: 620; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--blue); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* final call to action */
.cta { text-align: center; }
.cta .box { background: linear-gradient(135deg, var(--blue-soft), transparent 70%), var(--surface); border: 1px solid var(--line2); border-radius: 24px; padding: clamp(36px, 6vw, 64px) 22px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; font-size: 1.08rem; }
.cta .btns { justify-content: center; }

/* footer */
footer { padding: 48px 0 40px; border-top: 1px solid var(--line); background: var(--bg); position: relative; z-index: 3; font-size: .9rem; color: var(--muted); }
footer .cols { display: flex; flex-wrap: wrap; gap: 28px 56px; justify-content: space-between; }
footer .brand img { height: 26px; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer nav b { color: var(--ink); font-size: .85rem; margin-bottom: 2px; }
footer nav a { color: var(--muted); }
footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.6; }

/* reveal on scroll (main.js adds .in) */
.rv { transform: translateY(16px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }   /* text is always readable; it only rises into place */
.rv.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { transform: none; }
}

/* plain document pages (terms) */
.doc { padding: 56px 0 90px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.3rem; margin-top: 2em; }
.doc p, .doc li { color: var(--muted); }
.doc li { margin: 6px 0; }


/* ================= Design layer, 2026-10-02: white + blue, real backgrounds =================
   - the 3D stage gets a soft blue mesh that drifts slowly, plus a faint dot grid
   - sections alternate: white → light-blue tint → one deep-blue band (numbers) → … → blue CTA → navy footer
   - on phones the gateway sits in a window at the top and the text scrolls underneath it,
     so no text box ever covers the gateway */

.ribbon { background: linear-gradient(90deg, #1F5EEA, #3D7BFF); color: #fff; border: 0; }
.ribbon b { color: #fff; }

/* hero background: soft blue mesh that drifts slowly + a faint dot grid */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 110px);
  background: linear-gradient(180deg, var(--stage-top), var(--stage-bot)); border-bottom: 1px solid var(--line); }
.hero .mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero .mesh i { position: absolute; border-radius: 50%; filter: blur(70px); will-change: transform; animation: drift 24s ease-in-out infinite alternate; }
.hero .mesh i:nth-child(1) { width: 52vmax; height: 52vmax; right: -12vmax; top: -14vmax; background: var(--stage-a); }
.hero .mesh i:nth-child(2) { width: 38vmax; height: 38vmax; left: -14vmax; bottom: -18vmax; background: var(--stage-b); animation-duration: 30s; animation-direction: alternate-reverse; }
.hero .mesh i:nth-child(3) { width: 24vmax; height: 24vmax; right: 24vw; bottom: 4vh; background: var(--stage-a); opacity: .7; animation-duration: 19s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-5vmax, 4vmax, 0) scale(1.15); } }
.hero .grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 68% 46%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 65% at 68% 46%, #000 25%, transparent 78%);
}

/* cards: lift off the background */
.tile, .plan, .ptable, .faq details, .numbers .n { box-shadow: var(--card-shadow); }
.tile { background: var(--surface); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue) 35%, var(--line)); }
section.block { background: var(--bg); }
section.block.tint { background: var(--tint); border-block: 1px solid var(--line); }
section.block.tint .tile, section.block.tint .plan, section.block.tint .ptable { background: var(--surface); }
.plan, .ptable { background: var(--surface); }

/* a soft route-map drawing in the corner of tinted sections */
section.block.tint::before {
  content: ""; position: absolute; right: 0; top: 0; width: min(520px, 60vw); height: 320px; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 320' fill='none' stroke='%233D7BFF' stroke-opacity='.35' stroke-width='2'%3E%3Cpath d='M40 60C160 60 200 200 330 200S470 120 500 120'/%3E%3Cpath d='M40 200C160 200 200 60 330 60S470 260 500 260'/%3E%3Cpath d='M120 300C220 300 260 130 400 130'/%3E%3Ccircle cx='40' cy='60' r='6' fill='%233D7BFF' fill-opacity='.35'/%3E%3Ccircle cx='40' cy='200' r='6' fill='%233D7BFF' fill-opacity='.35'/%3E%3Ccircle cx='500' cy='120' r='6' fill='%233D7BFF' fill-opacity='.35'/%3E%3Ccircle cx='500' cy='260' r='6' fill='%233D7BFF' fill-opacity='.35'/%3E%3Ccircle cx='400' cy='130' r='5' fill='%233D7BFF' fill-opacity='.35'/%3E%3C/svg%3E") no-repeat right top / contain;
  -webkit-mask-image: linear-gradient(200deg, #000 30%, transparent 85%); mask-image: linear-gradient(200deg, #000 30%, transparent 85%);
}
section.block.tint > .wrap { position: relative; }

/* the deep-blue band (measured numbers) */
section.block.band {
  color: #fff; border: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23fff' stroke-opacity='.07' stroke-width='1.5'%3E%3Cpath d='M0 60h40c20 0 20-40 40-40h40M0 100h30c25 0 25-60 50-60h40'/%3E%3Ccircle cx='80' cy='20' r='3' fill='%23fff' fill-opacity='.12'/%3E%3C/svg%3E"),
    radial-gradient(60% 80% at 85% 10%, rgba(124,162,255,.45), transparent 60%),
    linear-gradient(135deg, #1F5EEA 0%, #2747C8 55%, #14307F 100%);
}
.band .eyebrow { color: #C9D9FF; }
.band h2 { color: #fff; }
.band .head p, .band .small-print { color: rgba(255,255,255,.8); }
.band .numbers .n { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); box-shadow: none; }
.band .numbers .n strong, .band .numbers .n span { color: #fff; }
.band .numbers .n em { color: rgba(255,255,255,.72); }

/* plans: the middle plan is the blue one */
.plan.mid { background: linear-gradient(160deg, #1F5EEA, #2747C8); color: #fff; border: 0; box-shadow: 0 24px 60px rgba(31,94,234,.35); }
.plan.mid .for, .plan.mid .price span, .plan.mid li { color: rgba(255,255,255,.88); }
.plan.mid li { border-bottom-color: rgba(255,255,255,.18); }
.plan.mid li::before { border-color: #fff; }
.plan.mid li.add::before { background: linear-gradient(#fff, #fff) center/10px 2px no-repeat, linear-gradient(#fff, #fff) center/2px 10px no-repeat; }
.plan.mid .pill.b { background: rgba(255,255,255,.16); color: #fff; }
.plan.mid .btn.primary { background: #fff; color: #1F5EEA; border-color: #fff; box-shadow: none; }

/* call to action: a full blue panel */
.cta .box {
  color: #fff; border: 0; box-shadow: 0 30px 70px rgba(31,94,234,.3);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' fill='none' stroke='%23fff' stroke-opacity='.08' stroke-width='1.5'%3E%3Cpath d='M0 60h40c20 0 20-40 40-40h40M0 100h30c25 0 25-60 50-60h40'/%3E%3C/svg%3E"),
    radial-gradient(70% 90% at 15% 0%, rgba(124,162,255,.5), transparent 60%),
    linear-gradient(135deg, #1F5EEA, #2747C8 60%, #14307F);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); }
.cta .btn { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.cta .btn.primary { background: #fff; color: #1F5EEA; border-color: #fff; box-shadow: none; }

/* navy footer in both themes */
footer { background: #0B1222; color: #9AA6BA; border-top: 0; }
footer nav b { color: #fff; }
footer nav a { color: #B7C2D6; }
footer .legal { border-top-color: rgba(255,255,255,.08); }
footer .brand .logo-dark { display: block !important; }
footer .brand .logo-light { display: none !important; }

@media (prefers-reduced-motion: reduce) { .hero .mesh i { animation: none; } }

/* key phrase of each headline in brand blue (#1F5EEA on white = 5.5:1) */
.hl { color: var(--blue); }
.band .hl, .cta .hl { color: #fff; }

/* "tested with" strip: plain text chips, no logos */
.strip { position: relative; z-index: 3; background: var(--surface); border-block: 1px solid var(--line); padding: 22px 0; }
.strip .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.strip-k { font: 600 .78rem/1 "JetBrains Mono", Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.strip li { font-weight: 600; font-size: .92rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line2); border-radius: 999px; padding: 6px 14px; }

/* FAQ: heading on the left, questions on the right (desktop) */
@media (min-width: 980px) {
  #faq > .wrap { display: grid; grid-template-columns: 1fr 1.7fr; gap: 56px; align-items: start; }
  #faq .head { position: sticky; top: 110px; margin-bottom: 0; }
}

/* ---------- hero: text left, the product right ---------- */
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text p.lead { font-size: 1.15rem; color: var(--muted); max-width: 540px; }
.hero-text .from { margin: 6px 0 26px; font-size: .98rem; color: var(--muted); }
.hero-text .from b { color: var(--ink); font-family: "JetBrains Mono", Consolas, monospace; font-size: 1.05rem; }
.hero-vis { position: relative; padding: 28px 0 56px; }
.hero-vis .panel-mock { width: 100%; margin: 0; box-shadow: 0 30px 80px rgba(17,42,99,.18); }
.hero-vis .float { position: absolute; width: min(370px, 74%); }
.hero-vis .f-rule { left: -44px; bottom: -64px; }
.hero-vis .float code, .pm-end { white-space: nowrap; }
.hero-vis .f-tg { right: -26px; top: -78px; width: min(300px, 66%); }
.hero-vis .float .rule-card, .hero-vis .float .tg { animation: floaty 7s ease-in-out infinite; }
.hero-vis .f-tg .tg { animation-delay: -3.5s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.mono { font-family: "JetBrains Mono", Consolas, monospace; }

/* ---------- how it works: four rows, text and picture side by side ---------- */
.how { background: var(--surface); }
.how .wrap { display: grid; gap: clamp(72px, 10vw, 128px); }
.frow { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.frow.flip .ftext { order: 2; }
.ftext h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.ftext p.lead { font-size: 1.1rem; color: var(--muted); }
.ftext ul.ticks { list-style: none; padding: 0; margin: 0; }
.ftext ul.ticks li { position: relative; padding: 6px 0 6px 32px; font-size: 15.5px; }
.ftext ul.ticks li::before { content: ""; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' fill='none' stroke='%231F5EEA' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
:root[data-theme="dark"] .ftext ul.ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14.2 7.4' fill='none' stroke='%236FA0FF' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.fvis { position: relative; }
.fvis::before { content: ""; position: absolute; inset: -8% -6%; border-radius: 40px; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, var(--blue-soft), transparent 75%); }
.vcard { position: relative; background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.vc-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.vc-head em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 12px; }

/* ports list */
.ports table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ports th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 9px 18px; border-bottom: 1px solid var(--line); }
.ports td { padding: 9px 18px; border-bottom: 1px solid var(--line); }
.ports tr:last-child td { border-bottom: 0; }
.ports .n { text-align: right; font-family: "JetBrains Mono", Consolas, monospace; font-size: 13px; }
.ports tr.bad td { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.sd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.sd.ok { background: var(--good); box-shadow: 0 0 0 3px var(--good-bg); }
.sd.off { background: var(--bad); box-shadow: 0 0 0 3px rgba(200,38,45,.18); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* routing diagram */
.route { padding: 10px 6px; }
.route svg { width: 100%; height: auto; }
.route .rline { fill: none; stroke-width: 6; stroke-linecap: round; }
.route .rline.main { stroke: var(--blue); }
.route .rline.alt { stroke: var(--blue); stroke-opacity: .32; stroke-dasharray: 2 12; }
.route .flow { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 22; animation: flow 1.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.route .node { fill: var(--surface); stroke: var(--line2); stroke-width: 1.5; }
.route .node.dim { stroke-dasharray: 4 5; }
.route .hub { fill: #0E1726; }
.route .hub-x { fill: none; stroke: #3D7BFF; stroke-width: 5; stroke-linecap: round; }
.route .nt { font: 650 15px Inter, sans-serif; fill: var(--ink); }
.route .ns { font: 500 12px Inter, sans-serif; fill: var(--muted); }
.route .ns.ok { fill: var(--good); }
.route .tag { font: 600 12px "JetBrains Mono", Consolas, monospace; fill: var(--blue); }

/* automation: rule card with the Telegram alert below it */
.auto-stack { position: relative; display: grid; gap: 16px; max-width: 470px; margin-left: auto; }
.auto-stack .rule-card { padding: 20px 22px; font-size: 15px; }
.auto-stack .rule-card .row { font-size: 14px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.auto-stack .rule-card .row:last-child { border-bottom: 0; }
.auto-stack .tg { margin-left: 40px; }

/* panel help text */
.helpcard { padding: 18px; display: grid; gap: 14px; }
.kbar { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line2); background: var(--bg); border-radius: 10px; padding: 9px 12px; color: var(--muted); font-size: 14px; }
.kbar kbd { margin-left: auto; font: 11px ui-monospace, monospace; border: 1px solid var(--line2); border-radius: 5px; padding: 1px 6px; }
.field { position: relative; display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.field .info { color: var(--blue); font-weight: 700; }
.field .input { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.field .input i { font-style: normal; color: var(--muted); font-family: Inter, sans-serif; font-size: 13px; margin-left: 6px; }
.field .tip { background: #0E1726; color: #DCE4F2; border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5; box-shadow: var(--shadow); }
.field .tip b { display: block; color: #fff; margin-bottom: 2px; }

/* phones and small tablets: everything stacks, nothing overlaps */
@media (max-width: 980px) {
  .hero-in, .frow { grid-template-columns: 1fr; }
  .frow.flip .ftext { order: 0; }
  .hero-vis { padding: 8px 0 0; }
  .hero-vis .float { display: none; } /* the same cards appear in the Automation row */
  .auto-stack { margin: 0; max-width: none; }
  .auto-stack .tg { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-vis .float .rule-card, .hero-vis .float .tg, .route .flow, .sd.off { animation: none; }
}
