:root {
    --blue-primary: #176BFF;
    --blue-deep: #0B2A5B;
    --cyan-accent: #22D3EE;
    --text-dark: #0F172A;
    --text-secondary: #475569;
    --bg-light: #F7FBFF;
    --bg-white: #FFFFFF;
    --border-light: #E2E8F0;
    --shadow-soft: 0 20px 40px -10px rgba(11, 42, 91, 0.08);
    --shadow-hover: 0 30px 60px -15px rgba(23, 107, 255, 0.15);
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* --- HEADER --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(247, 251, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
}

.logo {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--blue-deep);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--blue-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-phone {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn {
    padding: 0.85rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--blue-primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(23, 107, 255, 0.4);
}

.btn-primary:hover {
    background: var(--blue-deep);
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(23, 107, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--blue-deep);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    border-color: var(--blue-primary);
    color: var(--blue-primary);
    background: rgba(23, 107, 255, 0.05);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* --- HERO --- */
.hero {
    position: relative;
    padding: 6rem 0 8rem;
    overflow: hidden;
}

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

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--blue-deep);
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--blue-primary);
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 500px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: rgba(23, 107, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-primary);
    flex-shrink: 0;
}

/* Hero Abstract Visual */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-panel {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

.gp-1 {
    width: 220px;
    top: 20%;
    left: 0;
    z-index: 2;
}
.gp-2 {
    width: 180px;
    bottom: 15%;
    right: 0;
    animation-delay: -2s;
}
.gp-3 {
    width: 160px;
    top: 10%;
    right: 10%;
    animation-delay: -4s;
}

.gp-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.gp-value {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--blue-deep);
}

.bg-mesh {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, rgba(23, 107, 255, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
}

.airflow-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* --- INTRO --- */
.intro {
    padding: 6rem 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.intro-text {
    font-family: 'Sora', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.intro-stats {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.stat h4 {
    font-size: 2.5rem;
    color: var(--blue-primary);
    margin-bottom: 0.5rem;
}
.stat p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- SERVICES (BENTO) --- */
.section-padding {
    padding: 8rem 0;
}

.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--blue-deep);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

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

.bento-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}


.bento-card:hover {
    transform: translateY(-5px);
    border-color: var(--blue-primary);
    box-shadow: var(--shadow-hover);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-primary), var(--cyan-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.bento-card:hover::before {
    transform: scaleX(1);
}

.bento-large {
    grid-column: span 2;
    background: linear-gradient(135deg, var(--blue-deep) 0%, #1e3a8a 100%);
    color: white;
}

.bento-large:hover {
    border-color: transparent;
}

.bento-large .icon-box {
    background: rgba(255,255,255,0.1);
    color: var(--cyan-accent);
}

.bento-tall {
    grid-row: span 2;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(23, 107, 255, 0.1);
    color: var(--blue-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bento-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

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

.bento-large p {
    color: rgba(255,255,255,0.8);
}

/* --- FOR WHOM --- */
.for-whom {
    background: var(--bg-white);
}

.target-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.target-card {
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
}

.target-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-soft);
}

.tc-1 { grid-column: span 5; }
.tc-2 { grid-column: span 4; }
.tc-3 { grid-column: span 3; }
.tc-4 { grid-column: span 4; }
.tc-5 { grid-column: span 5; }
.tc-6 { grid-column: span 3; }

.target-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--blue-deep);
}

.target-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- PROCESS --- */
.process {
    position: relative;
}

.timeline {
    position: relative;
    margin-top: 4rem;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -32px;
    top: 21px;
    bottom: -21px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue-primary) 0%, var(--cyan-accent) 100%);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -52px;
    top: 0;
    width: 42px;
    height: 42px;
    background: var(--bg-light);
    border: 2px solid var(--blue-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--blue-primary);
    z-index: 2;
}

.timeline-content h4 {
    font-size: 1.25rem;
    color: var(--blue-deep);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    max-width: 600px;
}

