/* ============================================================
   NX Technologies — NXBAR 2.1
   Dark premium theme
   ============================================================ */

:root {
  --bg: #09090b;
  --bg-2: #0e0e12;
  --bg-3: #15151b;
  --panel: #121218;
  --line: #26262e;
  --text: #f5f5f7;
  --muted: #a3a3ad;
  --dim: #6e6e78;
  --red: #e5484d;
  --red-deep: #c33338;
  --green: #46a758;
  --radius: 16px;
  --font-head: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }

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

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  padding: 14px 28px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(229, 72, 77, .35); }
.btn-ghost { border-color: #3a3a44; color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: #6a6a76; background: rgba(255,255,255,.07); }
.btn-lg { padding: 17px 36px; font-size: 17px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(9, 9, 11, .72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.nav-logo img { height: 22px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.nav-cta { color: #fff; background: var(--red); padding: 9px 20px; border-radius: 999px; font-weight: 600; }
.nav-links a.nav-cta:hover { background: var(--red-deep); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .2s; }

@media (max-width: 880px) {
  .nav-burger { display: block; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(9,9,11,.97); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 420px; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 16px; font-size: 16px; }
  .nav-links a.nav-cta { margin: 12px 24px 20px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100svh; display: flex; align-items: flex-end;
  background: linear-gradient(180deg, rgba(9,9,11,.55) 0%, rgba(9,9,11,.15) 45%, rgba(9,9,11,.92) 88%, var(--bg) 100%),
              url('../img/hero.jpg') center 30% / cover no-repeat;
  padding: 140px 0 90px;
}
@media (max-width: 700px) {
  .hero { background-image: linear-gradient(180deg, rgba(9,9,11,.55), rgba(9,9,11,.25) 45%, rgba(9,9,11,.94) 88%, var(--bg)), url('../img/hero-mobile.jpg'); }
}
.hero-content { max-width: 780px; }
.hero .eyebrow { color: #ffb3b5; }
.hero h1 { font-size: clamp(42px, 7vw, 84px); font-weight: 700; margin: 14px 0 20px; }
.hero p.lead { font-size: clamp(17px, 2.2vw, 21px); color: #d6d6dc; max-width: 560px; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.eyebrow {
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 17.5px; }

.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* pedigree strip */
.pedigree { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.pedigree-inner { display: flex; align-items: center; justify-content: center; gap: 18px 48px; flex-wrap: wrap; padding: 26px 24px; }
.pedigree span { color: var(--dim); font-family: var(--font-head); font-size: 13.5px; letter-spacing: .14em; text-transform: uppercase; }
.pedigree strong { color: var(--muted); font-weight: 600; }

/* feature cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .cards-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #3c3c48; transform: translateY(-3px); }
.card .glyph {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(229,72,77,.1); border: 1px solid rgba(229,72,77,.25); margin-bottom: 22px;
}
.card .glyph svg { width: 26px; height: 26px; stroke: var(--red); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .range-tag { display: inline-block; margin-top: 16px; font-family: var(--font-head); font-size: 12.5px; letter-spacing: .1em; color: var(--dim); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; }

/* split sections */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.split h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 12px 0 18px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.split .img-wrap { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.split .img-pad { padding: 40px; background: radial-gradient(80% 80% at 50% 40%, #1c1c24 0%, var(--bg-3) 100%); }

/* checklist */
.checks { list-style: none; margin-top: 22px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--text); font-size: 15.5px; }
.checks li svg { flex: none; width: 20px; height: 20px; stroke: var(--green); margin-top: 3px; }
.checks li span b { font-weight: 600; }
.checks li .sub { color: var(--muted); }

/* demo teaser */
.demo-teaser {
  border-radius: 24px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9,9,11,0) 30%, rgba(9,9,11,.9)), url('../img/poster.jpg') center / cover;
  min-height: 440px; display: flex; align-items: flex-end; padding: 44px;
}
.demo-teaser-inner { max-width: 520px; }
.demo-teaser h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 12px; }
.demo-teaser p { color: #cfcfd6; margin-bottom: 24px; }

/* CTA band */
.cta-band { text-align: center; padding: 110px 24px; background: radial-gradient(60% 100% at 50% 0%, rgba(229,72,77,.14) 0%, rgba(9,9,11,0) 70%), var(--bg-2); border-top: 1px solid var(--line); }
.cta-band h2 { font-size: clamp(32px, 4.6vw, 54px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); font-size: 18px; margin-bottom: 34px; }
.price-tag { font-family: var(--font-head); font-weight: 700; }

/* ---------- Footer ---------- */
footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand img { height: 20px; margin-bottom: 16px; }
.foot-brand p { color: var(--dim); font-size: 14px; max-width: 300px; }
footer h4 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 10px; }
footer ul a { color: var(--muted); font-size: 14.5px; }
footer ul a:hover { color: var(--text); }
.foot-compliance img { height: 34px; width: auto; margin-bottom: 14px; border-radius: 4px; }
.foot-compliance p { color: var(--dim); font-size: 12px; line-height: 1.55; }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 150px 0 40px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 58px); margin: 14px 0 16px; }
.page-hero p.lead { color: var(--muted); font-size: 18px; max-width: 640px; }

/* ---------- Product page ---------- */
.product-hero { padding: 140px 0 60px; background: radial-gradient(70% 60% at 50% 10%, #17171f 0%, var(--bg) 75%); }
.product-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .product-hero-grid { grid-template-columns: 1fr; } }
.product-hero .price-row { display: flex; align-items: baseline; gap: 16px; margin: 22px 0 26px; }
.product-hero .price { font-family: var(--font-head); font-size: 40px; font-weight: 700; }
.product-hero .price-note { color: var(--dim); font-size: 14px; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.spec-table th { color: var(--dim); font-weight: 500; width: 42%; }
.spec-table td { color: var(--text); }

.io-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.io-pills span { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 8px 18px; font-family: var(--font-head); font-size: 13.5px; color: var(--muted); }

/* ---------- Demo page ---------- */
.demo-page-hero { padding: 130px 0 20px; text-align: center; }
.demo-page-hero h1 { font-size: clamp(32px, 4.6vw, 54px); margin: 12px 0 14px; }
.demo-page-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; font-size: 17px; }

.demo-stage {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px;
  align-items: start; margin-top: 44px;
}
@media (max-width: 960px) { .demo-stage { grid-template-columns: 1fr; } .stage-remote { margin: 0 auto; } }

/* TV */
.tv { position: relative; }
.tv-frame {
  background: #000; border: 3px solid #1c1c22; border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px #000;
  position: relative;
}
.tv-frame video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #000; }
.tv-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(5,5,7,.62); backdrop-filter: blur(3px); transition: opacity .3s; z-index: 5;
}
.tv-overlay.hidden { opacity: 0; pointer-events: none; }
.tv-overlay p { color: #cfcfd6; font-size: 14.5px; }

/* soundbar under tv */
.sb-visual { margin: 26px auto 0; max-width: 86%; position: relative; }
.sb-visual img { width: 100%; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.sb-display {
  position: absolute; top: -14px; right: 6%;
  background: #050507; border: 1px solid #2c2c34; color: var(--red);
  font-family: 'Outfit', monospace; font-weight: 600; letter-spacing: .14em;
  border-radius: 8px; padding: 6px 14px; font-size: 14px; min-width: 84px; text-align: center;
  box-shadow: 0 0 18px rgba(229,72,77,.14) inset, 0 6px 18px rgba(0,0,0,.5);
  transition: color .2s;
}
.sb-display.off { color: #4a4a54; box-shadow: none; }

/* mode readout */
.mode-readout {
  margin-top: 26px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; min-height: 108px;
}
.mode-readout .mr-label { font-family: var(--font-head); font-weight: 600; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.mode-readout .mr-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.mode-readout.live .mr-dot { background: var(--green); box-shadow: 0 0 10px rgba(70,167,88,.8); }
.mode-readout p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }

/* remote */
.stage-remote { position: sticky; top: 92px; width: 300px; max-width: 78vw; }
.remote-wrap { position: relative; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.65); }
.remote-wrap img { width: 100%; display: block; transition: opacity .15s; }
.remote-wrap.dimmed img { opacity: .55; }
.hotspot {
  position: absolute; background: transparent; border: 0; cursor: pointer; border-radius: 999px;
  transition: background .15s, box-shadow .15s;
}
.hotspot:hover { background: rgba(255,255,255,.08); box-shadow: 0 0 0 2px rgba(255,255,255,.18); }
.hotspot:active { background: rgba(255,255,255,.16); }
.hotspot.pulse { animation: hotpulse 1.6s ease-in-out infinite; }
@keyframes hotpulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(229,72,77,.0); }
  50% { box-shadow: 0 0 0 4px rgba(229,72,77,.45); }
}
.remote-hint { text-align: center; color: var(--dim); font-size: 13px; margin-top: 14px; }

/* extra preset chips */
.preset-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; justify-content: center; }
.chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  font-family: var(--font-head); font-size: 13.5px; font-weight: 500;
  padding: 9px 16px; border-radius: 999px; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: #4a4a56; color: var(--text); }
.chip.active { border-color: var(--red); color: #fff; background: rgba(229,72,77,.14); }

/* toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1c1c24; border: 1px solid #34343e; color: var(--text); font-size: 14.5px;
  padding: 12px 22px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* mode grid explainer */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .mode-grid { grid-template-columns: 1fr; } }

/* ---------- Dealers page ---------- */
.dealer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .dealer-grid { grid-template-columns: 1fr; } }
.dealer-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 40px 34px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; transition: border-color .2s, transform .2s;
}
.dealer-card:hover { border-color: #3c3c48; transform: translateY(-3px); }
.dealer-card .dealer-name { font-family: var(--font-head); font-size: 26px; font-weight: 700; }
.dealer-card p { color: var(--muted); font-size: 15px; flex: 1; }
.dealer-card .btn { margin-top: 6px; }

/* ---------- Buy page ---------- */
.buy-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .buy-grid { grid-template-columns: 1fr; } }
.buy-media { position: sticky; top: 100px; }
@media (max-width: 880px) { .buy-media { position: static; } }
.buy-media .main-shot { border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(80% 80% at 50% 35%, #1d1d26 0%, var(--bg-3) 100%); padding: 44px; }
.buy-panel h1 { font-size: clamp(30px, 3.8vw, 44px); margin: 10px 0 8px; }
.buy-panel .sub { color: var(--muted); font-size: 16.5px; }
.buy-price { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 6px; }
.buy-price .amount { font-family: var(--font-head); font-size: 44px; font-weight: 700; }
.buy-price .term { color: var(--dim); font-size: 14px; }
.buy-bullets { list-style: none; margin: 22px 0 28px; }
.buy-bullets li { display: flex; gap: 12px; margin-bottom: 12px; color: var(--text); font-size: 15.5px; }
.buy-bullets svg { flex: none; width: 20px; height: 20px; stroke: var(--green); margin-top: 3px; }
.buy-ctas { display: flex; flex-direction: column; gap: 12px; }
.buy-ctas .btn { width: 100%; }
.buy-note { color: var(--dim); font-size: 13px; text-align: center; margin-top: 14px; }
.in-box { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.in-box h3 { font-size: 17px; margin-bottom: 14px; }
.in-box ul { list-style: none; color: var(--muted); font-size: 15px; }
.in-box li { padding: 7px 0; border-bottom: 1px dashed #1f1f27; }

/* ---------- About page ---------- */
.about-quote {
  border-left: 3px solid var(--red); padding: 8px 0 8px 28px; margin: 40px 0;
  font-family: var(--font-head); font-size: clamp(20px, 2.6vw, 27px); font-weight: 500; line-height: 1.4; color: #e8e8ee;
}
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .people-grid { grid-template-columns: 1fr; } }
.person-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.person-card .role { color: var(--red); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; font-family: var(--font-head); font-weight: 600; }
.person-card h3 { font-size: 22px; margin: 10px 0 10px; }
.person-card p { color: var(--muted); font-size: 14.5px; }
.memoriam {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 44px; text-align: center;
}
.memoriam h3 { font-size: 24px; margin-bottom: 12px; }
.memoriam p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
