/* ─── AIE LANDING — local additions only ─── */

:root {
  --blue:       #4a7dff;
  --blue-dim:   rgba(74,125,255,.18);
  --blue-glow:  rgba(74,125,255,.08);
  --text:       #f0f0f5;
  --text-dim:   rgba(160,160,176,.7);
  --text-faint: rgba(106,106,122,.75);
  --bg:         #08080d;
  --border:     rgba(255,255,255,.055);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

/* ── FILM GRAIN ── */
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ─────────────────────────────────────────
   SECTION 1 — HERO
───────────────────────────────────────── */
.s-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 120px;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
  pointer-events: none;
}

.hero-video-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(135deg,
      rgba(10, 18, 48, 0.72) 0%,
      rgba(20, 30, 80, 0.48) 40%,
      rgba(10, 14, 40, 0.65) 100%);
  mix-blend-mode: multiply;
}

/* ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  animation: orbd 22s ease-in-out infinite;
}
.hero-orb-1 { width: 600px; height: 600px; top: -10%; left: -8%; background: radial-gradient(circle, rgba(74,125,255,.09) 0%, transparent 70%); animation-delay: 0s; }
.hero-orb-2 { width: 500px; height: 500px; bottom: 5%; right: -5%; background: radial-gradient(circle, rgba(100,80,255,.06) 0%, transparent 70%); animation-delay: -8s; }
.hero-orb-3 { width: 300px; height: 300px; top: 40%; left: 55%; background: radial-gradient(circle, rgba(74,125,255,.05) 0%, transparent 70%); animation-delay: -4s; }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-bottom: 80px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(107,140,255,.55);
  border: 1px solid rgba(74,125,255,.14);
  padding: 6px 18px;
  border-radius: 2px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp .8s cubic-bezier(.16,1,.3,1) .2s forwards;
}

.hero-monogram {
  font-size: clamp(72px, 16vw, 180px);
  font-weight: 200;
  letter-spacing: .12em;
  line-height: 1;
  color: #f0f0f5;
  position: relative;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(.16,1,.3,1) .4s forwards;
}

.hero-monogram::after {
  content: 'AI ENGINEERING';
  display: block;
  font-size: clamp(9px, 1.4vw, 13px);
  font-weight: 400;
  letter-spacing: .38em;
  color: rgba(107,140,255,.45);
  margin-top: 16px;
}

.hero-rule {
  width: 1px;
  height: 56px;
  background: linear-gradient(180deg, rgba(74,125,255,.4), transparent);
  margin: 40px auto;
  opacity: 0;
  animation: fadeUp .6s cubic-bezier(.16,1,.3,1) .7s forwards;
}

.hero-headline {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 300;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: rgba(240,240,245,.88);
  max-width: 620px;
  margin: 0 auto 20px;
  opacity: 0;
  animation: fadeUp .9s cubic-bezier(.16,1,.3,1) .9s forwards;
}

.hero-sub {
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 300;
  letter-spacing: .04em;
  color: var(--text-faint);
  line-height: 1.9;
  max-width: 500px;
  margin: 0 auto 64px;
  opacity: 0;
  animation: fadeUp .9s cubic-bezier(.16,1,.3,1) 1.1s forwards;
}

.hero-sub em {
  color: rgba(107,140,255,.7);
  font-style: normal;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s cubic-bezier(.16,1,.3,1) 1.3s forwards;
}

.scroll-ind-hero {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 10;
  opacity: 0;
  animation: fadeUp .6s cubic-bezier(.16,1,.3,1) 2s forwards;
  pointer-events: none;
}
.scroll-ind-hero span {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(240,240,245,.18);
}
.scroll-vline-hero {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, rgba(74,125,255,.38), transparent);
  animation: svp 2s ease-in-out infinite;
}

/* ─────────────────────────────────────────
   MARQUEE
───────────────────────────────────────── */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: flex;
  gap: 72px;
  animation: marq 30s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-item {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(240,240,245,.14);
  flex-shrink: 0;
}
.marquee-item strong {
  color: rgba(74,125,255,.35);
  font-weight: 500;
}

/* ─────────────────────────────────────────
   SECTION 2 — MANIFESTO
───────────────────────────────────────── */
.s-manifesto {
  padding: 110px 0 84px;
  position: relative;
}

.manifesto-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(74,125,255,.4);
  margin-bottom: 28px;
}

.manifesto-title {
  font-size: clamp(28px, 4.5vw, 58px);
  font-weight: 200;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--text);
  max-width: 760px;
  margin-bottom: 32px;
}