/* --- BRANDS --- */
.brands {
    background: var(--blue-deep);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.brands h3 {
    font-size: 1.5rem;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

.brands-list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
}

.brand-name {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    color: rgba(255,255,255,0.5);
    transition: color 0.3s ease, transform 0.3s ease;
    letter-spacing: -0.02em;
}

.brand-name:hover {
    color: white;
    transform: scale(1.05);
}

/* --- REFERENCES --- */
.references-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.ref-card {
    position: relative;
    height: 350px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ref-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Technical grid pattern for placeholder */
.ref-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(23, 107, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 107, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.ref-bg svg {
    width: 60%;
    height: auto;
    opacity: 0.15;
    color: var(--blue-primary);
    z-index: 1;
}

.ref-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ref-card:hover .ref-bg img {
    transform: scale(1.08);
}

.ref-content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
}

.ref-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--blue-primary);
    color: white;
    font-size: 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.ref-content h4 {
    font-size: 1.1rem;
    color: var(--blue-deep);
}

/* --- SERVICE CTA --- */
.service-cta {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    border: 1px solid var(--border-light);
}

.service-cta h2 {
    font-size: 2.5rem;
    color: var(--blue-deep);
    margin-bottom: 1.5rem;
}

/* --- CONTACT --- */
.contact {
    background: var(--blue-deep);
    color: white;
    padding: 8rem 0;
}

.contact h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    color: white;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: white;
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: white;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--cyan-accent);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-accent);
}

.contact-form {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--cyan-accent);
    background: rgba(255,255,255,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    background: var(--cyan-accent);
    color: var(--blue-deep);
}

.contact-form .btn-primary:hover {
    background: white;
}

.contact-details-small {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
}

/* --- FOOTER --- */
footer {
    background: #081d44;
    color: rgba(255,255,255,0.6);
    padding: 3rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-logo {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--blue-primary);
}

/* --- OFFCANVAS MOBILE MENU --- */
.offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 42, 91, 0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.offcanvas-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offcanvas-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100%;
    background: var(--bg-white);
    z-index: 1200;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(11, 42, 91, 0.15);
}

.offcanvas-menu.active {
    transform: translateX(0);
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.offcanvas-title {
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--blue-deep);
}

.offcanvas-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.offcanvas-close:hover {
    background: rgba(23, 107, 255, 0.08);
    color: var(--blue-primary);
}

.offcanvas-nav {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    flex: 1;
}

.offcanvas-nav a {
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: background 0.2s ease, color 0.2s ease;
    border-left: 3px solid transparent;
}

.offcanvas-nav a:hover {
    background: rgba(23, 107, 255, 0.05);
    color: var(--blue-primary);
    border-left-color: var(--blue-primary);
}

.offcanvas-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offcanvas-phone {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark);
    padding: 0.75rem;
    background: rgba(23, 107, 255, 0.05);
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.offcanvas-phone:hover {
    background: rgba(23, 107, 255, 0.1);
}

.offcanvas-phone svg {
    color: var(--blue-primary);
    flex-shrink: 0;
}

.offcanvas-cta {
    text-align: center;
    justify-content: center;
    width: 100%;
}

/* Prevent body scroll when offcanvas is open */
body.offcanvas-open {
    overflow: hidden;
}

/* --- ANIMATIONS & UTILITIES --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    .nav-links, .nav-phone {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }

    /* Hide the big CTA button from header top row */
    .nav-cta-group .btn-primary {
        display: none;
    }

    .nav-wrapper {
        padding: 0.75rem 2rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-visual {
        display: none; /* Skryjeme na mobilu pro čistotu */
    }

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

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

    .bento-large, .bento-tall {
        grid-column: span 1;
        grid-row: span 1;
    }

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

    .tc-1, .tc-2, .tc-3, .tc-4, .tc-5, .tc-6 {
        grid-column: span 1;
    }

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

    .service-cta, .contact-grid {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }

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