/* ===== JMS Assistant — Journey Marketing Studio · Modern Dark Cinema ===== */

:root {
  --blue: #3B82F6;
  --indigo: #6366F1;
  --violet: #7C3AED;
  --blue-l: #60A5FA;
  --indigo-l: #818CF8;
  --violet-l: #A78BFA;

  --bg: #070A14;
  --bg-2: #0A0F1D;
  --card: rgba(255, 255, 255, .028);
  --card-hover: rgba(255, 255, 255, .05);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);

  --ink: #F2F5FA;
  --body: #A7B4C6;
  --muted: #8CA0B8;

  --grad: linear-gradient(135deg, var(--blue), var(--indigo) 52%, var(--violet));
  --grad-text: linear-gradient(100deg, var(--blue-l), var(--indigo-l) 45%, var(--violet-l) 80%, var(--blue-l));

  --font-ui: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "DM Sans", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --radius: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--ink); line-height: 1.1; letter-spacing: -0.02em; }

img { display: block; max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

::selection { background: rgba(99, 102, 241, .35); color: #fff; }

/* ---------- ambient background ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px);
  pointer-events: none; z-index: 0; will-change: transform;
}
.orb-a { width: 560px; height: 560px; top: -220px; left: 4%; background: rgba(59, 130, 246, .17); animation: drift-a 26s ease-in-out infinite alternate; }
.orb-b { width: 480px; height: 480px; top: -140px; right: 2%; background: rgba(124, 58, 237, .15); animation: drift-b 32s ease-in-out infinite alternate; }
.orb-c { width: 380px; height: 380px; top: 340px; left: 38%; background: rgba(99, 102, 241, .10); animation: drift-a 38s ease-in-out infinite alternate-reverse; }

@keyframes drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(70px, 50px, 0) scale(1.12); } }
@keyframes drift-b { from { transform: translate3d(0,0,0) scale(1.08); } to { transform: translate3d(-60px, 70px, 0) scale(1); } }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 0 0 10px 0;
  z-index: 100; font-weight: 600;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--indigo-l);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- mono label ---------- */
.eyebrow, .mono-label {
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--indigo-l);
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 13px 30px;
  border-radius: 14px; font-weight: 600; font-size: 16px; font-family: var(--font-ui);
  text-decoration: none; cursor: pointer; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 36px rgba(99, 102, 241, .34);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.22) 50%, transparent 62%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 16px 48px rgba(99, 102, 241, .45); }
