/* Hoides — marketing site. Dark, single brand system shared by all pages.
   Brand violet #B388FF matches the plugin panel and node tile. */
:root {
  --bg: #0c0a12;
  --bg-2: #110e1a;
  --surface: #17131f;
  --surface-2: #1e1930;
  --border: #2b2440;
  --text: #f3efff;
  --muted: #9a93ac;
  --brand: #b388ff;
  --brand-2: #8a5cff;
  --brand-deep: #6a2fe0;
  --accent: #5aa9ff;
  --good: #5cd6a8;
  --radius: 14px;
  --maxw: min(1680px, 94vw);
  --maxw-text: 1120px;   /* narrower cap for reading columns */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
/* text-heavy sections stay narrower so lines don't get unreadably long */
.wrap-text { max-width: var(--maxw-text); margin: 0 auto; padding: 0 32px; }
section { padding: 88px 0; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 1rem;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.5em;
  border-radius: 10px;
  font-weight: 600;
  font-size: .98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-deep));
  color: #fff;
  box-shadow: 0 8px 30px -8px var(--brand-deep);
}
.btn-primary:hover { box-shadow: 0 12px 36px -8px var(--brand-deep); }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-lg { padding: 1em 1.8em; font-size: 1.05rem; }

/* nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(12, 10, 18, .8);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: .6em; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; }
.brand .v { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 780px) { .nav-links .hide-sm { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; padding-top: 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 640px;
  background: radial-gradient(60% 60% at 50% 0%, rgba(138, 92, 255, .28), transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 18px; }
.hero-note { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: .5em; }
.hero-art {
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(138,92,255,.16), transparent 60%),
    var(--surface);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  overflow: hidden;
  position: relative;
}
.hero-art img { width: 62%; filter: drop-shadow(0 20px 40px rgba(106,47,224,.4)); }
.hero-art .ph { position: absolute; bottom: 14px; right: 16px; font-size: .78rem; color: var(--muted); }

/* trust strip */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: center; padding-top: 22px; padding-bottom: 22px; }
.trust span { color: var(--muted); font-size: .92rem; display: inline-flex; align-items: center; gap: .5em; }
.trust b { color: var(--good); }

