/* ============================================================
   EH BILLING SYSTEM — Landing Page Styles
   Futuristic ISP infrastructure aesthetic
   Deep-black / midnight-blue · fine technical grid · circuit lines
   Electric violet / blue / cyan accents · green = online
   Monospace telemetry labels · thin borders · precise spacing
   ============================================================ */

:root {
  --bg0: #04060d;
  --bg1: #070b16;
  --bg2: #0b1020;
  --line: rgba(148, 163, 220, 0.12);
  --line-strong: rgba(148, 163, 220, 0.26);
  --text: #e7ebff;
  --muted: #8a93b8;
  --violet: #8b5cf6;
  --violet-soft: #a78bfa;
  --blue: #4f7dff;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #fbbf24;
  --rose: #fb7185;
  --mono: "SF Mono", "Cascadia Code", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--sans);
  background: var(--bg0);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(139, 92, 246, 0.4); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code {
  font-family: var(--mono);
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.84em;
  color: #c4b5fd;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Background FX: fine technical grid + faint ambient light ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 30%, transparent 90%);
  animation: gridDrift 120s linear infinite;
}
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 44px 44px, 44px 44px; } }

.orb {
  position: fixed; border-radius: 50%; filter: blur(70px); z-index: -2; pointer-events: none;
  opacity: 0.55;
}
.orb-a { width: 620px; height: 620px; top: -240px; left: -180px; background: radial-gradient(circle, rgba(99, 102, 241, 0.14), transparent 65%); }
.orb-b { width: 560px; height: 560px; top: 8%; right: -220px; background: radial-gradient(circle, rgba(34, 211, 238, 0.09), transparent 65%); }
.orb-c { width: 520px; height: 520px; bottom: -180px; left: 30%; background: radial-gradient(circle, rgba(139, 92, 246, 0.09), transparent 65%); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Micro animations ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes nodePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
@keyframes dashflow { to { stroke-dashoffset: -16; } }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeSlide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Navbar: control bar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(4, 6, 13, 0.8);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(4, 6, 13, 0.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .03em; font-size: .98rem; }
.brand em { font-style: normal; color: var(--violet-soft); font-family: var(--mono); font-size: .78em; letter-spacing: .08em; }
.brand-mark {
  width: 36px; height: 36px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 1.02rem; font-weight: 700; color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.7); border-radius: 7px;
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.32), rgba(139, 92, 246, 0.06));
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 13px; border-radius: 5px; font-size: .88rem; font-weight: 500; color: #9aa4cc;
  transition: color .2s, background .2s, border-color .2s;
  border: 1px solid transparent;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); border-color: var(--line); }
.nav-links .nav-cta {
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.6);
  background: rgba(139, 92, 246, 0.14);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.18);
}
.nav-links .nav-cta:hover { background: rgba(139, 92, 246, 0.24); box-shadow: 0 0 26px rgba(139, 92, 246, 0.35); border-color: rgba(167, 139, 250, 0.8); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 1px; transition: transform .3s, opacity .3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero: cinematic infrastructure composition ---------- */
.hero { position: relative; overflow: hidden; padding: 190px 0 84px; }

.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.hero-topo {
  position: absolute; right: -8%; top: 12%; width: 58%; height: auto;
  z-index: 0; opacity: .5; pointer-events: none;
}
.ht-line { stroke: rgba(139, 92, 246, 0.16); stroke-width: 1; }
.ht-node { fill: rgba(34, 211, 238, 0.35); stroke: rgba(34, 211, 238, 0.5); stroke-width: 1; }

.tele-chip {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; color: rgba(186, 196, 240, 0.78);
  padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 4px;
  background: rgba(8, 12, 26, 0.78); pointer-events: none;
}
.tele-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2.2s infinite; }
.chip-a { top: 158px; left: 26px; }
.chip-b { top: 158px; right: 26px; }
.chip-c { top: 52%; right: 40px; }
.chip-d { top: 52%; left: 40px; }
.chip-e { bottom: 30%; left: 90px; }
.chip-f { bottom: 30%; right: 90px; }

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center;
}
.hero-copy { text-align: left; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 5px; font-family: var(--mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .06em; color: #aab4dd; background: rgba(10, 14, 28, 0.6);
  border: 1px solid var(--line-strong); margin-bottom: 30px;
}
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s infinite; }

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 800; line-height: 1.07; letter-spacing: -.02em;
}
.grad-text { color: var(--violet-soft); text-shadow: 0 0 34px rgba(139, 92, 246, 0.35); }