.manifesto-title em {
  font-style: normal;
  background: linear-gradient(135deg, #6b8cff 0%, #4a7dff 50%, #8eaaff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.manifesto-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  max-width: 760px;
}

.manifesto-col {
  background: rgba(8,8,13,.95);
  padding: 32px 28px;
}

.manifesto-col-label {
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(106,106,122,.6);
  margin-bottom: 18px;
}

.manifesto-col p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(160,160,176,.8);
}

.manifesto-col p strong {
  color: rgba(240,240,245,.75);
  font-weight: 400;
}

/* ─────────────────────────────────────────
   SECTION 3 — 8 WARSTW
───────────────────────────────────────── */
.s-layers {
  padding: 84px 0;
  position: relative;
}

.section-eyebrow {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(74,125,255,.4);
  font-weight: 500;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(22px, 3.2vw, 38px);
  font-weight: 300;
  letter-spacing: -.015em;
  color: var(--text);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-faint);
  max-width: 520px;
  margin-bottom: 44px;
}

.layers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.layer-item {
  background: rgba(8,8,13,.9);
  padding: 28px 28px 28px 24px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background .3s;
  border-left: 2px solid transparent;
  cursor: default;
}

.layer-item:hover {
  background: rgba(74,125,255,.038);
  border-left-color: rgba(74,125,255,.6);
}

.layer-n {
  font-size: 11px;
  color: rgba(74,74,102,.6);
  font-weight: 400;
  letter-spacing: .06em;
  min-width: 22px;
  margin-top: 2px;
  flex-shrink: 0;
}

.layer-body {}
.layer-name {
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.layer-desc {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-faint);
  line-height: 1.7;
}

.layers-footer {
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid rgba(74,125,255,.1);
  background: rgba(74,125,255,.03);
  border-radius: 4px;
}

.layers-footer p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(160,160,176,.75);
  line-height: 1.8;
}

.layers-footer strong {
  color: rgba(107,140,255,.85);
  font-weight: 400;
}

/* ─────────────────────────────────────────
   SECTION 4 — FUNDAMENTY
───────────────────────────────────────── */
.s-fundamenty {
  padding: 0 0 96px;
}

.fund-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 56px;
}

.fund-item {
  background: rgba(8,8,13,.9);
  padding: 32px 24px;
  transition: background .35s, transform .35s cubic-bezier(.16,1,.3,1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.fund-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74,125,255,.25), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.fund-item:hover { background: rgba(74,125,255,.04); }
.fund-item:hover::after { opacity: 1; }

.fund-icon {
  width: 32px; height: 32px;
  border: 1px solid rgba(74,125,255,.18);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 18px;
  background: rgba(74,125,255,.06);
}

.fund-name {
  font-size: 13px;
  font-weight: 500;
  color: rgba(240,240,245,.85);
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.fund-desc {
  font-size: 11px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(106,106,122,.75);
}

/* ─────────────────────────────────────────
   SECTION 5 — OPERATOR ACCESS
───────────────────────────────────────── */
.s-access {
  padding: 0 0 110px;
}

.access-wrap {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.access-top-bar {
  height: 2px;
  background: linear-gradient(90deg, transparent, #4a7dff, #8eaaff, #4a7dff, transparent);
  background-size: 200% 100%;
  animation: hrsh 4s ease-in-out infinite;
}

.access-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 0;
  background: rgba(8,8,13,.97);
}

.access-left {
  padding: 40px 40px 40px 44px;
  border-right: 1px solid var(--border);
}

.access-label {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(74,125,255,.4);
  margin-bottom: 28px;
  font-weight: 500;
}

.access-headline {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 200;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 14px;
}

.access-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-faint);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 420px;
}

.access-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.access-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  font-weight: 300;
  color: rgba(160,160,176,.7);
  line-height: 1.6;
}

.access-item-dot {
  width: 1px;
  height: 1px;
  min-width: 5px;
  min-height: 5px;
  border: 1px solid rgba(74,125,255,.45);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
  background: rgba(74,125,255,.15);
}

.access-item strong {
  color: rgba(220,220,230,.75);
  font-weight: 400;
}

.access-right {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(74,125,255,.022);
  position: relative;
}

.access-right::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(74,125,255,.06) 0%, transparent 70%);
  pointer-events: none;
}

.access-price-label {
  font-size: 9px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(74,125,255,.4);
  margin-bottom: 14px;
  font-weight: 500;
}

.access-price {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 200;
  color: var(--text);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 6px;
}

