/* ===========================================================
   TRIVLA â€” Marketing website styles
   =========================================================== */

.site { overflow-x: clip; }
.wrap { width: min(1200px, 92vw); margin: 0 auto; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display);
  font-weight: 700; font-size: 19px; letter-spacing: 0.05em; color: var(--ink-900); }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; position: relative;
  background: linear-gradient(150deg, var(--green-400), var(--green-600));
  box-shadow: var(--sh-glow); display: grid; place-items: center; flex: none;
}
.brand__mark::before {
  content: ""; width: 12px; height: 12px; border-radius: 50%;
  border: 2.5px solid #eafff6;
}
.brand__mark::after {
  content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #eafff6; bottom: 6px; right: 6px;
}
.brand b { color: var(--green-600); font-weight: 700; }
.nav__links { display: flex; gap: 4px; margin-left: 10px; }
.nav__links a {
  font-size: 14.5px; font-weight: 600; color: var(--ink-600);
  padding: 9px 14px; border-radius: var(--r-sm); transition: .15s;
}
.nav__links a:hover { color: var(--ink-900); background: var(--bg-soft); }
.nav__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav__login { font-size: 14.5px; font-weight: 700; color: var(--ink-700); }
.nav__login:hover { color: var(--green-700); }
.nav__login.is-hidden { display: none; }
.nav__portal-link {
  font-size: 14.5px; font-weight: 700; color: var(--ink-600);
  padding: 8px 12px; border-radius: var(--r-sm);
}
.nav__portal-link:hover { color: var(--green-700); background: var(--green-50); }
.nav__logout {
  font-size: 13px; font-weight: 600; color: var(--ink-500);
  padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  background: #fff; cursor: pointer;
}
.nav__logout:hover { border-color: var(--green-300); color: var(--green-700); background: var(--green-50); }
.nav__toggle {
  display: none; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm);
  width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--ink-700);
  margin-left: auto;
}
.nav__links a.active { color: var(--green-700); background: var(--green-50); }

/* ---------- HERO (shared) ---------- */
.hero { position: relative; padding: 78px 0 64px; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 5.2vw, 66px); line-height: 1.02; color: var(--ink-900);
}
.hero h1 .accent { color: var(--green-600); }
.hero__sub {
  margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--ink-500);
  max-width: 30em;
}
.hero__cta { margin-top: 34px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__note { margin-top: 22px; display: flex; align-items: center; gap: 18px;
  font-size: 13.5px; color: var(--ink-400); font-weight: 600; }
.hero__note span { display: inline-flex; align-items: center; gap: 7px; }
.hero__note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }

/* radial brand glow behind hero */
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 460px at 78% 34%, rgba(16,185,129,0.13), transparent 70%),
    radial-gradient(700px 520px at 92% 8%, rgba(52,211,153,0.10), transparent 72%);
}
.hero__rings { position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: 720px; height: 720px; z-index: -1; opacity: .5; pointer-events: none; }
.hero__rings circle { fill: none; stroke: var(--ink-200); stroke-width: 1; }

/* visual stage shared */
.stage { position: relative; aspect-ratio: 1/0.92; }

