/* =====================================================================
   IT-Bernau · Modern Theme 2026
   Bootstrap 5.3 Erweiterung · Light + Dark Mode
   Markenfarbe (Logo-Blau): #09A2FF
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Brand */
    --it-brand: #09a2ff;
    --it-brand-rgb: 9, 162, 255;
    --it-brand-600: #0a8fe0;
    --it-brand-700: #0b7bc2;
    --it-brand-400: #46b8ff;
    --it-brand-200: #aadcff;
    --it-brand-soft: rgba(9, 162, 255, 0.10);

    /* Bootstrap primary remap */
    --bs-primary: #09a2ff;
    --bs-primary-rgb: 9, 162, 255;
    --bs-link-color: #0b7bc2;
    --bs-link-color-rgb: 11, 123, 194;
    --bs-link-hover-color: #09a2ff;
    --bs-border-radius: 1rem;
    --bs-border-radius-lg: 1.4rem;

    /* Typography */
    --it-font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --it-font-display: "Montserrat", system-ui, sans-serif;

    /* Surfaces (Light) */
    --it-bg: #f6f9fc;
    --it-bg-elev: #ffffff;
    --it-surface: #ffffff;
    --it-surface-2: #f1f6fb;
    --it-text: #14202b;
    --it-text-muted: #5b6b78;
    --it-border: rgba(16, 38, 56, 0.10);
    --it-shadow: 0 10px 30px -12px rgba(11, 60, 102, 0.18);
    --it-shadow-lg: 0 28px 60px -22px rgba(11, 60, 102, 0.30);
    --it-nav-bg: rgba(255, 255, 255, 0.78);
    --it-nav-border: rgba(16, 38, 56, 0.08);
    --it-hero-overlay: linear-gradient(120deg, rgba(4, 22, 40, 0.92) 0%, rgba(6, 60, 104, 0.80) 55%, rgba(8, 110, 180, 0.62) 100%);
    --it-footer-bg: #0c1922;
}

/* ---------- Dark Mode ---------- */
[data-bs-theme="dark"] {
    --bs-primary: #2bb2ff;
    --bs-primary-rgb: 43, 178, 255;
    --bs-link-color: #5cc4ff;
    --bs-link-color-rgb: 92, 196, 255;
    --bs-link-hover-color: #8ed6ff;
    --bs-body-bg: #0b141b;
    --bs-body-color: #d7e3ec;

    --it-brand: #2bb2ff;
    --it-brand-rgb: 43, 178, 255;
    --it-bg: #0b141b;
    --it-bg-elev: #111e29;
    --it-surface: #14222f;
    --it-surface-2: #18293799;
    --it-text: #eaf2f8;
    --it-text-muted: #93a6b4;
    --it-border: rgba(255, 255, 255, 0.09);
    --it-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
    --it-shadow-lg: 0 28px 60px -20px rgba(0, 0, 0, 0.70);
    --it-nav-bg: rgba(13, 25, 35, 0.72);
    --it-nav-border: rgba(255, 255, 255, 0.07);
    --it-hero-overlay: linear-gradient(120deg, rgba(2, 8, 13, 0.95) 0%, rgba(5, 34, 58, 0.88) 55%, rgba(7, 80, 130, 0.70) 100%);
    --it-footer-bg: #060d13;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; overflow-x: clip; }
/* Prevent large row gutters from overflowing the viewport on phones */
@media (max-width: 575.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}

body {
    font-family: var(--it-font-sans);
    background-color: var(--it-bg);
    color: var(--it-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--it-font-display);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--it-text);
}

p { color: var(--it-text); }
.text-muted-2 { color: var(--it-text-muted) !important; }

a { text-decoration: none; transition: color .2s ease; }

::selection { background: rgba(var(--it-brand-rgb), 0.25); }

/* Section rhythm */
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--it-brand);
    background: var(--it-brand-soft);
    border: 1px solid rgba(var(--it-brand-rgb), 0.22);
    padding: .4rem .9rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.lead-muted {
    color: var(--it-text-muted);
    font-size: 1.08rem;
    line-height: 1.7;
    max-width: 46rem;
}