.access-price sup {
  font-size: .35em;
  vertical-align: super;
  letter-spacing: 0;
  color: rgba(74,125,255,.7);
  font-weight: 400;
}

.access-price-note {
  font-size: 11px;
  color: rgba(106,106,122,.6);
  letter-spacing: .06em;
  margin-bottom: 28px;
  font-weight: 300;
}

/* ─────────────────────────────────────────
   SECTION 6 — DLA KOGO
───────────────────────────────────────── */
.s-dlakogo {
  padding: 0 0 110px;
}

.dlakogo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 56px;
}

.dlakogo-item {
  background: rgba(8,8,13,.9);
  padding: 34px 28px;
  transition: background .3s;
}

.dlakogo-item:hover { background: rgba(74,125,255,.032); }

.dlakogo-type {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(74,125,255,.4);
  margin-bottom: 14px;
  font-weight: 500;
}

.dlakogo-name {
  font-size: 16px;
  font-weight: 400;
  color: rgba(240,240,245,.85);
  margin-bottom: 12px;
  letter-spacing: -.005em;
}

.dlakogo-desc {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-faint);
}

.dlakogo-footer {
  margin-top: 1px;
  background: rgba(8,8,13,.9);
  border-top: none;
  padding: 32px 28px;
  border-top: 1px solid var(--border);
}

.dlakogo-footer p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(160,160,176,.7);
  line-height: 1.8;
}

.dlakogo-footer strong {
  color: rgba(107,140,255,.8);
  font-weight: 400;
}

/* ─────────────────────────────────────────
   SECTION 7 — NIE DLA KAŻDEGO
───────────────────────────────────────── */
.s-notfor {
  padding: 0 0 110px;
}

.notfor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
}

.notfor-col {}
.notfor-col-label {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 500;
}
.notfor-col-label.bad  { color: rgba(255,80,80,.45);  }
.notfor-col-label.good { color: rgba(74,125,255,.5);  }

.notfor-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.notfor-list li {
  font-size: 14px;
  font-weight: 300;
  color: rgba(160,160,176,.7);
  line-height: 1.7;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.038);
}

.notfor-list li:last-child { border-bottom: none; padding-bottom: 0; }

.notfor-mark {
  margin-top: 3px;
  font-size: 11px;
  flex-shrink: 0;
  font-weight: 500;
}

.notfor-mark.bad  { color: rgba(255,80,80,.5);  }
.notfor-mark.good { color: rgba(74,125,255,.7); }

/* ─────────────────────────────────────────
   FINAL CTA
───────────────────────────────────────── */
.s-cta {
  padding: 0 0 84px;
  text-align: center;
}

.cta-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 70px 40px;
  overflow: hidden;
  background: rgba(8,8,13,.97);
}

.cta-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(74,125,255,.07) 0%, transparent 65%);
  pointer-events: none;
}

.cta-top-bar {
  height: 1px;
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, transparent, rgba(74,125,255,.4), transparent);
}

.cta-label {
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(74,125,255,.4);
  margin-bottom: 28px;
  font-weight: 500;
}

.cta-title {
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 200;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-faint);
  line-height: 1.9;
  max-width: 480px;
  margin: 0 auto 52px;
}

.cta-price-display {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 200;
  color: var(--text);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.cta-price-note {
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(106,106,122,.55);
  margin-bottom: 44px;
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.aie-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.aie-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(106,106,122,.5);
  text-transform: uppercase;
  font-weight: 400;
}

.footer-note {
  font-size: 11px;
  color: rgba(74,74,102,.55);
  font-weight: 300;
}

/* ─────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────
   MOBILE
───────────────────────────────────────── */
@media (max-width: 768px) {
  .manifesto-cols  { grid-template-columns: 1fr; }
  .fund-grid       { grid-template-columns: repeat(2, 1fr); }
  .dlakogo-grid    { grid-template-columns: 1fr; }
  .notfor-grid     { grid-template-columns: 1fr; }
  .access-inner    { grid-template-columns: 1fr; }
  .access-left     { padding: 36px 24px; border-right: none; border-bottom: 1px solid var(--border); }
  .access-right    { padding: 40px 24px; }
  .layers-grid     { grid-template-columns: 1fr; }
  .cta-wrap        { padding: 64px 24px; }
  .aie-footer-inner{ flex-direction: column; text-align: center; gap: 10px; }
}

/* ================================================================
   KARUZELA AIE — styl spójny z resztą landingu
   ================================================================ */
.aie-carousel-section {
  position: relative;
  padding: 120px 40px 100px;
  background: #0a0a0a;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.aie-carousel-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,212,255,0.06), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0,212,255,0.04), transparent);
  pointer-events: none;
}

.carousel-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
}