/* feature grid */
.grid { display: grid; gap: 20px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .cols-3 { grid-template-columns: 1fr; } .cols-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s ease, transform .12s ease;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card .ico { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem;
  background: linear-gradient(135deg, rgba(138,92,255,.25), rgba(90,169,255,.15)); margin-bottom: 16px; }
.card h3 { font-size: 1.12rem; margin-bottom: .35em; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.center { text-align: center; }
.center p.sub { max-width: 52ch; margin: 0 auto 8px; color: var(--muted); font-size: 1.05rem; }
.section-head { margin-bottom: 48px; }

/* steps */
.steps { counter-reset: step; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step .num {
  counter-increment: step; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--brand);
}
.step .num::before { content: counter(step); }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--brand); background: linear-gradient(180deg, rgba(138,92,255,.1), var(--surface)); position: relative; }
.plan.featured .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-2), var(--brand-deep)); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .35em 1em; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.15rem; margin-bottom: .2em; }
.plan .seats { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan .per { color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.plan .save { color: var(--good); font-size: .85rem; font-weight: 600; min-height: 1.2em; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li { font-size: .93rem; color: var(--muted); display: flex; gap: .6em; }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* requirements + faq */
.req { display: flex; flex-wrap: wrap; gap: 14px; }
.req .chip { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: .6em 1.1em; font-size: .92rem; color: var(--muted); }
.req .chip b { color: var(--text); }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 14px 0 0; font-size: .95rem; }

/* cta band */
.cta-band { background: linear-gradient(135deg, rgba(138,92,255,.16), rgba(90,169,255,.08)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta-band .wrap { text-align: center; }

/* footer */
footer { padding: 48px 0; border-top: 1px solid var(--border); background: var(--bg-2); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer .brand { margin-bottom: 10px; }
footer .muted { font-size: .9rem; max-width: 30ch; }
footer .cols { display: flex; gap: 60px; flex-wrap: wrap; }
footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; }
footer a { display: block; color: var(--muted); font-size: .93rem; padding: 3px 0; }
footer a:hover { color: var(--text); }
.legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* docs page */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 24px 100px; }
.doc h1 { margin-bottom: .3em; }
.doc h2 { margin-top: 2.2em; padding-top: .4em; border-top: 1px solid var(--border); }
.doc code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .12em .45em; font-size: .9em; }
.doc pre { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; overflow-x: auto; }
.doc pre code { background: none; border: none; padding: 0; }
.doc ol, .doc ul { color: var(--muted); }
.doc li { margin-bottom: 8px; }
.callout { background: rgba(90,169,255,.08); border: 1px solid rgba(90,169,255,.3); border-radius: 10px; padding: 16px 18px; margin: 20px 0; }
.callout.warn { background: rgba(255,183,77,.08); border-color: rgba(255,183,77,.35); }
.callout p { margin: 0; color: var(--text); font-size: .95rem; }
.back { color: var(--muted); font-size: .9rem; }

/* ============================================================ UI mockups
   HTML/CSS recreations of the plugin — used in place of screenshots. */
.ui-panel {
  width: 100%; max-width: 380px; margin-left: auto;
  background: linear-gradient(180deg, #17131f, #120f1a);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 30px 70px -30px #000, 0 0 0 1px rgba(179,136,255,.06);
  overflow: hidden; font-size: 12.5px;
}
.ui-tabbar { display: flex; gap: 2px; padding: 8px 8px 0; background: #100d18; }
.ui-tab { padding: 6px 12px; font-size: 11px; color: var(--muted);
  border-radius: 6px 6px 0 0; background: #17131f; border: 1px solid var(--border); border-bottom: none; }
.ui-tab.dim { background: transparent; border-color: transparent; }
.ui-tab.active { color: var(--text); box-shadow: inset 0 -2px 0 var(--brand); }
.ui-body { padding: 16px 16px 18px; }
.ui-head { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: -.01em; }
.ui-head .lg { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-deep)); color: #fff; font-weight: 800; font-size: 13px; }
.ui-head b { color: var(--brand); font-weight: 800; }
.ui-head .w { color: var(--text); font-weight: 800; }
.ui-head .ver { color: var(--muted); font-weight: 500; margin-left: 2px; }
.ui-sub { color: var(--muted); font-size: 10.5px; margin: 4px 0 14px; }
.ui-sec { font-weight: 700; font-size: 10.5px; letter-spacing: .08em; margin: 14px 0 8px;
  display: flex; align-items: center; gap: 7px; }
.ui-sec::before { content: "◆"; font-size: 9px; }
.ui-sec.violet { color: var(--brand); }
.ui-sec.blue { color: var(--accent); }
.ui-sec.coral { color: #ff8a66; }
.ui-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.ui-row .l { color: var(--muted); }
.ui-chk { width: 15px; height: 15px; border-radius: 3px; border: 1px solid var(--border); background: #0e0b16; flex: none; }
.ui-chk.on { background: linear-gradient(135deg, var(--brand-2), var(--brand-deep)); border-color: transparent;
  position: relative; }
.ui-chk.on::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 9px; }
.ui-dd, .ui-fld { background: #0e0b16; border: 1px solid var(--border); border-radius: 5px;
  padding: 3px 9px; color: var(--text); font-size: 11.5px; min-width: 96px; }
.ui-dd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ui-dd::after { content: "▾"; color: var(--muted); font-size: 9px; }
.ui-fld { flex: 1; text-align: left; color: var(--text); }

/* viewer mock */
.ui-viewer { position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border); box-shadow: 0 30px 70px -30px #000; }
.ui-viewer .hud { position: absolute; top: 12px; right: 12px; background: rgba(18,15,26,.85);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px; font-size: 10.5px; color: var(--muted);
  backdrop-filter: blur(4px); }
.ui-viewer .hud b { color: var(--brand); }
.ui-viewer .hud .chip { display: inline-flex; align-items: center; gap: 5px; }
.ui-viewer .hud .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; }

/* ---- hero visual: the real NukeX screenshot, standing on its own ---- */
.hero-visual { position: relative; }
.shot {
  margin: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--surface); box-shadow: 0 30px 70px -30px #000;
}
.shot img { width: 100%; display: block; }
.shot figcaption {
  font-size: .8rem; color: var(--muted); padding: 9px 14px;
  border-top: 1px solid var(--border); background: var(--bg-2);
}
.ui-viewer .shot-note {
  position: absolute; left: 12px; bottom: 10px; font-size: .72rem;
  color: var(--muted); background: rgba(18,15,26,.8); padding: 3px 8px;
  border-radius: 5px; border: 1px solid var(--border);
}

/* ---- how-it-works: steps in a row, demo full width and large ---- */
.steps-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  margin-bottom: 44px;
}
.steps-row .step { gap: 14px; }
.steps-row .step .num { width: 32px; height: 32px; font-size: .9rem; }
.steps-row .step h3 { font-size: 1rem; margin-bottom: .25em; }
.steps-row .step p { font-size: .9rem; margin: 0; }
@media (max-width: 900px) {
  .steps-row { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 560px) {
  .steps-row { grid-template-columns: 1fr; }
}

/* the demo itself — as wide as the content column, with breathing room */
.demo-stage {
  margin: 0; border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; background: #000;
  box-shadow: 0 40px 90px -35px #000, 0 0 0 1px rgba(179,136,255,.07);
}
.demo-stage video { width: 100%; display: block; }
.demo-stage figcaption {
  font-size: .85rem; color: var(--muted); padding: 11px 16px;
  border-top: 1px solid var(--border); background: var(--bg-2);
}
/* demo runs the full container width */

/* ---- roto refine section ---- */
.roto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) {
  .roto-grid { grid-template-columns: 1fr; gap: 34px; }
}
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.ticks li { color: var(--muted); font-size: .96rem; display: flex; gap: .7em; }
.ticks li::before { content: "✓"; color: var(--brand); font-weight: 700; flex: none; }

/* ---- full-bleed demo on wide screens: edge to edge, no side gutters ---- */
@media (min-width: 1100px) {
  #how .demo-stage {
    width: 96vw;
    max-width: 1800px;
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: 18px;
  }
}

/* ---- docs: reference tables + on-page nav ---- */
.doc h3 { margin: 1.8em 0 .6em; font-size: 1.05rem; color: var(--brand); }
table.keys {
  width: 100%; border-collapse: collapse; margin: 14px 0 26px;
  font-size: .93rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
table.keys th {
  text-align: left; padding: 10px 14px; background: var(--bg-2);
  color: var(--muted); font-size: .78rem; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 700; border-bottom: 1px solid var(--border);
}
table.keys td {
  padding: 10px 14px; border-bottom: 1px solid var(--border);
  color: var(--muted); vertical-align: top;
}
table.keys tr:last-child td { border-bottom: none; }
table.keys td:first-child { color: var(--text); white-space: nowrap; width: 34%; }
table.keys td b { color: var(--text); }
@media (max-width: 620px) {
  table.keys, table.keys tbody, table.keys tr, table.keys td, table.keys th { display: block; }
  table.keys th { display: none; }
  table.keys td:first-child { width: auto; white-space: normal; font-weight: 600; padding-bottom: 2px; }
  table.keys td { border-bottom: none; padding: 4px 14px; }
  table.keys tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
}
.doc-toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 20px; margin: 26px 0 10px;
}
.doc-toc h4 { margin: 0 0 10px; font-size: .76rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); }
.doc-toc a { color: var(--brand); font-size: .93rem; display: inline-block;
  margin: 0 18px 6px 0; }
.doc-toc a:hover { text-decoration: underline; }
