:root {
    --aiodl-ink: #020617;
    --aiodl-ink-soft: #0f172a;
    --aiodl-surface: #ffffff;
    --aiodl-page: #f8fafc;
    --aiodl-line: #e2e8f0;
    --aiodl-text: #0f172a;
    --aiodl-muted: #64748b;
    --aiodl-blue: #2563eb;
    --aiodl-cyan: #06b6d4;
    --aiodl-green: #22c55e;
}

html,
body {
    background: var(--aiodl-page);
    color: var(--aiodl-text);
}

body {
    font-family: Inter, "Red Hat Text", Arial, sans-serif;
}

.aiodl-site-header {
    padding-bottom: 0 !important;
    background: var(--aiodl-ink);
}

.aiodl-navbar {
    min-height: 60px;
    background: #020617 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aiodl-navbar .container-fluid {
    max-width: 1240px;
    padding: 0 24px;
}

.aiodl-brand {
    display: inline-flex;
    align-items: center;
    min-height: 60px;
    margin: 0;
    color: #ffffff !important;
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: 0;
}

.aiodl-brand span {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.aiodl-brand span::before {
    content: "";
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 45%),
        linear-gradient(135deg, #38bdf8, #2563eb 52%, #8b5cf6);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.aiodl-navbar .navbar-nav {
    align-items: center;
    gap: 0.2rem;
}

.aiodl-navbar .nav-link {
    min-height: 2.5rem;
    padding: 0.55rem 0.75rem !important;
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 750;
}

.aiodl-navbar .nav-link:hover,
.aiodl-navbar .nav-link:focus,
.aiodl-navbar .current-menu-item > .nav-link {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff !important;
}

.aiodl-navbar .dropdown-menu {
    margin-top: 0.7rem;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: #020617;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.36);
}

.aiodl-navbar .aiodl-language-menu,
.aiodl-site-header .dropdown-menu {
    background: #020617 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.aiodl-navbar .dropdown-item {
    border-radius: 8px;
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 700;
}

.aiodl-navbar .dropdown-item:hover {
    background: rgba(56, 189, 248, 0.14);
    color: #ffffff !important;
}

.aiodl-language-toggle img {
    filter: invert(1) brightness(2);
}

.navbar-burger {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.navbar-burger svg {
    fill: currentColor;
}

.navbar-menu {
    z-index: 1080;
}

.navbar-menu .aiodl-mobile-panel,
.navbar-menu nav {
    background: #020617 !important;
    color: #ffffff !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-menu a,
.navbar-menu .nav-link,
#mobile-menu a,
.aiodl-mobile-language a {
    color: #ffffff !important;
}

#mobile-menu {
    display: flex !important;
    flex-direction: column;
    gap: 0.35rem;
}

#mobile-menu .nav-link,
.aiodl-mobile-language .nav-link {
    padding: 0.8rem 0.9rem !important;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
}

.aiodl-mobile-language {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.aiodl-mobile-language .dropdown-menu {
    background: #020617 !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
}

.navbar-close {
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.95;
}

.aiodl-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(56, 189, 248, 0.28), transparent 28%),
        radial-gradient(circle at 88% 20%, rgba(139, 92, 246, 0.24), transparent 28%),
        linear-gradient(135deg, #020617 0%, #0f172a 46%, #111827 100%);
}

.aiodl-hero::before {
    content: "";
    position: absolute;
    inset: auto -8rem -14rem -8rem;
    height: 22rem;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.35), rgba(6, 182, 212, 0.28), rgba(34, 197, 94, 0.2));
    filter: blur(64px);
    opacity: 0.85;
}

.aiodl-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.aiodl-hero-inner {
    position: relative;
    z-index: 1;
}

.aiodl-hero-copy {
    max-width: 980px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 76px 0 88px;
}

.aiodl-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.15rem;
    margin-bottom: 1.4rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #dbeafe;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.aiodl-hero-badge::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--aiodl-platform-color, #38bdf8);
    box-shadow: 0 0 18px var(--aiodl-platform-color, #38bdf8);
}

.aiodl-hero-title {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    color: var(--aiodl-platform-color, #ffffff);
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: 0;
}

.home .aiodl-hero-title,
.blog .aiodl-hero-title {
    color: #ffffff;
}

.aiodl-hero-subtitle {
    max-width: 680px;
    margin-right: auto;
    margin-bottom: 2rem !important;
    margin-left: auto;
    color: #cbd5e1 !important;
    font-size: 1.1rem !important;
    line-height: 1.2;
}

.aiodl-download-shell {
    max-width: 900px;
    margin: 0 auto;
    padding: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 80px rgba(2, 6, 23, 0.38);
}

.aiodl-download-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.22rem;
    width: 100%;
    min-width: 0;
}

.aiodl-download-form .form-control {
    min-height: 4.2rem;
    padding: 0 1.2rem;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    color: #0f172a;
    font-size: 1.05rem;
    box-shadow: none;
}

.aiodl-download-form .form-control::placeholder {
    color: #94a3b8;
}

.aiodl-download-form .form-control:focus {
    outline: 0;
    box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.16);
}

.aiodl-action-row {
    display: contents;
}

.aiodl-download-shell:has(.aiodl-action-row) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.55rem;
}

.aiodl-download-shell:has(.aiodl-action-row) .aiodl-download-form {
    display: block !important;
}

.aiodl-download-shell:has(.aiodl-action-row) .aiodl-action-row {
    display: flex;
}

.aiodl-download-form .btn {
    min-height: 4.2rem;
    margin: 0 !important;
    padding: 0 1.35rem !important;
    border-radius: 18px;
    font-size: 1rem;
    font-weight: 850;
    line-height: 1;
}

.aiodl-primary-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 10.5rem;
    background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.34);
    white-space: nowrap;
}