.btn-primary:hover::after { transform: translateX(110%); }
.btn-ghost {
  color: var(--ink); border: 1px solid var(--line-strong); background: rgba(255,255,255,.02);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(129, 140, 248, .5); background: rgba(99, 102, 241, .08); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-small { min-height: 42px; padding: 8px 20px; font-size: 14.5px; border-radius: 11px; }
.btn-large { font-size: 16.5px; padding: 15px 36px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 10, 20, .6);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.scrolled { border-color: var(--line); background: rgba(7, 10, 20, .82); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.nav-logo img { border-radius: 9px; }
.nav-wordmark { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: .01em; }
.nav-wordmark em { font-style: normal; font-weight: 500; color: var(--muted); letter-spacing: .16em; font-size: 12.5px; font-family: var(--font-mono); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  color: var(--body); text-decoration: none; font-weight: 500; font-size: 15px;
  padding: 10px 14px; border-radius: 10px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav-links .btn { margin-left: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 128px 0 96px; overflow: visible; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, .28);
  background: rgba(99, 102, 241, .07);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--indigo-l);
  box-shadow: 0 0 12px 2px rgba(129, 140, 248, .8);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.6vw, 78px);
  font-weight: 700;
  margin: 34px 0 24px;
  letter-spacing: -0.03em;
}
.gradient-text {
  display: inline-block;
  background: var(--grad-text);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-sub {
  font-size: clamp(17px, 2.1vw, 19.5px);
  max-width: 620px; margin: 0 auto 40px;
  color: var(--body);
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 76px; padding-top: 44px;
  border-top: 1px solid var(--line);
  position: relative;
}
.hero-stats::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: 220px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--indigo-l), transparent);
}
.hero-stats dt {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 40px); font-weight: 700;
  background: var(--grad-text); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats dd { font-size: 13.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* ---------- product mockup ---------- */
.product { position: relative; padding: 20px 0 110px; }
.product::before {
  content: ""; position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%);
  width: 70%; height: 420px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, .16), transparent 65%);
  filter: blur(50px); pointer-events: none;
}
.product-label { display: block; text-align: center; margin-bottom: 16px; }
.carousel { position: relative; margin-top: 56px; outline: none; --slide-w: min(720px, 76vw); }
.carousel-viewport {
  perspective: 1900px;
  height: calc(var(--slide-w) * 0.625 + 24px);
  display: flex; align-items: center; justify-content: center;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
  -webkit-user-select: none; user-select: none;
}
.carousel-viewport.dragging { cursor: grabbing; }
.carousel-stage {
  position: relative;
  width: var(--slide-w); height: calc(var(--slide-w) * 0.625);
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--slide-w) * var(--ring-f, 0.87) * -1)) rotateY(var(--rot, 0deg));
  transition: transform .8s var(--ease);
}
.slide {
  position: absolute; inset: 0;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  box-shadow: 0 24px 70px rgba(3, 5, 12, .7);
  backface-visibility: hidden;
  filter: brightness(.45) saturate(.8);
  transition: filter .8s var(--ease), box-shadow .8s var(--ease);
}
.slide.active {
  filter: none;
  box-shadow: 0 42px 130px rgba(3, 5, 12, .88), 0 0 70px rgba(99, 102, 241, .16);
}
.slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  pointer-events: none; -webkit-user-drag: none;
  transform: scale(.95);
  transition: transform .8s var(--ease);
}
.slide.active img { transform: scale(1); }
.car-arrow {
  position: absolute; z-index: 5;
  top: calc((var(--slide-w) * 0.625 + 24px) / 2);
  transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(7, 10, 20, .45);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; cursor: pointer;
  opacity: .78;
  transition: opacity .25s var(--ease), background-color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.car-arrow svg { width: 24px; height: 24px; }
.car-arrow-left { left: calc(50% - var(--slide-w) / 2 + 18px); }
.car-arrow-right { right: calc(50% - var(--slide-w) / 2 + 18px); }
.car-arrow:hover {
  opacity: 1;
  background: rgba(99, 102, 241, .3);
  border-color: rgba(129, 140, 248, .6);
  transform: translateY(-50%) scale(1.07);
  box-shadow: 0 8px 30px rgba(99, 102, 241, .35);
}
.car-arrow:active { transform: translateY(-50%) scale(.95); }
.carousel-nav { display: flex; align-items: center; justify-content: center; margin-top: 30px; }
.car-dots { display: flex; gap: 10px; }
.car-dot {
  width: 26px; height: 26px; border: none; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.car-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.18);
  transition: background-color .3s var(--ease), width .3s var(--ease);
}
.car-dot.active::before { background: var(--indigo-l); width: 26px; box-shadow: 0 0 10px rgba(129, 140, 248, .6); }
.carousel-caption {
  text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 18px; min-height: 24px;
}
.carousel-note { text-align: center; color: var(--muted); font-size: 12.5px; font-family: var(--font-mono); }

/* ---------- sections ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px); font-weight: 700; text-align: center;
  letter-spacing: -0.025em;
}
.section-sub { text-align: center; color: var(--muted); margin: 14px auto 0; max-width: 560px; font-size: 16.5px; }

/* ---------- features ---------- */
.features { padding: 30px 0 110px; position: relative; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.fcard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  overflow: hidden;
  transition: border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.fcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(99, 102, 241, .12), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease);
  pointer-events: none;
}
.fcard:hover { border-color: rgba(129, 140, 248, .32); background: var(--card-hover); transform: translateY(-3px); }
.fcard:hover::before { opacity: 1; }
.ficon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, .3), 0 0 0 1px rgba(255,255,255,.1) inset;
}
.ficon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; }
.fcard h3 { font-size: 18px; margin-bottom: 9px; font-weight: 600; }
.fcard p { font-size: 14.5px; color: var(--body); position: relative; }

