/* ===========================================================
   TRIVLA â€” Homepage (redesign)
   Hybrid: green brand palette + denser, sharper technical layout.
   Builds on tokens.css + website.css. Loaded only on the homepage.
   =========================================================== */

:root { --teal-deep: #063b31; --teal-deep2: #052a23; --mono-green: #46e3b4; }

/* =====================================================================
   HERO
   ===================================================================== */
.hhero { position: relative; padding: 64px 0 76px; overflow: hidden; }

/* mint wash + diagonal light beams (echoes the reference) */
.hhero__base {
  position: absolute; inset: -1px 0 auto; height: 880px; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 560px at 50% -160px, rgba(157,242,212,0.55), transparent 68%),
    radial-gradient(900px 520px at 88% -60px, rgba(43,214,168,0.20), transparent 70%),
    linear-gradient(180deg, #effdf8 0%, rgba(239,253,248,0) 70%);
}
.hhero__rays { position: absolute; left: 0; right: 0; top: -220px; height: 820px; z-index: -1;
  pointer-events: none; filter: blur(3px); opacity: .85; }
.hhero__rays .ray {
  position: absolute; top: -8%; height: 128%; width: 200px; transform-origin: top center;
  background: linear-gradient(to bottom, rgba(43,214,168,0.30), rgba(6,191,140,0.0) 72%);
  mix-blend-mode: multiply;
}

.hhero__grid { display: grid; grid-template-columns: 1.02fr 1.18fr; gap: 54px; align-items: center;
  position: relative; }

/* version chip */
.hchip-ver {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 8px 6px 12px;
  background: rgba(255,255,255,0.7); border: 1px solid var(--green-200); border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 12px; color: var(--green-800); font-weight: 500;
  backdrop-filter: blur(6px);
}
.hchip-ver b { color: var(--green-700); }
.hchip-ver .pill {
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  background: var(--green-500); color: #042b1d; padding: 3px 9px; border-radius: var(--r-pill);
}

.hhero h1 {
  margin-top: 20px; font-size: clamp(40px, 5.1vw, 64px); line-height: 1.0; color: #07463a;
  letter-spacing: -0.03em;
}
.hhero h1 .accent { color: var(--green-600); }
.hhero__sub { margin-top: 22px; font-size: 18.5px; line-height: 1.6; color: var(--ink-600); max-width: 33em; }

.hhero__cta { margin-top: 32px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hhero__cli {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 14px;
  font-weight: 500; color: var(--green-800); padding: 6px 2px; border-bottom: 1.5px solid var(--green-300);
}
.hhero__cli .caret { color: var(--green-500); font-weight: 700; }
.hhero__cli:hover { color: var(--green-600); border-color: var(--green-500); }

.hhero__status { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); }
.hhero__status span { display: inline-flex; align-items: center; gap: 7px; }
.hhero__status .lv { width: 7px; height: 7px; border-radius: 50%; background: var(--green-500);
  box-shadow: 0 0 0 3px var(--green-100); animation: blink 1.6s infinite; }

/* ---------- right side console ---------- */
.console {
  position: relative; border: 1px solid var(--ink-200); border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--sh-lg); overflow: hidden;
}
.console__bar { display: flex; align-items: center; gap: 8px; padding: 12px 15px;
  border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.console__bar .d { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-200); }
.console__bar .t { margin-left: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-500); }
.console__bar .live { font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }
.console__bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-500); animation: blink 1.4s infinite; }

.console__topo { position: relative; height: 232px; background:
  radial-gradient(420px 220px at 60% 30%, rgba(6,191,140,0.07), transparent 70%); }
.console__topo .constel { inset: 6px; }

/* floating data chips inside console */
.console .floatchip { box-shadow: var(--sh-md); border-radius: 12px; }

.console__metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-top: 1px solid var(--line); }
.cmet { background: #fff; padding: 14px 15px 13px; }
.cmet__l { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-400); }
.cmet__v { font-family: var(--font-display); font-weight: 700; font-size: 23px; color: var(--ink-900);
  margin-top: 3px; line-height: 1; }
.cmet__v small { font-size: 12px; color: var(--green-600); font-family: var(--font-mono); margin-left: 5px; }
.cmet .spark { height: 26px; margin-top: 9px; }

/* =====================================================================
   DEPLOY / RUN
   ===================================================================== */
.deploy2 { padding: 92px 0 0; }
.deploy2 .sec__head { margin-bottom: 40px; }

/* terminal */
.term {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--ink-800);
  background: var(--ink-950); box-shadow: var(--sh-lg);
}
.term__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07); }
.term__bar .d { width: 11px; height: 11px; border-radius: 50%; }
.term__bar .d.r { background: #ff5f56; } .term__bar .d.y { background: #ffbd2e; } .term__bar .d.g { background: #27c93f; }
.term__tabs { margin-left: 14px; display: flex; gap: 4px; }
.term__tabs button { font-family: var(--font-mono); font-size: 12px; color: var(--ink-400);
  background: transparent; border: none; padding: 5px 12px; border-radius: 7px; transition: .15s; }
.term__tabs button.on { background: rgba(70,227,180,0.12); color: var(--mono-green); }
.term__copy { margin-left: auto; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-400);
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 7px;
  padding: 5px 11px; display: inline-flex; align-items: center; gap: 7px; transition: .15s; }
