/* ================= strona główna ================= */

/* tło: siatka + poświata */
.bg-grid {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow.g1 { width: 520px; height: 420px; top: -160px; right: 4%; background: rgba(34, 197, 94, .16); animation: float 14s ease-in-out infinite; }
.glow.g2 { width: 420px; height: 360px; top: 120px; left: -120px; background: rgba(59, 130, 246, .10); animation: float 18s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(30px, 24px) scale(1.06); } }

/* górny pasek */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: 13px; color: var(--text-3); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 16px; }
.topbar-items { display: flex; gap: 22px; }
.topbar-items span { display: inline-flex; align-items: center; gap: 6px; }
.topbar [data-lucide], .topbar .lucide { width: 14px; height: 14px; }
.status-ok { color: #4ade80; display: inline-flex; align-items: center; gap: 7px; }
.status-ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); } }

/* nawigacja */
.nav { position: sticky; top: 0; z-index: 50; transition: background .25s, border-color .25s, backdrop-filter .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 9, 13, .78); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; gap: 36px; height: 68px; }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta { display: flex; gap: 8px; align-items: center; }
.nav-burger { display: none; }

/* hero */
.hero { position: relative; padding: 110px 0 120px; }
.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 800; margin: 26px 0 22px; letter-spacing: -.035em; animation: heroIn .8s var(--ease) both .05s; }
.hero h1 .accent { background: linear-gradient(92deg, #4ade80, #22c55e 45%, #86efac); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .pill { animation: heroIn .8s var(--ease) both; }
.hero .lead { font-size: 18px; color: var(--text-2); max-width: 620px; animation: heroIn .8s var(--ease) both .15s; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; animation: heroIn .8s var(--ease) both .25s; }
.hero-trust { display: flex; gap: 26px; margin-top: 40px; flex-wrap: wrap; justify-content: center; color: var(--text-2); font-size: 14px; animation: heroIn .8s var(--ease) both .35s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust [data-lucide], .hero-trust .lucide { color: var(--brand); }

/* pasek technologii */
.stack { border-block: 1px solid var(--line); background: var(--bg-soft); }
.stack .container { display: flex; align-items: center; gap: 36px; padding: 22px 0; flex-wrap: wrap; justify-content: space-between; }
.stack p { font-size: 13px; color: var(--text-3); }
.stack-items { display: flex; gap: 34px; flex-wrap: wrap; }
.stack-items span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 14.5px; opacity: .8; transition: opacity .2s; }
.stack-items span:hover { opacity: 1; }

/* sekcje */
.section { padding: 100px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .1em; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; margin: 12px 0 14px; }
.section-head p { color: var(--text-2); font-size: 16.5px; }

/* funkcje */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: var(--bg); padding: 30px 28px; transition: background .25s; }
.feature:hover { background: var(--bg-soft); }
.feature .fi { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--brand); margin-bottom: 18px; transition: transform .3s var(--ease), border-color .3s; }
.feature:hover .fi { transform: translateY(-3px); border-color: rgba(34, 197, 94, .45); }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--text-2); font-size: 14.5px; }

/* cennik */
.pricing-tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); margin: 0 auto 36px; }
.pricing-tabs button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 18px; border-radius: 9px; border: 0; background: none; color: var(--text-2); font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.pricing-tabs button.active { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 4px 14px -6px rgba(0, 0, 0, .6); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 900px; margin-inline: auto; }
.plan { position: relative; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan.featured { border-color: rgba(34, 197, 94, .5); background: linear-gradient(180deg, rgba(34, 197, 94, .07), var(--surface) 45%); }
.plan .badge-top { position: absolute; top: -11px; right: 22px; }
.plan h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; }
.plan .price { font-family: var(--font-head); font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin: 18px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--text-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 11px; }
.plan li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.plan li [data-lucide], .plan li .lucide { color: var(--brand); width: 17px; height: 17px; }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .lucide, .faq summary [data-lucide] { transition: transform .25s var(--ease); color: var(--text-3); }
.faq details[open] summary .lucide, .faq details[open] summary [data-lucide] { transform: rotate(45deg); color: var(--brand); }
.faq details p { padding: 0 20px 18px; color: var(--text-2); }

/* CTA */
.cta { position: relative; overflow: hidden; border-radius: 22px; padding: 56px; border: 1px solid var(--line-2); background: radial-gradient(600px 300px at 85% 0%, rgba(34, 197, 94, .18), transparent 70%), var(--surface); display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin-bottom: 10px; }

/* stopka */
.footer { border-top: 1px solid var(--line); margin-top: 100px; padding: 56px 0 30px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 14px; font-family: var(--font); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text-2); font-size: 14px; transition: color .15s; }
.footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }

@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav .container { justify-content: space-between; }
  .topbar-items span:not(:first-child) { display: none; }
  .features { grid-template-columns: 1fr; }
  .cta { padding: 34px 26px; }
  .section { padding: 72px 0; }
}