.hero-sub { max-width: 600px; margin: 24px 0 0; font-size: 1.08rem; color: var(--muted); }
.hero-sub strong { color: var(--text); }
.hero-sub em { color: var(--violet-soft); font-style: normal; }

.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Control-interface buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 6px; font-weight: 600; font-size: .92rem; letter-spacing: .02em;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s;
  border: 1px solid transparent;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #eef1ff;
  border: 1px solid rgba(139, 92, 246, 0.65);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0.06));
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.12), 0 0 24px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-primary:hover {
  transform: translateY(-1px); border-color: var(--violet-soft);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.28), 0 0 34px rgba(139, 92, 246, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-ghost { color: #c6cdf0; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: rgba(34, 211, 238, 0.55); color: #fff; box-shadow: 0 0 18px rgba(34, 211, 238, 0.14); transform: translateY(-1px); }

/* ---------- Hero console: network topology ---------- */
.hero-console {
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: linear-gradient(180deg, rgba(11, 16, 32, 0.92), rgba(6, 9, 18, 0.95));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.console-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; color: rgba(148, 157, 196, 0.85);
}
.console-dots { letter-spacing: 4px; color: rgba(148, 157, 196, 0.5); }
.console-live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.console-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }

.topo { width: 100%; height: auto; display: block; padding: 16px 12px 4px; }
.t-line { stroke: rgba(139, 92, 246, 0.32); stroke-width: 1.2; }
.t-line.flow { stroke: rgba(34, 211, 238, 0.55); stroke-dasharray: 3 5; animation: dashflow 5s linear infinite; }
.t-node { fill: #0a0f1e; stroke: rgba(34, 211, 238, 0.75); stroke-width: 1.4; }
.t-node.core { fill: var(--green); stroke: var(--green); filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.9)); }
.t-node.pulse { animation: nodePulse 2.8s ease-in-out infinite; }
.t-rect { fill: rgba(34, 211, 238, 0.08); stroke: rgba(34, 211, 238, 0.5); stroke-width: 1; }
.t-label { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; fill: rgba(148, 157, 196, 0.78); }

.console-readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.cr-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 16px; background: rgba(7, 10, 20, 0.92);
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
}
.cr-row span { color: rgba(138, 147, 184, 0.9); }
.cr-row b { color: #e7ebff; font-weight: 600; }
.cr-row b.ok { color: var(--green); }

/* ---------- Hero stats: live telemetry console ---------- */
.hero-stats {
  position: relative; z-index: 2; margin-top: 74px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: rgba(8, 11, 22, 0.55);
}
.stat { position: relative; padding: 22px 26px; display: grid; gap: 3px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat::before {
  content: ""; position: absolute; top: 16px; right: 18px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 7px var(--green); opacity: .85;
}
.stat-num {
  display: block; font-family: var(--mono); font-size: 1.9rem; font-weight: 700;
  color: #e7ebff; letter-spacing: -.01em;
}
.stat-label { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Marquee: system capabilities rail ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 14px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(6, 9, 18, 0.85);
}
.marquee::before {
  content: "◆ CAPABILITIES ◆"; position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; padding: 0 18px;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; color: #9fb0f0;
  background: linear-gradient(90deg, rgba(4, 6, 13, 0.98) 70%, transparent);
  pointer-events: none;
}
.marquee-track { display: flex; gap: 42px; width: max-content; animation: scroll 38s linear infinite; padding-left: 24px; }
.marquee-track span {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .08em;
  color: #9aa4cc; white-space: nowrap; text-transform: uppercase;
}
.marquee-track span::before { content: "◆ "; color: var(--violet); opacity: .8; }

/* ---------- Sections: connected system ---------- */
.section { padding: 100px 0; position: relative; }
.section + .section, .section + .cta { border-top: 1px solid var(--line); }
.section-alt {
  background: linear-gradient(180deg, rgba(9, 13, 26, 0.6), rgba(6, 9, 18, 0.4));
  border-top: 1px solid var(--line);
}
.section-alt::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 340px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.55), transparent);
  pointer-events: none;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 58px; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: #9fb0f0; background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.35);
  padding: 5px 12px; border-radius: 4px; margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 800; letter-spacing: -.01em; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.02rem; }

