/* ====== Design tokens ====== */
:root {
  --navy-900: #0b2545;
  --navy-800: #13315c;
  --navy-700: #1b3b6f;
  --navy-50:  #eef2f7;

  --orange-600: #e26a2c;
  --orange-500: #f08a3e;
  --orange-400: #ffb26b;
  --orange-50:  #fff4ea;

  --ink:    #0e1525;
  --ink-2:  #334155;
  --ink-3:  #64748b;
  --line:   #e6e9ef;
  --bg:     #ffffff;
  --bg-alt: #f6f8fb;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,37,69,.06), 0 2px 8px rgba(11,37,69,.04);
  --shadow-md: 0 6px 16px rgba(11,37,69,.08), 0 2px 4px rgba(11,37,69,.04);
  --shadow-lg: 0 20px 40px -12px rgba(11,37,69,.18);

  --ease: cubic-bezier(.2,.7,.2,1);

  --container: 1180px;
}

:root[data-theme="dark"] {
  --bg: #0a1020;
  --bg-alt: #0e1730;
  --ink: #f1f5fc;
  --ink-2: #c4cde0;
  --ink-3: #98a1b8;
  --line: #1f2a48;
  --navy-50: #0e1730;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px rgba(0,0,0,.2);
  --shadow-md: 0 6px 16px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.2);
  --shadow-lg: 0 20px 40px -12px rgba(0,0,0,.5);
}

/* ====== Reset / base ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw + .5rem, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.6vw + .6rem, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-2); }
a { color: inherit; }

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

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy-900); color: #fff; padding: 10px 16px;
  z-index: 100; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ====== Eyebrow / pills ====== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--orange-600);
  margin: 0 0 14px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(240,138,62,.18);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(240,138,62,.18); }
  50%      { box-shadow: 0 0 0 9px rgba(240,138,62,.05); }
}

.grad {
  background: linear-gradient(90deg, var(--orange-600), var(--orange-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn--lg { padding: 15px 24px; font-size: 1rem; }
.btn--primary {
  background: var(--orange-600); color: #fff;
  box-shadow: 0 8px 20px -8px rgba(226,106,44,.6);
}
.btn--primary:hover { transform: translateY(-2px); background: var(--orange-500); box-shadow: 0 12px 26px -8px rgba(226,106,44,.55); }
.btn--ghost {
  background: transparent; color: var(--navy-900);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--navy-900); transform: translateY(-2px); }
[data-theme="dark"] .btn--ghost { color: var(--ink); }
[data-theme="dark"] .btn--ghost:hover { border-color: var(--orange-500); }
.btn:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 2px; }

/* ====== NAV ====== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
[data-theme="dark"] .nav { background: rgba(10,16,32,.78); }
.nav.is-scrolled {
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--navy-900);
}
[data-theme="dark"] .brand { color: var(--ink); }
.brand__mark {
  width: 40px; height: 40px;
  color: var(--orange-600);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.brand__mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand__mark-img--dark { display: none; }
[data-theme="dark"] .brand__mark-img--light { display: none; }
[data-theme="dark"] .brand__mark-img--dark  { display: block; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__text small { font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; }

.nav__menu {
  display: flex; align-items: center; gap: 6px;
}
.nav__menu a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: .95rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav__menu a:hover { color: var(--navy-900); background: var(--navy-50); }
.nav__menu a.is-active { color: var(--orange-600); }
[data-theme="dark"] .nav__menu a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
[data-theme="dark"] .nav__menu a.is-active { color: var(--orange-400); }
.nav__menu .btn { margin-left: 4px; }

.nav__toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
}
.nav__toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed; inset: 64px 0 0 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg);
    padding: 24px;
    transform: translateY(-12px);
    opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
    border-top: 1px solid var(--line);
    overflow-y: auto;
  }
  .nav__menu.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__menu a { font-size: 1.1rem; padding: 14px 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__menu .btn { margin: 8px 0 0; justify-content: center; }
}

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 130px) 0 clamp(60px, 9vw, 110px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,37,69,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,37,69,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
}
.hero__blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}
.hero__blob--1 {
  width: 480px; height: 480px;
  left: -120px; top: -120px;
  background: radial-gradient(circle, var(--orange-400), transparent 70%);
}
.hero__blob--2 {
  width: 560px; height: 560px;
  right: -160px; top: -80px;
  background: radial-gradient(circle, #b5d2f2, transparent 70%);
  opacity: .45;
}
[data-theme="dark"] .hero__blob--1 { opacity: .25; }
[data-theme="dark"] .hero__blob--2 { opacity: .15; }

.hero__inner {
  max-width: 920px;
}
.hero__title {
  margin: 0 0 22px;
}
.hero__title .grad { display: inline-block; }
.hero__lead {
  font-size: clamp(1.05rem, .6vw + 1rem, 1.25rem);
  max-width: 720px;
  color: var(--ink-2);
  margin-bottom: 32px;
}
.hero__lead strong { color: var(--ink); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }

.hero__pills {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.hero__pills span {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .88rem;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

/* ====== STATS ====== */
.stats {
  padding: 0 0 30px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 28px 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats__grid::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(255,178,107,.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(27,59,111,.6), transparent 50%);
  pointer-events: none;
}
.stat { text-align: center; position: relative; padding: 14px 8px; }
.stat__num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--orange-400);
  margin-bottom: 6px;
}
.stat__lbl { font-size: .92rem; color: rgba(255,255,255,.85); line-height: 1.35; }
.stat__lbl small { display: block; color: rgba(255,255,255,.55); font-size: .78rem; margin-top: 2px; }