.text-gradient {
    background: linear-gradient(100deg, var(--it-brand) 0%, var(--it-brand-700) 28%, var(--it-brand-400) 50%, var(--it-brand-700) 72%, var(--it-brand) 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 7s linear infinite;
}
@keyframes textShimmer { to { background-position: 220% center; } }

/* =====================================================================
   Navbar
   ===================================================================== */
.it-navbar {
    background: var(--it-nav-bg);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--it-nav-border);
    transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.it-navbar.scrolled { box-shadow: 0 8px 30px -16px rgba(11, 60, 102, 0.30); }

.it-navbar .navbar-brand img { height: 58px; width: auto; transition: transform .3s ease, height .3s ease; }
.it-navbar.scrolled .navbar-brand img { height: 50px; }
.it-navbar .navbar-brand:hover img { transform: scale(1.04); }
@media (max-width: 575.98px) { .it-navbar .navbar-brand img { height: 48px; } }

.it-navbar .nav-link {
    color: var(--it-text);
    font-weight: 500;
    font-size: .96rem;
    padding: .55rem .9rem !important;
    border-radius: .7rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    transition: color .2s ease, background .2s ease;
}
.it-navbar .nav-link svg { width: 1.05em; height: 1.05em; opacity: .85; }
.it-navbar .nav-link:hover { color: var(--it-brand); background: var(--it-brand-soft); }
.it-navbar .nav-link.active { color: var(--it-brand); font-weight: 600; }

.navbar-toggler { border: 1px solid var(--it-border); padding: .4rem .55rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(var(--it-brand-rgb), .25); }

/* Theme toggle button */
.theme-toggle {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--it-border);
    background: var(--it-surface);
    color: var(--it-text);
    cursor: pointer;
    transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
}
.theme-toggle:hover { color: var(--it-brand); box-shadow: 0 0 0 4px var(--it-brand-soft); transform: translateY(-1px); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-bs-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-bs-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* =====================================================================
   Buttons
   ===================================================================== */
.btn { border-radius: 999px; font-weight: 600; padding: .7rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn-lg { padding: .85rem 2rem; font-size: 1.02rem; }

.btn-brand {
    background: linear-gradient(120deg, var(--it-brand) 0%, var(--it-brand-600) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 12px 26px -12px rgba(var(--it-brand-rgb), 0.75);
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(var(--it-brand-rgb), 0.85); }

.btn-outline-brand {
    border: 1.5px solid rgba(var(--it-brand-rgb), 0.55);
    color: var(--it-brand);
    background: transparent;
}
.btn-outline-brand:hover { background: var(--it-brand); border-color: var(--it-brand); color: #fff; transform: translateY(-2px); }

.btn-ghost-light {
    border: 1.5px solid rgba(255,255,255,0.55);
    color: #fff;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { background: #fff; color: var(--it-brand-700); border-color:#fff; transform: translateY(-2px); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
    position: relative;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute; inset: 0; z-index: -2;
    background-size: cover; background-position: center;
    transform: scale(1.12);
    filter: blur(4px) brightness(0.82);
}
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--it-hero-overlay);
}
.hero-inner { padding-top: clamp(5rem, 14vw, 9.5rem); padding-bottom: clamp(4rem, 10vw, 7rem); }
.hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 5.2vw, 3.8rem);
    line-height: 1.07;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 30px rgba(0,0,0,.25);
    overflow-wrap: break-word;
}
.hero p {
    color: rgba(255,255,255,0.92);
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
    line-height: 1.7;
    max-width: 40rem;
    overflow-wrap: break-word;
}
.hero .btn { max-width: 100%; }
@media (max-width: 575.98px) {
    .hero .d-flex.flex-wrap .btn { flex: 1 1 100%; }
}
.hero .eyebrow { color:#fff; background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.30); }

/* Decorative blobs */
.hero-blob {
    position: absolute; z-index: -1; border-radius: 50%;
    filter: blur(60px); opacity: .55; pointer-events: none;
}
.hero-blob.b1 { width: 420px; height: 420px; top: -120px; right: -90px; background: radial-gradient(circle, rgba(var(--it-brand-rgb),.7), transparent 70%); }
.hero-blob.b2 { width: 360px; height: 360px; bottom: -140px; left: -120px; background: radial-gradient(circle, rgba(120,210,255,.5), transparent 70%); }

/* Compact page hero (for legal pages) */
.page-hero { padding-top: clamp(4rem, 9vw, 6rem); padding-bottom: clamp(2.5rem,6vw,4rem); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); }

/* =====================================================================
   Cards / Feature boxes
   ===================================================================== */
.card-modern {
    background: var(--it-surface);
    border: 1px solid var(--it-border);
    border-radius: var(--bs-border-radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: var(--it-shadow);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--it-shadow-lg);
    border-color: rgba(var(--it-brand-rgb), 0.35);
}

.feature-icon {
    width: 58px; height: 58px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(var(--it-brand-rgb),0.16), rgba(var(--it-brand-rgb),0.04));
    color: var(--it-brand);
    border: 1px solid rgba(var(--it-brand-rgb), 0.22);
    margin-bottom: 1.2rem;
    flex-shrink: 0;
}
.feature-icon svg { width: 28px; height: 28px; }