.term__copy:hover { color: var(--mono-green); border-color: rgba(70,227,180,0.4); }
.term__body { padding: 20px 22px; overflow-x: auto; }
.term__body pre { margin: 0; font-family: var(--font-mono); font-size: 14px; line-height: 1.85; color: #d7e3ee; white-space: pre; }
.term .pr { color: var(--mono-green); } /* prompt */
.term .fl { color: #7cc3ff; }           /* flags */
.term .st { color: #f0b072; }           /* strings */
.term .cm { color: #5f7385; font-style: italic; } /* comments */
.term .cur { display: inline-block; width: 9px; height: 17px; background: var(--mono-green);
  vertical-align: -3px; margin-left: 2px; animation: blink 1.05s steps(1) infinite; }
.term__out { margin-top: 12px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.7; color: #8fb6a9; }
.term__out .ok { color: var(--mono-green); }

/* run cards */
.runcards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.runcard { border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; padding: 26px 26px 24px;
  display: flex; flex-direction: column; }
.runcard__top { display: flex; align-items: center; gap: 12px; }
.runcard__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.runcard__name { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink-900); }
.runcard__sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-400); margin-top: 1px; }
.runcard__free { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--green-800); background: var(--green-50);
  border: 1px solid var(--green-100); padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.runcard p { margin-top: 14px; font-size: 14.5px; line-height: 1.55; color: var(--ink-500); }
.runcard__ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.runcard__ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-700); }
.runcard__ul .ck { flex: none; width: 19px; height: 19px; border-radius: 6px; background: var(--green-50);
  color: var(--green-600); display: grid; place-items: center; margin-top: 1px; }
.runcard__cta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 14px; }
.runcard--cloud { background: var(--teal-deep); border-color: var(--teal-deep); color: #d6f3e9; }
.runcard--cloud .runcard__name { color: #fff; }
.runcard--cloud .runcard__sub { color: rgba(255,255,255,0.5); }
.runcard--cloud p { color: rgba(255,255,255,0.72); }
.runcard--cloud .runcard__ul li { color: rgba(255,255,255,0.85); }
.runcard--cloud .runcard__ul .ck { background: rgba(70,227,180,0.16); color: var(--mono-green); }
.runcard--cloud .runcard__cta { border-color: rgba(255,255,255,0.1); }

/* =====================================================================
   LIVE COMMAND CENTER (deep teal)
   ===================================================================== */
.live { margin-top: 96px; padding: 88px 0; position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--teal-deep) 0%, var(--teal-deep2) 100%); color: #d6f3e9; }
.live::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 360px at 84% 0%, rgba(70,227,180,0.12), transparent 70%);
  background-size: cover; }
.live__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 52px; align-items: center; position: relative; }
.live__eye { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mono-green); display: inline-flex; align-items: center; gap: 8px; }
.live__eye::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mono-green);
  box-shadow: 0 0 0 4px rgba(70,227,180,0.2); }
.live h2 { margin-top: 16px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; color: #fff; }
.live__p { margin-top: 18px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.72); max-width: 30em; }
.live__pts { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; gap: 12px; }
.live__pts li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: rgba(255,255,255,0.88); }
.live__pts .ck { flex: none; width: 21px; height: 21px; border-radius: 6px; background: rgba(70,227,180,0.16);
  color: var(--mono-green); display: grid; place-items: center; margin-top: 1px; }

/* the live console */
.lconsole { border: 1px solid rgba(255,255,255,0.12); border-radius: var(--r-lg); overflow: hidden;
  background: rgba(3,22,18,0.55); backdrop-filter: blur(4px); box-shadow: var(--sh-lg); }
.lconsole__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08); font-family: var(--font-mono); font-size: 12px; color: rgba(255,255,255,0.6); }
.lconsole__bar .tag-live { margin-left: auto; color: var(--mono-green); display: inline-flex; align-items: center; gap: 6px; }
.lconsole__bar .tag-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mono-green); animation: blink 1.3s infinite; }

.feed { padding: 6px 0; max-height: 232px; overflow: hidden; }
.feedrow { display: grid; grid-template-columns: 64px 78px 1fr auto; gap: 12px; align-items: center;
  padding: 8px 16px; font-family: var(--font-mono); font-size: 12.5px; border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: feedin .4s ease; }
