/* ==========================================================================
   AKADEMIA manawaFLOW — landing „Świt na wodzie”
   Jasna, VIP, nietypowa asymetria — bez ciemnego tła
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    --purple:   #6A0DAD;
    --purple-s: #550a8b;
    --purple-l: #F3EBFF;
    --gold:     #FDC500;
    --gold-b:   #FDC500;
    --cobalt:   #0047AB;
    --mist:     #E8E4F8;
    --pearl:    #FAF7F2;
    --ink:      #0F1219;
    --muted:    #64748b;
    --border:   rgba(15, 18, 25, 0.08);
    --white:    #ffffff;
    --radius-sm: 0;
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--pearl);
    line-height: 1.65;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { text-decoration: none; color: inherit; transition: color 0.2s, transform 0.2s, box-shadow 0.2s; }

/* ── Nawigacja (jak sklep.manawaflow.pl) ── */
.landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.landing-nav.scrolled {
    box-shadow: 0 4px 30px rgba(15, 18, 25, 0.08);
}

.landing-nav-inner {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    box-sizing: border-box;
}

.brand-logo {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--purple);
    letter-spacing: 0.5px;
    text-transform: lowercase;
    line-height: 1.15;
    text-decoration: none;
}
.brand-mark {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 0;
    text-decoration: none;
}
.brand-mark-img {
    display: block;
    height: 46px;
    width: auto;
    max-width: min(240px, 52vw);
    object-fit: contain;
}
.footer-brand-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}
.footer-brand-img {
    display: block;
    height: 42px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
.brand-logo > span:first-of-type {
    color: var(--gold-b);
    font-weight: 700;
    text-transform: uppercase;
}

.brand-sub {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cobalt);
    font-weight: 600;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a.nav-item {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink);
}
.nav-links a.nav-item:hover { color: var(--purple); }

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--purple);
    color: #fff !important;
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--purple);
    box-shadow: 0 2px 8px rgba(106, 13, 173, 0.15);
    cursor: pointer;
}
.btn-nav:hover {
    background: var(--purple-s);
    border-color: var(--purple-s);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(106, 13, 173, 0.2);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--ink);
    cursor: pointer;
}

/* ── Hero — poranna mgła, nie czerń ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 130px 5% 90px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 70% at 10% 20%, rgba(232, 228, 248, 0.9) 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 90% 10%, rgba(253, 197, 0, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(106, 13, 173, 0.07) 0%, transparent 60%),
        linear-gradient(165deg, #FDFBF7 0%, var(--pearl) 40%, #F5F0FA 100%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 18%;
    left: -8%;
    width: 55%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--purple-s) 80%, transparent);
    transform: rotate(-8deg);
    opacity: 0.45;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.7;
    animation: orbFloat 14s ease-in-out infinite;
}
.hero-orb-1 {
    width: 480px; height: 480px;
    background: radial-gradient(circle, rgba(139, 63, 217, 0.18) 0%, transparent 68%);
    top: -80px; right: 5%;
}
.hero-orb-2 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(61, 90, 158, 0.12) 0%, transparent 70%);
    bottom: 5%; left: -5%;
    animation-delay: -5s;
}
.hero-orb-3 {
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.2) 0%, transparent 70%);
    top: 35%; left: 42%;
    animation-delay: -9s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(12px, -18px) scale(1.03); }
}

.hero-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 0.1s forwards;
}
.hero-eyebrow::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--purple);
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: 22px;
    opacity: 0;
    animation: fadeUp 0.8s 0.25s forwards;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--purple) 0%, var(--cobalt) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 460px;
    margin-bottom: 36px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    opacity: 0;
    animation: fadeUp 0.8s 0.55s forwards;
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.25s;
}
.btn-hero-primary {
    background: var(--gold-b);
    color: var(--ink);
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 40px rgba(253, 197, 0, 0.35);
}
.btn-hero-ghost {
    background: transparent;
    color: var(--purple);
    border: 2px solid rgba(106, 13, 173, 0.35);
}
.btn-hero-ghost:hover {
    background: rgba(106, 13, 173, 0.06);
    border-color: var(--purple);
}

.hero-note {
    margin-top: 26px;
    font-size: 0.86rem;
    color: var(--muted);
    opacity: 0;
    animation: fadeUp 0.8s 0.7s forwards;
}
.hero-note a {
    color: var(--purple);
    font-weight: 600;
    border-bottom: 1px solid rgba(106, 13, 173, 0.25);
}
.hero-note a:hover { border-color: var(--purple); }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Wizualizacja — szklane karty zamiast ciemnych pierścieni ── */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 440px;
    opacity: 0;
    animation: fadeUp 1s 0.45s forwards;
}

.flow-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(106, 13, 173, 0.12);
    animation: ringPulse 7s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
}
.flow-ring-1 { width: 380px; height: 380px; }
.flow-ring-2 { width: 300px; height: 300px; animation-delay: -2s; border-color: rgba(201, 162, 39, 0.2); }
.flow-ring-3 { width: 220px; height: 220px; animation-delay: -4s; border-color: rgba(106, 13, 173, 0.18); }