.carousel-label {
  display: inline-block;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: rgba(0,212,255,0.8);
  padding: 6px 14px;
  border: 1px solid rgba(0,212,255,0.25);
  border-radius: 999px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.carousel-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #f0f0f0;
  margin: 0 0 12px;
}

.carousel-title strong {
  font-weight: 600;
  background: linear-gradient(135deg, #fff 0%, rgba(0,212,255,0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.carousel-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  margin: 0;
  letter-spacing: 0.02em;
}

/* viewport */
.carousel-viewport {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 20px;
}

.carousel-track-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 auto;
  width: clamp(220px, 28vw, 320px);
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #111;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.6s ease, box-shadow 0.6s ease, border-color 0.6s ease;
  cursor: grab;
}

.carousel-slide:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(0,212,255,0.35);
  box-shadow: 0 20px 60px -20px rgba(0,212,255,0.25);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}

.carousel-slide:hover img {
  transform: scale(1.05);
}

.carousel-slide::after {
  content: attr(data-index);
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.55);
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}

/* przyciski */
.carousel-btn {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0,212,255,0.35);
  background: rgba(10,10,10,0.75);
  color: rgba(0,212,255,0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.carousel-btn:hover {
  background: rgba(0,212,255,0.12);
  border-color: rgba(0,212,255,0.7);
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(0,212,255,0.35);
}

.carousel-btn:active {
  transform: scale(0.95);
}

/* progress bar */
.carousel-progress {
  max-width: 1400px;
  margin: 32px auto 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
}

.carousel-progress-bar {
  height: 100%;
  width: 5%;
  background: linear-gradient(90deg, rgba(0,212,255,0.3), rgba(0,212,255,0.9));
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(0,212,255,0.6);
}

/* meta: licznik + dots + nazwa pliku */
.carousel-meta {
  max-width: 1400px;
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
}

.carousel-meta span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  min-width: 60px;
}

#carouselCounter { text-align: left; }
#carouselFileName { text-align: right; }

.carousel-dots {
  flex: 1;
  display: flex;
  gap: 6px;
  justify-content: center;
  overflow: hidden;
  max-width: 400px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.carousel-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: all 0.4s ease;
  cursor: pointer;
}

.carousel-dot.active {
  background: rgba(0,212,255,0.9);
  box-shadow: 0 0 10px rgba(0,212,255,0.8);
  transform: scale(1.4);
}

.carousel-dot:hover:not(.active) {
  background: rgba(255,255,255,0.4);
}

/* responsywność */
@media (max-width: 768px) {
  .aie-carousel-section { padding: 80px 20px 60px; }
  .carousel-viewport { gap: 12px; padding: 0 8px; }
  .carousel-btn { width: 40px; height: 40px; }
  .carousel-slide { width: clamp(180px, 70vw, 260px); }
  .carousel-track { gap: 14px; }
}
/* LIGHTBOX */
.aie-lightbox {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75vw;
  height: 75vh;
  z-index: 99999;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.aie-lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.aie-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.96);
  border-radius: 8px;
  z-index: 0;
}
.aie-lightbox-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aie-lightbox-img {
  display: block;
  max-width: 90%;
  max-height: 90%;
  border-radius: 4px;
  object-fit: contain;
}
.aie-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .2s;
}
.aie-lightbox-close:hover { background: rgba(255,255,255,.18); }
.aie-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .2s;
}
.aie-lightbox-nav:hover { background: rgba(255,255,255,.18); }
.aie-lightbox-prev { left: 12px; }
.aie-lightbox-next { right: 12px; }
.aie-lightbox-counter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(255,255,255,.5);
  font-size: 13px;
  letter-spacing: .06em;
}
@media (max-width: 640px) {
  .aie-lightbox { width: 95vw; height: 70vh; }
}
/* ================================================================
   SPIS TREŚCI MODAL
   ================================================================ */
.s-toc-trigger {
  padding: 110px 0;
  text-align: center;
}

