/* ═══════════════════════════════════════════════════════════
   Flopsar — design system
   ═══════════════════════════════════════════════════════════ */

:root {
  /* palette */
  --bg: #060a0f;
  --bg-elev: #0a1017;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.055);
  --border: rgba(148, 190, 175, 0.14);
  --border-strong: rgba(148, 190, 175, 0.26);
  --text: #e8f0ec;
  --text-2: #9fb2ab;
  --text-3: #64756f;
  --accent: #34e39a;
  --accent-2: #53d8f5;
  --accent-dim: rgba(52, 227, 154, 0.14);
  --red: #ff6b6b;
  --amber: #ffc76b;
  --grad: linear-gradient(92deg, #34e39a 0%, #4be3c3 48%, #53d8f5 100%);

  /* type */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

html { overflow-x: clip; }

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

/* Elementy gridów nie mogą rozpychać układu ponad szerokość viewportu
   (domyślne min-width:auto pozwala szerokim dzieciom rozciągać kolumny 1fr) */
.hero-inner > *, .pillars > *, .bento > *, .steps > li,
.arch > *, .compare > *, .footer-inner > * { min-width: 0; }

::selection { background: rgba(52, 227, 154, 0.3); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* film-grain overlay */
.noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35;
  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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.02 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── typography ─── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.1; }
h3 { font-size: 1.22rem; }

em.grad, .grad {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lede { font-size: 1.13rem; color: var(--text-2); max-width: 540px; }

/* ─── reveal-on-scroll ─── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ═══════════════ buttons ═══════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }

.btn-primary {
  color: #04140c;
  background: var(--grad);
  box-shadow: 0 0 0 1px rgba(52, 227, 154, 0.25), 0 8px 32px -8px rgba(52, 227, 154, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(52, 227, 154, 0.4), 0 14px 44px -8px rgba(52, 227, 154, 0.6); }

.btn-outline {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateY(-2px); }

.btn-ghost { color: var(--text-2); background: transparent; padding: 10px 14px; }
.btn-ghost:hover { color: var(--text); }

/* ═══════════════ nav ═══════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 10, 15, 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 26px; height: 26px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.28rem;
  letter-spacing: -0.03em; color: var(--text);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 12px 24px 24px;
  background: rgba(6, 10, 15, 0.96); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a { color: var(--text-2); text-decoration: none; padding: 10px 0; font-weight: 500; }
.nav-mobile a.btn { justify-content: center; color: #04140c; margin-top: 10px; }
.nav-mobile.open { display: flex; }

/* ═══════════════ hero ═══════════════ */
.hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 40px; overflow: hidden; }

.hero-glow {
  position: absolute; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 42% at 38% 40%, rgba(52, 227, 154, 0.16), transparent 70%),
    radial-gradient(ellipse 44% 38% at 66% 34%, rgba(83, 216, 245, 0.12), transparent 70%);
  filter: blur(12px);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 190, 175, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 190, 175, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 72% 55% at 50% 22%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 72% 55% at 50% 22%, black 30%, transparent 75%);
}

