/* ───────── Tokeny ───────── */
:root {
  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gutter: clamp(18px, 5vw, 56px);
  --radius: 18px;
  --success: #3DDC97;
  --danger: #FF6B6B;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
:root[data-theme="a"] { --bg: #0A0D22; --bg-2: #121640; --fg: #F4F5FF; --fg-2: #A7ACD2; --line: rgba(244,245,255,.12); --brand: #6D6DFF; --brand-deep: #4C47E0; --glow: #2FE3D4; }
:root[data-theme="b"] { --bg: #08191E; --bg-2: #0F2F37; --fg: #F1F7F7; --fg-2: #9DB9BE; --line: rgba(241,247,247,.12); --brand: #14A0AD; --brand-deep: #0E7C86; --glow: #F6C35A; }
:root[data-theme="c"] { --bg: #0B0920; --bg-2: #18133F; --fg: #F3F1FF; --fg-2: #A9A4CC; --line: rgba(243,241,255,.12); --brand: #8B7CFF; --brand-deep: #6C5CE7; --glow: #6EE7B7; }

.grad-a { stop-color: var(--brand); }
.grad-b { stop-color: var(--glow); }
.brand__glow { fill: var(--glow); }
.brand__dot { fill: var(--brand); }

/* ───────── Baza ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.5;
  color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.035em; line-height: .98; margin: 0; text-wrap: balance; }
.display { font-size: clamp(2.4rem, 6.5vw, 5.2rem); }
.display--xl { font-size: clamp(2.8rem, 8.5vw, 7.2rem); }
p { margin: 0; }
a { color: var(--fg); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.skip { position: absolute; left: var(--gutter); top: -100px; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.opt { color: var(--fg-2); font-weight: 400; font-size: .85em; }

/* ───────── Zorza w tle ───────── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.aurora span:nth-child(1) { width: 60vmax; height: 60vmax; left: -15vmax; top: -20vmax; background: var(--brand); animation: drift1 26s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 50vmax; height: 50vmax; right: -20vmax; top: 10vmax; background: var(--glow); opacity: .28; animation: drift2 32s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 45vmax; height: 45vmax; left: 30vmax; bottom: -30vmax; background: var(--brand-deep); animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(14vmax, 10vmax) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vmax, 14vmax) scale(1.1); } }
@keyframes drift3 { to { transform: translate(-10vmax, -12vmax) scale(1.2); } }

/* ───────── Przyciski ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem var(--font-body); padding: 14px 24px; border-radius: 999px;
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease-out), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn--sm { padding: 10px 18px; font-size: .95rem; }
.btn--xl { padding: 20px 36px; font-size: 1.15rem; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 50%, transparent); }
.btn--primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 12px 40px -10px color-mix(in srgb, var(--brand) 80%, transparent); }
.btn small { display: block; font-size: .72em; font-weight: 500; opacity: .85; margin-top: 2px; }
.btn--xl:has(small), .btn--giant { flex-direction: column; line-height: 1.15; white-space: normal; text-align: center; }
.btn--giant { width: min(100%, 680px); padding: 38px 48px; font-size: clamp(1.6rem, 4vw, 3rem); font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; border-radius: 32px; box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--brand) 90%, transparent); animation: breathe 3s ease-in-out infinite; }
.btn--giant small { font-family: var(--font-body); font-size: .5em; letter-spacing: 0; margin-top: 8px; }
.btn--giant:hover { transform: translateY(-4px) scale(1.02); }
@keyframes breathe { 50% { box-shadow: 0 30px 110px -16px color-mix(in srgb, var(--glow) 70%, transparent); } }
.btn--outline { color: var(--fg); border-color: var(--line); background: color-mix(in srgb, var(--fg) 4%, transparent); }
.btn--outline:hover { border-color: var(--fg); transform: translateY(-2px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ───────── Nagłówek ───────── */
.top { position: fixed; inset: 0 0 auto; z-index: 20; }
.top__row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; }
.brand__name { font: 700 1.4rem var(--font-display); letter-spacing: -0.04em; }

/* ───────── Hero ───────── */
.hero { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; position: relative; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--fg-2); font-weight: 500; margin-bottom: 28px; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 0 color-mix(in srgb, var(--glow) 60%, transparent); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero__title { font-size: clamp(3rem, 11.5vw, 10.5rem); line-height: .92; letter-spacing: -0.045em; }
.hero__title .reveal-line { display: block; }
.reveal-line--accent span { background: linear-gradient(90deg, var(--brand) 0%, var(--glow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--fg-2); max-width: 44ch; margin-top: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 28px; height: 44px; margin-left: -14px; border: 1.5px solid var(--line); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--glow); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }

/* sekwencja wejścia */
.reveal-line { opacity: 0; transform: translateY(28px); animation: rise .9s var(--ease-out) forwards; }
.hero__title .reveal-line { opacity: 1; transform: none; animation: none; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .reveal-line > span { display: block; transform: translateY(110%); animation: slideup 1s var(--ease-out) forwards; }
.hero__eyebrow { animation-delay: .1s; }
.hero__title .reveal-line:nth-child(1) > span { animation-delay: .2s; }
.hero__title .reveal-line:nth-child(2) > span { animation-delay: .32s; }
.hero__title .reveal-line:nth-child(3) > span { animation-delay: .46s; }
.hero__lead { animation-delay: .8s; }
.hero__cta { animation-delay: .95s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes slideup { to { transform: none; } }

/* ───────── Marquee ───────── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font: 700 clamp(1.1rem, 2vw, 1.5rem) var(--font-display); letter-spacing: -0.02em; color: var(--fg-2); white-space: nowrap; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Sekcje / reveal on scroll ───────── */
section { padding-block: clamp(80px, 14vw, 180px); }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }

/* ───────── Kalkulator ───────── */
.calc .wrap { text-align: center; }
.calc__hint { color: var(--fg-2); margin-top: 18px; font-size: 1.15rem; }
.calc__slider { margin: 56px auto 0; max-width: 760px; }
.calc__label { display: block; color: var(--fg-2); font-weight: 500; }
.calc__orders { display: block; font: 800 clamp(3rem, 9vw, 6.5rem) var(--font-display); letter-spacing: -0.04em; line-height: 1; margin: 6px 0 22px; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--pct, 33%), var(--line) var(--pct, 33%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: var(--fg); border: 5px solid var(--brand); cursor: grab; box-shadow: 0 6px 30px -6px var(--brand); transition: transform .15s; }
input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.1); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--fg); border: 5px solid var(--brand); cursor: grab; }
input[type="range"]:focus-visible { outline-offset: 10px; }
.calc__ticks { display: flex; justify-content: space-between; color: var(--fg-2); font-size: .85rem; margin-top: 10px; font-variant-numeric: tabular-nums; }
.calc__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 56px; text-align: left; }
.calc__card { padding: clamp(24px, 3.5vw, 40px); border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--bg-2) 70%, transparent); backdrop-filter: blur(10px); position: relative; overflow: hidden; }
.calc__card--us { border-color: color-mix(in srgb, var(--glow) 50%, transparent); box-shadow: 0 30px 80px -40px var(--brand); }
.calc__who { color: var(--fg-2); font-weight: 600; }
.calc__amount { font: 800 clamp(2.6rem, 6vw, 5rem) var(--font-display); letter-spacing: -0.04em; line-height: 1; margin: 10px 0 8px; font-variant-numeric: tabular-nums; }
.calc__card--us .calc__amount { color: var(--glow); }
.calc__sub { color: var(--fg-2); font-size: .95rem; min-height: 2.6em; }
.calc__bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: 22px; overflow: hidden; }
.calc__bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--fg-2); transition: width .7s var(--ease-out); }
.calc__card--us .calc__bar i { background: linear-gradient(90deg, var(--brand), var(--glow)); }
.calc__save { margin-top: 44px; font-size: clamp(1.25rem, 2.6vw, 2rem); font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
.calc__save strong { font-weight: 800; color: var(--glow); font-variant-numeric: tabular-nums; }
.calc__note { color: var(--fg-2); font-size: .9rem; max-width: 70ch; margin: 24px auto 0; }
@media (max-width: 680px) { .calc__grid { grid-template-columns: 1fr; } }

/* ───────── Statementy ───────── */
.statement__p { color: var(--fg-2); font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 50ch; margin-top: 32px; }
.statement__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 860px) { .statement__grid { grid-template-columns: 1fr; } }