@keyframes feedin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.feedrow .ts { color: rgba(255,255,255,0.4); }
.feedrow .sev { font-weight: 600; padding: 2px 8px; border-radius: 5px; font-size: 10.5px; text-align: center; letter-spacing: .03em; }
.feedrow .sev.crit { background: rgba(239,68,68,0.18); color: #ff8d8d; }
.feedrow .sev.warn { background: rgba(245,158,11,0.16); color: #ffcf7a; }
.feedrow .sev.ok { background: rgba(70,227,180,0.16); color: var(--mono-green); }
.feedrow .sev.info { background: rgba(59,130,246,0.18); color: #8fc0ff; }
.feedrow .msg { color: rgba(255,255,255,0.82); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feedrow .msg b { color: #fff; font-weight: 500; }
.feedrow .src { color: rgba(255,255,255,0.45); }

.lmetrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,0.08); }
.lmet { padding: 13px 16px; border-right: 1px solid rgba(255,255,255,0.06); }
.lmet:last-child { border-right: none; }
.lmet__l { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,0.4); }
.lmet__v { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: #fff; margin-top: 3px; }
.lmet__v.good { color: var(--mono-green); }

/* =====================================================================
   EDITIONS MATRIX (dual-tier)
   ===================================================================== */
.ed { padding: 96px 0; }
.ed__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: 34px; }
.ed__head h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; max-width: 16em; }
.ed__head p { margin-top: 14px; font-size: 17px; color: var(--ink-500); max-width: 34em; line-height: 1.55; }
.edtoggle { display: inline-flex; align-items: center; gap: 12px; }
.edtoggle__sw { display: inline-flex; padding: 4px; background: var(--bg-softer); border: 1px solid var(--line);
  border-radius: var(--r-pill); }
.edtoggle__sw button { border: none; background: transparent; font-family: var(--font-ui); font-weight: 700;
  font-size: 13.5px; color: var(--ink-500); padding: 8px 16px; border-radius: var(--r-pill); transition: .18s; }
.edtoggle__sw button.on { background: #fff; color: var(--ink-900); box-shadow: var(--sh-sm); }
.edtoggle__save { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--green-700);
  background: var(--green-50); border: 1px solid var(--green-100); padding: 4px 9px; border-radius: var(--r-pill); }

.edmatrix { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.edtbl { width: 100%; border-collapse: collapse; }
.edtbl col.feat { width: 30%; }
.edtbl col.plan { width: 23.33%; }

/* plan header */
.edtbl thead th { vertical-align: top; padding: 22px 22px 20px; text-align: left;
  border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-soft); }
.edtbl thead th.feat { border-left: none; background: var(--bg-soft); }
.edtbl thead th.hot { background: linear-gradient(180deg, var(--green-50), #fff); }
.edtbl thead th.comm { border-top: 3px solid var(--green-500); }
.ph__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink-900);
  display: flex; align-items: center; gap: 9px; }
.ph__os { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--green-800); background: var(--green-50); border: 1px solid var(--green-100);
  padding: 2px 7px; border-radius: var(--r-pill); }
.ph__hot { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #042b1d; background: var(--green-500); padding: 2px 8px; border-radius: var(--r-pill); }
.ph__dep { font-family: var(--font-mono); font-size: 11px; color: var(--ink-400); margin-top: 6px; }
.ph__price { margin-top: 14px; display: flex; align-items: flex-end; gap: 6px; }
.ph__amt { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--ink-900); line-height: 1; letter-spacing: -0.02em; }
.ph__per { font-size: 12px; color: var(--ink-400); font-weight: 600; padding-bottom: 4px; }
.ph__bill { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-400); margin-top: 5px; min-height: 14px; }
.ph__cta { margin-top: 16px; }
.ph__cta .nw-btn { width: 100%; justify-content: center; padding: 10px 16px; font-size: 13.5px; }
.ph__note { margin-top: 10px; font-size: 12px; font-weight: 600; text-align: center; }
.ph__note a { color: var(--green-700); }

/* body rows */
.edtbl tbody td { padding: 13px 22px; border-bottom: 1px solid var(--line-soft); font-size: 14px;
  border-left: 1px solid var(--line-soft); color: var(--ink-700); }
.edtbl tbody td.feat { border-left: none; font-weight: 600; color: var(--ink-800); background: var(--bg-soft); }
.edtbl tbody td.val { font-family: var(--font-mono); font-size: 13px; color: var(--ink-800); }
.edtbl tbody td.hot { background: rgba(6,191,140,0.035); }
.edtbl tbody tr:last-child td { border-bottom: none; }
.edtbl tbody tr:hover td:not(.feat) { background: var(--bg-soft); }
.edtbl tbody tr:hover td.hot { background: rgba(6,191,140,0.06); }
.edrow-grp td { background: var(--bg-softer) !important; font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); padding: 9px 22px; }
.edci { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; }
.edci--y { background: var(--green-50); color: var(--green-600); }
.edci--n { color: var(--ink-300); }
.ed__foot { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14.5px; color: var(--ink-500); }
.ed__foot a { color: var(--green-700); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 980px) {
  .hhero__grid, .live__grid { grid-template-columns: 1fr; gap: 38px; }
  .runcards { grid-template-columns: 1fr; }
  .ed__head { flex-direction: column; align-items: flex-start; }
  .edmatrix { overflow-x: auto; }
  .edtbl { min-width: 720px; }
}
@media (max-width: 560px) {
  .console__metrics { grid-template-columns: 1fr 1fr; }
  .console__metrics .cmet:last-child { grid-column: 1 / -1; }
  .lmetrics { grid-template-columns: 1fr 1fr; }
  .feedrow { grid-template-columns: 56px 70px 1fr; }
  .feedrow .src { display: none; }
}