@media (max-width: 760px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); padding: 22px 12px; }
}

/* ====== Sections ====== */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--alt { background: var(--bg-alt); }

.section__head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.section__head h2 { margin-bottom: 14px; }
.section__lead { color: var(--ink-2); font-size: 1.05rem; }

/* ====== Cards (oferta) ====== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(226,106,44,.06), transparent 50%);
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(226,106,44,.4);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card__ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--orange-50);
  color: var(--orange-600);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
[data-theme="dark"] .card__ico { background: rgba(226,106,44,.15); }
.card__ico svg { width: 26px; height: 26px; }
.card p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.card h3 { color: var(--ink); }

.card--cta {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-color: transparent;
  display: flex; flex-direction: column; justify-content: space-between;
}
.card--cta::before { display: none; }
.card--cta h3, .card--cta p { color: #fff; }
.card--cta p { color: rgba(255,255,255,.75); margin-bottom: 18px; }
.card--cta p strong { color: var(--orange-400); }
.card--cta:hover { transform: translateY(-4px); }
.card--cta .btn { align-self: flex-start; }

/* ====== Dlaczego my ====== */
.reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

.reason {
  padding: 32px 28px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
}
.reason__big {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--orange-500);
  line-height: 1;
  margin-bottom: 14px;
}
.reason h3 { margin-bottom: 10px; }
.reason p { margin: 0; color: var(--ink-2); }

/* ====== Marki ====== */
.brands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.brand-tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 16px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-900);
  letter-spacing: .01em;
  transition: transform .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
[data-theme="dark"] .brand-tile { color: var(--ink); }
.brand-tile:hover {
  transform: translateY(-3px);
  border-color: var(--orange-500);
  color: var(--orange-600);
}
.brand-tile--more {
  background: var(--navy-50);
  font-style: italic; font-weight: 500;
  color: var(--ink-3);
}

/* ====== Dla kogo ====== */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.aud {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.aud:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.aud__tag {
  display: inline-block;
  background: var(--orange-50);
  color: var(--orange-600);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: 14px;
}
[data-theme="dark"] .aud__tag { background: rgba(226,106,44,.18); }
.aud h3 { margin-bottom: 14px; }
.aud ul { margin: 0; padding: 0; list-style: none; }
.aud li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px dashed var(--line);
  font-size: .95rem;
  color: var(--ink-2);
}
.aud li:last-child { border-bottom: 0; }
.aud li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange-500);
  opacity: .85;
}

/* ====== Steps ====== */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  counter-reset: step;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  position: relative;
}
.step__num {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--orange-600);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 8px 16px -6px rgba(226,106,44,.6);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-2); }
.step__hint {
  color: var(--ink-3) !important;
  font-size: .85rem !important;
  margin: 8px 0 0 !important;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

/* ====== Kontakt ====== */
.kontakt__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 880px) { .kontakt__grid { grid-template-columns: 1fr; } }

.info-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: 28px 24px;
}
.info-card h3 { margin-bottom: 4px; }
.info-card__sub { color: var(--ink-3); font-size: .85rem; margin-bottom: 18px; }

