/* ============================================================
   Quartio — cosmic, sharp
   deep-space void + starfield + HUD-measured quasar.
   sharp grotesque display (Archivo wide), zero radii, reticle
   details. the sample audit = big glowing numerals in the dark.
   semantic accents: leak red / fix green.
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("fonts/Archivo-var.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --void: #04080a;
  --void-2: #070e12;
  --starlight: #f2f4e9;
  --starlight-soft: #9ba59b;
  --hairline: rgba(242, 244, 233, 0.16);
  --hairline-hard: rgba(242, 244, 233, 0.3);
  --green: #35e8a6;
  --green-deep: #0d6b4f;
  --green-glow: rgba(53, 232, 166, 0.45);
  --red: #ee5f45;
  --gold: #d9b36a;
  --paper: #f4efe4;
  --paper-ink: #17140f;
  --paper-soft: #5a5142;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 36rem;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --cut: 14px; /* corner-cut size for HUD cards */
}

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

html { scroll-behavior: smooth; background: var(--void); }

body {
  background:
    radial-gradient(60rem 40rem at 78% -8rem, rgba(53, 232, 166, 0.06), transparent 60%),
    radial-gradient(50rem 36rem at -10% 30rem, rgba(38, 108, 122, 0.07), transparent 65%),
    radial-gradient(46rem 40rem at 60% 120rem, rgba(38, 108, 122, 0.05), transparent 65%),
    var(--void);
  color: var(--starlight);
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.04rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* language switching */
.en, .pl { display: none; }
html[data-lang="pl"] .pl { display: inline; }
html[data-lang="en"] .en { display: inline; }

::selection { background: var(--green); color: var(--void); }

/* grain */
.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* starfield (populated by site.js) */
.cosmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.star {
  position: absolute; border-radius: 50%;
  background: var(--starlight);
  animation: twinkle var(--tw, 5s) ease-in-out var(--twd, 0s) infinite;
}
.star--gold { background: var(--gold); }
.star--green { background: var(--green); }
.meteor {
  position: absolute; width: 140px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242, 244, 233, 0.9));
  transform: rotate(32deg);
  opacity: 0;
  animation: meteor var(--mdur, 13s) linear var(--mdel, 4s) infinite;
}
@keyframes meteor {
  0%, 96% { opacity: 0; transform: rotate(32deg) translateX(0); }
  96.5% { opacity: 0.9; }
  100% { opacity: 0; transform: rotate(32deg) translateX(46vw); }
}
@keyframes twinkle {
  0%, 100% { opacity: var(--o, 0.7); }
  50% { opacity: 0.12; }
}

main, .topbar, .footer { position: relative; z-index: 1; }

/* ============ topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--void) 76%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.wordmark {
  font-weight: 740; font-stretch: 122%;
  letter-spacing: 0.2em; font-size: 1rem;
  color: var(--starlight); text-decoration: none;
}
.wordmark-dot { color: var(--green); text-shadow: 0 0 12px var(--green-glow); }
.topnav { display: flex; gap: 0.75rem; align-items: center; }
.lang-toggle {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em;
  background: none; border: 1px solid var(--hairline-hard);
  color: var(--starlight-soft); padding: 0.44rem 0.75rem; cursor: pointer;
}
.lang-toggle:hover { border-color: var(--green); color: var(--green); }
html[data-lang="pl"] .lang-toggle .lang-en { display: none; }
html[data-lang="en"] .lang-toggle .lang-pl { display: none; }
html[data-lang="pl"] .lang-toggle .lang-pl { display: inline; }
html[data-lang="en"] .lang-toggle .lang-en { display: inline; }

/* buttons — clean sharp rectangles */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  font-family: var(--mono); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--void); background: var(--green);
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--green);
  transition: background 140ms ease, border-color 140ms ease;
}
.btn::after { content: "→"; transition: transform 160ms ease; }
.btn:hover { background: #4ff0b4; border-color: #4ff0b4; }
.btn:hover::after { transform: translateX(4px); }
.btn-small {
  padding: 0.46rem 0.85rem; font-size: 0.74rem;
  background: transparent; color: var(--green); border-color: rgba(53, 232, 166, 0.5);
}
.btn-small:hover { background: rgba(53, 232, 166, 0.1); border-color: var(--green); }
.btn-big { font-size: 1rem; padding: 1.05rem 2rem; }

/* ============ hero ============ */
.hero {
  position: relative;
  padding: clamp(4.5rem, 12vh, 8rem) var(--pad) clamp(4rem, 10vh, 6.5rem);
  max-width: 76rem; margin: 0 auto;
}
/* technical column grid */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--hairline) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 85%);
}

