/* ── SoftPublica — strona informacyjna (statyczna) ─────────────────────────
   Paleta spójna z panelem klienta: akcent #FF6600 (Software & Service),
   szarości zinc. Zero zależności zewnętrznych (fonty systemowe).           */

:root {
    --accent: #FF6600;
    --accent-dark: #cc5200;
    --accent-soft: #fff3eb;
    --ink: #18181b;          /* zinc-900 */
    --ink-soft: #3f3f46;     /* zinc-700 */
    --muted: #71717a;        /* zinc-500 */
    --faint: #a1a1aa;        /* zinc-400 */
    --line: #e4e4e7;         /* zinc-200 */
    --bg: #ffffff;
    --bg-alt: #fafafa;       /* zinc-50 */
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(24, 24, 27, .06);
    --shadow-md: 0 10px 30px -12px rgba(24, 24, 27, .18);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.only-desktop { display: none; }
@media (min-width: 760px) { .only-desktop { display: inline; } }

/* ── Typografia ── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.15rem); line-height: 1.2; letter-spacing: -.015em; font-weight: 750; margin-bottom: .65rem; }
h3 { font-size: 1.07rem; font-weight: 650; margin-bottom: .35rem; }
p  { color: var(--ink-soft); }
.accent { color: var(--accent); }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em;
    text-transform: uppercase; color: var(--accent); margin-bottom: .8rem;
}
.lead, .section-lead { font-size: 1.08rem; color: var(--muted); max-width: 46rem; }
.section-lead { margin-bottom: 2.6rem; }
.section-note { margin-top: 2.4rem; font-size: .92rem; color: var(--faint); max-width: 44rem; }

/* ── Przyciski ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-weight: 600; font-size: .95rem; border-radius: 999px; padding: .78rem 1.6rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
    cursor: pointer; border: 1.5px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px rgba(255, 102, 0, .5); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink-soft); background: #fff; }
.btn-ghost:hover { border-color: var(--faint); transform: translateY(-1px); }
.btn-sm { padding: .5rem 1.1rem; font-size: .88rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1.02rem; }

/* ── Header ── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-text { line-height: 1.15; }
.brand-name { display: block; font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: .68rem; color: var(--faint); }
.brand-sub strong { color: var(--accent); font-weight: 650; }
.nav { display: flex; align-items: center; gap: 1.6rem; font-size: .93rem; font-weight: 550; color: var(--ink-soft); }
.nav a:not(.btn):hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: 0; flex-direction: column; gap: 5px; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

@media (max-width: 820px) {
    .nav-toggle { display: flex; }
    .nav {
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        padding: .5rem 1.5rem 1.2rem; display: none;
    }
    .nav.open { display: flex; }
    .nav a { padding: .8rem 0; border-bottom: 1px solid var(--bg-alt); }
    .nav a.btn { margin-top: .9rem; border-bottom: 0; }
}

/* ── Hero ── */
.hero {
    position: relative; overflow: hidden;
    padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    background: linear-gradient(180deg, #ffffff 0%, #fffaf6 55%, #ffffff 100%);
}

/* ── Tło hero: techniczna siatka + dryfująca aurora (czysty CSS) ── */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

/* siatka — wygasa promieniście, żeby nie walczyć z tekstem */
.hero-bg::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(24, 24, 27, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(24, 24, 27, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 35%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 35%, transparent 78%);
}

/* pozioma linia horyzontu pod treścią — subtelny "blask" akcentu */
.hero-bg::after {
    content: ""; position: absolute; left: 50%; top: 46%;
    width: min(880px, 90%); height: 1px; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 102, 0, .55), transparent);
    box-shadow: 0 0 36px 10px rgba(255, 102, 0, .12);
}