.info-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  position: relative;
  cursor: pointer;
  transition: color .15s;
}
.info-row:last-of-type { border-bottom: 0; }
.info-row--static { cursor: default; }
.info-row:hover { color: var(--orange-600); }
.info-row__ico {
  width: 40px; height: 40px;
  flex: 0 0 auto;
  background: var(--orange-50);
  color: var(--orange-600);
  border-radius: 10px;
  display: grid; place-items: center;
}
[data-theme="dark"] .info-row__ico { background: rgba(226,106,44,.15); }
.info-row__ico svg { width: 20px; height: 20px; }
.info-row small { display: block; color: var(--ink-3); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.info-row strong { display: block; font-size: 1rem; font-weight: 600; color: var(--ink); margin-top: 2px; }
.info-row__copy {
  margin-left: auto;
  font-size: .72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--ink-3);
  opacity: 0;
  transition: opacity .15s;
}
.info-row:hover .info-row__copy { opacity: 1; }

.info-card__cta {
  margin-top: 22px;
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* form */
.kontakt__form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.kontakt__form h3 { margin-bottom: 22px; }
.kontakt__form label {
  display: block;
  margin-bottom: 16px;
}
.kontakt__form label > span {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.kontakt__form em { color: var(--orange-600); font-style: normal; }

.kontakt__form input,
.kontakt__form textarea {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}
.kontakt__form input:focus,
.kontakt__form textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(240,138,62,.15);
}
.kontakt__form input:invalid:not(:placeholder-shown),
.kontakt__form textarea:invalid:not(:placeholder-shown) {
  border-color: #dc2626;
}

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }

.check {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  color: var(--ink-2);
}
.check input { width: auto !important; margin-top: 3px; }
.check span { display: inline !important; margin: 0 !important; font-weight: 400 !important; }
.check small { color: var(--ink-3); }

.kontakt__form .btn { width: 100%; justify-content: center; margin-top: 4px; }

.form__hint { margin: 14px 0 0; font-size: .9rem; min-height: 1.4em; }
.form__hint.ok { color: #16a34a; }
.form__hint.err { color: #dc2626; }

/* ====== Footer ====== */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.85);
  padding: 64px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__inner { grid-template-columns: 1fr; } }

.brand--footer { color: #fff; margin-bottom: 16px; }
.brand--footer .brand__mark { color: var(--orange-400); }
.brand--footer .brand__text small { color: rgba(255,255,255,.5); }

.footer__about {
  color: rgba(255,255,255,.7);
  font-size: .92rem;
  max-width: 320px;
  margin: 0;
}
.footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; font-size: .92rem; color: rgba(255,255,255,.7); }
.footer a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.footer a:hover { color: var(--orange-400); border-bottom-color: var(--orange-400); }

.footer__bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}
.footer__bottom a, .footer__top { text-decoration: none; color: rgba(255,255,255,.55); }
.footer__top:hover { color: var(--orange-400); }

/* ====== Float call (mobile) ====== */
.float-call {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 40;
  display: none;
  align-items: center; gap: 8px;
  padding: 14px 18px;
  background: var(--orange-600);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 10px 28px -6px rgba(226,106,44,.6);
  animation: bounceIn .5s var(--ease) .4s both;
}
.float-call svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .float-call { display: inline-flex; } }

@keyframes bounceIn {
  from { transform: translateY(20px) scale(.85); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ====== Toast ====== */
.toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy-900);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 60;
  box-shadow: var(--shadow-lg);
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ====== Reveal animations ====== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .7s var(--ease),
    transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__blob, .eyebrow .dot { animation: none; }
}

/* =================================================================
   Stripe-like upgrades — added in v2
   ================================================================= */

/* ====== Scroll progress bar (top of nav) ====== */
.scroll-progress {
  position: absolute;
  left: 0; top: 0;
  height: 3px; width: 100%;
  background: transparent;
  z-index: 60;
  pointer-events: none;
}
.scroll-progress::before {
  content: '';
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: linear-gradient(90deg, var(--orange-600), var(--orange-400));
  transition: width .08s linear;
  will-change: width;
  box-shadow: 0 0 12px rgba(226,106,44,.5);
}

/* ====== Nav actions container + theme toggle ====== */
.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  position: relative;
  width: 42px; height: 42px;     /* WCAG 2.5.8 target size */
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  flex: 0 0 auto;
}
.theme-toggle:hover { color: var(--orange-600); border-color: var(--orange-500); transform: rotate(-10deg); }
.theme-toggle svg { width: 20px; height: 20px; position: absolute; transition: opacity .25s var(--ease), transform .35s var(--ease); }
.theme-toggle__sun  { opacity: 1; transform: scale(1) rotate(0); }
.theme-toggle__moon { opacity: 0; transform: scale(.5) rotate(-90deg); }
[data-theme="dark"] .theme-toggle__sun  { opacity: 0; transform: scale(.5) rotate(90deg); }
[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: scale(1) rotate(0); }