.toc-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 20px 40px;
  background: rgba(74,125,255,0.08);
  border: 1px solid rgba(74,125,255,0.25);
  border-radius: 4px;
  color: rgba(240,240,245,0.85);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.toc-trigger-btn:hover {
  background: rgba(74,125,255,0.15);
  border-color: rgba(74,125,255,0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(74,125,255,0.3);
}

.toc-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toc-modal.active {
  opacity: 1;
  visibility: visible;
}

.toc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.toc-modal-content {
  position: relative;
  z-index: 1;
  width: 75vw;
  height: 75vh;
  background: #08080d;
  border: 1px solid rgba(74,125,255,.18);
  border-radius: 8px;
  padding: 60px 48px 48px;
  overflow-y: auto;
}

.toc-modal-close {
  position: fixed;
  top: calc(12.5vh + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(74,125,255,0.35);
  background: rgba(10,10,10,0.75);
  color: rgba(74,125,255,0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.toc-modal-close:hover {
  background: rgba(74,125,255,0.15);
  border-color: rgba(74,125,255,0.7);
  transform: translateX(-50%) scale(1.1) rotate(90deg);
}

.toc-header {
  text-align: center;
  margin-bottom: 64px;
}

.toc-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(74,125,255,0.6);
  margin-bottom: 20px;
  font-weight: 500;
}

.toc-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 200;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

.toc-subtitle {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-faint);
  line-height: 1.7;
}

.toc-sections {
  display: grid;
  gap: 56px;
}

.toc-block {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 48px;
  background: rgba(8,8,13,0.6);
}

.toc-block-title {
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.toc-block-subtitle {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 36px;
  font-weight: 300;
}

.toc-part {
  margin-bottom: 32px;
}

.toc-part:last-child {
  margin-bottom: 0;
}

.toc-part-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(74,125,255,0.7);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(74,125,255,0.15);
}

.toc-chapters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.toc-chapter {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  transition: background 0.2s ease;
}

.toc-chapter:hover {
  background: rgba(74,125,255,0.05);
}

.toc-chapter-num {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(74,125,255,0.6);
  min-width: 32px;
  flex-shrink: 0;
}

.toc-chapter-title {
  font-size: 13px;
  font-weight: 400;
  color: rgba(240,240,245,0.8);
  line-height: 1.5;
}

.toc-appendix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.toc-part--cs {
  border: 1px solid rgba(0,210,150,0.18);
  border-radius: 8px;
  padding: 24px;
  background: rgba(0,210,150,0.03);
}

.toc-part-label--cs {
  color: rgba(0,210,150,0.85);
  border-bottom-color: rgba(0,210,150,0.2);
  letter-spacing: 0.15em;
}

.toc-cs-meta {
  font-size: 11px;
  color: rgba(0,210,150,0.45);
  font-family: 'Courier New', monospace;
  margin-bottom: 16px;
  margin-top: -8px;
}

.toc-chapters--cs {
  grid-template-columns: 1fr;
  gap: 8px;
}

.toc-chapter--cs {
  border: 1px solid rgba(0,210,150,0.1);
  background: rgba(0,210,150,0.03);
  border-radius: 6px;
  align-items: flex-start;
}

.toc-chapter--cs:hover {
  background: rgba(0,210,150,0.07);
  border-color: rgba(0,210,150,0.25);
}

.toc-chapter-num--cs {
  color: rgba(0,210,150,0.7);
  min-width: 40px;
  padding-top: 1px;
}

@media (max-width: 768px) {
  .toc-modal-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 90vh;
    width: 95vw;
    overflow: hidden;
  }
  .toc-modal-close {
    position: static;
    align-self: center;
    flex-shrink: 0;
    margin: 12px 0 0 0;
    transform: none;
  }
  .toc-modal-inner {
    overflow-y: auto;
    padding: 20px 20px 60px;
    flex: 1;
  }
  .toc-block {
    padding: 32px 24px;
  }
  .toc-chapters {
    grid-template-columns: 1fr;
  }
  .toc-appendix {
    grid-template-columns: 1fr;
  }
}


.s-what {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}
.what-box {
  border: 1px solid rgba(74,125,255,.18);
  border-radius: 4px;
  padding: 56px 60px;
  background: rgba(74,125,255,.04);
  position: relative;
  overflow: hidden;
}
.what-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(74,125,255,.6), rgba(140,170,255,.8), rgba(74,125,255,.6), transparent);
}
.what-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: rgba(74,125,255,.8);
  margin-bottom: 28px;
}
.what-title {
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #f0f0f5;
  margin-bottom: 28px;
  max-width: 820px;
  text-transform: uppercase;
}
.what-text {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(200,200,215,.75);
  max-width: 680px;
}
@media (max-width: 768px) {
  .what-box { padding: 36px 24px; }
  .what-title { font-size: clamp(18px, 5vw, 24px); }
}