.card-modern h3, .card-modern h4 { font-size: 1.2rem; margin-bottom: .65rem; }
.card-modern p { color: var(--it-text-muted); font-size: .97rem; line-height: 1.65; margin-bottom: 0; }

/* Icon line item (alternating list) */
.split-item {
    display: flex; gap: 1.4rem; align-items: flex-start;
    padding: 1.6rem 0;
}
.split-item .feature-icon { width: 64px; height: 64px; border-radius: 18px; }
.split-item h3 { font-size: 1.3rem; }
.split-item p { color: var(--it-text-muted); line-height: 1.7; margin-bottom: 0; }
.split-divider { height:1px; background: var(--it-border); border: 0; margin: 0; }

/* Brand chips / tech badges */
.tech-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .5rem 1rem; border-radius: 999px;
    background: var(--it-surface); border: 1px solid var(--it-border);
    color: var(--it-text); font-weight: 500; font-size: .92rem;
    box-shadow: var(--it-shadow);
}
.tech-badge svg { width: 1.1em; height: 1.1em; color: var(--it-brand); }

/* Stats */
.stat { text-align: center; padding: 1rem; }
.stat .num { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--it-brand); line-height: 1; }
.stat .label { color: var(--it-text-muted); font-size: .92rem; margin-top: .4rem; }

/* =====================================================================
   CTA band
   ===================================================================== */
.cta-band {
    position: relative; overflow: hidden;
    border-radius: var(--bs-border-radius-lg);
    background: linear-gradient(120deg, var(--it-brand-700) 0%, var(--it-brand) 100%);
    color: #fff;
    padding: clamp(2.5rem, 6vw, 4rem);
    box-shadow: var(--it-shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); }
.cta-band::after {
    content:""; position:absolute; width: 380px; height: 380px; border-radius:50%;
    background: radial-gradient(circle, rgba(255,255,255,.25), transparent 70%);
    top: -150px; right: -100px;
}

/* =====================================================================
   Forms
   ===================================================================== */