.aiodl-primary-action::before {
    content: "\2193";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    margin-right: 0.65rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    font-size: 1.05rem;
    line-height: 1;
}

.aiodl-primary-action:hover,
.aiodl-primary-action:focus {
    filter: brightness(1.04);
}

.aiodl-secondary-action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 9.5rem;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    white-space: nowrap;
}

.aiodl-step-art {
    display: none !important;
}

.aiodl-features-section,
.aiodl-supported-section,
.aiodl-howto-section {
    background: var(--aiodl-page);
}

.aiodl-feature-heading {
    max-width: 820px;
}

.aiodl-section-title {
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: 0;
}

.aiodl-feature-heading .lead,
.aiodl-supported-section .lead,
.aiodl-howto-section .lead {
    color: var(--aiodl-muted) !important;
    font-size: 1.08rem;
    line-height: 1.75;
}

.aiodl-feature-item {
    display: block !important;
    height: 100%;
    min-height: 230px;
    padding: 1.45rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.aiodl-feature-item:hover {
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

.aiodl-feature-item > span {
    width: 3.25rem !important;
    height: 3.25rem !important;
    margin: 0 0 1rem !important;
    border-radius: 16px !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.12)) !important;
}

.aiodl-feature-item > span::before {
    content: "";
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.aiodl-feature-item h3 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0;
}

.aiodl-feature-item p {
    color: #64748b;
    font-size: 0.98rem;
    line-height: 1.72;
}

.aiodl-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb !important;
    font-weight: 900;
    text-transform: uppercase;
}

.aiodl-section-kicker::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #22c55e;
}

.aiodl-steps-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.aiodl-step-row p {
    margin-bottom: 0;
    color: #0f172a;
    font-weight: 800;
}

.aiodl-step-number {
    color: #ffffff;
    font-weight: 900;
}

.aiodl-source-card {
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.aiodl-source-card:hover {
    border-color: rgba(37, 99, 235, 0.24);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    transform: translateY(-4px);
}

.aiodl-source-card a {
    display: grid;
    min-height: 6.2rem;
    place-items: center;
    gap: 0.7rem;
    color: #0f172a !important;
    font-weight: 850;
}

.aiodl-source-card img {
    margin-bottom: 0 !important;
}

article.container {
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

#result {
    position: relative;
    z-index: 2;
    overflow: visible !important;
}

#result .aiodl-result-container {
    max-width: 1120px;
    margin-top: 1rem;
    margin-right: auto;
    margin-left: auto;
}

#result .aiodl-result-card {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.14);
}

#result .aiodl-result-media {
    position: relative;
    z-index: 2;
}

#result .aiodl-result-media h2 {
    color: #0f172a;
    font-weight: 900;
}

#result img,
#result .aiodl-result-thumbnail,
#result img.position-relative {
    position: relative !important;
    z-index: 3 !important;
    display: block !important;
    width: 100% !important;
    min-height: 240px;
    max-height: 520px;
    border-radius: 14px !important;
    object-fit: cover !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: #e2e8f0;
}

#result .aiodl-result-links {
    position: relative;
    z-index: 2;
}

#result .btn-dl {
    min-width: 11rem;
    border-radius: 10px;
    font-weight: 850;
}

footer {
    background: #020617;
    color: rgba(255, 255, 255, 0.78);
}

footer a,
footer .text-muted,
footer p {
    color: rgba(255, 255, 255, 0.78) !important;
}

footer a:hover {
    color: #ffffff !important;
}

footer .border-bottom {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

footer .d-flex.align-items-start.justify-content-between {
    gap: 2rem 5rem;
}

footer .footer-menu {
    margin-left: auto;
    padding-left: clamp(2rem, 8vw, 9rem);
}

footer #footer-menu {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.6rem;
    margin: 0;
}

footer #footer-menu > li {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 991.98px) {
    .aiodl-navbar {
        min-height: 64px;
    }

    .aiodl-navbar .container-fluid {
        padding: 0 1rem;
    }

    .aiodl-brand {
        min-height: 64px;
    }

    .aiodl-hero-copy {
        padding: 56px 0 64px;
    }

    .aiodl-hero-title {
        font-size: 3.1rem;
    }

    .aiodl-download-form {
        grid-template-columns: 1fr;
    }

    .aiodl-download-shell:has(.aiodl-action-row) {
        grid-template-columns: 1fr;
    }

    .aiodl-download-shell:has(.aiodl-action-row) .aiodl-action-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .aiodl-primary-action,
    .aiodl-secondary-action {
        width: 100%;
    }

    .aiodl-section-title {
        font-size: 2.35rem;
    }

    #result .aiodl-result-card {
        padding: 1rem;
    }

    #result img,
    #result .aiodl-result-thumbnail {
        min-height: 220px;
        max-height: 460px;
    }

    footer .footer-menu {
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }

    footer #footer-menu {
        justify-content: flex-start;
        gap: 0.75rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .aiodl-brand {
        font-size: 1rem;
    }

    .aiodl-brand span::before {
        width: 1.8rem;
        height: 1.8rem;
        border-radius: 10px;
    }

    .aiodl-hero-copy {
        padding: 42px 0 52px;
    }

    .aiodl-hero-title {
        font-size: 2.35rem;
    }

    .aiodl-hero-subtitle {
        font-size: 1rem !important;
    }

    .aiodl-download-shell {
        border-radius: 18px;
        padding: 0.45rem;
    }

    .aiodl-download-form .form-control,
    .aiodl-download-form .btn {
        min-height: 3.55rem;
        border-radius: 14px;
    }

    .aiodl-section-title {
        font-size: 2rem;
    }

    article.container {
        padding: 1.25rem;
        border-radius: 18px;
    }
}