/* the quasar — measured by a reticle */
.quasar {
  position: absolute; right: clamp(-6rem, 2vw, 4rem); top: 3.5rem;
  width: 30rem; height: 30rem; pointer-events: none;
  will-change: transform;
}
.quasar::before, .quasar::after {
  content: ""; position: absolute; background: var(--hairline-hard);
}
.quasar::before { left: 0; right: 0; top: 50%; height: 1px; }
.quasar::after { top: 0; bottom: 0; left: 50%; width: 1px; }
.quasar-core {
  position: absolute; inset: 0;
  background:
    radial-gradient(closest-side, rgba(242, 244, 233, 0.95) 0%, rgba(53, 232, 166, 0.4) 5%, rgba(53, 232, 166, 0.1) 16%, transparent 50%);
}
.quasar-ring {
  position: absolute; left: 50%; top: 50%; width: 24rem; height: 24rem;
  margin: -12rem 0 0 -12rem;
  border-radius: 50%;
  border: 1px solid rgba(53, 232, 166, 0.55);
  border-left-color: transparent; border-right-color: rgba(217, 179, 106, 0.35);
  transform: rotateX(74deg) rotateZ(-12deg);
  animation: ringspin 46s linear infinite;
}
.quasar-ring--2 {
  width: 17rem; height: 17rem; margin: -8.5rem 0 0 -8.5rem;
  border-color: rgba(242, 244, 233, 0.25);
  border-top-color: transparent;
  animation-duration: 30s; animation-direction: reverse;
}
@keyframes ringspin { to { transform: rotateX(74deg) rotateZ(348deg); } }
.quasar-core { animation: quasarin 1.4s cubic-bezier(0.2, 0.7, 0, 1) both, breathe 5.5s ease-in-out 1.4s infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.06); opacity: 1; }
}
.quasar-plane {
  position: absolute; left: 50%; top: 50%; width: 24rem; height: 24rem;
  margin: -12rem 0 0 -12rem;
  transform: rotateX(74deg) rotateZ(-12deg);
}
.quasar-orbit { width: 100%; height: 100%; animation: orbit 9s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.quasar-orbiter {
  position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 12px var(--green-glow), 0 0 4px var(--green);
}
.quasar-glint {
  position: absolute; left: 50%; top: 50%; width: 7rem; height: 7rem;
  margin: -3.5rem 0 0 -3.5rem; opacity: 0;
  background:
    linear-gradient(to right, transparent 47%, rgba(242, 244, 233, 0.9) 50%, transparent 53%),
    linear-gradient(to bottom, transparent 47%, rgba(242, 244, 233, 0.9) 50%, transparent 53%);
  animation: glint 8s ease-in-out 3s infinite;
}
@keyframes glint {
  0%, 86%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  90% { opacity: 0.8; transform: scale(1) rotate(8deg); }
  94% { opacity: 0; transform: scale(1.25) rotate(14deg); }
}
.quasar-ring { animation: ringspin 22s linear infinite, quasarin 1.6s cubic-bezier(0.2, 0.7, 0, 1) both; }
.quasar-ring--2 { animation: ringspin 14s linear infinite reverse, quasarin 1.8s cubic-bezier(0.2, 0.7, 0, 1) both; }
.quasar-jet { animation: quasarin 2s cubic-bezier(0.2, 0.7, 0, 1) both, jetshimmer 6s ease-in-out 2s infinite; }
@keyframes jetshimmer {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}
@keyframes quasarin { from { opacity: 0; } to { opacity: 1; } }
.quasar-jet {
  position: absolute; left: 50%; top: 50%; width: 1px; height: 27rem;
  margin: -13.5rem 0 0 -0.5px;
  background: linear-gradient(to bottom, transparent, rgba(242, 244, 233, 0.55) 35%, rgba(53, 232, 166, 0.7) 50%, rgba(242, 244, 233, 0.55) 65%, transparent);
}

.kicker {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--green); margin-bottom: 1.8rem;
  display: inline-block; border: 1px solid rgba(53, 232, 166, 0.35);
  padding: 0.4rem 0.75rem;
}
.hero h1 {
  font-weight: 700; font-stretch: 118%;
  font-size: clamp(2.1rem, 5.4vw, 4.3rem);
  line-height: 1.01; letter-spacing: -0.022em;
  max-width: 19ch;
  position: relative; z-index: 1;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--green); text-shadow: 0 0 28px var(--green-glow); }
