/* Zerix Development — 2026 */

:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-2: #080c16;
  --surface: #0c1220;
  --surface-2: #111a2d;
  --line: rgba(140, 170, 230, .12);
  --line-2: rgba(140, 170, 230, .22);
  --text: #e9eef8;
  --muted: #8d9bb4;
  --dim: #5d6a82;
  --blue: #21d3ed;
  --blue-2: #5ee3f5;
  --cyan: #21d3ed;
  --chrome: linear-gradient(180deg, #ffffff 0%, #c9d3e3 55%, #8e9bb2 100%);
  --brand: linear-gradient(120deg, #13b8d6 0%, #21d3ed 50%, #7ce9f8 100%);
  --ok: #3ddc97;
  --err: #ff6b7a;
  --discord: #5865f2;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Chakra Petch", "Inter", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --cut: 14px;
  --radius: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; letter-spacing: 0; }
p { margin: 0 0 1em; }
::selection { background: var(--blue); color: var(--bg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.i { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; justify-content: center; }
.grad {
  background: var(--brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--blue); color: var(--bg); padding: 10px 16px;
}
.skip:focus { top: 12px; }

/* ---------- Eyebrows & heads ---------- */
.eyebrow {
  display: flex; align-items: center; gap: .65rem;
  font: 500 .75rem/1 var(--mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.eyebrow .num {
  color: var(--dim);
  padding-right: .65rem;
  border-right: 1px solid var(--line-2);
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* ---------- Buttons ---------- */
.btn {
  --bc: var(--line-2);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.35rem;
  font: 600 .95rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  border: 0; cursor: pointer; color: var(--text);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: var(--bg); box-shadow: 0 10px 30px -10px rgba(33, 211, 237, .7); }
.btn-primary:hover { box-shadow: 0 14px 40px -10px rgba(94, 227, 245, .9); }
.btn-ghost { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--blue-2); }
.btn-discord { background: var(--discord); color: #fff; }
.btn-sm { min-height: 40px; padding: .55rem 1rem; font-size: .82rem; --cut: 10px; }
.btn-lg { min-height: 54px; padding: .85rem 1.7rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.btn-col { display: grid; gap: .7rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font: 600 .85rem/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--cyan);
}
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(4px); }

.tag {
  font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: .4rem .6rem; color: var(--cyan);
  border: 1px solid rgba(33, 211, 237, .3); background: rgba(33, 211, 237, .08);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
/* Blur lives on a pseudo-element so the header does not become a containing block for the fixed mobile nav */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  opacity: 0; transition: opacity .3s;
  background: rgba(5, 7, 13, .8);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header.scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.brand img { width: 150px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; margin-left: auto; }
.main-nav ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.main-nav ul a {
  position: relative; display: block; padding: .5rem .8rem;
  font: 500 .92rem/1 var(--font); color: var(--muted);
  white-space: nowrap; transition: color .2s;
}
.main-nav ul a:hover, .main-nav ul a[aria-current="page"] { color: var(--text); }
.main-nav ul a[aria-current="page"]::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: -2px; height: 2px;
  background: var(--brand);
}
.nav-actions { display: flex; gap: .5rem; }
.header-tools { display: flex; align-items: center; gap: .5rem; }

.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: .35rem;
  height: 40px; padding: 0 .7rem;
  font: 600 .8rem/1 var(--mono); color: var(--muted);
  border: 1px solid var(--line-2);
  transition: color .2s, border-color .2s;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { color: var(--text); border-color: var(--blue-2); }
.lang summary .i:last-child { width: .9em; transition: transform .2s; }
.lang[open] summary .i:last-child { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 190px; margin: 0; padding: .4rem; list-style: none;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
}
.lang-menu a {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem .7rem; font-size: .92rem; color: var(--muted);
}
.lang-menu a:hover { background: var(--surface-2); color: var(--text); }
.lang-menu a[aria-current] { color: var(--text); }
.lang-menu a[aria-current]::after { content: ""; margin-left: auto; width: 6px; height: 6px; background: var(--cyan); }
.lang-menu .code { font: 600 .72rem/1 var(--mono); color: var(--cyan); width: 1.6rem; }

.nav-toggle {
  display: none; width: 44px; height: 40px; padding: 0 11px;
  background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 7rem)) 0 clamp(4rem, 9vw, 8rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(33, 211, 237, .28), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(124, 233, 248, .1), transparent 70%);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero-bg::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(transparent, var(--bg));
}
/* Oversized slanted Z stroke echoing the logo */
.hero-z {
  position: absolute; right: -6vw; top: 8%;
  width: min(62vw, 820px); aspect-ratio: 1.15;
  background: linear-gradient(120deg, rgba(33, 211, 237, .16), rgba(33, 211, 237, 0) 70%);
  clip-path: polygon(8% 0, 100% 0, 100% 14%, 34% 86%, 92% 86%, 92% 100%, 0 100%, 0 86%, 66% 14%, 8% 14%);
  opacity: .8;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { margin-bottom: 2rem; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 220, 151, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 151, 0); } }
.hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 2rem 0 0; color: var(--muted); font-size: .9rem; }
.hero-meta li { display: flex; align-items: center; gap: .45rem; }
.hero-meta .i { color: var(--ok); }

.console {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 26, 45, .92), rgba(8, 12, 22, .92));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(33, 211, 237, .08), 0 0 80px -20px rgba(33, 211, 237, .35);
  clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px);
  transform: perspective(1200px) rotateY(-6deg) rotateX(2deg);
  transition: transform .6s var(--ease);
}
.console:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.console::before {
  content: ""; position: absolute; left: 0; top: 0; width: 60px; height: 2px; background: var(--brand);
}
.console-bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--line);
  font-size: .8rem; color: var(--muted);
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #2a3550; }
.dots i:first-child { background: #ff5f57; } .dots i:nth-child(2) { background: #febc2e; } .dots i:last-child { background: #28c840; }
.console-live {
  margin-left: auto; font: 600 .65rem/1 var(--mono); letter-spacing: .14em;
  color: var(--ok); padding: .3rem .45rem; border: 1px solid rgba(61, 220, 151, .35);
}
.console-body { padding: 1.3rem 1.3rem 1.5rem; font-size: .88rem; line-height: 1.9; }
.console-body p { margin: 0; white-space: nowrap; }
.c-muted { color: var(--dim); }
.c-kw { color: var(--cyan); }
.c-str { color: #9fe3b8; }
.c-line { display: flex; gap: .55rem; }
.c-ok {
  margin-left: auto; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ok); opacity: .85;
}
.c-ok::before { content: "● "; }
.caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 3px; vertical-align: -3px; background: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.console-foot {
  display: flex; border-top: 1px solid var(--line);
  font: 500 .75rem/1 var(--mono); color: var(--muted);
}
.console-foot span { flex: 1; display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .9rem .5rem; }
.console-foot span + span { border-left: 1px solid var(--line); }

/* ---------- Page hero ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(33, 211, 237, .25), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: linear-gradient(180deg, #000 30%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent);
}
.page-hero::after {
  content: ""; position: absolute; right: var(--gutter); bottom: -1px; width: 120px; height: 3px; background: var(--brand);
}
.page-hero h1 { max-width: 18ch; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
  transition: border-color .3s, transform .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-2), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.card h3 { margin-top: .25rem; }
.card p { color: var(--muted); flex: 1; }
.card > .card-icon { margin-bottom: 1.5rem; }
.card-icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; color: var(--cyan);
  background: rgba(33, 211, 237, .1); border: 1px solid rgba(94, 227, 245, .3);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.card-icon .i { width: 22px; height: 22px; }
.card-icon-lg { width: 60px; height: 60px; }
.card-icon-lg .i { width: 28px; height: 28px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.product {
  position: relative; display: flex; flex-direction: column;
  padding: 1.75rem 1.4rem 1.4rem; background: var(--bg-2);
  transition: background .3s;
}
.product::after {
  content: ""; position: absolute; left: 0; top: 0; width: 0; height: 2px; background: var(--brand);
  transition: width .4s var(--ease);
}
.product:hover { background: var(--surface); }
.product:hover::after { width: 100%; }
.product-cat { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 2.5rem; }
.product h3 {
  font-size: 1.6rem;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.product p { color: var(--muted); font-size: .92rem; flex: 1; }
.product-links { display: flex; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.product-links a { display: inline-flex; align-items: center; gap: .35rem; font: 500 .78rem/1 var(--mono); color: var(--muted); transition: color .2s; }
.product-links a:hover { color: var(--cyan); }

/* Steps */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
  counter-reset: s;
}
.step { position: relative; padding-top: 1.75rem; border-top: 1px solid var(--line-2); }
.step::before {
  content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 3px; background: var(--brand);
}
.step-num { display: block; font: 700 2.6rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--line-2); margin-bottom: 1rem; }
.step h3 { font-size: 1.25rem; }
.step p { color: var(--muted); font-size: .95rem; }

