/* ==========================================================================
   White Rabbit Labs - style
   Jasny motyw, techniczny charakter, animacje wejścia z boków.
   ========================================================================== */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, .08);
  --line-strong: rgba(29, 29, 31, .14);
  --accent: #0071e3;
  --accent-2: #5e5ce6;
  --blueprint: #25466d;
  --blueprint-soft: rgba(37, 70, 109, .35);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .04);
  --shadow-lg: 0 2px 8px rgba(0, 0, 0, .05), 0 22px 50px rgba(0, 0, 0, .11);

  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.022em; line-height: 1.08; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------- Typografia pomocnicza ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 55%, #bf5af2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  transition: background .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
  box-shadow: 0 6px 18px rgba(0, 113, 227, .22);
}
.btn:hover { background: #0077ed; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 113, 227, .3); }
.btn--ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .35);
}
.btn--ghost:hover { background: rgba(0, 113, 227, .06); box-shadow: inset 0 0 0 1px var(--accent); }
.btn--small { height: 36px; padding: 0 18px; font-size: 14px; box-shadow: none; }
.btn--wide { width: 100%; }

/* ---------- Karty (boxy) ---------- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ---------- Animacje wejścia (fade + wjazd z boku) ----------
   Używamy właściwości `translate`, żeby nie kolidowała z `transform` przy hover. */
.reveal {
  opacity: 0;
  translate: var(--rx, 0) var(--ry, 40px);
  transition:
    opacity .9s ease var(--d, 0s),
    translate 1.1s var(--ease) var(--d, 0s),
    transform .6s var(--ease),
    box-shadow .6s var(--ease);
  will-change: opacity, translate;
}
.reveal[data-from="left"]  { --rx: -90px; --ry: 0; }
.reveal[data-from="right"] { --rx: 90px;  --ry: 0; }
.reveal[data-from="up"]    { --rx: 0;     --ry: 60px; }
.reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Siatki geometryczne w tle ---------- */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--blueprint-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-soft) 1px, transparent 1px),
    linear-gradient(rgba(37, 70, 109, .12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 70, 109, .12) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 32px 32px, 32px 32px;
  opacity: .35;
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { background-position: 160px 160px, 160px 160px, 32px 32px, 32px 32px; } }