.demo { border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--bg-2) 70%, transparent); backdrop-filter: blur(10px); padding: 24px; display: grid; gap: 20px; }
.demo__input { font-size: 1.1rem; line-height: 1.5; min-height: 5.5em; padding: 16px 18px; border-radius: 12px; background: color-mix(in srgb, var(--fg) 5%, transparent); border: 1px solid var(--line); }
.demo__cursor::after { content: ""; display: inline-block; width: 2px; height: 1.1em; background: var(--glow); vertical-align: -0.2em; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo__rule { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .95rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--fg) 6%, transparent); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.chip--when { border-color: color-mix(in srgb, var(--brand) 70%, transparent); }
.chip--do { border-color: color-mix(in srgb, var(--glow) 60%, transparent); color: var(--glow); }
.demo.typed .chip { opacity: 1; transform: none; }
.demo.typed .chip:nth-child(1) { transition-delay: .1s; } .demo.typed .chip:nth-child(2) { transition-delay: .25s; } .demo.typed .chip:nth-child(3) { transition-delay: .4s; }
.demo.typed .chip:nth-child(4) { transition-delay: .6s; } .demo.typed .chip:nth-child(5) { transition-delay: .75s; } .demo.typed .chip:nth-child(6) { transition-delay: .9s; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.step { border-top: 1px solid var(--line); padding-top: 22px; }
.step b { display: block; font: 800 3rem var(--font-display); letter-spacing: -0.04em; line-height: 1; color: var(--glow); margin-bottom: 14px; }
.step p { color: var(--fg-2); font-size: 1.1rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ───────── Zakres ───────── */
.scope__list { list-style: none; margin: 48px 0 0; padding: 0; }
.scope__list li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); font-size: 1.15rem; color: var(--fg-2); }
.scope__list li:last-child { border-bottom: 1px solid var(--line); }
.scope__list b { font: 700 1.5rem var(--font-display); letter-spacing: -0.02em; color: var(--fg); }
@media (max-width: 640px) { .scope__list li { grid-template-columns: 1fr; gap: 8px; } }