/* Partners */
.partners { border-top: 1px solid var(--line); }
.partner-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 3rem;
}
.partner-list li {
  font: 600 clamp(1.05rem, 1.8vw, 1.4rem)/1.3 var(--display); letter-spacing: .02em; text-transform: uppercase;
  color: var(--dim); transition: color .3s;
}
.partner-list li:hover { color: var(--text); }

/* CTA */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(120deg, #0a2430 0%, #0b1a24 60%, #08121a 100%);
  border: 1px solid rgba(94, 227, 245, .3);
  clip-path: polygon(28px 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%, 0 28px);
}
.cta::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -60%; width: 60%; height: 220%;
  background: radial-gradient(closest-side, rgba(33, 211, 237, .35), transparent);
}
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--muted); margin: 0; max-width: 52ch; }

/* Services page */
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.prose p { color: var(--muted); font-size: 1.08rem; }
.prose p:first-child { color: var(--text); font-size: 1.2rem; }
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(33, 211, 237, .4); }

.service-list { display: grid; gap: 1.25rem; }
.service {
  display: grid; grid-template-columns: 180px 1fr 300px; gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--surface); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service:target { border-color: var(--blue-2); }
.service-head { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.service-num { font-size: .8rem; color: var(--dim); letter-spacing: .1em; }
.service-body .lead { color: var(--text); }
.service-body p:last-child { color: var(--muted); margin: 0; }
.service-side { display: flex; flex-direction: column; gap: 1.5rem; justify-content: space-between; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; color: var(--muted); }
.checks .i { color: var(--cyan); margin-top: .22em; }
.checks-lg li { font-size: 1.05rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.checks-lg li:last-child { border-bottom: 0; }
.checks-lg strong { color: var(--text); }

/* About */
.facts { margin: 2rem 0 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts div { display: flex; align-items: baseline; gap: 1rem; padding: 1.1rem 1.3rem; background: var(--bg); }
.facts dt { font: 700 2.4rem/1 var(--display); background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; min-width: 2ch; }
.facts dd { margin: 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.contact-info h2, .form-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.info-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1.4rem; }
.info-list li { display: flex; gap: 1rem; color: var(--muted); }
.info-list .label { display: block; font: 500 .72rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: .2rem; }
.info-list a { color: var(--text); font-weight: 500; }
.info-list a:hover { color: var(--cyan); }

.form-card, .panel {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--surface); border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.panel + .panel { margin-top: 1.25rem; }
.panel p { color: var(--muted); }
.panel-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.panel-row p { margin: 0; }
.form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font: 500 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .55rem; }
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem;
  font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 0;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(33, 211, 237, .2); }
.field.invalid input, .field.invalid textarea { border-color: var(--err); }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form-foot p { margin: 0; max-width: 34ch; }
.captcha { display: flex; align-items: stretch; max-width: 260px; }
.captcha-sum {
  display: flex; align-items: center; padding: 0 1rem; white-space: nowrap;
  font-size: 1.05rem; color: var(--cyan);
  background: rgba(33, 211, 237, .1); border: 1px solid var(--line-2); border-right: 0;
}
.captcha input { width: 100%; font-family: var(--mono); font-size: 1.05rem; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: .6rem; align-items: flex-start; padding: 1rem 1.1rem; margin-top: 1.25rem; font-size: .95rem; }
.alert .i { margin-top: .2em; }
.alert-ok { background: rgba(61, 220, 151, .08); border: 1px solid rgba(61, 220, 151, .35); color: #b8f3d7; }
.alert-err { background: rgba(255, 107, 122, .08); border: 1px solid rgba(255, 107, 122, .35); color: #ffc6cc; }

/* ---------- Games ---------- */
.btn-disabled { cursor: default; opacity: .7; }
.btn-disabled:hover { transform: none; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line-2); }
.c-wip { color: #ffc65c; }

.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.game-card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  transition: border-color .3s, transform .4s var(--ease);
}
.game-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.game-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.75rem; }
.game-card-body p { color: var(--muted); }
.game-card-body .link-arrow { margin-top: auto; }
.game-genre { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); margin-bottom: .6rem; }
.game-card h3 { font-size: 1.8rem; margin-bottom: .35em; }
.game-tagline { color: var(--text) !important; font-size: 1.05rem; }