.u-mark {
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.055em;
  text-underline-offset: 0.16em;
}
.hero-sub {
  margin-top: 1.9rem; max-width: var(--measure);
  font-size: 1.08rem; color: var(--starlight-soft);
  position: relative; z-index: 1;
}
.hero-integrations {
  margin-top: 1.1rem; max-width: var(--measure);
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.6;
  color: var(--starlight-soft); position: relative; z-index: 1;
}
.hero-cta { margin-top: 2.4rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; position: relative; z-index: 1; }
.plain-mail {
  font-family: var(--mono); font-size: 0.88rem; color: var(--starlight-soft);
  text-decoration: none; border-bottom: 1px solid var(--hairline-hard);
}
.plain-mail:hover { color: var(--green); border-color: var(--green); }

/* hero instrument strip */
.hero-strip {
  margin-top: clamp(2.6rem, 6vh, 4rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--hairline);
  position: relative; z-index: 1;
  background: color-mix(in srgb, var(--void) 55%, transparent);
  backdrop-filter: blur(3px);
}
.strip-cell { padding: 0.95rem 1.2rem; display: flex; flex-direction: column; gap: 0.3rem; }
.strip-cell + .strip-cell { border-left: 1px solid var(--hairline); }
.strip-label {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--green);
}
.strip-val { font-size: 0.9rem; color: var(--starlight-soft); line-height: 1.45; }