.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center;
}

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; margin-bottom: 26px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--surface); backdrop-filter: blur(8px);
  color: var(--text-2); text-decoration: none;
  font-family: var(--font-mono); font-size: 0.78rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.pill:hover { border-color: var(--accent); color: var(--text); }
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-copy h1 { margin-bottom: 22px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero-props { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin-top: 30px; }
.hero-props li { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-2); }
.check {
  width: 17px; height: 17px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dim); position: relative;
}
.check::after {
  content: ""; position: absolute; left: 5.5px; top: 4px;
  width: 4px; height: 7px;
  border: solid var(--accent); border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

/* ── hero visual: execution stack window ── */
.hero-visual { position: relative; }

.stack-window {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.92), rgba(9, 14, 20, 0.92));
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(52, 227, 154, 0.06), 0 0 120px -40px rgba(52, 227, 154, 0.35);
  overflow: hidden;
}
.stack-titlebar {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.tb-dot { width: 10px; height: 10px; border-radius: 50%; }
.tb-dot.red { background: #ff5f57; } .tb-dot.yellow { background: #febc2e; } .tb-dot.green { background: #28c840; }
.tb-title {
  margin-left: 8px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tb-badge {
  margin-left: auto; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em;
  color: var(--accent); background: var(--accent-dim);
  padding: 3px 9px; border-radius: 999px;
}

.stack-body { padding: 14px 10px 16px; font-family: var(--font-mono); font-size: 0.8rem; }
.stack-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px calc(10px + var(--depth) * 22px);
  border-radius: 8px;
  opacity: 0; transform: translateX(-8px);
  animation: rowIn 0.4s ease forwards;
}
.stack-row:nth-child(1) { animation-delay: 0.5s; }
.stack-row:nth-child(2) { animation-delay: 0.75s; }
.stack-row:nth-child(3) { animation-delay: 1s; }
.stack-row:nth-child(4) { animation-delay: 1.25s; }
.stack-row:nth-child(5) { animation-delay: 1.5s; }
.stack-row:nth-child(6) { animation-delay: 1.75s; }
@keyframes rowIn { to { opacity: 1; transform: none; } }

.stack-row:hover { background: rgba(255, 255, 255, 0.035); }
.sr-toggle { color: var(--text-3); width: 12px; flex-shrink: 0; }
.sr-method { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-method i { color: var(--text); font-style: normal; font-weight: 500; }
.sr-method b { color: var(--accent-2); font-weight: 400; }
.sr-time { margin-left: auto; flex-shrink: 0; color: var(--text-3); font-size: 0.74rem; }
.sr-time.slow { color: var(--amber); }
.sr-time.warn { color: var(--amber); }
.stack-row.err { background: rgba(255, 107, 107, 0.07); }
.stack-row.err .sr-toggle { color: var(--red); }
.sr-time.err-t { color: var(--red); }

.stack-cause {
  margin: 12px 10px 0; padding: 11px 14px;
  border: 1px solid rgba(52, 227, 154, 0.3); border-radius: 10px;
  background: rgba(52, 227, 154, 0.07);
  color: var(--text-2); font-size: 0.76rem; line-height: 1.5;
  opacity: 0; animation: rowIn 0.5s ease 2.15s forwards;
}
.cause-label {
  display: inline-block; margin-right: 8px;
  color: #04140c; background: var(--grad);
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
}

/* floating metric chips */
.metric-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 15px;
  border: 1px solid var(--border-strong); border-radius: 14px;
  background: rgba(12, 19, 26, 0.9); backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  font-family: var(--font-mono);
  animation: floaty 6s ease-in-out infinite;
}
.chip-a { top: -26px; right: -14px; }
.chip-b { bottom: -20px; left: -18px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.mc-label { font-size: 0.66rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em; }
.mc-value { font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.mc-red { color: var(--red); }
.spark { width: 64px; height: 22px; }

/* hero stats strip */
.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 84px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { padding: 28px 12px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-num {
  display: block;
  font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: 0.82rem; color: var(--text-3); }

/* ═══════════════ logos marquee ═══════════════ */
.logos { padding: 72px 0 8px; }
.logos-title { text-align: center; font-size: 0.86rem; color: var(--text-3); margin-bottom: 30px; }
.marquee {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex; gap: 64px; width: max-content;
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--text-3); white-space: nowrap;
  transition: color 0.2s ease;
}
.marquee-track span:hover { color: var(--text); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════════ sections ═══════════════ */
.section { padding: 120px 0 40px; position: relative; }
.section-tight { padding-top: 80px; }
.section-head { max-width: 660px; margin-bottom: 60px; }
.section-head p { color: var(--text-2); margin-top: 18px; font-size: 1.05rem; }

/* ═══════════════ pillars ═══════════════ */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  padding: 30px 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.pillar:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateY(-4px); }
.pillar-icon {
  width: 46px; height: 46px; margin-bottom: 20px;
  display: grid; place-items: center;
  border-radius: 13px; color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(52, 227, 154, 0.22);
}
.pillar-icon svg { width: 23px; height: 23px; }
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--text-2); font-size: 0.94rem; }
.pillar-code {
  display: block; margin-top: 18px; padding: 9px 13px;
  font-family: var(--font-mono); font-size: 0.73rem; color: var(--accent);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border); border-radius: 9px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%; min-width: 0;
}

/* ═══════════════ bento ═══════════════ */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.bento-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 30px 28px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 55%);
  position: relative; overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.bento-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(52, 227, 154, 0.08), transparent 65%);
  transition: opacity 0.3s ease;
}
.bento-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.bento-card:hover::before { opacity: 1; }
.bento-card.span-2 { grid-column: span 2; }
.bc-head h3 { margin-bottom: 9px; }
.bc-head p { color: var(--text-2); font-size: 0.93rem; max-width: 60ch; }
.bc-visual { position: relative; }

.code-visual pre {
  font-family: var(--font-mono); font-size: 0.76rem; line-height: 1.75;
  padding: 16px 18px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow-x: auto; color: var(--text-2);
}
.c-cls { color: var(--text); font-weight: 500; }
.c-arg { color: var(--accent-2); }
.c-t { color: var(--text-3); }
.c-dim { color: var(--text-3); }
.c-err { color: var(--red); }
.c-errt { color: var(--red); }

