/* Oferris RFQ Studio - landing. System wizualny wspólny z aitransformation.pl */

@font-face {
    font-family: 'Caviar Dreams';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/CaviarDreams.woff2') format('woff2');
}

@font-face {
    font-family: 'Caviar Dreams';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/Caviar_Dreams_Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin-ext-300-700.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url('fonts/inter-latin-300-700.woff2?v=2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny (jasny = baza, ciemny przez data-theme z theme-boot.js) ---------- */
:root {
    --bg: #FFFFFF;
    --bg-soft: #F1F5F9;
    --card: #FFFFFF;
    --ink: #0F172A;
    --ink-2: #475569;
    --line: #E2E8F0;
    --accent: #0F766E;          /* turkus, AA na jasnym tle */
    --accent-strong: #115E59;
    --gold: #854D0E;            /* złoto ofert, AA także na złotawym tle oferty założycielskiej */
    --on-accent: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0B1220;
    --bg-soft: #111B2E;
    --card: #142034;
    --ink: #F1F5F9;
    --ink-2: #A3B1C6;
    --line: #22324A;
    --accent: #5EEAD4;
    --accent-strong: #99F6E4;
    --gold: #F2CF5B;
    --on-accent: #042F2E;
    --nav-bg: rgba(11, 18, 32, 0.82);
    --shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }

.ic { display: inline-block; height: 1em; fill: currentColor; vertical-align: -0.125em; flex-shrink: 0; }

.display {
    font-family: 'Caviar Dreams', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); box-shadow: 0 10px 24px rgba(15, 118, 110, 0.25); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn .ic { transition: transform 0.25s ease; }
.btn:hover .ic-arrow { transform: translateX(4px); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Nawigacja ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.nav-in { display: flex; align-items: center; gap: 1.5rem; height: 68px; }

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-right: auto;
    color: var(--ink);
    text-decoration: none;
}

.brand img { width: 30px; height: 31px; }
.brand-name { font-family: 'Caviar Dreams', sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1; }
.brand-name small { font-weight: 400; color: var(--ink-2); font-size: 0.75em; margin-left: 0.25rem; }

.nav-links { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 0.92rem; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.nav-toggle .ic { font-size: 1.2rem; }

/* przełącznik motywu (jasny / ciemny / jak w systemie) */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft); }
.theme-switch button {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
    transition: background-color 0.18s ease-out, color 0.18s ease-out;
}
.theme-switch svg { width: 16px; height: 16px; }
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--bg); color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }

@media (max-width: 900px) {
    .nav-toggle { display: grid; place-items: center; }
    .nav-links {
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1rem 1.5rem;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        display: none;
    }
    .nav-links.open { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 1.25rem;
}

.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }

.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 1.25rem; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34rem; margin: 0 0 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-note { margin-top: 1.5rem; font-size: 0.9rem; color: var(--ink-2); display: flex; gap: 1.25rem; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-note .ic { color: var(--accent); }

/* Ilustracja jako „karta” w stylu paneli z aitransformation.pl */
.art {
    --img-r: 0.757;
    --pos-x: 0.5;
    --pos-y: 0.32;
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 620px;
    width: 100%;
    margin-left: auto;
    border-radius: 24px;
    overflow: hidden;
    background: #03100f url("img/oferris-bg.webp") 50% 32% / cover no-repeat;
    box-shadow: var(--shadow);
    container-type: size;
}

@supports (background-image: image-set(url("x.avif") type("image/avif"))) {
    .art { background-image: image-set(url("img/oferris-bg.avif?v=2") type("image/avif"), url("img/oferris-bg.webp") type("image/webp")); }
}

.art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 16, 15, 0.55), transparent 45%);
    pointer-events: none;
}

.art-card {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1.1rem;
    border-radius: 16px;
    background: rgba(3, 16, 15, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #E6FFFA;
    font-size: 0.9rem;
}

.art-card img { width: 34px; height: 35px; }
.art-card strong { display: block; font-family: 'Caviar Dreams', sans-serif; font-size: 1.15rem; }

/* Efekty: rozchodzące się cząsteczki i fale z centrum (jak w hero aitransformation.pl) */
.fx {
    --img-w: max(100cqw, 100cqh * var(--img-r));
    --img-h: max(100cqh, 100cqw / var(--img-r));
    position: absolute;
    width: var(--img-w);
    height: var(--img-h);
    left: calc((100cqw - var(--img-w)) * var(--pos-x));
    top: calc((100cqh - var(--img-h)) * var(--pos-y));
    pointer-events: none;
}

.fx-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 18% 10% at 50% 29%, rgba(160, 255, 235, 0.5), transparent);
    mix-blend-mode: screen;
    animation: fx-pulse 4.5s ease-in-out infinite;
}

.fx-ring {
    position: absolute;
    left: 50%;
    top: 29%;
    width: 70%;
    aspect-ratio: 1;
    border: 2px solid rgba(94, 234, 212, 0.55);
    border-radius: 50%;
    opacity: 0;
    animation: fx-ring 3.6s ease-out infinite var(--t, 0s);
}

.fx-particles i {
    position: absolute;
    width: var(--s);
    height: var(--s);
    margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 6px 1px var(--c);
    opacity: 0;
    animation: fx-burst var(--d) ease-out infinite var(--t);
}

@keyframes fx-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }

@keyframes fx-burst {
    0%   { left: var(--x0); top: var(--y0); opacity: 0; transform: scale(0.6); }
    10%  { opacity: 1; }
    100% { left: var(--x1); top: var(--y1); opacity: 0; transform: scale(1.2); }
}