/* Cover art: gradient, grid and a big glyph (placeholder until there are screenshots) */
.game-cover {
  --c1: #13b8d6; --c2: #7ce9f8; --c3: #0b1a24;
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 16 / 9;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem;
  padding: 1.5rem 1.75rem;
  background:
    radial-gradient(70% 90% at 85% 10%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 70%),
    linear-gradient(135deg, var(--c1) 0%, var(--c3) 75%);
  border-bottom: 1px solid var(--line-2);
}
.game-cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(200deg, #000 10%, transparent 70%);
  -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 70%);
}
.game-cover::after {
  content: ""; position: absolute; inset: auto 0 0; height: 55%; z-index: -1;
  background: linear-gradient(transparent, rgba(5, 7, 13, .75));
}
.game-cover-icon {
  position: absolute; right: -4%; top: -8%; z-index: -1;
  width: 62%; aspect-ratio: 1; color: rgba(255, 255, 255, .16);
  transform: rotate(-8deg);
}
.game-cover-icon .i { width: 100%; height: 100%; stroke-width: 1.1; }
.game-cover-name {
  font: 700 clamp(1.8rem, 4vw, 2.8rem)/1 var(--display); letter-spacing: -.01em;
  text-transform: uppercase; color: #fff; text-shadow: 0 6px 30px rgba(0, 0, 0, .5);
}
.game-cover-status {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem;
  font: 500 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: .45rem .6rem; color: #fff;
  background: rgba(5, 7, 13, .55); border: 1px solid rgba(255, 255, 255, .2);
}
.game-cover-status .pulse { width: 7px; height: 7px; background: #ffc65c; animation: none; }
.game-cover-nexora { --c1: #3a2bff; --c2: #19d3ff; --c3: #0a0d2a; }
.game-cover-museum { --c1: #b8741a; --c2: #ffd27a; --c3: #1d1208; }

.game-list { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
.game {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.game:nth-child(even) .game-cover { order: 2; }
.game-cover-lg {
  border: 1px solid var(--line-2);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 28px 100%, 0 calc(100% - 28px));
  aspect-ratio: 4 / 3;
  position: sticky; top: calc(var(--header-h) + 24px);
}
.game-body > p:not(.eyebrow):not(.lead) { color: var(--muted); }
.game-body .lead { color: var(--text); }
.game-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 1.75rem 0; background: var(--line); border: 1px solid var(--line); }
.game-facts div { padding: .9rem 1rem; background: var(--bg); }
.game-facts dt { font: 500 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: .45rem; }
.game-facts dd { margin: 0; font-weight: 600; }
.game-sub { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 1rem; }
.game-body .checks { margin-bottom: 2rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(3rem, 6vw, 5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 2.5rem; }
.footer-brand img { width: 180px; height: auto; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--muted); font-size: .92rem; max-width: 38ch; }
.part-of { font-size: .85rem !important; }
.part-of a { color: var(--cyan); }
.footer-title { font: 600 .75rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 1.25rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; font-size: .93rem; }
.site-footer ul a { color: var(--muted); transition: color .2s; }
.site-footer ul a:hover { color: var(--text); }
.footer-lang { display: flex; gap: .4rem; margin-top: 1.5rem; }
.footer-lang a {
  font: 600 .72rem/1 var(--mono); padding: .45rem .55rem; color: var(--muted);
  border: 1px solid var(--line-2); transition: color .2s, border-color .2s;
}
.footer-lang a:hover, .footer-lang a[aria-current] { color: var(--text); border-color: var(--blue-2); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-block: 1.5rem;
  border-top: 1px solid var(--line); font-size: .82rem; color: var(--dim);
}

/* ---------- Cookie notice ---------- */
.cookie-notice {
  position: fixed; z-index: 60; left: 50%; bottom: 16px;
  width: min(680px, calc(100% - 32px));
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1rem 1rem 1rem 1.25rem;
  background: rgba(12, 18, 32, .95); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, .8);
  transform: translate(-50%, 0);
  animation: rise .5s var(--ease);
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0; font-size: .88rem; color: var(--muted); }
.cookie-notice strong { color: var(--text); margin-right: .25rem; }
.cookie-notice a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 20px); } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .service { grid-template-columns: 1fr 1fr; }
  .service-head { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .nav-open .site-header { background: var(--bg); }
  .nav-open { overflow: hidden; }
  .main-nav ul { flex-direction: column; }
  .main-nav ul a { padding: .95rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .main-nav ul a[aria-current="page"]::after { left: 0; right: auto; width: 32px; bottom: -1px; }
  .nav-actions .btn { flex: 1; }
  .header-tools { margin-left: auto; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .console { transform: none; max-width: 560px; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 1.25rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .games, .game { grid-template-columns: 1fr; }
  .game:nth-child(even) .game-cover { order: 0; }
  .game-cover-lg { position: relative; top: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 15.5px; }
  .brand img { width: 120px; }
  .products { grid-template-columns: 1fr; }
  .product-cat { margin-bottom: 1.25rem; }
  .steps { grid-template-columns: 1fr; }
  .service { grid-template-columns: 1fr; }
  .service-head { flex-wrap: wrap; }
  .field-row { grid-template-columns: 1fr; }
  .game-facts { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero .btn-row .btn { flex: 1 1 100%; }
  .console-body { font-size: .78rem; padding: 1rem; }
  .cookie-notice { flex-direction: column; align-items: stretch; }
  .hero-z { width: 110vw; right: -40vw; top: 4%; opacity: .5; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