.histo { display: flex; align-items: flex-end; gap: 6px; height: 84px; }
.histo i {
  flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(52, 227, 154, 0.75), rgba(52, 227, 154, 0.18));
  transition: transform 0.2s ease;
}
.histo i:hover { transform: scaleY(1.08); transform-origin: bottom; }
.histo i.hot { background: linear-gradient(180deg, rgba(255, 107, 107, 0.85), rgba(255, 107, 107, 0.2)); }
.histo-labels {
  display: flex; justify-content: space-between; margin-top: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3);
}
.hot-t { color: var(--red); }

.exc-row {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2);
  padding: 9px 13px; border: 1px solid var(--border); border-radius: 10px;
  background: rgba(0, 0, 0, 0.25); margin-bottom: 8px;
}
.exc-row:last-child { margin-bottom: 0; }
.exc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }
.exc-row.new { border-color: rgba(255, 107, 107, 0.4); }
.exc-row.new .exc-dot { background: var(--red); box-shadow: 0 0 8px var(--red); }
.exc-n { margin-left: auto; color: var(--text-3); }
.exc-row.new .exc-n { color: var(--red); }

.area-chart { width: 100%; height: 72px; display: block; }

.ai-msg {
  font-size: 0.82rem; padding: 10px 14px; border-radius: 12px; margin-bottom: 9px;
  line-height: 1.55;
}
.ai-msg.q {
  background: rgba(255, 255, 255, 0.05); color: var(--text-2);
  border: 1px solid var(--border);
  border-bottom-right-radius: 4px; margin-left: 28px;
}
.ai-msg.a {
  background: rgba(52, 227, 154, 0.08); color: var(--text-2);
  border: 1px solid rgba(52, 227, 154, 0.25);
  border-bottom-left-radius: 4px; margin-right: 16px; margin-bottom: 0;
}
.ai-msg.a code { font-family: var(--font-mono); font-size: 0.76rem; color: var(--accent-2); }
.ai-spark { color: var(--accent); margin-right: 4px; }

.otel-visual {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 0 6px;
}
.otel-node {
  font-family: var(--font-mono); font-size: 0.72rem; text-align: center; line-height: 1.45;
  color: var(--text-2);
  padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
}
.otel-node.core {
  color: var(--accent); border-color: rgba(52, 227, 154, 0.35);
  background: var(--accent-dim);
  box-shadow: 0 0 24px -6px rgba(52, 227, 154, 0.35);
}
.otel-arrow { color: var(--text-3); font-size: 1.1rem; }

.onprem-visual { display: flex; flex-direction: column; gap: 14px; }
.onprem-box {
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: 30px 18px 20px; position: relative;
}
.op-title {
  position: absolute; top: -10px; left: 16px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); background: #0b1119; padding: 0 8px;
}
.op-nodes { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.op-node {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-2);
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px;
  background: rgba(0, 0, 0, 0.3); white-space: nowrap;
}
.op-node.accent { color: var(--accent); border-color: rgba(52, 227, 154, 0.35); background: var(--accent-dim); }
.op-link {
  width: 34px; height: 1.5px; flex-shrink: 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 10px);
  opacity: 0.6;
}
.op-lock {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3);
}
.op-lock svg { color: var(--accent); }

/* ═══════════════ architecture / how ═══════════════ */
.arch {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0; align-items: stretch; margin-bottom: 72px;
}
.arch-node {
  padding: 28px 26px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.arch-node.core {
  border-color: rgba(52, 227, 154, 0.3);
  background: linear-gradient(170deg, rgba(52, 227, 154, 0.08), var(--surface) 60%);
  box-shadow: 0 0 44px -14px rgba(52, 227, 154, 0.3);
}
.arch-k {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent);
  letter-spacing: 0.12em;
}
.arch-node h4 { font-size: 1.15rem; margin: 8px 0 10px; }
.arch-node p { font-size: 0.88rem; color: var(--text-2); }

.arch-flow {
  position: relative; width: 74px; align-self: center;
  display: flex; align-items: center; justify-content: center;
  height: 60px;
}
.flow-line {
  position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 5px, transparent 5px 10px);
}
.flow-pkt {
  position: absolute; top: 50%; left: 8px;
  width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pkt 2.4s linear infinite;
}
.flow-pkt.rev { animation-name: pktRev; }
@keyframes pkt { 0% { left: 8px; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 15px); opacity: 0; } }
@keyframes pktRev { 0% { left: calc(100% - 15px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 8px; opacity: 0; } }
.flow-tag {
  position: absolute; top: calc(50% + 12px);
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-3);
  white-space: nowrap;
}

.steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-n {
  flex-shrink: 0;
  width: 38px; height: 38px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700;
  border-radius: 50%;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(52, 227, 154, 0.3);
}
.steps h4 { font-size: 1rem; margin-bottom: 6px; }
.steps p { font-size: 0.86rem; color: var(--text-2); }

/* ═══════════════ compare ═══════════════ */
.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch;
}
.compare-col {
  padding: 34px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.compare-col h3 { margin-bottom: 20px; }
.compare-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.compare-col li { display: flex; gap: 11px; align-items: baseline; font-size: 0.93rem; color: var(--text-2); }
.compare-col li::before { flex-shrink: 0; font-size: 0.8rem; }
.compare-col.them { background: rgba(255, 255, 255, 0.02); }
.compare-col.them h3 { color: var(--text-3); }
.compare-col.them li::before { content: "✕"; color: var(--text-3); }
.compare-col.us {
  border-color: rgba(52, 227, 154, 0.32);
  background: linear-gradient(165deg, rgba(52, 227, 154, 0.09), rgba(52, 227, 154, 0.02));
  box-shadow: 0 0 60px -20px rgba(52, 227, 154, 0.3);
}
.compare-col.us li::before { content: "✓"; color: var(--accent); }
.compare-vs {
  align-self: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--text-3);
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--bg-elev);
}

/* ═══════════════ CTA ═══════════════ */
.cta-panel {
  position: relative; overflow: hidden;
  text-align: center;
  padding: 90px 32px;
  border: 1px solid var(--border-strong); border-radius: 26px;
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.85), rgba(8, 13, 18, 0.9));
}
.cta-glow {
  position: absolute; inset: -40%; pointer-events: none;
  background:
    radial-gradient(ellipse 34% 30% at 30% 68%, rgba(52, 227, 154, 0.16), transparent 70%),
    radial-gradient(ellipse 30% 28% at 72% 30%, rgba(83, 216, 245, 0.13), transparent 70%);
}
.cta-panel > * { position: relative; }
.cta-panel h2 { margin-bottom: 18px; }
.cta-panel p { color: var(--text-2); max-width: 480px; margin: 0 auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

/* ═══════════════ footer ═══════════════ */
.footer { border-top: 1px solid var(--border); margin-top: 110px; background: rgba(0, 0, 0, 0.25); }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-top: 64px; padding-bottom: 48px;
}
.footer-brand p { color: var(--text-3); font-size: 0.88rem; margin-top: 16px; max-width: 40ch; }
.footer-ids { font-family: var(--font-mono); font-size: 0.74rem !important; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h5 {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-3);
  margin-bottom: 6px;
}
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; padding-bottom: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-3);
}

/* ═══════════════ responsive ═══════════════ */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero-visual { max-width: 620px; }
  .chip-a { right: 6px; }
  .chip-b { left: 2px; }
  .pillars, .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.span-2 { grid-column: span 2; }
  .arch { grid-template-columns: 1fr; gap: 14px; }
  .arch-flow { width: 100%; height: 48px; transform: rotate(90deg); max-width: 74px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; gap: 28px; }
  .compare { grid-template-columns: 1fr; }
  .compare-vs { justify-self: center; }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .nav { background: rgba(6, 10, 15, 0.72); backdrop-filter: blur(18px); border-bottom-color: var(--border); }
  .hero { padding-top: calc(var(--nav-h) + 44px); }
  h1 { font-size: clamp(2.1rem, 9.4vw, 2.6rem); }
  .lede { font-size: 1.03rem; }
  .hero-inner { gap: 44px; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero-stats { margin-top: 56px; }
  /* okno execution stacka: ciaśniejsza typografia, mniejsze wcięcia */
  .stack-body { font-size: 0.68rem; padding: 10px 6px 12px; }
  .stack-row { padding-left: calc(8px + var(--depth) * 12px); gap: 6px; }
  .sr-time { font-size: 0.64rem; }
  .stack-cause { font-size: 0.7rem; margin: 10px 6px 0; }
  .tb-title { font-size: 0.64rem; }
  .tb-badge { display: none; }
  .code-visual pre { font-size: 0.66rem; padding: 12px 12px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
  .pillars, .bento, .steps { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .section { padding: 84px 0 24px; }
  .metric-chip { display: none; }
  .otel-visual { flex-direction: column; }
  .otel-arrow { transform: rotate(90deg); }
  .op-nodes { flex-direction: column; gap: 0; }
  .op-link { width: 1.5px; height: 22px; background: repeating-linear-gradient(180deg, var(--accent) 0 5px, transparent 5px 10px); }
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .cta-panel { padding: 64px 22px; }
}