/* ---------- how it works ---------- */
.how { padding: 90px 0 110px; position: relative; }
.how::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(59, 130, 246, .05), transparent 70%);
}
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 60px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 21px; left: 6%; right: 6%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, .4) 15%, rgba(129, 140, 248, .4) 85%, transparent);
}
.step { text-align: left; position: relative; padding-top: 0; }
.step-no {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 18px;
  background: var(--bg-2);
  border: 1px solid rgba(129, 140, 248, .4);
  color: var(--indigo-l);
  box-shadow: 0 0 24px rgba(99, 102, 241, .2);
}
.step-no svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.step-idx {
  position: absolute; top: -9px; right: -11px;
  font-style: normal; font-family: var(--font-mono);
  font-size: 10px; font-weight: 600; letter-spacing: .08em; line-height: 1;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 3px 7px;
}
.step h3 { font-size: 16.5px; margin-bottom: 7px; font-weight: 600; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- about ---------- */
.about { padding: 40px 0 90px; }
.about-inner {
  text-align: center; max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.about-inner img { filter: drop-shadow(0 0 18px rgba(124, 58, 237, .55)); }
.about h2 { font-family: var(--font-display); font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; }
.about p { color: var(--body); }
.about-invite { font-size: 15.5px; color: var(--muted); }
.about-invite a { color: var(--indigo-l); font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(129, 140, 248, .35); transition: border-color .2s; }
.about-invite a:hover { border-color: var(--indigo-l); }

/* ---------- faq ---------- */
.faq { padding: 30px 0 110px; }
.faq-inner { max-width: 740px; }
.faq-list { margin-top: 48px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; font-weight: 600; color: var(--ink); font-size: 17px;
  padding: 24px 44px 24px 4px; list-style: none; position: relative;
  transition: color .2s var(--ease);
}
.faq-list summary:hover { color: var(--indigo-l); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 300; color: var(--indigo-l);
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { padding: 0 4px 26px; font-size: 15px; color: var(--body); max-width: 640px; }
.faq-list details a { color: var(--indigo-l); font-weight: 600; }

/* ---------- contact ---------- */
.contact { padding: 20px 0 120px; }
.contact-card {
  position: relative;
  text-align: center; padding: 76px 32px;
  border-radius: 28px;
  background:
    radial-gradient(70% 120% at 15% 0%, rgba(59, 130, 246, .16), transparent 55%),
    radial-gradient(70% 120% at 85% 100%, rgba(124, 58, 237, .18), transparent 55%),
    var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, .7), transparent);
}
.contact-card h2 {
  font-family: var(--font-display);
  color: var(--ink); font-size: clamp(28px, 3.8vw, 38px); margin-bottom: 12px; font-weight: 700;
}
.contact-card p { color: var(--body); max-width: 520px; margin: 0 auto; }
.contact-card .btn { margin-top: 32px; }
.contact-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); }