/* aurora — trzy miękkie plamy koloru, wolny dryf */
.blob {
    position: absolute; border-radius: 50%;
    filter: blur(90px); opacity: .55;
    animation: blob-drift 16s ease-in-out infinite alternate;
}
.blob-1 { width: 520px; height: 380px; top: -14%; right: -10%; background: radial-gradient(circle at 35% 35%, #ffb27a, #ff6600 65%, transparent 75%); opacity: .20; }
.blob-2 { width: 420px; height: 340px; bottom: -20%; left: -12%; background: radial-gradient(circle at 60% 40%, #ffd8b8, #ff8a3d 70%, transparent 80%); opacity: .15; animation-delay: 4s; }
.blob-3 { width: 340px; height: 280px; top: 30%; left: 62%; background: radial-gradient(circle at 50% 50%, #fde68a, #fca5a5 75%, transparent 85%); opacity: .11; animation-delay: 8s; }
@keyframes blob-drift {
    0%   { translate: 0 0; scale: 1; }
    100% { translate: -46px 34px; scale: 1.12; }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }
.hero-inner { position: relative; text-align: center; }
.hero .lead { margin: 1.3rem auto 2.1rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

/* pływające mini-karty (czysty CSS, bez screenshotów) */
.hero-cards {
    margin-top: clamp(2.6rem, 6vw, 4rem);
    display: flex; flex-direction: column; align-items: center; gap: .9rem;
}
.mini-card {
    display: flex; align-items: center; gap: .7rem;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: .8rem 1.15rem; box-shadow: var(--shadow-md);
    font-size: .92rem; font-weight: 560; color: var(--ink-soft);
    animation: floaty 7s ease-in-out infinite;
}
.mc-2 { animation-delay: 1.4s; transform: translateX(6%); }
.mc-3 { animation-delay: 2.8s; transform: translateX(-5%); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@media (prefers-reduced-motion: reduce) { .mini-card { animation: none; } }
.mc-dot { width: 9px; height: 9px; border-radius: 50%; background: #10b981; flex-shrink: 0; }
.mc-dot-amber { background: #f59e0b; }
.mc-dot-blue { background: #3b82f6; }
.mc-badge {
    font-size: .72rem; font-weight: 700; color: var(--muted);
    background: var(--bg-alt); border: 1px solid var(--line);
    padding: .12rem .55rem; border-radius: 999px; white-space: nowrap;
}
.mc-badge-green { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }

/* ── Sekcje ── */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.grid { display: grid; gap: 1.4rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) and (max-width: 980px) { .grid-3 { grid-template-columns: 1fr 1fr; } }

/* wyróżniki „czym jest" */
.grid.grid-3:not(.cards) { margin-top: 2.6rem; }
.feature-icon, .card-icon {
    width: 44px; height: 44px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem;
}
.feature-icon svg, .card-icon svg { width: 24px; height: 24px; }
.feature p, .card p { font-size: .95rem; color: var(--muted); }

/* karty modułów */
.cards { margin-top: 2.6rem; }
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem 1.5rem; box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #f4c9ab; }

/* bezpieczeństwo */
.shields { margin-top: 2.6rem; }
.shield {
    border-left: 3px solid var(--accent); padding: .35rem 0 .35rem 1.35rem;
}
.shield p { font-size: .96rem; color: var(--muted); }

/* wdrożenie — kroki */
.steps { list-style: none; margin-top: 2.6rem; display: grid; gap: 1.4rem; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
    position: relative; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.7rem 1.5rem 1.5rem; box-shadow: var(--shadow-sm);
}
.step-no {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--accent); color: #fff; font-weight: 750; font-size: .95rem;
    margin-bottom: 1rem; box-shadow: 0 5px 14px -5px rgba(255, 102, 0, .55);
}
.step p { font-size: .95rem; color: var(--muted); }

/* kontakt */
.contact-card {
    display: grid; gap: 2rem; align-items: center;
    background: linear-gradient(135deg, #fff7f1, #fff);
    border: 1px solid #ffd9bd; border-radius: 22px;
    padding: clamp(1.8rem, 5vw, 3.2rem); box-shadow: var(--shadow-md);
}
@media (min-width: 860px) { .contact-card { grid-template-columns: 1.25fr 1fr; } }
.contact-actions { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
.contact-line {
    display: inline-flex; align-items: center; gap: .65rem;
    font-size: 1.12rem; font-weight: 650; color: var(--ink);
}
.contact-line svg { width: 22px; height: 22px; color: var(--accent); }
.contact-line:hover { color: var(--accent); }
.contact-actions .btn { margin-top: .6rem; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 2.6rem 0; background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-note { font-size: .85rem; color: var(--faint); text-align: right; }
.footer-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-note a:hover { color: var(--accent); }
@media (max-width: 640px) { .footer-inner { flex-direction: column; align-items: flex-start; } .footer-note { text-align: left; } }

/* ── Animacje wejścia ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