/* nav__toggle (hamburger) — bump to WCAG target size */
.nav__toggle { width: 42px; height: 42px; }

/* ====== Hero — extra blob + curves ====== */
.hero__blob--3 {
  width: 380px; height: 380px;
  left: 38%; top: 40%;
  background: radial-gradient(circle, #ffd4a3, transparent 70%);
  opacity: .25;
  position: absolute; border-radius: 50%; filter: blur(70px);
  animation: drift 18s ease-in-out infinite;
}
.hero__blob--1 { animation: drift 22s ease-in-out infinite reverse; }
.hero__blob--2 { animation: drift 26s ease-in-out infinite; }
[data-theme="dark"] .hero__blob--3 { opacity: .12; }

@keyframes drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-30px) scale(1.06); }
  66%     { transform: translate(-30px,20px) scale(.96); }
}

.hero__curves {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero__curves path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: drawCurve 3.2s var(--ease) .3s forwards;
}
.hero__curves path:nth-of-type(2) { animation-delay: .5s; }
.hero__curves path:nth-of-type(3) { animation-delay: .8s; }
@keyframes drawCurve { to { stroke-dashoffset: 0; } }

[data-theme="dark"] .hero__pills span {
  background: rgba(255,255,255,.04);
}
[data-theme="dark"] .hero__grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
}

/* ====== Tilt + perspective on interactive surfaces ====== */
.tilt {
  transform-style: preserve-3d;
  transform: perspective(1000px)
             rotateX(var(--tilt-x, 0deg))
             rotateY(var(--tilt-y, 0deg))
             translate3d(0,0,0);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.tilt.is-tilting { transition: transform .08s linear, box-shadow .25s var(--ease); }
.tilt.is-tilting > * { transform: translateZ(20px); transition: transform .2s var(--ease); }

@media (hover: none), (prefers-reduced-motion: reduce) {
  .tilt { transform: none !important; }
  .tilt.is-tilting > * { transform: none !important; }
}

/* card hover — preserve existing translateY but combine with tilt vars */
.card:hover,
.reason:hover,
.aud:hover,
.step:hover {
  border-color: rgba(226,106,44,.35);
}

/* ====== Magnetic buttons ====== */
.btn--magnetic {
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .18s var(--ease);
  will-change: transform;
}
.btn--magnetic.is-magnet {
  transition: transform .12s linear, box-shadow .25s var(--ease);
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .btn--magnetic { transform: none !important; }
}

/* ====== Section curve separators (Stripe-style) ====== */
.section + .section--alt,
.section--alt + .section {
  position: relative;
}
.section--alt {
  position: relative;
}
.section--alt::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.section--alt::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ====== WCAG 2.2 — focus-visible refinements ====== */
*:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
}
.theme-toggle:focus-visible,
.nav__toggle:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 3px;
}

/* WCAG 2.5.8 — min target size 24x24 for nav links */
.nav__menu a { min-height: 24px; }
.footer a { padding: 2px 0; min-height: 24px; display: inline-block; }
.footer__top { min-width: 44px; min-height: 24px; display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 6px; }
.footer__top:hover { background: rgba(255,255,255,.05); }

/* selection */
::selection { background: var(--orange-400); color: #1a0c00; }

/* ====== Subtle motion on stats card on dark ====== */
[data-theme="dark"] .stats__grid {
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}

/* dark — small contrast tweaks */
[data-theme="dark"] .card,
[data-theme="dark"] .reason,
[data-theme="dark"] .aud,
[data-theme="dark"] .step,
[data-theme="dark"] .info-card,
[data-theme="dark"] .kontakt__form,
[data-theme="dark"] .brand-tile,
[data-theme="dark"] .hero__pills span,
[data-theme="dark"] .theme-toggle {
  background: var(--bg-alt);
  border-color: var(--line);
}
[data-theme="dark"] .nav__menu {
  /* mobile fullscreen menu in dark */
}
[data-theme="dark"] .kontakt__form input,
[data-theme="dark"] .kontakt__form textarea {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
}
[data-theme="dark"] .form__hint.ok { color: #4ade80; }
[data-theme="dark"] .form__hint.err { color: #f87171; }

/* ====== Print ====== */
@media print {
  .nav, .float-call, .hero__bg, .scroll-progress { display: none !important; }
  body { color: #000; background: #fff; }
}