/* ---------- Feature modules: varied editorial grid ---------- */
.grid-features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; counter-reset: feat; }

.card {
  grid-column: span 3; position: relative; overflow: hidden;
  padding: 26px 24px 24px;
  border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, rgba(13, 18, 36, 0.85), rgba(8, 11, 22, 0.92));
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card::before {
  counter-increment: feat;
  content: "MOD-" counter(feat, decimal-leading-zero);
  position: absolute; top: 13px; right: 16px;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .14em; color: rgba(138, 147, 184, 0.55);
}
.card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 92, 246, 0.1), transparent 60%);
}
.card:hover { transform: translateY(-2px); border-color: rgba(139, 92, 246, 0.5); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.15); }
.card:hover::after { opacity: 1; }

.card-icon {
  width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 7px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.02);
}
.card-icon svg { width: 21px; height: 21px; }
.i-violet { color: var(--violet); background: rgba(139, 92, 246, 0.08); box-shadow: 0 0 14px rgba(139, 92, 246, 0.16); }
.i-cyan { color: var(--cyan); background: rgba(34, 211, 238, 0.06); box-shadow: 0 0 14px rgba(34, 211, 238, 0.14); }
.i-emerald { color: var(--green); background: rgba(52, 211, 153, 0.06); box-shadow: 0 0 14px rgba(52, 211, 153, 0.14); }
.i-blue { color: var(--blue); background: rgba(79, 125, 255, 0.08); box-shadow: 0 0 14px rgba(79, 125, 255, 0.16); }
.i-amber { color: var(--amber); background: rgba(251, 191, 36, 0.06); box-shadow: 0 0 14px rgba(251, 191, 36, 0.14); }
.i-rose { color: var(--rose); background: rgba(251, 113, 133, 0.06); box-shadow: 0 0 14px rgba(251, 113, 133, 0.14); }

