/* ===========================================
   MEDIA AI - Landing Page Newsletter
   Styl: "Soft Blue"
   Spokojny, wiarygodny, profesjonalny
   =========================================== */

/* --- CSS Variables --- */
:root {
    /* Soft Blue - Light Mode Colors */
    --color-bg: #F0F4F8;
    --color-bg-elevated: #E8EEF4;
    --color-bg-card: rgba(255, 255, 255, 0.7);
    --color-bg-glass: rgba(255, 255, 255, 0.5);

    --color-text: #1E3A5F;
    --color-text-muted: #3D5A80;
    --color-text-dim: #6B8CAE;

    --color-border: rgba(30, 58, 95, 0.12);
    --color-border-strong: rgba(30, 58, 95, 0.2);

    /* Accent Colors - Blue/Navy */
    --color-accent: #2563EB;
    --color-accent-secondary: #3B82F6;
    --color-accent-strong: #1D4ED8;
    --color-accent-glow: rgba(37, 99, 235, 0.12);

    /* Gradient */
    --gradient-text: linear-gradient(135deg, #1E3A5F 0%, #2563EB 100%);
    --gradient-orb: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    --gradient-orb-secondary: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);

    /* Typography */
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --font-mono: 'SF Mono', 'Courier New', monospace;

    /* Spacing */
    --section-padding: 3.5rem;
    --container-max: 42rem;
}

/* --- Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- Animated Orb Background --- */
.orb-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: orbPulse 20s ease-in-out infinite;
    will-change: opacity;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.orb-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-orb);
}

.orb-2 {
    width: 400px;
    height: 400px;
    top: 30%;
    right: -150px;
    background: var(--gradient-orb-secondary);
    animation-delay: -10s;
}

@keyframes orbPulse {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

.orb-2 {
    animation-name: orbPulse2;
}

@keyframes orbPulse2 {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.15);
    }
}

/* --- Subtle Grid Overlay --- */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background-image:
        linear-gradient(rgba(30, 58, 95, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 95, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* --- Main Content --- */
main {
    position: relative;
    z-index: 2;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.font-serif {
    font-family: var(--font-serif);
}

.font-mono {
    font-family: var(--font-mono);
}

/* --- Hero Section --- */
.hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    background: linear-gradient(to bottom, rgba(240, 244, 248, 0.85), rgba(240, 244, 248, 0.95)),
                url('../biurowce amsterdam.jpeg') center center / cover no-repeat;
}

.hero-title {
    font-size: clamp(2.8rem, 10vw, 4.5rem);
    margin-bottom: 1.5rem;
    color: var(--color-text);
    -webkit-text-fill-color: var(--color-text);
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
}


.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-lead {
    font-size: 1rem;
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Glassmorphism Form Container --- */
.glass-form {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 2rem;
    max-width: 28rem;
    margin: 0 auto 1rem;
    box-shadow:
        0 4px 30px var(--color-accent-glow),
        0 1px 3px rgba(30, 58, 95, 0.08);
}

/* --- Lead Magnet Badge --- */
.lead-magnet {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 0;
}

.lead-magnet-icon {
    font-size: 1.1rem;
}

/* --- Consent Text --- */
.consent-text {
    font-size: 0.75rem;
    color: var(--color-text-dim);
    max-width: 28rem;
    margin: 0 auto;
    line-height: 1.6;
    text-align: center;
}

.consent-text a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.consent-text a:hover {
    text-decoration: underline;
}

.lead-magnet span {
    color: var(--color-accent);
    font-weight: 500;
}

/* --- Section Styles --- */
.section {
    padding: var(--section-padding) 1.5rem;
    position: relative;
    z-index: 2;
}

.section-dark {
    background: linear-gradient(to bottom, rgba(30, 58, 95, 0.85), rgba(30, 58, 95, 0.9)),
                url('../Okna.jpeg') center center / cover no-repeat;
    color: #ffffff;
}

.section-dark .section-title {
    color: #ffffff;
}

.section-dark .benefit-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
}

.section-dark .benefit-card:hover {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 1);
}

.section-dark .benefit-title {
    color: var(--color-text);
}

.section-dark .benefit-desc {
    color: var(--color-text-muted);
}

.section-light {
    background: linear-gradient(to bottom, rgba(30, 58, 95, 0.85), rgba(30, 58, 95, 0.9)),
                url('../Okna.jpeg') center center / cover no-repeat;
    color: #ffffff;
}

.section-light .section-title {
    color: #ffffff;
}

.section-light .benefit-card {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.8);
}