.form-card {
    background: var(--it-surface);
    border: 1px solid var(--it-border);
    border-radius: var(--bs-border-radius-lg);
    padding: clamp(1.6rem, 4vw, 2.6rem);
    box-shadow: var(--it-shadow);
}
.form-label { font-weight: 600; font-size: .92rem; color: var(--it-text); margin-bottom: .4rem; }
.form-control {
    background: var(--it-bg-elev);
    border: 1px solid var(--it-border);
    border-radius: .8rem;
    color: var(--it-text);
    padding: .8rem 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.form-control::placeholder { color: var(--it-text-muted); opacity: .8; }
.form-control:focus {
    background: var(--it-bg-elev);
    border-color: var(--it-brand);
    box-shadow: 0 0 0 .25rem rgba(var(--it-brand-rgb), 0.18);
    color: var(--it-text);
}
textarea.form-control { min-height: 140px; }

/* Contact info tiles */
.contact-tile {
    display:flex; gap:1rem; align-items:flex-start;
    padding: 1.2rem 1.3rem;
    background: var(--it-surface); border:1px solid var(--it-border);
    border-radius: 1rem; box-shadow: var(--it-shadow);
    transition: transform .25s ease, border-color .25s ease;
}
.contact-tile:hover { transform: translateY(-3px); border-color: rgba(var(--it-brand-rgb),.35); }
.contact-tile .feature-icon { width: 46px; height: 46px; border-radius: 13px; margin:0; }
.contact-tile .feature-icon svg { width: 22px; height: 22px; }
.contact-tile .label { font-size: .8rem; color: var(--it-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.contact-tile .value { font-weight: 600; color: var(--it-text); }
.contact-tile a { color: var(--it-text); }
.contact-tile a:hover { color: var(--it-brand); }

/* =====================================================================
   Legal / prose pages
   ===================================================================== */
.prose {
    background: var(--it-surface);
    border: 1px solid var(--it-border);
    border-radius: var(--bs-border-radius-lg);
    padding: clamp(1.8rem, 4vw, 3rem);
    box-shadow: var(--it-shadow);
}
.prose h2 { font-size: 1.5rem; margin-top: 2rem; margin-bottom: .8rem; color: var(--it-brand); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.prose p, .prose li { color: var(--it-text-muted); line-height: 1.75; }
.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--it-brand); word-break: break-word; }

/* =====================================================================
   Footer
   ===================================================================== */
.it-footer {
    background: var(--it-footer-bg);
    color: #b9c7d2;
    padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.it-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.it-footer a { color: #b9c7d2; }
.it-footer a:hover { color: var(--it-brand); }
.it-footer ul { list-style: none; padding: 0; margin: 0; }
.it-footer li { margin-bottom: .6rem; }
.it-footer .footer-brand img { height: 64px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .92; }
.it-footer .slogan { color: #7d8e9b; font-size: .9rem; max-width: 22rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 2.5rem; padding-top: 1.6rem;
    color: #7d8e9b; font-size: .88rem;
}
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    display:inline-flex; align-items:center; justify-content:center;
    background: rgba(255,255,255,.06); color:#cdd9e2; margin-right:.5rem;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.footer-social a:hover { background: var(--it-brand); color:#fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

/* =====================================================================
   Reveal-on-scroll animation
   ===================================================================== */
/* Only hide when JS is active (progressive enhancement) — blur-up reveal */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
    transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1), filter .8s ease;
    will-change: opacity, transform, filter;
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}

/* Section background variants */
.bg-soft { background: var(--it-surface-2); }
.bg-elev { background: var(--it-bg-elev); }

/* Divider gradient line */
.brand-rule { height: 4px; width: 64px; border-radius: 999px; background: linear-gradient(90deg, var(--it-brand), var(--it-brand-400)); border:0; opacity:1; margin: 1rem 0 1.5rem; }
.mx-auto.brand-rule { margin-left:auto; margin-right:auto; }

/* =====================================================================
   Hero logo plate (prominent logo inside the hero image)
   ===================================================================== */
.hero-logo-plate {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(1.8rem, 4vw, 2.8rem);
    background: rgba(10, 22, 34, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    animation: heroPlateIn .8s cubic-bezier(.22,1,.36,1) both;
}
.hero-logo-plate img { display: block; width: 100%; max-width: 380px; height: auto; }
@keyframes heroPlateIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 991.98px) {
    .hero-logo-plate { max-width: 440px; margin: 0 auto; }
    .hero-logo-plate img { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) { .hero-logo-plate { animation: none; } }

/* =====================================================================
   Cookie banner (info notice — only technically necessary cookies)
   ===================================================================== */
.cookie-banner {
    position: fixed; z-index: 1080;
    left: 50%; bottom: 1.2rem; transform: translate(-50%, 140%);
    width: min(680px, calc(100% - 2rem));
    background: var(--it-surface);
    color: var(--it-text);
    border: 1px solid var(--it-border);
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--it-shadow-lg);
    padding: 1.3rem 1.4rem;
    display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem;
    opacity: 0; visibility: hidden;
    transition: transform .45s cubic-bezier(.22,1,.36,1), opacity .35s ease, visibility .35s;
}
.cookie-banner.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.cookie-banner .cb-icon {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(var(--it-brand-rgb),0.18), rgba(var(--it-brand-rgb),0.05));
    color: var(--it-brand); border: 1px solid rgba(var(--it-brand-rgb), 0.25);
}
.cookie-banner .cb-icon svg { width: 24px; height: 24px; }
.cookie-banner .cb-text { flex: 1 1 280px; min-width: 220px; }
.cookie-banner .cb-text strong { display:block; font-size: 1rem; margin-bottom: .2rem; }
.cookie-banner .cb-text p { color: var(--it-text-muted); font-size: .9rem; line-height: 1.55; margin: 0; }
.cookie-banner .cb-text a { color: var(--it-brand); }
.cookie-banner .cb-actions { flex: 0 0 auto; display: flex; gap: .6rem; align-items: center; }
@media (max-width: 575.98px) {
    .cookie-banner { bottom: 0; left: 0; transform: translateY(140%); width: 100%; border-radius: 1.2rem 1.2rem 0 0; }
    .cookie-banner.show { transform: translateY(0); }
    .cookie-banner .cb-actions { width: 100%; }
    .cookie-banner .cb-actions .btn { width: 100%; }
}

/* =====================================================================
   2026 micro-animations
   ===================================================================== */

/* Scroll progress bar */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    z-index: 1090; border-radius: 0 3px 3px 0;
    background: linear-gradient(90deg, var(--it-brand), var(--it-brand-400));
    box-shadow: 0 0 12px rgba(var(--it-brand-rgb), 0.7);
    transition: width .12s ease-out;
}

/* Drifting hero light blobs */
.hero-blob.b1 { animation: drift1 18s ease-in-out infinite alternate; }
.hero-blob.b2 { animation: drift2 22s ease-in-out infinite alternate; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-46px, 34px) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(42px, -30px) scale(1.1); } }

/* Stat numbers: stable width while counting */
.stat .num { font-variant-numeric: tabular-nums; }