.card h3 { font-size: 1.04rem; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { font-size: .89rem; color: var(--muted); }

/* Wide editorial panels */
.card.span-3 { grid-column: span 3; }
.card.span-6 {
  grid-column: span 6;
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start;
}
.card.span-6 .card-icon { width: 52px; height: 52px; }
.card.span-6 .card-icon svg { width: 24px; height: 24px; }
.card.span-6 h3 { font-size: 1.14rem; }

/* ---------- Screenshots: console preview ---------- */
.tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.tab {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 5px; font-weight: 600;
  color: #9aa4cc; background: rgba(10, 14, 28, 0.6); border: 1px solid var(--line);
  cursor: pointer; transition: all .2s;
}
.tab:hover { color: var(--text); border-color: rgba(139, 92, 246, 0.5); }
.tab.active {
  color: #fff; border-color: rgba(139, 92, 246, 0.8); background: rgba(139, 92, 246, 0.16);
  box-shadow: 0 0 18px rgba(139, 92, 246, 0.22), inset 0 0 0 1px rgba(139, 92, 246, 0.2);
}

.shot-wrap {
  position: relative; max-width: 1040px; margin: 0 auto;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: #070a16; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.shot-wrap::before {
  content: "● ● ●   ·   SYSTEM PREVIEW";
  display: block; padding: 11px 18px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; color: rgba(148, 157, 196, 0.55);
  background: rgba(255, 255, 255, 0.02); border-bottom: 1px solid var(--line);
}
.shot-img {
  width: 100%; height: auto; max-height: 660px; object-fit: cover; object-position: top;
  transition: opacity .35s; background: #070a16;
}
.shot-wrap.fading .shot-img { opacity: 0; }
.shot-caption {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 13px 18px; background: rgba(255, 255, 255, 0.015); border-top: 1px solid var(--line);
}
.shot-title { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: #e7ebff; }
.shot-desc { color: var(--muted); font-size: .86rem; }

/* ---------- Hosting ---------- */
.host-toggle { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.host-opt {
  display: flex; align-items: center; gap: 13px; text-align: left;
  padding: 14px 22px; border-radius: 7px; cursor: pointer; min-width: 252px;
  background: rgba(10, 14, 28, 0.6); border: 1px solid var(--line); color: var(--text);
  transition: all .22s; font: inherit;
}
.host-opt small { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }
.host-opt-icon { font-size: 1.4rem; }
.host-opt.active {
  border-color: rgba(139, 92, 246, 0.7); background: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.25), 0 0 24px rgba(139, 92, 246, 0.14);
}
.host-opt:not(.active):hover { border-color: var(--line-strong); }

.host-panel { position: relative; }
.host-content {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: stretch;
  padding: 36px 34px; border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(12, 17, 34, 0.9), rgba(7, 10, 20, 0.95));
  animation: fadeSlide .4s ease;
}
.host-content[hidden] { display: none; }

.host-copy h3 { font-size: 1.42rem; margin-bottom: 12px; letter-spacing: -.01em; }
.host-copy > p { color: var(--muted); margin-bottom: 22px; }
.tick-list { list-style: none; display: grid; gap: 10px; }
.tick-list li { position: relative; padding-left: 30px; color: #c3cbee; font-size: .93rem; }
.tick-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 19px; height: 19px; display: grid; place-items: center;
  border-radius: 3px; font-size: .68rem; font-weight: 900; color: #03140d;
  background: var(--green); box-shadow: 0 0 10px rgba(52, 211, 153, 0.45);
}
.req-box {
  margin-top: 24px; padding: 13px 16px; border-radius: 6px;
  border: 1px solid rgba(34, 211, 238, 0.3); background: rgba(34, 211, 238, 0.05);
  display: flex; gap: 16px; flex-wrap: wrap; align-items: baseline;
}
.req-box strong { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: #67e8f9; }
.req-box span { font-family: var(--mono); font-size: .76rem; color: var(--muted); }

.host-cost { display: grid; gap: 12px; }
.cost-card {
  padding: 20px 18px; border: 1px solid var(--line); border-radius: 7px;
  background: rgba(255, 255, 255, 0.015); display: grid; gap: 3px;
}
.cost-card.highlight { border-color: rgba(139, 92, 246, 0.55); background: rgba(139, 92, 246, 0.08); box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.2); }
.cost-label { font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cost-value { font-family: var(--mono); font-size: 1.5rem; font-weight: 700; color: #e7ebff; }
.cost-value.grad-text { color: var(--violet-soft); text-shadow: 0 0 22px rgba(139, 92, 246, 0.3); }
.cost-sub { font-size: .8rem; color: var(--muted); }

.compare { margin-top: 56px; }
.compare h3 { text-align: center; font-size: 1.28rem; margin-bottom: 24px; }
.compare-table { border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.compare-row > span { padding: 13px 18px; border-top: 1px solid var(--line); font-size: .9rem; color: #c3cbee; }
.compare-row > span:not(:first-child) { text-align: center; }
.compare-head > span {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 700; color: #e7ebff; background: rgba(139, 92, 246, 0.1); border-top: 0;
}
.compare-row > span:first-child { color: var(--muted); }
.compare-row:nth-child(even) > span { background: rgba(255, 255, 255, 0.015); }

/* ---------- Feature notes (what's included) ---------- */
.deploy-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.note { padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, 0.015); }
.note h4 { font-size: .94rem; margin-bottom: 6px; letter-spacing: .01em; }
.note p { font-size: .88rem; color: var(--muted); }

/* ---------- Pricing: license consoles ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1040px; margin: 0 auto; }
.price-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 30px 26px 26px; border: 1px solid var(--line); border-radius: 9px;
  background: linear-gradient(180deg, rgba(13, 18, 36, 0.85), rgba(8, 11, 22, 0.92));
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.price-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 27px; height: 2px; background: var(--violet); }
.price-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.price-card.highlight {
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.18), 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(139, 92, 246, 0.1);
}
.price-flag {
  align-self: flex-start; font-family: var(--mono); font-size: .62rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: #9fb0f0; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.4);
  padding: 4px 10px; border-radius: 4px;
}
.price-card h3 { font-size: 1.24rem; }
.price-card > p { color: var(--muted); font-size: .92rem; }
.price-card .tick-list { margin-bottom: 6px; }
.price-card .btn { justify-content: center; margin-top: auto; }

/* ---------- Testimonials ---------- */
.grid-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.t-card {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: 9px;
  background: rgba(255, 255, 255, 0.015);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s, border-color .25s;
}
.t-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.t-stars { color: var(--amber); letter-spacing: 3px; font-size: .88rem; }
.t-card blockquote { font-size: .94rem; color: #c3cbee; flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 40px; height: 40px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; color: #fff; flex-shrink: 0;
  background: rgba(139, 92, 246, 0.18); border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.2);
}
.t-avatar-2 { background: rgba(34, 211, 238, 0.14); border-color: rgba(34, 211, 238, 0.5); box-shadow: 0 0 14px rgba(34, 211, 238, 0.18); }
.t-avatar-3 { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.5); box-shadow: 0 0 14px rgba(52, 211, 153, 0.18); }
.t-card figcaption strong { display: block; font-size: .9rem; }
.t-card figcaption small { color: var(--muted); font-size: .78rem; }

/* ---------- FAQ: terminal rows ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; counter-reset: q; }
.faq details {
  border: 1px solid var(--line); border-radius: 7px; background: rgba(10, 14, 28, 0.55);
  overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: rgba(139, 92, 246, 0.55); box-shadow: 0 0 20px rgba(139, 92, 246, 0.08); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 17px 20px; font-weight: 600; font-size: .96rem; user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  counter-increment: q; content: "0" counter(q) " /";
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  color: rgba(138, 147, 184, 0.7); margin-right: 14px; flex-shrink: 0;
}
.faq .chev { color: var(--violet); transition: transform .3s; font-size: .78rem; flex-shrink: 0; }
.faq details[open] .chev { transform: rotate(180deg); }
.faq details p { padding: 0 20px 17px; color: var(--muted); font-size: .92rem; }

/* ---------- CTA: command panel ---------- */
.cta { padding: 90px 0 110px; position: relative; border-top: 1px solid var(--line); }
.cta-box {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 30px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: linear-gradient(180deg, rgba(13, 18, 36, 0.9), rgba(6, 9, 18, 0.96));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, #000 30%, transparent 90%);
}
.cta-box h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; position: relative; }
.cta-box p { color: var(--muted); max-width: 560px; margin: 16px auto 0; font-size: 1.02rem; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; position: relative; }
.cta-tiny { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; color: var(--muted); margin-top: 26px; position: relative; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: rgba(4, 6, 13, 0.85); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-brand p { color: var(--muted); font-size: .88rem; margin-top: 16px; max-width: 320px; }
.footer-col { display: grid; gap: 9px; align-content: start; }
.footer-col h4 {
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--muted); margin-bottom: 8px;
}
.footer-col a, .footer-col span { font-size: .88rem; color: #c3cbee; }
.footer-col a:hover { color: var(--violet-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted);
}

/* ---------- Chathead: floating talk-to-us console ---------- */
.chat-wrap {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}

.chathead {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(139, 92, 246, 0.65);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.08));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.15), 0 0 26px rgba(139, 92, 246, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.chathead svg { width: 26px; height: 26px; }
.chathead:hover {
  transform: translateY(-2px); border-color: var(--violet-soft);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.3), 0 0 40px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.chathead:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* Live presence dot */
.chat-dot {
  position: absolute; top: 2px; right: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--green); border: 2.5px solid var(--bg0);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
}