.pulse {
  width: 7px; height: 7px; background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ============ engine console ============ */
.console { max-width: 76rem; margin: 0 auto; padding: 0 var(--pad) clamp(3.5rem, 8vh, 5.5rem); }
.console-panel {
  border: 1px solid rgba(53, 232, 166, 0.3);
  background: color-mix(in srgb, var(--void-2) 88%, transparent);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 40px rgba(53, 232, 166, 0.06), inset 0 0 40px rgba(53, 232, 166, 0.03);
}
.console-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.8rem 1.3rem;
  border-bottom: 1px solid rgba(53, 232, 166, 0.2);
  font-family: var(--mono);
}
.console-title { color: var(--green); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.6rem; }
.console-mark {
  width: 1.15rem; height: 1.15rem; display: inline-block;
  background: var(--green);
  -webkit-mask: url("logo-mark.svg") no-repeat center / contain;
  mask: url("logo-mark.svg") no-repeat center / contain;
}
.label-ic { width: 0.85rem; height: 0.85rem; color: var(--green); flex: none; }
.console-label, .label-wrap { display: inline-flex; align-items: center; gap: 0.5rem; }
.tag-demo {
  font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--hairline-hard); padding: 0.06rem 0.4rem;
  color: var(--starlight-soft);
}
.console-grid { display: grid; grid-template-columns: 1fr 1.15fr 1.45fr; }
.console-col { padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.console-col + .console-col { border-left: 1px solid var(--hairline); }
.console-label {
  font-family: var(--mono); font-weight: 500; font-size: 0.66rem;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--starlight-soft); margin-bottom: 1rem;
}
.console-state {
  display: flex; align-items: center; gap: 0.7rem;
  font-weight: 680; font-stretch: 114%; font-size: 1.55rem; letter-spacing: -0.01em;
  color: var(--starlight); margin-bottom: 1.1rem;
}
.console-rows { font-family: var(--mono); font-size: 0.78rem; }
.console-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.42rem 0; color: var(--starlight-soft);
}
.console-row + .console-row { border-top: 1px dashed var(--hairline); }
.c-val { color: var(--starlight); text-align: right; font-variant-numeric: tabular-nums; }
.cycle { list-style: none; }
.cycle li {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding: 0.55rem 0; font-size: 0.95rem; color: var(--starlight);
  border-bottom: 1px dashed var(--hairline);
}
.cycle li:last-child { border-bottom: none; }
.cycle-no { font-family: var(--mono); font-weight: 500; font-size: 0.74rem; color: var(--green); flex: none; }
.console-log { font-family: var(--mono); font-size: 0.79rem; line-height: 1.5; }
.audit-eta { color: var(--green); margin-left: 0.5rem; opacity: 0.85; }
.console-label--log { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.log-replay {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: none; border: 1px solid var(--hairline-hard); color: var(--starlight-soft);
  padding: 0.2rem 0.5rem; cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}
.log-replay:hover { color: var(--green); border-color: var(--green); }
.cycle li[data-step], .log-line[data-step] { cursor: pointer; transition: opacity 160ms ease, background 160ms ease, color 160ms ease; }
.cycle.filtering li:not(.hl), .console-log.filtering .log-line:not(.hl) { opacity: 0.3; }
.cycle li.hl { background: rgba(53, 232, 166, 0.06); }
.cycle li.hl .cycle-no { text-shadow: 0 0 10px var(--green-glow); }
.log-line.hl { background: rgba(53, 232, 166, 0.06); color: var(--green); }
.log-line.hl .log-t { text-shadow: 0 0 10px var(--green-glow); }
.log-line {
  display: flex; gap: 0.8rem; padding: 0.34rem 0; color: var(--starlight);
  opacity: 0; transform: translateY(5px);
  transition: opacity 260ms ease, transform 260ms ease;
}
.log-line.in { opacity: 1; transform: none; animation: logflash 700ms ease; }
@keyframes logflash {
  0% { background: rgba(53, 232, 166, 0.14); }
  100% { background: transparent; }
}
.log-t { color: var(--green); flex: none; font-variant-numeric: tabular-nums; }
.log-last::after {
  content: "\258D"; color: var(--green); margin-left: 0.4rem;
  animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ============ section titles ============ */
.section-title::before {
  content: "//"; font-family: var(--mono); font-weight: 500;
  color: var(--green); margin-right: 0.7rem; -webkit-text-stroke: 0;
}
.section-title {
  font-weight: 700; font-stretch: 116%;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  letter-spacing: -0.01em; text-transform: uppercase;
  max-width: 30ch; margin-bottom: 2.6rem;
}

/* ============ layers ladder ============ */
.layers { max-width: 76rem; margin: 0 auto; padding: 2rem var(--pad) 5rem; }
.path {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
  counter-reset: none;
}
.path-card {
  position: relative; min-width: 0;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--void-2) 72%, transparent);
  padding: 1.7rem 1.5rem 1.8rem;
  transition: border-color 200ms ease, background 200ms ease;
}
.path-card:hover { border-color: rgba(53, 232, 166, 0.45); background: rgba(53, 232, 166, 0.03); }
.path-card::after {
  content: "→"; position: absolute; right: -1.05rem; top: 2.4rem;
  font-family: var(--mono); color: var(--green); opacity: 0.7; z-index: 1;
}
.path-card:last-child::after { content: none; }
.path-no {
  position: absolute; top: 1.1rem; right: 1.2rem;
  font-family: var(--display); font-weight: 800; font-stretch: 125%;
  font-size: 2.5rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(242, 244, 233, 0.18);
  transition: -webkit-text-stroke-color 200ms ease;
}
.path-card:hover .path-no { -webkit-text-stroke-color: rgba(53, 232, 166, 0.6); }
.path-ic {
  width: 3.4rem; height: 3.4rem; margin-bottom: 1.2rem;
  color: var(--starlight-soft);
  transition: color 220ms ease;
  overflow: visible;
}
.path-card:hover .path-ic { color: var(--green); filter: drop-shadow(0 0 10px rgba(53, 232, 166, 0.35)); }
.path-ic .ic-accent { color: var(--green); stroke: var(--green); }
.path-ic g.ic-accent, .path-ic circle.ic-accent { fill: var(--green); }
.path-ic g[stroke].ic-accent { fill: none; }
.path-ic .ic-leak { fill: var(--red); }
.ic-sweep { transform-origin: 24px 24px; animation: sweep 5s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.path-name { font-weight: 660; font-stretch: 112%; font-size: 1.1rem; letter-spacing: 0.002em; color: var(--starlight); margin-bottom: 0.55rem; }
.path-desc { color: var(--starlight-soft); font-size: 0.93rem; line-height: 1.5; }

/* ============ flow diagram ============ */
.flow-wrap { margin-top: 3rem; }
.flow-cap-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem;
}
.flow-cap-row .flow-cap { margin-bottom: 0; }
.flow-run {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: none; border: 1px solid rgba(53, 232, 166, 0.5); color: var(--green);
  padding: 0.4rem 0.8rem; cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}