/* ---------- early access form ---------- */
.ea-form { max-width: 640px; margin: 10px auto 0; text-align: left; }
.ea-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.ea-field { display: flex; flex-direction: column; gap: 7px; }
.ea-field label, .ea-channels legend {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.ea-field input {
  min-height: 48px; padding: 11px 15px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-strong); border-radius: 12px;
  color: var(--ink); font-family: var(--font-ui); font-size: 15.5px;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.ea-field input::placeholder { color: rgba(140, 160, 184, .55); }
.ea-field input:focus {
  outline: none; border-color: rgba(129, 140, 248, .65);
  background: rgba(99, 102, 241, .06);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}
/* Chrome autofill wymusza białe tło — przywracamy ciemny wygląd pól */
.ea-field input:-webkit-autofill,
.ea-field input:-webkit-autofill:hover,
.ea-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #131A30 inset;
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  border: 1px solid var(--line-strong);
  transition: background-color 999999s ease-in-out 0s;
}
.ea-channels { border: none; margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ea-channels legend { margin-bottom: 12px; }
.ea-check {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--body); font-size: 14.5px; cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.ea-check:hover { border-color: rgba(129, 140, 248, .45); }
.ea-check:has(input:checked) {
  border-color: rgba(129, 140, 248, .65);
  background: rgba(99, 102, 241, .12);
  color: var(--ink);
}
.ea-check input { accent-color: var(--indigo); width: 16px; height: 16px; cursor: pointer; }
.ea-form .btn { margin-top: 28px; width: 100%; }
.ea-form .contact-note { margin-top: 14px; text-align: center; }
.ea-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ea-success { text-align: center; padding: 34px 0 10px; }
.ea-success svg {
  width: 52px; height: 52px; margin: 0 auto 16px; display: block;
  stroke: #34D399; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(52, 211, 153, .45));
}
.ea-success h3 { font-family: var(--font-display); font-size: 22px; margin-bottom: 8px; }
.ea-success p { color: var(--muted); }
.ea-fallback { margin-top: 26px; font-size: 14px; color: var(--muted); }
.ea-fallback a { color: var(--indigo-l); font-weight: 600; }

@media (max-width: 640px) {
  .ea-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; background: rgba(255,255,255,.012); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.footer-brand img { border-radius: 7px; }
.footer-links { display: flex; gap: 8px; }
.footer-links a {
  color: var(--muted); font-size: 14px; text-decoration: none;
  padding: 8px 12px; border-radius: 9px;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.footer-links a:hover { color: var(--ink); background: rgba(255,255,255,.05); }

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 80px 24px 110px; }
.legal h1 { font-family: var(--font-display); font-size: 38px; margin-bottom: 8px; font-weight: 700; }
.legal .legal-date { color: var(--muted); font-size: 14px; margin-bottom: 40px; font-family: var(--font-mono); }
.legal h2 { font-size: 20px; margin: 38px 0 12px; font-weight: 600; }
.legal p, .legal li { font-size: 15.5px; color: var(--body); }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal a { color: var(--indigo-l); }

/* ---------- hero motion (Motion.dev) ---------- */
/* .mh: elementy hero czekają ukryte na choreografię springów; fallback = zwykły reveal */
.mh .hero .reveal { opacity: 0; transform: none; transition: none; }

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 36px rgba(99, 102, 241, .30); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset, 0 14px 46px rgba(99, 102, 241, .50); }
}
.hero .btn-primary { animation: ctaGlow 5.5s ease-in-out infinite; }

@keyframes productGlow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.product::before { animation: productGlow 9s ease-in-out infinite; }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  filter: blur(12px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease);
  transition-delay: var(--stagger, 0s);
}
.reveal.in-view { opacity: 1; transform: none; filter: blur(0px); }
/* WYJĄTEK: filter na przodku spłaszcza scenę 3D (preserve-3d) — karuzela bez blura */
.carousel.reveal, .carousel.reveal.in-view { filter: none; }

/* słowa nagłówka hero (dzielone w hero-motion.js) */
.hw { display: inline-block; will-change: transform, filter, opacity; }
.delay-1 { --stagger: .08s; }
.delay-2 { --stagger: .16s; }
.delay-3 { --stagger: .24s; }
.delay-4 { --stagger: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .btn, .fcard, .btn-primary::after { transition: none; animation: none; }
  .orb, .eyebrow-dot, .gradient-text, .hero-stats dt { animation: none; }
  .hero .btn-primary, .product::before { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps::before { display: none; }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 84px 0 64px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .carousel { --slide-w: 84vw; }
  .car-arrow { width: 42px; height: 42px; opacity: .85; }
  .car-arrow-left { left: calc(50% - var(--slide-w) / 2 + 8px); }
  .car-arrow-right { right: calc(50% - var(--slide-w) / 2 + 8px); }
  .orb-a { width: 340px; height: 340px; }
  .orb-b { width: 300px; height: 300px; }
  .contact-card { padding: 56px 22px; }
}