/* Expanding ping ring behind the button */
.chathead::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(139, 92, 246, 0.55);
  animation: chatPing 2.8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
  pointer-events: none;
}
@keyframes chatPing {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}

/* Panel */
.chat-panel {
  width: min(330px, calc(100vw - 44px));
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: linear-gradient(180deg, rgba(13, 18, 36, 0.98), rgba(7, 10, 20, 0.99));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(139, 92, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transform-origin: bottom right;
  opacity: 0; transform: translateY(14px) scale(0.96);
  pointer-events: none;
  visibility: hidden; /* removes panel + its links from tab order when closed */
  transition:
    opacity .3s cubic-bezier(0.16, 1, 0.3, 1),
    transform .3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s linear .3s;
}
.chat-wrap.open .chat-panel {
  opacity: 1; transform: none; pointer-events: auto;
  visibility: visible;
  transition:
    opacity .3s cubic-bezier(0.16, 1, 0.3, 1),
    transform .3s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0s;
}

.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; color: #9fb0f0;
  background: rgba(139, 92, 246, 0.07);
}
.chat-close {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-size: .82rem; padding: 3px 7px; border-radius: 4px; line-height: 1;
  transition: color .2s, background .2s;
}
.chat-close:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.chat-body { padding: 16px; display: grid; gap: 10px; }
.chat-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); margin-bottom: 4px;
}
.chat-status i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
}
.chat-btn { justify-content: center; width: 100%; }
.chat-btn.btn-primary svg { width: 17px; height: 17px; }
.chat-btn.btn-ghost svg { width: 16px; height: 16px; }