.flow-run:hover { background: rgba(53, 232, 166, 0.1); border-color: var(--green); }
.flow-run:disabled { opacity: 0.45; cursor: default; }
.flow-cap {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--green);
  margin-bottom: 1.4rem;
}
.flow-svg { width: 100%; height: auto; display: block; }
.flow-svg--v { max-width: 42rem; margin: 0 auto; min-width: 0; }
.fl-ic { color: var(--starlight-soft); }
.fl-ic--green { color: var(--green); }
.fl-ic .ic-accent { stroke: var(--green); fill: none; }
.fl-ic circle.ic-accent { fill: var(--green); stroke: none; }
.fl-ic .ic-leak { fill: var(--red); }
.flow--nomark { marker-end: none; }
.fl-zone {
  fill: rgba(53, 232, 166, 0.025);
  stroke: rgba(53, 232, 166, 0.3);
  stroke-dasharray: 7 5;
  pointer-events: none;
}
.fl-zone-lbl {
  font-family: var(--mono); font-weight: 500; font-size: 10px;
  letter-spacing: 0.2em; fill: var(--green);
}
.fl-loop-lbl {
  font-family: var(--mono); font-weight: 500; font-size: 10px;
  letter-spacing: 0.22em; fill: var(--green); opacity: 0.85;
}
.loop-dot {
  fill: var(--green);
  filter: drop-shadow(0 0 6px rgba(53, 232, 166, 0.8));
}
.fl-hit { cursor: pointer; }
.fl-hit .fl-node, .fl-hit .fl-gate, .fl-hit .fl-you { transition: stroke 160ms ease, filter 160ms ease; }
.fl-hit:hover .fl-node, .fl-hit:hover .fl-you, .fl-hit.run-hl .fl-node, .fl-hit.run-hl .fl-you {
  stroke: var(--green);
  filter: drop-shadow(0 0 10px rgba(53, 232, 166, 0.3));
}
.fl-hit:hover .fl-gate, .fl-hit.run-hl .fl-gate { filter: drop-shadow(0 0 10px rgba(53, 232, 166, 0.4)); }
.fl-hit:hover .fl-ic, .fl-hit.run-hl .fl-ic { color: var(--green); }
.fl-logo { color: var(--green); }
.fl-logo path { fill: currentColor; }
.fl-hit--engine:hover .fl-logo {
  transform-box: fill-box; transform-origin: center;
  animation: logospin 8s linear infinite;
}
@keyframes logospin { to { transform: rotate(360deg); } }
.flow-readout {
  max-width: 42rem; margin: 1.2rem auto 0;
  display: flex; gap: 0.7rem; align-items: baseline;
  font-family: var(--mono); font-size: 0.82rem; line-height: 1.5;
  color: var(--starlight); min-height: 2.6em;
  border-top: 1px dashed var(--hairline); padding-top: 0.9rem;
}
.readout-tick { color: var(--green); flex: none; }
.fl-node { fill: color-mix(in srgb, var(--void-2) 85%, transparent); stroke: var(--hairline-hard); }
.fl-node--hot { stroke: rgba(53, 232, 166, 0.55); filter: drop-shadow(0 0 14px rgba(53, 232, 166, 0.18)); }
.fl-gate { fill: rgba(53, 232, 166, 0.07); stroke: rgba(53, 232, 166, 0.55); }
.fl-you { fill: color-mix(in srgb, var(--void-2) 85%, transparent); stroke: var(--starlight-soft); }
.fl-title { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.14em; fill: var(--starlight); }
.fl-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; fill: var(--starlight-soft); }
.fl-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; fill: var(--starlight-soft); text-transform: uppercase; }
.fl-pulse { fill: var(--green); animation: pulse 2.4s ease-in-out infinite; }
.flow {
  fill: none; stroke: var(--green); stroke-width: 1.2; opacity: 0.8;
  stroke-dasharray: 5 6; marker-end: url(#arr);
  animation: flowdash 1.3s linear infinite;
}
.flow--dim { opacity: 0.45; animation-duration: 2.1s; }
@keyframes flowdash { to { stroke-dashoffset: -11; } }

/* ============ night band → deep field ============ */
.night {
  background:
    radial-gradient(48rem 30rem at 22% 20%, rgba(53, 232, 166, 0.05), transparent 60%),
    radial-gradient(40rem 26rem at 85% 80%, rgba(38, 108, 122, 0.07), transparent 65%),
    var(--void-2);
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
}
.night-inner { max-width: 76rem; margin: 0 auto; padding: clamp(4rem, 10vh, 7rem) var(--pad); }
.night-title {
  font-weight: 720; font-stretch: 118%;
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  line-height: 1.02; letter-spacing: -0.02em;
  max-width: 17ch; text-wrap: balance;
}
.night-title em { font-style: normal; color: var(--green); text-shadow: 0 0 26px var(--green-glow); }

.daynight {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin: 3rem 0 3.4rem; max-width: 54rem;
  border: 1px solid var(--hairline);
}
.dn-col { padding: 1.5rem 1.6rem; }
.dn-col + .dn-col { border-left: 1px solid var(--hairline); background: rgba(53, 232, 166, 0.025); }
.dn-col h3 {
  font-family: var(--mono); font-weight: 500; font-size: 0.76rem;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.8rem;
}
.dn-col:last-child h3 { color: var(--green); }
.dn-col p { color: var(--starlight); font-size: 1rem; opacity: 0.85; }

/* ============ audit big numbers ============ */
.audit-stats { max-width: none; }
.audit-head {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--starlight-soft);
  padding-bottom: 0.85rem; border-bottom: 1px solid var(--hairline-hard);
}
.audit-head-r { color: var(--green); }
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.stat {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 2.2rem 1.6rem 2rem 0;
  min-width: 0;
}
.stat:nth-child(even) { border-left: 1px solid var(--hairline); padding-left: 1.8rem; padding-right: 0; }
.stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
.stat-kind {
  font-family: var(--mono); font-weight: 500; font-size: 0.68rem;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.stat-leak .stat-kind { color: var(--red); }
.stat-fix .stat-kind { color: var(--green); }
.stat-num {
  font-family: var(--display); font-weight: 800; font-stretch: 114%;
  font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: 0.95;
  letter-spacing: -0.04em; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat-leak .stat-num { color: var(--red); text-shadow: 0 0 34px rgba(238, 95, 69, 0.3); }
.stat-fix .stat-num { color: var(--green); text-shadow: 0 0 34px var(--green-glow); }
.stat-unit { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--starlight-soft); }
.stat-label { font-size: 0.95rem; color: var(--starlight-soft); line-height: 1.45; max-width: 24rem; }
.audit-total {
  display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap;
  padding: 1.9rem 0 2rem;
  border-top: 1px solid var(--hairline-hard);
}
.audit-total .stat-kind { color: var(--red); }
.total-num {
  font-family: var(--display); font-weight: 800; font-stretch: 114%;
  font-size: clamp(3.2rem, 8.6vw, 6.8rem); line-height: 0.92;
  letter-spacing: -0.045em; font-variant-numeric: tabular-nums;
  color: var(--red); text-shadow: 0 0 50px rgba(238, 95, 69, 0.35);
  white-space: nowrap;
}
.total-unit { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--starlight-soft); }
.total-sub { opacity: 0.75; margin-left: 0.6rem; }
.audit-foot {
  font-family: var(--mono); font-size: 0.72rem; color: var(--starlight-soft);
  padding-top: 0.85rem; border-top: 1px solid var(--hairline-hard);
}
.chip-shipped {
  display: inline-block; margin-left: 0.5rem; padding: 0.06rem 0.4rem;
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(53, 232, 166, 0.5);
}
.dn-time { float: right; color: var(--starlight-soft); opacity: 0.7; letter-spacing: 0.1em; }