/* Staggered children (set via JS transition-delay) */

/* Button shine sweep on hover */
.btn-brand { position: relative; overflow: hidden; }
.btn-brand::after {
    content: ""; position: absolute; top: 0; left: -130%;
    width: 55%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,.38), transparent);
    transform: skewX(-20deg); pointer-events: none;
    transition: left .65s ease;
}
.btn-brand:hover::after { left: 150%; }

/* Card hover: icon pop + soft brand glow */
.card-modern .feature-icon { transition: transform .4s cubic-bezier(.22,1,.36,1), background .35s ease, color .35s ease, border-color .35s ease; }
.card-modern:hover .feature-icon { transform: translateY(-3px) scale(1.08) rotate(-3deg); }
.card-modern::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(var(--it-brand-rgb), 0);
    transition: box-shadow .45s ease; pointer-events: none;
}
.card-modern:hover::after { box-shadow: 0 0 46px -8px rgba(var(--it-brand-rgb), 0.28); }

/* Contact tiles + tech badges micro-lift on hover */
.tech-badge { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.tech-badge:hover { transform: translateY(-3px); border-color: rgba(var(--it-brand-rgb), .4); }

/* Footer link slide */
.it-footer li a { display: inline-block; transition: transform .2s ease, color .2s ease; }
.it-footer li a:hover { transform: translateX(5px); }

/* Theme toggle icon spin on activation */
.theme-toggle svg { transition: transform .5s cubic-bezier(.22,1,.36,1); }
.theme-toggle:hover svg { transform: rotate(35deg); }

/* Animated nav underline */
.it-navbar .nav-link { position: relative; }
.it-navbar .nav-link::after {
    content: ""; position: absolute; left: 50%; right: 50%; bottom: .25rem; height: 2px;
    border-radius: 2px; background: var(--it-brand);
    transition: left .25s ease, right .25s ease, opacity .25s ease; opacity: 0;
}
.it-navbar .nav-link.active::after,
.it-navbar .nav-link:hover::after { left: .9rem; right: .9rem; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .hero-blob.b1, .hero-blob.b2, .text-gradient { animation: none !important; }
    .scroll-progress { display: none; }
    .btn-brand::after { display: none; }
}

/* Brand-blue duotone treatment for off-palette photos */
.brand-duotone img {
    filter: grayscale(1) contrast(1.08) brightness(1.02) sepia(1) hue-rotate(176deg) saturate(2.4);
    transition: filter .5s ease;
}
.brand-duotone::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(135deg, rgba(6, 30, 52, 0.45) 0%, rgba(9, 130, 224, 0.18) 55%, rgba(70, 184, 255, 0.10) 100%);
    mix-blend-mode: multiply;
}
.brand-duotone:hover img { filter: grayscale(1) contrast(1.08) brightness(1.06) sepia(1) hue-rotate(176deg) saturate(2.6); }

/* FAQ accordion (on-brand, themed) */
.faq-wrap { max-width: 820px; margin-inline: auto; }
.faq-item {
    border: 1px solid var(--it-border);
    border-radius: var(--bs-border-radius-lg);
    background: var(--it-surface, var(--bs-body-bg));
    box-shadow: var(--it-shadow);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item[open] { border-color: rgba(9, 162, 255, 0.45); box-shadow: var(--it-shadow-lg); }
.faq-item > summary {
    list-style: none; cursor: pointer; user-select: none;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 1.35rem;
    font-weight: 650; font-size: 1.05rem; line-height: 1.4;
    color: var(--bs-body-color);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
    content: ""; flex: 0 0 auto; width: 22px; height: 22px;
    background: no-repeat center / contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2309a2ff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
    transition: transform .3s ease;
}
.faq-item[open] > summary::after { transform: rotate(135deg); }
.faq-item > summary:hover { color: var(--it-brand); }
.faq-answer { padding: 0 1.35rem 1.25rem; color: var(--bs-secondary-color); }
.faq-answer p { margin-bottom: 0; }
.js .faq-item[open] .faq-answer { animation: faqReveal .35s ease; }
@keyframes faqReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .faq-item > summary::after, .js .faq-item[open] .faq-answer { transition: none; animation: none; }
}

/* Utility */
.rounded-2xl { border-radius: var(--bs-border-radius-lg) !important; }
.shadow-soft { box-shadow: var(--it-shadow) !important; }
.img-cover { object-fit: cover; width: 100%; height: 100%; }
.ratio-frame { border-radius: var(--bs-border-radius-lg); overflow: hidden; box-shadow: var(--it-shadow-lg); border: 1px solid var(--it-border); }
