/* AI-Team „mega": warstwa efektów strony głównej (pole sygnałów w hero, słowa na scrollu,
   ciemna maszynownia z licznikami i tickerem, światło na kartach cennika, linia procesu, taśma systemów). */

/* hero: pole sygnałów */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero .board { transform-style: preserve-3d; transition: transform .25s ease-out; will-change: transform; }

/* słowa na scrollu */
.moc { padding: 120px 0 110px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.moc::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(var(--line-2) 1px, transparent 1.2px); background-size: 28px 28px; opacity: .55; pointer-events: none; }
.moc .wrap { position: relative; }
.moc p.big { font-family: var(--f-head); font-weight: 600; font-size: clamp(38px, 7.2vw, 108px); line-height: .98; letter-spacing: -0.035em; max-width: 14ch; }
.moc .w { display: inline-block; color: var(--ink); opacity: .1; transform: translateY(.12em); transition: opacity .35s ease, transform .35s ease, color .35s; }
.moc .w.on { opacity: 1; transform: none; }
.moc .w.now { color: var(--green); }
.moc .sub { margin-top: 34px; display: flex; align-items: center; gap: 14px; }
.moc .sub .bar { width: 120px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.moc .sub .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--green); transition: width .25s linear; }

/* maszynownia: ciemna sekcja */
.sec.dark { background: #121311; color: #F3F2EC; border-top: 0; position: relative; overflow: hidden; }
.sec.dark::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 30%, transparent 75%); }
.sec.dark .wrap { position: relative; }
.sec.dark h2, .sec.dark h3 { color: #fff; }
.sec.dark .lead { color: #C9C8C0; }
.sec.dark .eyebrow { color: #9FE0BF; }
.sec.dark .eyebrow::before { background: #9FE0BF; }
.sec.dark .shot { background: #1B1C19; border-color: rgba(255,255,255,.12); box-shadow: 0 0 0 1px rgba(30,138,90,.25), 0 30px 80px rgba(0,0,0,.45), 0 0 60px rgba(30,138,90,.18); transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transition: transform .6s ease; }
.sec.dark .shot:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.sec.dark .shot .cap { border-color: rgba(255,255,255,.1); color: #A6A59D; }
.sec.dark .stats { background: transparent; border-color: rgba(255,255,255,.14); }
.sec.dark .stats div { border-color: rgba(255,255,255,.14); }
.sec.dark .stats .n { color: #fff; font-size: 44px; }
.sec.dark .stats .n b { color: #6FD4A3; font-weight: 600; }
.sec.dark .stats .l { color: #A6A59D; }
.sec.dark .quote { color: #F3F2EC; border-color: #2FB77A; }
.sec.dark .quote cite { color: #A6A59D; }
.sec.dark + .sec { border-top: 0; }
.ticker { margin-top: 64px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); overflow: hidden; position: relative; }
.ticker::before, .ticker::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, #121311, transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, #121311, transparent); }
.ticker .track { display: flex; gap: 0; width: max-content; animation: tick 70s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }
.ticker .it { display: inline-flex; align-items: center; gap: 12px; padding: 14px 28px 14px 0; margin-right: 28px; border-right: 1px solid rgba(255,255,255,.1); font-family: var(--f-mono); font-size: 13px; color: #D5D4CC; white-space: nowrap; }
.ticker .it .t { color: #6FD4A3; }
.ticker .it .r { color: #9FE0BF; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
@keyframes tick { to { transform: translateX(-50%); } }

/* cennik: światło pod kursorem */
.price-grid .card, .price-wide { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.price-grid .card::after, .price-wide::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(30,138,90,.13), transparent 60%); }
.price-grid .card:hover::after, .price-wide:hover::after { opacity: 1; }
.price-grid .card:hover, .price-wide:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 18px 50px rgba(27,27,27,.08); }
.price-grid .card > *, .price-wide > * { position: relative; z-index: 1; }
.price .amount { transition: color .2s; }
.price-grid .card:hover .amount { color: var(--green-ink); }

/* proces: kalka i rysowana linia */
#proces { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; background-position: center top; position: relative; }
#proces::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--paper) 0%, rgba(250,250,247,.35) 40%, rgba(250,250,247,.35) 60%, var(--paper) 100%); pointer-events: none; }
#proces .wrap { position: relative; }
.steps { position: relative; }
.steps svg.line { position: absolute; left: 0; right: 0; top: -1px; width: 100%; height: 3px; overflow: visible; pointer-events: none; }
.steps svg.line path { stroke: var(--green); stroke-width: 3; fill: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.steps.draw svg.line path { animation: drawline 1.8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.step .k::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); margin-right: 10px; vertical-align: -1px; transition: background .3s, border-color .3s; }
.steps.draw .step .k::before { background: var(--green); border-color: var(--green); }
.steps.draw .step:nth-child(1) .k::before { transition-delay: .1s; }
.steps.draw .step:nth-child(2) .k::before { transition-delay: .6s; }
.steps.draw .step:nth-child(3) .k::before { transition-delay: 1.1s; }
.steps.draw .step:nth-child(4) .k::before { transition-delay: 1.6s; }

/* taśma: zbudowane, działa */
.band { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; overflow: hidden; }
.band .row { display: flex; width: max-content; animation: tick 60s linear infinite; }
.band .row.rev { animation-direction: reverse; animation-duration: 75s; }
.band .row + .row { margin-top: 10px; }
.band:hover .row { animation-play-state: paused; }
.band .it { display: inline-flex; align-items: center; gap: 14px; padding: 0 28px 0 0; margin-right: 14px; font-family: var(--f-head); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.band .it::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.band .it small { font-family: var(--f-mono); font-weight: 400; font-size: 12px; letter-spacing: .04em; color: var(--mute); text-transform: uppercase; }
.band .lbl { display: block; text-align: center; margin-bottom: 14px; }

/* nagłówki: słowa wjeżdżają po kolei */
h2 .hw { display: inline-block; opacity: 0; transform: translateY(.35em); transition: opacity .5s ease, transform .5s ease; }
.rv.in h2 .hw, .in h2 .hw { opacity: 1; transform: none; }

/* liczniki */
.stats .n { font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
  .moc { padding: 72px 0; }
  .moc p.big { max-width: none; }
  .sec.dark .shot { transform: none; }
  .ticker { margin-top: 40px; }
  .band .it { font-size: 18px; }
  .hero .board { transform: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker .track, .band .row { animation: none; }
  .moc .w { opacity: 1; transform: none; }
  h2 .hw { opacity: 1; transform: none; }
  .steps svg.line path { stroke-dashoffset: 0; animation: none; }
  .hero .board { transform: none !important; }
}

/* logo: pierścień radaru wokół znaku */
.brand { gap: 12px; font-size: 20px; }
.brand .mark { position: relative; width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; }
.brand .mark img, .brand .mark .lg { width: 44px; height: 44px; border-radius: 50%; position: relative; z-index: 1; transition: transform .35s cubic-bezier(.2,.8,.2,1); display: block; }
.brand .mark .lg text { paint-order: stroke; }
.brand .ring { position: absolute; inset: -4px; width: 56px; height: 56px; transform: rotate(-90deg); }
.brand .ring .base { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.brand .ring .arc { fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: .22 .78; stroke-dashoffset: 0; animation: ringdraw 1.4s cubic-bezier(.2,.8,.2,1) both, ringspin 6s linear 1.4s infinite; transform-origin: 50% 50%; }
@keyframes ringdraw { from { stroke-dasharray: 0 1; } to { stroke-dasharray: .22 .78; } }
@keyframes ringspin { to { transform: rotate(360deg); } }
.brand:hover .ring .arc { animation-duration: 1.4s, 1.2s; }
.brand:hover .mark img, .brand:hover .mark .lg { transform: scale(1.08) rotate(-6deg); }
.brand .word { display: inline-flex; align-items: baseline; }
.nav .brand .word::after { content: ''; display: block; }
@media (prefers-reduced-motion: reduce) { .brand .ring .arc { animation: none; } }

/* opinie */
.review { position: relative; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.review .q { position: absolute; right: 18px; top: -26px; font-family: var(--f-head); font-weight: 700; font-size: 150px; line-height: 1; color: var(--green-soft); pointer-events: none; transition: color .3s, transform .4s; }
.review:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(27,27,27,.08); border-color: var(--line-2); }
.review:hover .q { color: #CFE9DB; transform: translateY(-6px) rotate(-6deg); }
.review p, .review .who { position: relative; }
.reviews .review:nth-child(2) { transition-delay: .12s; }
.reviews .review:nth-child(3) { transition-delay: .24s; }

/* o autorze: ramka i kolor po wjeździe */
.about .frame { position: relative; display: inline-block; }
.about .frame img { filter: grayscale(1) contrast(1.05); transition: filter 1.2s ease .2s, transform .8s ease; }
.about .photo.in .frame img { filter: none; }
.about .frame:hover img { transform: scale(1.02); }
.about .frame .c { position: absolute; width: 26px; height: 26px; border: 2px solid var(--green); opacity: 0; transition: opacity .4s, transform .6s cubic-bezier(.2,.8,.2,1); }
.about .frame .c1 { left: -12px; top: -12px; border-right: 0; border-bottom: 0; transform: translate(10px, 10px); }
.about .frame .c2 { right: -12px; top: -12px; border-left: 0; border-bottom: 0; transform: translate(-10px, 10px); }
.about .frame .c3 { left: -12px; bottom: -12px; border-right: 0; border-top: 0; transform: translate(10px, -10px); }
.about .frame .c4 { right: -12px; bottom: -12px; border-left: 0; border-top: 0; transform: translate(-10px, -10px); }
.about .photo.in .frame .c { opacity: 1; transform: none; }
.about .frame .live { position: absolute; left: 14px; bottom: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.about .frame .live .dot { width: 7px; height: 7px; }
.about .facts div { transition: padding-left .25s, color .25s; }
.about .facts div:hover { padding-left: 8px; color: var(--green-ink); }

/* AI Radar: prawdziwy radar */
#radar { position: relative; overflow: hidden; }
#radar .wrap { position: relative; z-index: 1; }
.sweep { position: absolute; right: -180px; top: 50%; width: 760px; height: 760px; margin-top: -380px; pointer-events: none; z-index: 0; }
.sweep .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-2); }
.sweep .r2 { inset: 22%; } .sweep .r3 { inset: 44%; }
.sweep::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; border-radius: 50%; opacity: .7; }
.sweep .beam { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(30,138,90,.32) 0deg, rgba(30,138,90,.12) 40deg, transparent 70deg); animation: sweep 5s linear infinite; }
.sweep .blip { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--green); opacity: 0; animation: blip 5s linear infinite; box-shadow: 0 0 0 0 rgba(30,138,90,.5); }
.sweep .b1 { left: 62%; top: 30%; animation-delay: .9s; }
.sweep .b2 { left: 72%; top: 62%; animation-delay: 2.4s; }
.sweep .b3 { left: 40%; top: 74%; animation-delay: 3.6s; }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes blip { 0% { opacity: 0; } 4% { opacity: 1; box-shadow: 0 0 0 0 rgba(30,138,90,.5); } 40% { opacity: .9; box-shadow: 0 0 0 14px rgba(30,138,90,0); } 70% { opacity: 0; } 100% { opacity: 0; } }
.radar .card { position: relative; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.radar .issue { position: relative; transition: padding-left .25s; }
.radar .issue:hover { padding-left: 6px; }
.radar .issue .px { position: absolute; left: -28px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--green); opacity: 0; transition: opacity .25s; }
.radar .issue:hover .px { opacity: 1; }
@media (max-width: 960px) { .sweep { width: 520px; height: 520px; margin-top: -260px; right: -260px; opacity: .7; } }

/* FAQ */
.faq details { position: relative; transition: background .25s; }
.faq details::before { content: ''; position: absolute; left: -18px; top: 0; bottom: 0; width: 2px; background: var(--green); transform: scaleY(0); transform-origin: top; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.faq details[open]::before { transform: scaleY(1); }
.faq summary { transition: color .2s, padding-left .25s; }
.faq details[open] summary, .faq summary:hover { color: var(--green-ink); }
.faq details p { animation: faqin .35s ease both; }
@keyframes faqin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 961px) { .faq .rv:first-child { position: sticky; top: 96px; align-self: start; } }

/* kontakt: zegar */
.contact .now { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact .now .k { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.contact .clock { font-family: var(--f-mono); font-size: 22px; letter-spacing: -.02em; }
.contact .way { position: relative; transition: padding-left .25s; }
.contact .way::after { content: '→'; font-family: var(--f-mono); position: absolute; right: 8px; opacity: 0; transition: opacity .2s, right .25s; color: var(--green); }
.contact .way:hover { padding-left: 8px; }
.contact .way:hover::after { opacity: 1; right: 0; }
.contact .way:hover .v { padding-right: 24px; }
.contact .way .v { transition: padding-right .25s, color .2s; }
.contact .way:hover .v { color: var(--green-ink); }

/* stopka: ciemna z watermarkiem */
.foot { background: #121311; color: #D5D4CC; border-top: 0; position: relative; overflow: hidden; padding-top: 72px; }
.foot .wrap { position: relative; z-index: 1; }
.foot .wm { position: absolute; left: 50%; bottom: -0.28em; transform: translateX(-50%); font-family: var(--f-head); font-weight: 700; font-size: clamp(120px, 24vw, 380px); letter-spacing: -0.05em; line-height: 1; color: rgba(255,255,255,.035); white-space: nowrap; pointer-events: none; user-select: none; }
.foot h4 { color: #8F8E86; }
.foot a { color: #C9C8C0; }
.foot a:hover { color: #fff; }
.foot .small { color: #9C9B93; }
.foot .brand { color: #fff; }
.foot .brand .ring .base { stroke: rgba(255,255,255,.2); }
.foot .bottom { border-top-color: rgba(255,255,255,.12); color: #8F8E86; }
.foot .ai-note { color: #8F8E86; }