/* ============ principles ============ */
.principles {
  max-width: 76rem; margin: 0 auto;
  padding: clamp(4rem, 9vh, 6rem) var(--pad);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--hairline);
}
.principle:nth-child(2) { border-left: 1px solid var(--hairline); }
.principle:nth-child(3), .principle:nth-child(4) { border-top: 1px solid var(--hairline); }
.principle:nth-child(4) { border-left: 1px solid var(--hairline); }
.principle { padding: 1.9rem 1.8rem; transition: background 180ms ease; }
.principle:hover { background: rgba(53, 232, 166, 0.025); }
.principle h3 {
  font-weight: 660; font-stretch: 112%;
  font-size: 1.16rem; letter-spacing: -0.005em;
  margin-bottom: 0.75rem; color: var(--starlight);
}
.principle p { color: var(--starlight-soft); font-size: 0.96rem; }

/* ============ data security ============ */
.security {
  max-width: 76rem; margin: 0 auto;
  padding: 0 var(--pad) clamp(4rem, 9vh, 6rem);
}
.security-list { list-style: none; border: 1px solid var(--hairline); max-width: 54rem; }
.security-list li {
  padding: 1.05rem 1.4rem 1.05rem 3rem;
  color: var(--starlight); font-size: 1rem;
  position: relative;
}
.security-list li + li { border-top: 1px solid var(--hairline); }
.security-list li::before {
  content: "✓"; position: absolute; left: 1.25rem; top: 1.05rem;
  font-family: var(--mono); color: var(--green); font-weight: 500;
}