.bg-grid--hero {
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 28% 45%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 55% 60% at 28% 45%, #000 0%, transparent 70%);
}
.bg-grid--products {
  -webkit-mask-image: radial-gradient(ellipse 40% 50% at 95% 10%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 40% 50% at 95% 10%, #000, transparent 70%);
}
.bg-grid--about {
  -webkit-mask-image: radial-gradient(ellipse 45% 60% at 0% 80%, #000, transparent 70%);
          mask-image: radial-gradient(ellipse 45% 60% at 0% 80%, #000, transparent 70%);
}

.mesh { position: absolute; pointer-events: none; display: block; }
.mesh--hero {
  left: 0; right: 0; bottom: 0; width: 100%; height: 62%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 95%), linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to top, #000 10%, transparent 95%), linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-composite: intersect;
}
.mesh--tech {
  left: 0; top: 0; width: 100%; height: 520px;
  transform: scaleY(-1);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
          mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  opacity: .8;
}
.mesh--contact { inset: 0; width: 100%; height: 100%; opacity: .9; }
.mesh--orb { inset: 0; width: 100%; height: 100%; }

/* ==========================================================================
   NAWIGACJA
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(245, 245, 247, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(245, 245, 247, .82); }
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 76px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 54px; height: 54px; object-fit: contain; transition: transform .6s var(--ease); }
.brand:hover .brand__mark { transform: translateX(3px) rotate(-3deg); }
.brand__word { display: flex; flex-direction: column; align-items: center; line-height: 1; color: #1f3354; font-family: "Montserrat", var(--font); }
.brand__word b { font-weight: 800; font-size: 19px; letter-spacing: .01em; text-transform: uppercase; }
.brand__word small {
  display: flex; align-items: center; gap: 8px; margin-top: 5px;
  font-weight: 500; font-size: 10px; letter-spacing: .5em; text-transform: uppercase; padding-left: .5em;
}
.brand__word small::before, .brand__word small::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { font-size: 14px; color: var(--ink-2); position: relative; transition: color .2s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__links a.is-active { color: var(--ink); }
.nav__toggle { display: none; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 0 90px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(1000px 600px at 20% 30%, rgba(0, 113, 227, .06), transparent 60%),
    radial-gradient(700px 500px at 90% 70%, rgba(94, 92, 230, .06), transparent 60%),
    var(--bg);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.hero__sketch { margin: 0 0 0 calc(-1 * clamp(0px, 3vw, 48px)); }
.hero__title {
  font-size: clamp(44px, 6.4vw, 92px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.0;
  margin-bottom: 26px;
}
.hero__lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 30em; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__meta {
  list-style: none; padding: 22px 0 0; margin: 0;
  display: flex; gap: clamp(20px, 3vw, 44px);
  border-top: 1px solid var(--line-strong);
}
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta b { font-size: 20px; letter-spacing: -.02em; }
.hero__meta span { font-size: 13px; color: var(--muted); }

.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0; z-index: 2;
  width: 26px; height: 42px; border-radius: 14px;
  border: 1.5px solid var(--line-strong);
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--muted);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Szkic monitora ---------- */
.sketch { width: 100%; height: auto; overflow: visible; }
.sketch text { font-family: var(--mono); }
.sk-construct { fill: none; stroke: var(--blueprint); stroke-width: .6; stroke-dasharray: 3 5; opacity: .28; }
.sk-draw .sk-main {
  fill: none; stroke: var(--blueprint); stroke-width: 1.6; stroke-linejoin: round;
  stroke-dasharray: 2200; stroke-dashoffset: 2200;
  animation: draw 2.6s var(--ease) .3s forwards;
}
.sk-thin { fill: none; stroke: var(--blueprint); stroke-width: .8; opacity: .45; }
.sk-draw .sk-thin { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 2s var(--ease) 1s forwards; }
.sk-none { stroke: none; opacity: 0; animation: fade 1s ease 1.8s forwards; }
.sk-fill { fill: var(--blueprint); }
.sk-screen { fill: rgba(255, 255, 255, .85); opacity: 0; animation: fade 1.2s ease 1.2s forwards; }
.sk-bar { fill: rgba(37, 70, 109, .06); opacity: 0; animation: fade 1s ease 1.4s forwards; }
.sk-dot { fill: none; stroke: var(--blueprint); stroke-width: 1; opacity: 0; animation: fade 1s ease 1.5s forwards; }
.sk-tab { font-size: 10px; fill: var(--muted); opacity: 0; animation: fade 1s ease 1.5s forwards; }
.sk-dim { stroke: var(--accent); stroke-width: .9; fill: none; opacity: 0; animation: fade 1.2s ease 1.9s forwards; }
.sk-dim text { stroke: none; fill: var(--accent); font-size: 10.5px; letter-spacing: .06em; }
.sk-dim .sk-fill, .sk-dim marker path { fill: var(--accent); }
.sk-label-bg { fill: var(--bg); stroke: none; }
.sk-callout { fill: none; stroke: var(--blueprint); stroke-width: .8; opacity: 0; animation: fade 1.2s ease 2.2s forwards; }
.sk-callout text { stroke: none; fill: var(--blueprint); font-size: 10.5px; }
.sk-stamp { fill: none; stroke: var(--blueprint); stroke-width: .8; opacity: 0; animation: fade 1.2s ease 2.4s forwards; }
.sk-stamp text { stroke: none; fill: var(--blueprint); font-size: 8.5px; letter-spacing: .08em; }
.code text { font-size: 11.2px; fill: var(--ink-2); white-space: pre; }
.code .ln { fill: #a1a1a6; font-size: 9.5px; }
.code .tk-k { fill: #ad3da4; font-weight: 500; }
.code .tk-f { fill: var(--accent); }
.code .tk-s { fill: #c41a16; }
.code .tk-c { fill: #8e8e93; font-style: italic; }
.code .tk-n { fill: #1c00cf; }
.caret { fill: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee__track span {
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 0 28px; white-space: nowrap; position: relative;
}
.marquee__track span::after { content: "◇"; position: absolute; right: -6px; color: var(--accent); opacity: .5; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement { padding: clamp(100px, 16vw, 200px) 0; background: var(--surface); }
.statement__text {
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.12;
  max-width: 21em;
  margin: 0;
}
.statement__text .w { opacity: .12; transition: opacity .25s linear; }

/* ==========================================================================
   SEKCJE
   ========================================================================== */
.section { position: relative; padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.section__head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 72px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow::before { display: none; }
.section__title { font-size: clamp(36px, 4.8vw, 64px); font-weight: 700; letter-spacing: -.035em; margin-bottom: 20px; }
.section__lead { font-size: clamp(17px, 1.4vw, 21px); color: var(--muted); margin: 0; }

/* ---------- Produkty ---------- */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.product { display: flex; flex-direction: column; cursor: pointer; }
.product__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #e8e8ed; }
.product__media img, .feature__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .6s;
}
.card:hover .product__media img, .card:hover .feature__media img { transform: scale(1.05); }
.product__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .25), transparent 40%);
}
.chip {
  position: absolute; left: 16px; top: 16px; z-index: 1;
  font-size: 12px; font-weight: 500;
  padding: 7px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.product__body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.product__name { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px; }
.product__tag { font-weight: 500; color: var(--ink-2); margin-bottom: 14px; }
.product__desc { color: var(--muted); font-size: 15.5px; }
.product__list { list-style: none; padding: 0; margin: 4px 0 24px; font-size: 14.5px; }
.product__list li { padding: 9px 0 9px 22px; border-top: 1px solid var(--line); position: relative; }
.product__list li::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border: 1.5px solid var(--accent); border-radius: 2px; transform: rotate(45deg);
}
.product__link { margin-top: auto; color: var(--accent); font-weight: 500; font-size: 15px; }
.product__link i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.product:hover .product__link i { transform: translateX(5px); }

/* ---------- Showcase ---------- */
.showcase { height: 180vh; position: relative; background: var(--bg); }
.showcase__sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.showcase__frame {
  --p: 0;
  position: relative;
  width: calc(58vw + 42vw * var(--p));
  height: calc(52vh + 48vh * var(--p));
  border-radius: calc(28px * (1 - var(--p)));
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.showcase__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.18 - .18 * var(--p))); }
.showcase__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, .05) 60%); }
.showcase__copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: clamp(24px, 5vw, 72px);
  color: #fff;
  opacity: calc(var(--p) * 1.6 - .4);
  translate: 0 calc(40px * (1 - var(--p)));
}
.showcase__copy h2 { font-size: clamp(32px, 5vw, 72px); font-weight: 700; letter-spacing: -.035em; }