/* --- Variant A: constellation --- */
.constel { position: absolute; inset: 0; }
.constel svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constel .edge { stroke: var(--ink-200); stroke-width: 1.2; }
.constel .edge.live { stroke: var(--green-400); stroke-width: 1.8;
  stroke-dasharray: 5 7; animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.node {
  position: absolute; transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.node__dot { width: 14px; height: 14px; border-radius: 50%; background: #fff;
  border: 2.5px solid var(--ink-300); box-shadow: var(--sh-sm); }
.node.hub .node__dot { width: 22px; height: 22px; border-color: var(--green-500);
  box-shadow: 0 0 0 6px var(--green-100), var(--sh-sm); }
.node.alert .node__dot { border-color: var(--critical); box-shadow: 0 0 0 5px var(--critical-soft); }
.node.pulse .node__dot { animation: nodepulse 2.4s ease-in-out infinite; }
@keyframes nodepulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(16,185,129,.3);} 50%{ box-shadow: 0 0 0 10px rgba(16,185,129,0);} }
.node__chip {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; white-space: nowrap;
  background: var(--ink-900); color: #cdeede; padding: 4px 9px; border-radius: 7px;
  box-shadow: var(--sh-md);
}
.node__chip.r { background: #fff; color: var(--critical); border: 1px solid var(--critical-soft); }

/* --- Variant B: floating dashboard --- */
.dashcard {
  position: absolute; inset: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden;
  display: flex; flex-direction: column;
}
.dashcard__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft); }
.dashcard__bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-200); }
.dashcard__bar .t { margin-left: 8px; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--ink-400); }
.dashcard__bar .live { margin-left: auto; font-family: var(--font-mono); font-size: 11px;
  color: var(--green-600); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.dashcard__bar .live::before { content:""; width:7px;height:7px;border-radius:50%;
  background: var(--green-500); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.dashcard__body { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; }
.mini {
  background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 13px; display: flex; flex-direction: column; gap: 4px;
}
.mini.wide { grid-column: 1 / -1; }
.mini__lbl { font-size: 11px; font-weight: 700; color: var(--ink-400); text-transform: uppercase;
  letter-spacing: .06em; }
.mini__val { font-family: var(--font-display); font-size: 25px; font-weight: 700; color: var(--ink-900); }
.mini__val small { font-size: 13px; color: var(--green-600); font-family: var(--font-mono); margin-left: 6px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 6px; }
.spark i { flex: 1; background: var(--green-300); border-radius: 3px 3px 0 0; }
.spark i.hi { background: var(--green-500); }
.flowrow { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.flowrow .ip { font-family: var(--font-mono); color: var(--ink-700); }
.flowrow .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--ink-100); overflow: hidden; }
.flowrow .bar i { display: block; height: 100%; background: var(--green-500); border-radius: 3px; }

/* --- Variant C: global mesh map --- */
.globe { position: absolute; inset: 0; display: grid; place-items: center; }
.dotmap { position: relative; width: 100%; }
.dotmap svg { width: 100%; height: auto; overflow: visible; }
.dotmap .dt { fill: var(--ink-200); }
.dotmap .dt.on { fill: var(--green-500); }
.dotmap .arc { fill: none; stroke: var(--green-400); stroke-width: 1.4; opacity: .8;
  stroke-dasharray: 4 6; animation: dash 1.4s linear infinite; }
.dotmap .arc.r { stroke: var(--critical); }
.floatchip {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--sh-md); padding: 9px 13px; display: flex; align-items: center; gap: 10px;
}
.floatchip .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-size: 15px; }
.floatchip .k { font-size: 11px; color: var(--ink-400); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.floatchip .v { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--ink-900); }

/* ---------- TRUST BAR ---------- */
.trust { padding: 26px 0 8px; }
.trust__lbl { text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-400); margin-bottom: 22px; }
.trust__row { display: flex; align-items: center; justify-content: space-between; gap: 30px;
  flex-wrap: wrap; opacity: .62; }
.trust__logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-display);
  font-weight: 700; font-size: 18px; color: var(--ink-700); }
.trust__logo .g { width: 18px; height: 18px; border-radius: 5px; background: var(--ink-300); }
.trust__logo .g.c { border-radius: 50%; }

/* ---------- SECTION SCAFFOLD ---------- */
.sec { padding: 96px 0; }
.sec--soft { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.sec__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.sec__head h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.06; color: var(--ink-900); }
.sec__head p { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-500); }
.sec__head.left { margin-left: 0; text-align: left; }