/* ============ pull quote — the statement ============ */
.pullquote {
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  background:
    radial-gradient(50rem 26rem at 50% 130%, rgba(53, 232, 166, 0.07), transparent 65%),
    var(--void-2);
  padding: clamp(4rem, 10vh, 6.5rem) var(--pad);
  text-align: center;
}
.pq-label {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--green);
  margin-bottom: 1.6rem;
}
.pullquote blockquote {
  font-weight: 740; font-stretch: 120%;
  font-size: clamp(1.7rem, 4.6vw, 3.3rem); line-height: 1.04;
  letter-spacing: -0.02em; max-width: 22ch; margin: 0 auto;
  color: var(--starlight); text-wrap: balance;
}
.pq-sub { margin-top: 1.5rem; color: var(--starlight-soft); max-width: 40rem; margin-inline: auto; }

/* ============ contact ============ */
.contact {
  max-width: 76rem; margin: 0 auto; text-align: center;
  padding: clamp(4.5rem, 11vh, 7rem) var(--pad);
}
.contact h2 {
  font-weight: 700; font-stretch: 116%;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  letter-spacing: -0.01em; margin-bottom: 1.2rem; text-wrap: balance;
}

.contact-panel {
  position: relative; max-width: 46rem; margin: 0 auto;
  padding: clamp(2.2rem, 5vh, 3.4rem) clamp(1.4rem, 4vw, 3rem);
  border: 1px solid var(--hairline);
}
.contact-panel::before, .contact-panel::after {
  font-family: var(--mono); color: var(--green); font-size: 0.9rem;
  position: absolute; opacity: 0.8;
}
.contact-panel::before { content: "+"; left: -0.32rem; top: -0.72rem; }
.contact-panel::after { content: "+"; right: -0.32rem; bottom: -0.72rem; }