/* ───────── Oferta ───────── */
.offer .wrap { text-align: center; }
.offer__kicker { color: var(--glow); font-weight: 600; font-size: 1.1rem; margin-bottom: 20px; }
.offer__list { list-style: none; margin: 44px auto 56px; padding: 0; max-width: 60ch; display: grid; gap: 18px; font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: var(--fg-2); }
.offer__list b { color: var(--fg); font-weight: 600; }

/* ───────── Formularz ───────── */
.signup .wrap { max-width: 860px; }
.signup__p { color: var(--fg-2); font-size: 1.15rem; max-width: 60ch; margin: 24px 0 48px; }
.form { display: grid; gap: 40px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; }
legend { font: 700 1.5rem var(--font-display); letter-spacing: -0.02em; margin-bottom: 18px; padding: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 8px; font-weight: 500; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], select, textarea {
  width: 100%; font: 400 1.05rem var(--font-body); color: var(--fg);
  background: color-mix(in srgb, var(--fg) 5%, transparent); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 15px 16px; transition: border-color .2s, background-color .2s;
}
select option { color: #111; }
textarea { resize: vertical; min-height: 120px; }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--glow); background: color-mix(in srgb, var(--fg) 8%, transparent); }
.form .is-invalid { border-color: var(--danger); }
.form__error { color: var(--danger); font-size: .9rem; font-weight: 400; }
.form__checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 18px; }
.form__group-label { grid-column: 1 / -1; font-weight: 500; }
.check { display: flex !important; align-items: flex-start; gap: 12px; font-weight: 400 !important; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.check--consent { padding: 18px; border: 1px solid var(--line); border-radius: 12px; font-size: .95rem; color: var(--fg-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__actions { display: grid; gap: 14px; justify-items: start; }
.form__status { min-height: 1.5em; color: var(--fg-2); }
.form__status.is-error { color: var(--danger); }
.form__done { border: 1px solid color-mix(in srgb, var(--success) 60%, transparent); border-radius: var(--radius); padding: 40px; }
.form__done p { color: var(--fg-2); margin-top: 16px; font-size: 1.15rem; }

/* ───────── Stopka ───────── */
.foot { border-top: 1px solid var(--line); padding: 36px 0; color: var(--fg-2); font-size: .95rem; }
.foot__row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .pulse, .hero__scroll span, .marquee__track { animation: none; }
  .reveal-line, .hero__title .reveal-line > span { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .chip { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
  .btn--giant { animation: none; }
}
