/* Novo Client site — brand palette from assets/branding/BRANDING.md */

:root {
  --bg: #0b0e14;
  --bg-2: #080a10;
  --elev: rgba(255, 255, 255, 0.035);
  --elev-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #e8ecf3;
  --muted: #8a94a6;
  --brand-a: #5b8cff;
  --brand-b: #b45bff;
  --brand-c: #22d3ee;
  --play: #4ade80;
  --radius: 10px;
  --radius-sm: 7px;
  --wrap: 1160px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
a { color: var(--brand-a); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--elev-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 5px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-a); color: #06080d; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.site-head {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-head.stuck {
  background: rgba(8, 10, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.head-inner {
  display: flex; align-items: center; gap: 26px;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 650; letter-spacing: -0.01em;
  font-size: 1.02rem;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 50%; }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--muted); font-size: 0.93rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
.head-actions { display: flex; gap: 10px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border-radius: var(--radius-sm);
  padding: 9px 16px; font-size: 0.93rem; font-weight: 600;
  border: 1px solid var(--border-2); color: var(--text);
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  border-color: transparent; color: #07090f;
  background: linear-gradient(120deg, var(--brand-a), var(--brand-b) 55%, var(--brand-c));
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--elev); }
.btn-ghost:hover { background: var(--elev-2); border-color: var(--border-2); }
.btn-lg { padding: 13px 22px; font-size: 1rem; border-radius: var(--radius); }

/* ---------- hero ---------- */

.hero { position: relative; overflow: hidden; padding: 74px 0 26px; }
.glow {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: 0.5; pointer-events: none;
}
.glow-a {
  width: 620px; height: 460px; left: -180px; top: -140px;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.55), transparent 70%);
}
.glow-b {
  width: 560px; height: 420px; right: -140px; top: 60px;
  background: radial-gradient(circle, rgba(180, 91, 255, 0.42), transparent 70%);
}
.hero-inner {
  position: relative; display: grid; gap: 54px;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.28fr);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 16px; color: var(--muted);
  font-size: 0.79rem; font-weight: 650;
  letter-spacing: 0.13em; text-transform: uppercase;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--play); box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.14);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.1vw, 3.15rem);
  line-height: 1.08; letter-spacing: -0.032em; font-weight: 700;
}
h2 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.16; letter-spacing: -0.024em; font-weight: 660;
}
h3 { margin: 0 0 8px; font-size: 1.04rem; letter-spacing: -0.01em; font-weight: 640; }
.grad {
  background: linear-gradient(100deg, var(--brand-a), var(--brand-b) 52%, var(--brand-c));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0 0 26px; color: #c3cbd9; font-size: 1.055rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fineprint { margin: 18px 0 0; color: var(--muted); font-size: 0.855rem; }

.hero-shot { margin: 0; }
.frame {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--elev);
  box-shadow: 0 34px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.frame-bar {
  display: flex; gap: 7px; padding: 10px 13px;
  border-bottom: 1px solid var(--border); background: rgba(0, 0, 0, 0.28);
}
.frame-bar i {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.frame img { width: 100%; }

/* ---------- stats ---------- */

.stats { border-block: 1px solid var(--border); background: var(--bg-2); }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat { padding: 26px 22px; border-left: 1px solid var(--border); }
.stat:first-child { border-left: 0; }
.stat-num {
  display: block; font-size: 1.75rem; font-weight: 680;
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 6px;
}
.stat-label { color: var(--muted); font-size: 0.875rem; line-height: 1.45; }

/* ---------- sections ---------- */

.section { padding: 82px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-lede {
  margin: 0 0 40px; color: #b9c2d1; max-width: 62ch; font-size: 1.01rem;
}

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  padding: 22px 22px 24px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--elev-2), var(--elev));
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

/* ---------- modules ---------- */

.modules {
  display: grid; gap: 1px; margin-bottom: 46px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.module-group { background: var(--bg-2); padding: 24px; }
.module-group h3 {
  font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-c);
}
.module-group p { margin: 0; color: var(--muted); font-size: 0.925rem; }

.deep-dives {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 52px;
}
.dive {
  padding: 24px; border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--elev);
}
.dive p { margin: 0; color: #b4bdcc; font-size: 0.94rem; }

/* ---------- gallery ---------- */

.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 42px;
}
.shot {
  margin: 0; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--elev); cursor: zoom-in;
  transition: border-color 0.2s ease;
}
.shot:hover { border-color: var(--border-2); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption {
  padding: 11px 14px; font-size: 0.85rem; color: var(--muted);
  border-top: 1px solid var(--border);
}

.showcase { margin: 0; }
.showcase video {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--border-2); background: #000;
}
.showcase figcaption { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }

/* ---------- performance ---------- */

.perf-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 22px;
}
.perf-card {
  padding: 26px 26px 30px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--elev);
}
.perf-card-hi {
  border-color: rgba(106, 162, 255, 0.3);
  background: linear-gradient(180deg, rgba(91, 140, 255, 0.1), var(--elev));
}
.perf-tag {
  display: block; color: var(--muted); font-size: 0.79rem;
  letter-spacing: 0.13em; text-transform: uppercase; font-weight: 650;
  margin-bottom: 10px;
}
.perf-num {
  display: block; font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums; margin-bottom: 18px;
}
.perf-num small { font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em; margin-left: 7px; color: var(--muted); }
.bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-c));
}
.perf-note { margin: 0; color: var(--muted); font-size: 0.93rem; max-width: 66ch; }

/* ---------- fair play ---------- */

.section p { color: #b4bdcc; }
.section .section-lede { color: #c3cbd9; }

/* ---------- download ---------- */

.download { background: linear-gradient(180deg, var(--bg-2), #0a0d14); }
.download-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 28px;
}
.download-inner > div:first-child { max-width: 46ch; }
.download-inner h2 { margin-bottom: 10px; }
.download-inner p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.download-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--border);
  padding: 42px 0 46px; background: var(--bg-2);
  font-size: 0.85rem; color: var(--muted);
}
.foot-inner { display: grid; gap: 14px; max-width: 820px; }
.foot-brand {
  display: flex; align-items: center; gap: 9px;
  color: var(--text); font-weight: 620; font-size: 0.95rem;
}
.foot-brand img { border-radius: 50%; }
.foot-credit, .foot-legal { margin: 0; line-height: 1.6; }

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 32px; background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(6px);
  animation: fade 0.18s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: var(--radius); border: 1px solid var(--border-2);
}
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-2); background: var(--elev-2);
  color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.13); }

/* ---------- reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 38px; }
  .hero { padding-top: 52px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .nav { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .cards, .modules, .deep-dives, .gallery, .perf-grid { grid-template-columns: 1fr; }
  .head-actions .btn-ghost { display: none; }
  .wrap { padding: 0 18px; }
}