/* ============ footer ============ */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 2.6rem var(--pad) 3rem; max-width: 76rem; margin: 0 auto;
}
.boiler { color: var(--starlight-soft); font-size: 0.9rem; max-width: 52rem; }
.footer-line {
  margin-top: 2rem; display: flex; gap: 2rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em;
  color: var(--starlight-soft);
}
.footer-line a { color: var(--starlight-soft); text-decoration: none; border-bottom: 1px solid var(--hairline-hard); }
.footer-line a:hover { color: var(--green); border-color: var(--green); }

.btn:focus-visible, .lang-toggle:focus-visible, .plain-mail:focus-visible, a:focus-visible {
  outline: 2px solid var(--green); outline-offset: 3px;
}
html { scrollbar-width: thin; scrollbar-color: rgba(53, 232, 166, 0.4) var(--void); }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: rgba(53, 232, 166, 0.35); border: 2px solid var(--void); }

/* ============ reveal animation — fast, sharp ============ */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 420ms cubic-bezier(0.2, 0.7, 0, 1), transform 420ms cubic-bezier(0.2, 0.7, 0, 1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 80ms; }
.d2 { transition-delay: 160ms; }
.d3 { transition-delay: 240ms; }
.d4 { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse, .star, .quasar-ring, .quasar-core, .quasar-jet, .meteor, .log-last::after, .ic-sweep, .flow, .fl-pulse, .quasar-orbit, .quasar-glint, .fl-hit--engine:hover .fl-logo { animation: none; }
  .loop-dot { display: none; }
  .quasar-glint { opacity: 0; }
  .log-line { transition: none; }
  .log-line.in { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ responsive ============ */
@media (max-width: 44rem) {
  .path { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none !important; padding-left: 0 !important; }
  .stat + .stat { border-top: 1px solid var(--hairline); }
  .total-num { white-space: normal; }
}
@media (max-width: 60rem) {
  .console-grid { grid-template-columns: 1fr; }
  .console-col + .console-col { border-left: none; border-top: 1px solid var(--hairline); }
  .quasar { right: -12rem; top: -2rem; opacity: 0.65; }
  .hero::before { display: none; }
  .path { grid-template-columns: 1fr 1fr; }
  .path-card::after { content: none; }
  .hero-strip { grid-template-columns: 1fr; }
  .strip-cell + .strip-cell { border-left: none; border-top: 1px solid var(--hairline); }
  .principles { grid-template-columns: 1fr; }
  .principle + .principle { border-left: none; border-top: 1px solid var(--hairline); }
  .daynight { grid-template-columns: 1fr; }
  .dn-col + .dn-col { border-left: none; border-top: 1px solid var(--hairline); }
}
