:root {
    --brand-dark: #0f172a;
    --brand-primary: #3b82f6;
    /* Electric Blue */
    --brand-secondary: #0ea5e9;
    /* Cyan */
    --brand-gradient: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));

    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.7);

    --text-strong: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;

    /* Modern diffuse shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 10px 30px rgba(59, 130, 246, 0.25);

    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-page);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    color: var(--text-strong);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utilities */
.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-brand {
    color: var(--brand-primary);
}

.text-white {
    color: #fff;
}

.section-padding {
    padding: 8rem 0;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-2 {
    margin-top: 2rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--brand-gradient);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-strong);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    padding: 12px 24px;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--text-strong);
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 32px;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--brand-primary);
}

.nav-btn {
    background: var(--text-strong);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-btn:hover {
    background: var(--brand-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 10rem;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    z-index: -1;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: rgba(59, 130, 246, 0.2);
    top: -100px;
    left: -100px;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: rgba(14, 165, 233, 0.2);
    bottom: -100px;
    right: -100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text-content {
    max-width: 540px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-primary);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-text-content h1 {
    font-size: 4rem;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-text-content p {
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    /* Added spacing to distance the buttons from the hero cutline */
}

/* Hero Visual / Mockup */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.dashboard-showcase {
    position: relative;
    perspective: 1200px;
    z-index: 2;
}

.dashboard-mask {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 80px -20px rgba(59, 130, 246, 0.4);
    transform: rotateY(-12deg) rotateX(8deg) rotateZ(-2deg);
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* The Magic Mask: Fades out the ugly Windows title bar (top 5%) and cuts off the bottom cleanly */
    -webkit-mask-image: linear-gradient(to bottom, transparent 4%, black 15%, black 85%, transparent 98%);
    mask-image: linear-gradient(to bottom, transparent 4%, black 15%, black 85%, transparent 98%);
}

.dashboard-showcase:hover .dashboard-mask {
    transform: rotateY(-5deg) rotateX(2deg) rotateZ(0);
}

.dashboard-image {
    width: 100%;
    display: block;
    transform: scale(1.05);
    /* Slight zoom to enhance the hologram feel */
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: float 6s ease-in-out infinite;
}

.fc-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ecfdf5;
    color: #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-right .fc-icon {
    background: #eff6ff;
    color: var(--brand-primary);
}

.fc-text {
    display: flex;
    flex-direction: column;
}

.fc-text strong {
    font-size: 0.9rem;
    color: var(--text-strong);
}

.fc-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.float-left {
    bottom: -20px;
    left: -40px;
}

.float-right {
    top: 40px;
    right: -40px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Bento Grid */
.bento-section {
    background: var(--bg-surface);
}

.section-title {
    max-width: 600px;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: minmax(280px, auto);
}

.bento-card {
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: #fff;
    border-color: rgba(59, 130, 246, 0.1);
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
}

.bento-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

/* Specific Bento Cards */
.bento-hero {
    grid-column: span 3;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.bento-hero-text {
    flex: 1;
    max-width: 50%;
}

.bento-hero-img-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin: 16px;
    /* Added spacing from border */
}

.bento-hero-img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.bento-hero:hover .bento-hero-img {
    transform: scale(1.03);
}

.card-wide {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

.bento-card-cutout {
    width: 50%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin: 16px;
    transition: var(--transition);
}

.card-wide:hover .bento-card-cutout {
    transform: scale(1.03);
}

.bg-gradient-brand {
    background: var(--brand-gradient);
}

.bg-soft {
    background: linear-gradient(180deg, var(--bg-page) 0%, #eff6ff 100%);
}

/* Showcase Section */
.showcase-section {
    background: linear-gradient(180deg, #fff 0%, var(--bg-page) 100%);
}

.showcase-section h2 {
    font-size: 2.5rem;
}

.showcase-wrapper {
    max-width: 1000px;
    margin: 4rem auto 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.showcase-img {
    width: 100%;
    display: block;
}

/* Footer & CTA */
.footer {
    background: var(--brand-dark);
    color: white;
    padding-top: 6rem;
}

.footer-cta h2 {
    color: white;
    font-size: 3rem;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.footer-cta p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.footer-logo .logo-icon {
    background: white;
    color: var(--brand-dark);
}

.footer-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Authors Section ────────────────────────────────────────── */
.authors-section {
    background: var(--bg-surface);
}

.founders-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: var(--bg-page);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    max-width: 1000px;
    margin: 0 auto;
}

.founders-image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 4px solid #fff;
}

.founders-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.11);
    transform-origin: center center;
    transition: var(--transition);
}

.founders-image:hover img {
    transform: scale(1.15);
}

.founders-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.founder-profile h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
    color: var(--text-strong);
}

.founder-profile .author-role {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.founder-profile .author-bio {
    font-size: 1.05rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* Lightbox Modal */
.zoomable-image {
    cursor: zoom-in;
}

.modal {
    display: flex;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: all 0.3s ease;
}

.modal.show {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    object-fit: contain;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--brand-primary);
    transform: scale(1.1);
}

#modalCaption {
    margin-top: 20px;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Demo Animation Modal */
.demo-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    background: #0f172a;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.show .demo-content {
    transform: scale(1);
}

#demoScreen {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

#demoCursor {
    position: absolute;
    width: 32px;
    height: 32px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24" fill="none"><path d="M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87c.45 0 .67-.54.35-.85L6.35 2.86a.5.5 0 0 0-.85.35Z" fill="white" stroke="black" stroke-width="1.5" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transition: top 1s ease-in-out, left 1s ease-in-out, transform 0.1s;
    transform-origin: top left;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
}

.cursor-click {
    transform: scale(0.7) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .float-left,
    .float-right {
        display: none;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-hero {
        grid-column: span 2;
        flex-direction: column;
    }

    .bento-hero-text {
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .bento-hero-img-wrap {
        margin: 16px 0 0 0;
        /* Reset margins when stacked */
        border-radius: var(--radius-md);
        width: 100%;
    }

    .bento-hero-img {
        position: relative;
        top: auto;
        transform: translateY(0);
        width: 100%;
    }

    .bento-hero:hover .bento-hero-img {
        transform: scale(1.03);
    }

    /* Pół szerokości dla zwykłych kart, jedna będzie spadać niżej */
    .bento-card {
        grid-column: span 1;
    }

    .card-wide,
    .card-tall {
        grid-column: span 2;
        flex-direction: column;
        align-items: flex-start;
    }

    .bento-card-cutout {
        width: 100%;
        margin: 16px 0 0 0;
    }

    .card-wide:hover .bento-card-cutout {
        transform: scale(1.03);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-text-content h1 {
        font-size: 3rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-hero,
    .bento-card,
    .card-wide,
    .card-tall {
        grid-column: span 1;
    }

    .founders-showcase {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .demo-content {
        width: 95%;
        border-radius: var(--radius-md);
    }

    #demoCursor {
        width: 24px;
        height: 24px;
    }
}

/* ── Added Security & RODO Section ──────────────────────────── */

.security-section {
    background: var(--bg-surface);
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.security-card {
    background: var(--bg-page);
    border: 1px solid rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.security-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: white;
}

.s-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px auto;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.security-card:nth-child(even) .s-icon {
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-primary);
}

.security-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-strong);
}

.security-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}