/* Messenger button gets its own blue treatment to stand apart from Telegram */
.chat-btn.chat-messenger {
  border-color: rgba(0, 132, 255, 0.6);
  background: linear-gradient(180deg, rgba(0, 132, 255, 0.22), rgba(0, 132, 255, 0.06));
  box-shadow: 0 0 0 1px rgba(0, 132, 255, 0.12), 0 0 22px rgba(0, 132, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.chat-btn.chat-messenger:hover {
  transform: translateY(-1px); border-color: #4da3ff;
  box-shadow: 0 0 0 1px rgba(0, 132, 255, 0.28), 0 0 32px rgba(0, 132, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .tele-chip { display: none; }
}
@media (max-width: 1080px) {
  .hero-topo { opacity: .3; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-console { max-width: 520px; }
  .hero-copy { text-align: left; }
}
@media (max-width: 1024px) {
  .grid-features { grid-template-columns: repeat(2, 1fr); }
  .card, .card.span-3, .card.span-6 { grid-column: auto; }
  .card.span-6 { grid-column: span 2; }
  .deploy-notes, .grid-testimonials, .pricing-grid { grid-template-columns: 1fr; }
  .host-content { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .marquee::before { display: none; }
}
@media (max-width: 480px) {
  .chat-wrap { right: 16px; bottom: 16px; }
  .chathead { width: 54px; height: 54px; }
  .chathead svg { width: 23px; height: 23px; }
  .chat-panel { width: calc(100vw - 32px); }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 22px; background: rgba(4, 6, 13, 0.97);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .3s, opacity .3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 16px; }
  .nav-burger { display: flex; }
  .hero { padding: 150px 0 56px; }
  .hero-topo { display: none; }
  .hero-console { display: none; }
  .grid-features { grid-template-columns: 1fr; }
  .card.span-6 { grid-column: auto; grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr 1fr; }
  .compare-row > span:first-child { grid-column: 1 / -1; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-weight: 600; color: var(--text); }
  .compare-head { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .bg-grid, .marquee-track, .t-line.flow { animation: none !important; }
  .tele-chip i, .console-live i, .pulse-dot, .t-node.pulse, .chat-dot, .chathead::before { animation: none !important; }
  .chat-panel { transition: none; }
}