@keyframes ringPulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50%       { transform: scale(1.03); opacity: 1; }
}

.flow-core {
    position: relative;
    width: 148px;
    height: 148px;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff 0%, var(--purple-l) 100%);
    border: 1px solid rgba(106, 13, 173, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 50px rgba(106, 13, 173, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    z-index: 3;
}
.flow-core i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--purple), var(--gold-b));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.flow-node {
    position: absolute;
    width: 56px; height: 56px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--purple);
    border: 1px solid rgba(106, 13, 173, 0.1);
    box-shadow: 0 12px 32px rgba(26, 21, 35, 0.08);
    z-index: 4;
    animation: nodeBob 5s ease-in-out infinite;
}
.flow-node-1 { top: 6%;  right: 10%; animation-delay: 0s; }
.flow-node-2 { bottom: 10%; right: 4%; animation-delay: -1.5s; color: var(--cobalt); }
.flow-node-3 { bottom: 16%; left: 6%;  animation-delay: -3s; color: var(--cobalt); }
.flow-node-4 { top: 12%;  left: 4%;  animation-delay: -0.8s; }

@keyframes nodeBob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-10px) rotate(2deg); }
}

.flow-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}
.flow-svg path {
    fill: none;
    stroke: url(#flowGrad);
    stroke-width: 1.2;
    stroke-dasharray: 6 8;
    animation: dashFlow 24s linear infinite;
}
@keyframes dashFlow {
    to { stroke-dashoffset: -200; }
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: fadeUp 0.8s 0.85s forwards;
}
.hero-stat-num {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple);
    display: block;
}
.hero-stat-num i {
    color: var(--cobalt);
}
.hero-stat-label {
    font-size: 0.76rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

/* ── Sekcje ── */
.section {
    padding: 100px 5%;
    position: relative;
}
.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section-eyebrow {
    font-family: var(--font-head);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--cobalt);
    margin-bottom: 12px;
}
.section-header h2 {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
    line-height: 1.15;
}
.section-header p {
    color: var(--muted);
    font-size: 1.02rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 24px;
    transition: transform 0.35s, box-shadow 0.35s;
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--purple), var(--gold-b));
    opacity: 0;
    transition: opacity 0.3s;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(106, 13, 173, 0.1);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--purple-l);
    color: var(--purple);
    font-size: 1.15rem;
    margin-bottom: 18px;
    border-radius: 14px;
}
.feature-card:nth-child(2) .feature-icon { background: #EEF2FF; color: var(--cobalt); }
.feature-card:nth-child(3) .feature-icon { background: #FFF8E6; color: #9A6700; }

.feature-card h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ── Ścieżka ── */
.path-section {
    background: linear-gradient(180deg, #fff 0%, var(--pearl) 100%);
}

.path-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.path-step {
    text-align: center;
    padding: 28px 20px;
    background: #fff;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
}
.path-num {
    width: 56px; height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold-b);
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(106, 13, 173, 0.08);
}
.path-step h3 {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.path-step p {
    font-size: 0.88rem;
    color: var(--muted);
    max-width: 260px;
    margin: 0 auto;
}

/* ── CTA — unosząca się karta, nie ciemny pas ── */
.cta-band {
    padding: 80px 5% 100px;
    text-align: center;
    position: relative;
    background: transparent;
}
.cta-band::before { display: none; }

.cta-band-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 52px 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(243,235,255,0.9) 100%);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 32px 64px rgba(106, 13, 173, 0.1);
    position: relative;
    overflow: hidden;
}
.cta-band-inner::after {
    content: '';
    position: absolute;
    top: -40%; right: -20%;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(253, 197, 0, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-band h2 {
    font-family: var(--font-head);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
    position: relative;
}
.cta-band p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 28px;
    position: relative;
}
.cta-band .btn-hero-primary { position: relative; }

/* ── Stopka — jasna ── */
.landing-footer {
    padding: 48px 5% 36px;
    background: #fff;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.footer-brand {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
}
.footer-brand span { color: var(--gold-b); }
.footer-links {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
}
.footer-links a:hover { color: var(--purple); }
.footer-copy {
    width: 100%;
    text-align: center;
    padding-top: 24px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-visual { min-height: 300px; order: -1; }
    .flow-ring-1 { width: 280px; height: 280px; }
    .flow-ring-2 { width: 220px; height: 220px; }
    .flow-ring-3 { width: 160px; height: 160px; }
}

@media (max-width: 992px) {
    .landing-nav {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px; left: 0; right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-toggle { display: block; }
    .features-grid { grid-template-columns: 1fr; }
    .path-steps { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero { min-height: auto; padding-bottom: 64px; }
    .hero::after { display: none; }
    .cta-band-inner { padding: 36px 24px; }
}