/* ---------- Technologia ---------- */
.section--tech { background: var(--surface); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); background: var(--bg); box-shadow: none; }
.feature:hover { background: #fff; }
.feature__media { aspect-ratio: 1 / 1; overflow: hidden; }
.feature__body { padding: clamp(22px, 2.6vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.feature__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; margin-bottom: 14px; }
.feature h3 { font-size: clamp(21px, 2vw, 26px); font-weight: 650; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 15.5px; margin: 0; }

.stats {
  list-style: none; padding: 0; margin: clamp(60px, 8vw, 100px) 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.stats li { padding: 28px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.stats b { font-size: clamp(36px, 4vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.stats span { color: var(--muted); font-size: 15px; }

/* ---------- O nas ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.about__copy > p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.codecard { margin-top: 30px; }
.codecard__bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: #fbfbfd;
}
.codecard__bar i { width: 11px; height: 11px; border-radius: 50%; background: #e5e5ea; }
.codecard__bar i:nth-child(1) { background: #ff5f57; }
.codecard__bar i:nth-child(2) { background: #febc2e; }
.codecard__bar i:nth-child(3) { background: #28c840; }
.codecard__bar span { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.codecard pre { margin: 0; padding: 20px 22px; overflow-x: auto; font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.codecard .k { color: #ad3da4; }
.codecard .f { color: var(--accent); }
.codecard .s { color: #c41a16; }
.codecard .c { color: #8e8e93; font-style: italic; }

.orb { aspect-ratio: 1 / 1; background: radial-gradient(circle at 50% 45%, #fff 0%, #f2f4f8 70%); }
.orb__label { position: absolute; left: 28px; bottom: 24px; display: flex; flex-direction: column; }
.orb__label span { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.orb__label small { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Kontakt ---------- */
.section--contact { padding-top: 0; }
.contact {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(32px, 6vw, 80px);
  background: linear-gradient(135deg, #ffffff 0%, #f1f5fb 100%);
}
.contact:hover { transform: translateY(-3px); }
.contact__copy, .contact__actions { position: relative; z-index: 1; }
.contact h2 { font-size: clamp(30px, 3.8vw, 50px); font-weight: 700; letter-spacing: -.035em; margin-bottom: 16px; }
.contact p { color: var(--muted); font-size: 18px; margin: 0; }
.contact__actions { display: flex; flex-direction: column; gap: 12px; }
.contact__item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.contact__item:hover { border-color: rgba(0, 113, 227, .35); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.contact__item svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.6; flex: none; }
.contact__item span { display: flex; flex-direction: column; font-weight: 500; }
.contact__item small { font-weight: 400; font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   STOPKA
   ========================================================================== */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 72px 0 28px; font-size: 14px; }
.footer__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; }
.brand--footer { gap: 10px; }
.brand--footer .brand__mark { width: 38px; height: 38px; }
.brand--footer .brand__word b { font-size: 14px; }
.brand--footer .brand__word small { font-size: 8px; margin-top: 4px; gap: 6px; }
.brand--footer .brand__word small::before, .brand--footer .brand__word small::after { width: 16px; }
.footer__brand p { color: var(--muted); margin: 16px 0 22px; max-width: 26em; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col { padding-top: 10px; }
.footer__col h4 { font-size: 13px; font-weight: 600; margin-bottom: 6px; letter-spacing: 0; }
.footer__col a { color: var(--muted); transition: color .2s; }
.footer__col a:hover { color: var(--accent); }
.footer__col address { font-style: normal; color: var(--muted); line-height: 1.6; margin-top: 4px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink-2);
  transition: background .3s, color .3s, transform .4s var(--ease), box-shadow .4s var(--ease);
}
.social a:hover { background: var(--ink); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px;
}
.footer__mono { font-family: var(--mono); letter-spacing: .06em; }

/* ---------- Toast (placeholdery linków) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 100;
  translate: -50% 20px; opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 999px;
  background: rgba(29, 29, 31, .92); color: #fff; font-size: 14px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  transition: opacity .4s, translate .5s var(--ease);
}
.toast.is-on { opacity: 1; translate: -50% 0; }

/* ==========================================================================
   RESPONSYWNOŚĆ
   ========================================================================== */
@media (max-width: 1080px) {
  .products { grid-template-columns: 1fr 1fr; }
  .products .product:last-child { grid-column: span 2; flex-direction: row; }
  .products .product:last-child .product__media { width: 50%; flex: none; }
  .features { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle {
    display: grid; gap: 6px; margin-left: auto;
    width: 40px; height: 40px; place-content: center;
    background: none; border: 0; cursor: pointer;
  }
  .nav__toggle span { width: 20px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 76px; left: 0; right: 0;
    background: rgba(245, 245, 247, .97);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); }

  .hero { padding-top: 100px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__sketch { margin: 0 0 0 -8px; max-width: 640px; }
  .hero__copy { order: -1; }
  .about { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .showcase__frame { width: calc(86vw + 14vw * var(--p)); height: calc(46vh + 54vh * var(--p)); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand__mark { width: 46px; height: 46px; }
  .brand__word b { font-size: 16px; }
  .products { grid-template-columns: 1fr; }
  .products .product:last-child { grid-column: auto; flex-direction: column; }
  .products .product:last-child .product__media { width: auto; }
  .feature { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .hero__meta { gap: 18px; }
  .reveal[data-from="left"]  { --rx: -40px; }
  .reveal[data-from="right"] { --rx: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; translate: none; }
}