@keyframes fx-ring {
    0%   { opacity: 0.8; transform: translate(-50%, -50%) scale(0.05, 0.02); }
    100% { opacity: 0;   transform: translate(-50%, -50%) scale(1, 0.45); }
}

@media (prefers-reduced-motion: reduce) {
    .fx { display: none; }
    html { scroll-behavior: auto; }
    .btn, .btn .ic { transition: none; }
}

/* ---------- Sekcje ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 46rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0 0 0.9rem; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.75rem;
}

.card h3 { font-size: 1.15rem; margin: 0.9rem 0 0.5rem; }
.card p { margin: 0; color: var(--ink-2); }

.icon-tile {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
    font-size: 1.3rem;
}

/* Jak to działa: kroki */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 1.5rem; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.steps li::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 1rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
}
.steps h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }

/* Twoje dane zostają u Ciebie */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 1rem; }
.split p { color: var(--ink-2); }

.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.checks li { display: flex; gap: 0.75rem; align-items: flex-start; }
.checks .ic { color: var(--accent); margin-top: 0.3rem; }

.spec {
    border-radius: 20px;
    padding: 2rem;
    background: linear-gradient(160deg, #0b3b44 0%, #072428 60%, #03100f 100%);
    color: #E6FFFA;
    box-shadow: var(--shadow);
}
.spec h3 { font-family: 'Caviar Dreams', sans-serif; font-size: 1.5rem; margin: 0 0 1.25rem; color: #fff; }
.spec dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.75rem 1.25rem; }
.spec dt { color: #5EEAD4; font-weight: 600; }
.spec dd { margin: 0; color: rgba(230, 255, 250, 0.85); }

/* Oferta */
.plans { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.25rem; align-items: stretch; }

.plan { position: relative; display: flex; flex-direction: column; }
.plan h3 { font-family: 'Caviar Dreams', sans-serif; font-size: 1.6rem; margin: 0.4rem 0 0.5rem; }
.plan .price { font-size: 1.05rem; font-weight: 700; margin: 1rem 0; }
.plan .price small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.9rem; }
.plan .checks { margin: 0 0 1.75rem; }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan .tag { align-self: flex-start; }
.plan .founding { margin: 0 0 1.5rem; }

.plan-main { border: 2px solid var(--accent); box-shadow: var(--shadow); }

.tag {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: color-mix(in srgb, var(--accent) 14%, transparent);
    color: var(--accent);
}

.tag-gold { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }

.founding {
    margin-top: 1.25rem;
    padding: 1.1rem 1.25rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--gold) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}
.founding strong { color: var(--gold); }
.founding p { margin: 0.3rem 0 0; color: var(--ink-2); font-size: 0.95rem; }

.plan-soon .checks .ic { color: var(--ink-2); }

/* FAQ */
.faq { max-width: 50rem; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 1.25rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--ink-2); transition: transform 0.25s ease; margin-top: 0.3rem; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 1.25rem 1.2rem; color: var(--ink-2); }

/* Kontakt */
.cta-box {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
    border-radius: 24px;
    background: linear-gradient(160deg, #0b3b44 0%, #072428 60%, #03100f 100%);
    color: #E6FFFA;
}
.cta-box h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 0.75rem; color: #fff; }
.cta-box p { margin: 0 auto 1.75rem; max-width: 36rem; color: rgba(230, 255, 250, 0.85); }
.cta-box .btn-primary { background: #5EEAD4; color: #042F2E; }
.cta-box .btn-primary:hover { background: #99F6E4; }
.cta-box .btn-ghost { border-color: rgba(255, 255, 255, 0.25); color: #E6FFFA; }
.cta-box .btn-ghost:hover { border-color: #5EEAD4; color: #5EEAD4; }
.contact-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.85rem; }

footer { padding: 2.5rem 0 3rem; color: var(--ink-2); font-size: 0.9rem; text-align: center; }
footer p { margin: 0.3rem 0; }
footer a { color: var(--ink-2); }

/* ---------- Responsywność ---------- */
@media (max-width: 960px) {
    .hero-grid, .split, .plans { grid-template-columns: 1fr; }
    .art { max-height: 480px; aspect-ratio: 4 / 4.2; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .art { background-image: url("img/oferris-bg-m.webp"); }
    @supports (background-image: image-set(url("x.avif") type("image/avif"))) {
        .art { background-image: image-set(url("img/oferris-bg-m.avif") type("image/avif"), url("img/oferris-bg-m.webp") type("image/webp")); }
    }
}

@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .spec dl { grid-template-columns: 1fr; gap: 0.2rem; }
    .spec dd { margin-bottom: 0.6rem; }
}

/* ---------- Produkt w akcji: zakładki ze zrzutami ---------- */
.shots { max-width: 1100px; margin: 0 auto; }

.shot-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.shot-tabs button {
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    color: var(--ink-2);
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.shot-tabs button:hover { color: var(--ink); border-color: var(--accent); }
.shot-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.shot figure { margin: 0; }
.shot + .shot { margin-top: 2.5rem; }            /* bez JS: wszystkie zrzuty pod sobą */
.js-tabs .shot + .shot { margin-top: 0; }

.window {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow);
}

.window-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.window img { display: block; width: 100%; height: auto; }

.shot figcaption { max-width: 46rem; margin: 1.1rem auto 0; text-align: center; color: var(--ink-2); font-size: 0.98rem; }