.section-light .benefit-card:hover {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 1);
}

.section-light .benefit-title {
    color: var(--color-text);
}

.section-light .benefit-desc {
    color: var(--color-text-muted);
}

.section-author {
    background: linear-gradient(to bottom, rgba(232, 238, 244, 0.94), rgba(240, 244, 248, 0.96)),
                url('../Amsterdam zuid.jpeg') center center / cover no-repeat;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
    color: var(--color-text);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.container-wide {
    max-width: 64rem;
    margin: 0 auto;
}

/* --- Social Proof --- */
.social-proof {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    z-index: 2;
}

.social-proof-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-proof-icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
}

/* Social proof in hero section */
.social-proof-hero {
    margin-bottom: 1.5rem;
    padding: 0;
    background: none;
    border: none;
}

/* --- Benefits Cards --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.benefit-card {
    text-align: center;
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-border-strong);
    box-shadow: 0 20px 40px rgba(30, 58, 95, 0.1);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.25rem;
    color: var(--color-accent);
}

.benefit-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.benefit-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Newsletter Preview Box --- */
.preview-box {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 38rem;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.preview-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-text);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.preview-date {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
}

.preview-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-accent);
    background: var(--color-accent-glow);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.preview-title {
    font-family: var(--font-serif); /* Playfair jako akcent */
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.preview-content {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.preview-content p {
    margin-bottom: 1rem;
}

.preview-content strong {
    color: var(--color-text);
}

.preview-content ol {
    margin: 1rem 0;
    padding-left: 1.25rem;
}

.preview-content li {
    margin-bottom: 0.6rem;
}

.preview-more {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-accent);
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
    transition: color 0.2s ease;
}

.preview-more:hover {
    color: var(--color-accent-secondary);
    text-decoration: underline;
}

.preview-rating {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--color-border);
}

/* --- Author Section --- */
.author-section {
    text-align: center;
    padding-top: 0;
}

.author-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.75rem;
    border: 4px solid var(--color-border);
    filter: grayscale(30%);
    transition: all 0.4s ease;
}

.author-avatar:hover {
    filter: grayscale(0%);
    border-color: var(--color-accent);
    box-shadow: 0 0 30px var(--color-accent-glow);
}

.author-bio {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.author-bio p {
    margin-bottom: 1rem;
}

.author-bio p:last-child {
    margin-bottom: 0;
}

.author-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-border);
}

.author-link:hover {
    background: var(--color-accent-glow);
    border-color: var(--color-accent);
}

.author-link svg {
    width: 16px;
    height: 16px;
    margin-left: 6px;
    transition: transform 0.2s ease;
}

.author-link:hover svg {
    transform: translateX(4px);
}

/* --- Manifest Section --- */
.section-manifest {
    position: relative;
    background: linear-gradient(to bottom, #F5F8FA 0%, #EEF2F6 100%);
}

.manifest-title {
    color: var(--color-text);
}

.manifest-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
    line-height: 1.8;
}

.manifest-content p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.manifest-content p:last-child {
    margin-bottom: 0;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-bg);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-dim);
    padding: 3rem 1.5rem;
    position: relative;
    z-index: 2;
}

.footer a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover {
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.875rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* --- Utilities --- */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    :root {
        --section-padding: 3.5rem;
    }

    .glass-form {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .preview-box {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .orb-1 {
        width: 300px;
        height: 300px;
        filter: blur(60px);
    }

    .orb-2 {
        width: 200px;
        height: 200px;
        filter: blur(50px);
    }

    .orb {
        animation-duration: 30s;
    }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .typing-cursor {
        display: none;
    }

    .orb {
        animation: none;
        opacity: 0.6;
    }
}

/* --- Selection --- */
::selection {
    background: var(--color-accent);
    color: #ffffff;
}

/* --- Scrollbar (Webkit) --- */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border-strong);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-dim);
}
