:root {
  color-scheme: dark;
  --xv-bg: #03040a;
  --xv-bg-elevated: #080a13;
  --xv-surface: rgba(13, 15, 27, .88);
  --xv-surface-strong: #101321;
  --xv-surface-soft: rgba(21, 18, 36, .72);
  --xv-border: rgba(177, 111, 255, .18);
  --xv-border-strong: rgba(177, 111, 255, .42);
  --xv-purple: #9d5cff;
  --xv-purple-light: #c69bff;
  --xv-cyan: #68dcff;
  --xv-green: #5ee0a3;
  --xv-amber: #f4c56a;
  --xv-text: #f7f5fb;
  --xv-muted: #b3afbf;
  --xv-subtle: #878492;
  --xv-shadow: 0 24px 80px rgba(0, 0, 0, .35);
  --xv-radius-sm: 10px;
  --xv-radius: 16px;
  --xv-radius-lg: 26px;
  --xv-max: 1320px;
}

html { scroll-padding-top: 96px; }
body {
  background:
    radial-gradient(circle at 82% -8%, rgba(126, 61, 217, .24), transparent 34rem),
    radial-gradient(circle at 7% 35%, rgba(40, 160, 210, .08), transparent 28rem),
    linear-gradient(180deg, var(--xv-bg), #070711 48%, #03040a);
  color: var(--xv-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01" 1, "cv11" 1;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(151, 94, 226, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 94, 226, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000 0, transparent 82%);
}

::selection { background: rgba(157, 92, 255, .42); color: #fff; }
.wrap { width: min(calc(100% - 48px), var(--xv-max)); }
.skip:focus { left: 16px; top: 16px; border-radius: 8px; outline: 3px solid var(--xv-cyan); }

a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--xv-cyan);
  outline-offset: 4px;
}

header {
  background: rgba(3, 4, 10, .82);
  border-color: var(--xv-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
.nav { height: 82px; gap: 26px; }
.brand { letter-spacing: .12em; }
.brand img { width: 44px; height: 44px; }
.brand span small { color: var(--xv-purple-light); }
.navlinks { gap: 8px; }
.navlinks a {
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--xv-muted);
  transition: color .2s ease, background .2s ease;
}
.navlinks a:hover, .navlinks a.active, .navlinks a[aria-current="page"] {
  color: #fff;
  background: rgba(157, 92, 255, .1);
  text-shadow: none;
}
.menu {
  min-width: 46px;
  min-height: 46px;
  border: 1px solid var(--xv-border);
  border-radius: 11px;
  background: rgba(16, 19, 33, .86);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.btn {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 11px;
  border-color: rgba(190, 137, 255, .58);
  background: linear-gradient(135deg, #9955f7, #6726c2 58%, #4c2396);
  box-shadow: 0 12px 32px rgba(110, 42, 202, .22), inset 0 1px rgba(255, 255, 255, .18);
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: rgba(12, 14, 24, .78); border-color: var(--xv-border-strong); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.kicker, .section-label {
  color: var(--xv-purple-light);
  letter-spacing: .19em;
}
h1, h2, h3, h4 { text-wrap: balance; }
h1 {
  font-size: clamp(3.25rem, 7vw, 6.8rem);
  line-height: .94;
  letter-spacing: -.055em;
}
h2 { letter-spacing: -.035em; }
h1 .accent, h2 .accent {
  color: transparent;
  background: linear-gradient(110deg, #f2e7ff, var(--xv-purple-light) 38%, var(--xv-cyan));
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: none;
}
.hero { min-height: 780px; grid-template-columns: minmax(0, 1.03fr) minmax(460px, .97fr); gap: 58px; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy::before {
  content: "XORVANIQ // CANADA";
  display: block;
  width: max-content;
  margin-bottom: 18px;
  color: var(--xv-cyan);
  font: 700 .68rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .16em;
}
.hero p { color: var(--xv-muted); font-size: clamp(1.02rem, 1.8vw, 1.2rem); }
.badges { gap: 10px; }
.badge {
  border-color: var(--xv-border);
  background: rgba(13, 15, 27, .72);
  color: #d9d5e1;
}

.server-scene {
  height: 590px;
  border-color: var(--xv-border-strong);
  border-radius: var(--xv-radius-lg);
  background:
    radial-gradient(circle at 77% 17%, rgba(104, 220, 255, .13), transparent 32%),
    radial-gradient(circle at 30% 34%, rgba(157, 92, 255, .28), transparent 40%),
    linear-gradient(145deg, #080a12, #141021 52%, #080a12);
  box-shadow: var(--xv-shadow), 0 0 70px rgba(126, 49, 220, .2), inset 0 1px rgba(255, 255, 255, .06);
}
.server-scene::before { background: linear-gradient(115deg, rgba(255,255,255,.025), transparent 28%, rgba(104,220,255,.04) 65%, transparent); }
.racks { inset: 10% 4% 5% 9%; gap: 10px; }
.rack { border-color: rgba(170, 117, 230, .26); border-radius: 6px; }
.unit { border-color: rgba(150, 132, 168, .18); }
.livecard {
  width: 300px;
  border-color: var(--xv-border-strong);
  background: rgba(7, 9, 16, .92);
  box-shadow: 0 18px 44px rgba(0,0,0,.3);
}
.livecard strong { color: var(--xv-purple-light); }
.statusline { align-items: center; gap: 14px; color: var(--xv-muted); }
.statusline b { color: var(--xv-text); font-weight: 800; white-space: nowrap; }
.statusline b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--xv-green); box-shadow: 0 0 11px rgba(94,224,163,.7); }
.statusline .state-info::before { background: var(--xv-cyan); box-shadow: 0 0 11px rgba(104,220,255,.65); }
.statusline .state-build::before { background: var(--xv-amber); box-shadow: 0 0 11px rgba(244,197,106,.55); }

section { padding: 98px 0; }
section:nth-of-type(even) { position: relative; }
section:nth-of-type(even)::before {
  content: "";
  position: absolute;
  inset: 18px 0;
  z-index: -1;
  border-block: 1px solid rgba(162, 105, 224, .07);
  background: linear-gradient(90deg, transparent, rgba(85, 45, 129, .06), transparent);
}
.sectionhead { max-width: 880px; margin-bottom: 48px; }
.sectionhead h2 { font-size: clamp(2.25rem, 4.5vw, 4rem); }
.sectionhead p { color: var(--xv-muted); font-size: 1.02rem; }

.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card, .panel, .price, .category-panel, .bundle-card, .metric, .note-card {
  border-color: var(--xv-border);
  background: linear-gradient(145deg, rgba(18, 20, 34, .93), rgba(8, 10, 18, .96));
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.card {
  min-height: 222px;
  padding: 26px;
  border-radius: var(--xv-radius);
}
.card:hover { border-color: var(--xv-border-strong); box-shadow: 0 18px 50px rgba(0,0,0,.28); }
.card h3 { font-size: 1.08rem; }
.card p { color: var(--xv-muted); font-size: .9rem; }
.arrow { color: var(--xv-cyan); }

.service-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border: 1px solid rgba(157,92,255,.34);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(157,92,255,.2), rgba(104,220,255,.06));
  color: var(--xv-purple-light);
  font: 800 .78rem ui-monospace, SFMono-Regular, Consolas, monospace;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.service-icon::before { content: attr(data-code); }

.nora {
  border-color: var(--xv-border-strong);
  border-radius: var(--xv-radius-lg);
  background: linear-gradient(120deg, rgba(34,16,55,.95), rgba(10,12,21,.98) 52%, rgba(18,13,35,.96));
  box-shadow: var(--xv-shadow);
}
.nora-copy p, .panel p, .panel li { color: var(--xv-muted); }
.nora-orb { border-color: var(--xv-cyan); box-shadow: 0 0 56px rgba(127,64,226,.55), inset 0 0 44px rgba(68,197,245,.14); }
.nora-orb::before { color: #f5edff; }
.features { grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.feature {
  min-height: 172px;
  padding: 24px;
  border: 1px solid var(--xv-border);
  border-radius: var(--xv-radius);
  background: rgba(12,14,24,.75);
}
.feature b { font-size: 1.02rem; }
.feature span { color: var(--xv-muted); }

.ecosystem-shell {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  align-items: stretch;
}
.ecosystem-intro, .ecosystem-map, .infra-band {
  border: 1px solid var(--xv-border);
  border-radius: var(--xv-radius-lg);
  background: var(--xv-surface);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.ecosystem-intro { padding: 38px; }
.ecosystem-intro h2 { margin: .2em 0; font-size: clamp(2.2rem, 4vw, 3.6rem); }
.ecosystem-intro p { color: var(--xv-muted); }
.ecosystem-map { padding: 28px; display: grid; gap: 16px; }
.ecosystem-core {
  justify-self: center;
  padding: 15px 28px;
  border: 1px solid var(--xv-border-strong);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(157,92,255,.28), rgba(104,220,255,.09));
  font-weight: 900;
  letter-spacing: .14em;
}
.ecosystem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ecosystem-node { position: relative; min-height: 108px; padding: 18px; border: 1px solid var(--xv-border); border-radius: 13px; background: rgba(7,9,16,.82); }
.ecosystem-node::before { content: ""; position: absolute; top: -17px; left: 50%; width: 1px; height: 17px; background: var(--xv-border-strong); }
.ecosystem-node b { display: block; margin-bottom: 6px; }
.ecosystem-node span { color: var(--xv-muted); font-size: .83rem; }
.ecosystem-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ecosystem-product { padding: 15px; border: 1px solid rgba(104,220,255,.16); border-radius: 12px; color: var(--xv-muted); background: rgba(9,13,22,.72); }
.ecosystem-product b { color: var(--xv-text); }

.infra-band { padding: 34px; }
.infra-top { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 26px; }
.infra-top h2 { margin: .2em 0 0; font-size: clamp(2.15rem, 4vw, 3.5rem); }
.infra-top p { max-width: 580px; margin: 0; color: var(--xv-muted); }
.infra-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.infra-item { padding: 20px; border-top: 2px solid var(--xv-purple); background: rgba(8,10,18,.76); }
.infra-item small { display: block; margin-bottom: 9px; color: var(--xv-cyan); font: 700 .68rem ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.infra-item b { display: block; margin-bottom: 6px; }
.infra-item span { color: var(--xv-muted); font-size: .84rem; }

.subhero { padding: 116px 0 70px; }
.subhero .wrap { position: relative; }
.subhero .wrap::after { content: "// XORVANIQ"; position: absolute; right: 0; bottom: 8px; color: rgba(198,155,255,.16); font: 800 clamp(2rem,6vw,5rem) ui-monospace, Consolas, monospace; letter-spacing: -.08em; pointer-events: none; }
.subhero h1 { max-width: 1050px; font-size: clamp(3rem, 6vw, 5.8rem); }
.subhero p { color: var(--xv-muted); font-size: 1.06rem; }
.twocol { gap: 24px; }
.panel { border-radius: var(--xv-radius); padding: 32px; }
.panel a:not(.btn) { color: var(--xv-cyan); text-decoration: underline; text-underline-offset: 3px; }
.notice { border-left-color: var(--xv-purple); background: rgba(157,92,255,.08); }
details { border-color: var(--xv-border); background: rgba(10,12,20,.82); }

.price, .bundle-card, .category-panel { border-radius: var(--xv-radius); }
.price.popular, .bundle-card.popular { border-color: var(--xv-border-strong); }
.price-tag { border-radius: 9px; background: rgba(157,92,255,.12); }
.metric { text-align: left; border-radius: 13px; }
.metric b { color: var(--xv-purple-light); }

.availability-list { display: grid; gap: 12px; }
.availability-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 17px 18px; border: 1px solid var(--xv-border); border-radius: 12px; background: rgba(8,10,18,.72); }
.availability-row b { display: block; }
.availability-row span { color: var(--xv-muted); font-size: .84rem; }
.state-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 8px; font-size: .72rem; font-weight: 900; letter-spacing: .05em; background: rgba(104,220,255,.1); color: var(--xv-cyan); border: 1px solid rgba(104,220,255,.22); }
.state-chip.build { color: var(--xv-amber); border-color: rgba(244,197,106,.26); background: rgba(244,197,106,.08); }

footer { border-color: var(--xv-border); background: #05060b; padding-top: 64px; }
.footergrid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: 42px; }
.footlinks h4 { color: var(--xv-text); }
.footlinks a { color: var(--xv-muted); min-height: 28px; }
.footlinks a:hover { color: var(--xv-cyan); }
.socials a { border-radius: 9px; font-size: .72rem; font-weight: 900; }
.copyright { border-color: var(--xv-border); color: var(--xv-subtle); }

[data-reveal] { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .server-scene { max-width: 800px; width: 100%; margin-inline: auto; }
  .ecosystem-shell { grid-template-columns: 1fr; }
  .infra-grid { grid-template-columns: repeat(2, 1fr); }
  .footergrid { grid-template-columns: 1.4fr repeat(2, 1fr); }
}

@media (max-width: 1050px) {
  .navlinks { display: none; }
  .menu { display: inline-grid; place-items: center; margin-left: auto; }
  .nav.open .navlinks {
    display: flex;
    top: 82px;
    padding: 18px 24px 24px;
    gap: 4px;
    border-color: var(--xv-border);
    background: rgba(5,7,13,.98);
    box-shadow: 0 24px 50px rgba(0,0,0,.42);
  }
  .nav.open .navlinks a { width: 100%; min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 760px) {
  .wrap { width: min(calc(100% - 28px), var(--xv-max)); }
  .nav { height: 72px; }
  .brand img { width: 38px; height: 38px; }
  .nav.open .navlinks { top: 72px; }
  h1 { font-size: clamp(2.85rem, 15vw, 4.5rem); }
  section { padding: 76px 0; }
  .hero { padding: 58px 0 52px; gap: 38px; }
  .hero-copy::before { margin-bottom: 12px; }
  .server-scene { height: 390px; }
  .livecard { width: 218px; right: 13px; top: 13px; }
  .grid, .pricing-grid, .twocol, .nora, .footergrid, .ecosystem-grid, .ecosystem-products, .infra-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .card { min-height: 190px; }
  .nora-copy, .ecosystem-intro, .ecosystem-map, .infra-band, .panel { padding: 25px; }
  .ecosystem-node::before { display: none; }
  .infra-top { display: block; }
  .infra-top p { margin-top: 14px; }
  .subhero { padding-top: 88px; }
  .subhero .wrap::after { display: none; }
  .availability-row { grid-template-columns: 1fr; }
  .state-chip { justify-self: start; }
}

@media (max-width: 420px) {
  .wrap { width: min(calc(100% - 22px), var(--xv-max)); }
  .brand { font-size: .85rem; }
  .nav > .btn { display: none; }
  .actions .btn { width: 100%; }
  .server-scene { height: 330px; }
  .racks { inset: 13% 2% 4% 3%; }
  .livecard { width: 205px; padding: 13px; }
  .footergrid { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  header, footer, #circuitCanvas, .noise, .server-scene, .actions { display: none !important; }
  body { background: #fff; color: #111; }
  a { color: #111; text-decoration: underline; }
  section { padding: 24px 0; }
}