/* ---------- PILLARS ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--green-200); }
.pillar__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  margin-bottom: 18px; }
.pillar h3 { font-size: 19px; color: var(--ink-900); }
.pillar p { margin-top: 9px; font-size: 14.5px; line-height: 1.55; color: var(--ink-500); }

/* ---------- FEATURE SPLIT ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 88px; }
.split--rev .split__media { order: -1; }
.split__media { position: relative; }
.feat-ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.feat-ul li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-700); line-height: 1.5; }
.feat-ul .ck { flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--green-50);
  color: var(--green-600); display: grid; place-items: center; margin-top: 1px; }
.split h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.08; }
.split > div > p { margin-top: 16px; font-size: 17px; line-height: 1.6; color: var(--ink-500); }

/* generic UI panel mock */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); overflow: hidden;
}
.panel__hd { display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft); font-weight: 700; font-size: 14px; }
.panel__hd .mono { margin-left: auto; font-size: 12px; color: var(--ink-400); font-weight: 500; }
.panel__bd { padding: 18px; }

/* table mock */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-400); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line-soft); color: var(--ink-700); }
.tbl td .mono { font-size: 12.5px; color: var(--ink-800); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: var(--r-pill); }
.tag--ok { background: var(--green-50); color: var(--green-700); }
.tag--warn { background: var(--warning-soft); color: #b45309; }
.tag--crit { background: var(--critical-soft); color: #b91c1c; }
.tag--info { background: var(--info-soft); color: #1d4ed8; }
.tag--voip { background: var(--voip-soft); color: #6d28d9; }

/* ---------- HOW IT WORKS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.step__n { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--green-600);
  margin-bottom: 14px; }
.step h3 { font-size: 19px; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--ink-500); line-height: 1.55; }

/* deployment cards */
.deploy { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.dep { border-radius: var(--r-lg); padding: 30px; border: 1px solid var(--line); background: #fff; }
.dep--dark { background: var(--ink-900); border-color: var(--ink-800); color: #fff; }
.dep--dark p { color: var(--ink-300); }
.dep h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.dep p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-500); }

/* ---------- STATS BAND ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { text-align: center; }
.stat__v { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px,4vw,52px);
  color: var(--ink-900); line-height: 1; }
.stat__v .u { color: var(--green-600); }
.stat__l { margin-top: 10px; font-size: 14px; color: var(--ink-500); font-weight: 600; }

/* ---------- SUPPORT CTA (mirrors reference) ---------- */
.cta { position: relative; }
.cta__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); padding: 54px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center; position: relative; overflow: hidden;
}
.cta__q { position: absolute; font-family: var(--font-display); font-weight: 700;
  color: var(--green-100); font-size: 130px; line-height: 1; user-select: none; }
.cta__q.a { top: -20px; right: 30px; }
.cta__q.b { bottom: -50px; left: 40px; font-size: 90px; }
.cta__card h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; position: relative; }
.cta__card p { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--ink-500); position: relative; }
.cta__card .phone { color: var(--green-600); font-weight: 700; }
.cta__visual { position: relative; height: 280px; }

/* ---------- FOOTER ---------- */
.foot { background: var(--ink-950); color: var(--ink-300); padding: 64px 0 34px; }
.foot__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.foot .brand { color: #fff; }
.foot__about { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-400); max-width: 26em; }
.foot__tagline { margin-top: 14px; font-size: 11px; letter-spacing: .08em; color: var(--green-400); }
.foot__col h5 { font-family: var(--font-ui); font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-400); margin-bottom: 16px; }
.foot__col a { display: block; font-size: 14px; color: var(--ink-300); padding: 6px 0; transition: .15s; }
.foot__col a:hover { color: var(--green-400); }
.foot__bot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--ink-800);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--ink-500); flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero__grid, .split, .cta__card { grid-template-columns: 1fr; gap: 36px; }
  .split--rev .split__media { order: 0; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .deploy, .stats, .foot__grid { grid-template-columns: 1fr 1fr; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; background: rgba(255,255,255,0.98); border-bottom: 1px solid var(--line);
    padding: 12px 4vw 18px; gap: 2px; margin-left: 0;
  }
  .nav__links--open { display: flex; }
  .nav__right .nw-btn { display: none; }
  .nav__in { position: relative; flex-wrap: wrap; }
  .hero__rings { display: none; }
}
@media (max-width: 560px) {
  .pillars, .deploy, .stats { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .cta__card { padding: 32px; }
}
