:root {
    --bg-top: #071133;
    --bg-mid: #0b3a77;
    --bg-bottom: #e9f2ff;
    --card: #ffffff;
    --accent: #0b6efd;
    --muted: #6b7280;
    --radius: 12px;
    --max-width: 1100px;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: none;
    /* controlled by overlay pseudo-element for consistent bleed */
    color: #061126;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: block;
    padding: 20px 20px 48px 20px;
    /* leave space for fixed header */
}

.container {
    width: 100%;
    max-width: var(--max-width);
    background: transparent;
    margin: 84px auto 32px;
    /* push content below fixed header */
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    height: 64px;
    padding: 0 28px;
    z-index: 1200;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.45));
    backdrop-filter: blur(6px);
}

margin-right: 10px;
font-weight: 700;
color: #fff;
font-size: 1.05rem
}

.nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin-left: 18px;
    font-weight: 600
}

/* Nav item with icon (LinkedIn) */
.nav-link-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav-link-with-icon .nav-link-text {
    color: rgba(255, 255, 255, 0.95);
}

.nav-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.nav a.cta {
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 12px;
    border-radius: 8px
}

.nav a:hover {
    opacity: 0.95
}

.hero-large {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: center;
    margin-bottom: 32px
}

.hero-left {
    color: #fff
}

.hero-title {
    font-size: 2.25rem;
    line-height: 1.02;
    margin: 0 0 12px
}

.hero-sub {
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 18px
}

.hero-actions .btn {
    margin-right: 10px
}

.hero-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fff);
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.18);
    z-index: 2;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-card .form-title {
    margin: 0 0 12px 0;
    color: #071133
}

.download-form label.compact {
    display: block;
    margin-bottom: 8px
}

.download-form input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e6eef6
}

.download-form .consent {
    font-size: 0.9rem
}

.features {
    margin: 18px 0
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 18px
}

.feature {
    background: rgba(255, 255, 255, 0.72);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.06);
    text-align: center
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 8px
}

.feature h4 {
    margin: 6px 0
}

.gallery {
    margin-bottom: 22px
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.image-placeholder {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.7));
    border-radius: 10px;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    color: var(--muted);
    border: 1px solid #eef3ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about {
    background: rgba(255, 255, 255, 0.96);
    padding: 16px 18px;
    margin-bottom: 18px;
    color: #061126;
    /* darker, high-contrast text */
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.06);
}

.download {
    margin-top: 6px
}

.download-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none
}

.form-title {
    margin: 0 0 12px 0
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px
}

.label-text {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 6px
}

.download-form input[type="text"],
.download-form input[type="email"],
.download-form input[type="password"],
.download-form input[type="tel"],
.download-form input[type="search"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e6eef6;
    border-radius: 8px;
    background: #fff
}

.consent {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.95rem
}

.form-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end
}

.site-title {
    font-size: 1.5rem;
    margin: 0 0 18px 0;
    text-align: left;
    color: #071133
}

.btn {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .08s ease
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(11, 110, 253, 0.12)
}

input:focus,
.btn:focus {
    outline: 2px solid rgba(11, 110, 253, 0.12);
    outline-offset: 2px
}

@media (max-width:1100px) {
    .hero-large {
        grid-template-columns: 1fr 360px
    }
}

@media (max-width:900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr)
    }

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

    .hero-large {
        grid-template-columns: 1fr
    }

    .hero-card {
        order: 2
    }

    /* Hide the brand/title when the hamburger menu is enabled */
    .site-header .brand {
        display: none;
    }
}

@media (max-width:520px) {
    body {
        padding: 22px
    }

    .hero-title {
        font-size: 1.4rem
    }

    .features-grid {
        grid-template-columns: 1fr
    }

    .gallery-grid {
        grid-template-columns: 1fr
    }
}

/* Small helper — keep hidden traps invisible */
input[name="website"] {
    position: absolute;
    left: -9999px
}

/* Ensure anchor targets are visible below fixed header */
#download {
    scroll-margin-top: 88px
}

/* Smooth scroll when using anchor links */
html {
    scroll-behavior: smooth
}

/* Download panel (bottom) styling */
.section-download {
    margin-top: 22px;
    margin-bottom: 28px
}

.download-panel {
    background: rgba(255, 255, 255, 0.78);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.12);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.download-panel .form-title {
    margin: 0 0 12px 0
}

.download-panel .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.download-panel .form-grid label {
    display: flex;
    flex-direction: column
}

.download-panel .form-grid input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #e6eef6
}

@media (max-width:900px) {
    .download-panel .form-grid {
        grid-template-columns: 1fr
    }
}

/* Full-page gradient overlay to ensure smooth top->bottom color flow */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-mid) 45%, var(--bg-bottom) 100%);
}

/* Footer contacts */
.footer-contacts {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--muted);
    font-size: 0.95rem;
    justify-content: center;
    padding: 12px 0 18px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #0A66C2;
    /* LinkedIn blue */
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06);
}

.footer-link svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: inherit;
    fill: currentColor;
}

.footer-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.08);
}


/* Creator text next to header badge */
.header-creator {
    margin-left: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.1px;
}

@media (max-width:900px) {

    /* hide creator text on smaller screens but keep the icon visible */
    .header-creator {
        display: none;
    }
}

/* Header contacts (LinkedIn badge) */
.header-contacts {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    z-index: 1300;
}

.header-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #0A66C2;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.header-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.header-link:hover {
    transform: translateY(-2px);
}

@media (max-width:520px) {
    .header-contacts {
        display: none;
    }
}

/* Subheader directly below the fixed header (data attribution + badge) */
.subheader {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    /* overlay the main header */
    display: flex;
    justify-content: center;
    z-index: 1301;
    /* sit above the header */
    padding: 8px 20px;
    pointer-events: none;
    /* allow interactions only on the inner element */
}


.subheader-inner {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 10px;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.subheader .subheader-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #0A66C2;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

@media (max-width:700px) {
    .subheader-inner {
        font-size: 0.9rem;
        padding: 6px 10px;
    }
}


/* Mobile menu toggle (hamburger) */
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: transform .18s ease, opacity .18s ease;
    color: #ffffff;
}

.menu-toggle .bar::before,
.menu-toggle .bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .18s ease, opacity .18s ease;
}

.menu-toggle .bar::before {
    top: -6px;
}

.menu-toggle .bar::after {
    top: 6px;
}

/* Responsive nav: hide by default on smaller screens and show when .open */
@media (max-width:900px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.92));
        flex-direction: column;
        padding: 18px 20px;
        gap: 8px;
        z-index: 1299;
        align-items: center;
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        margin: 6px 0;
        font-size: 1.02rem;
    }
}

/* Hamburger -> X transformation */
.menu-toggle.open .bar {
    background: transparent;
}

.menu-toggle.open .bar::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open .bar::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Ensure header text remains high-contrast and unaffected by other rules */
.site-header .brand,
.site-header .nav a,
.site-header .header-creator {
    color: #ffffff !important;
}

/* Keep the header icon color separate */
.site-header .header-link {
    color: #0A66C2 !important;
}