/* ============================================================
   I&T WebDesign - Stage 22 Reference Rebuild
   Purpose: replace the failed CSS/screenshot hero with a clean,
   vector device composition and restore logo/header proportions.
   ============================================================ */

:root {
    --stage22-navy-dark: #021329;
    --stage22-navy: #05275a;
    --stage22-blue: #0759b8;
    --stage22-orange: #ff5b06;
    --stage22-orange-2: #ff8a17;
}

.container {
    width: min(1280px, calc(100% - 72px));
}

/* Header / logo */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(2, 18, 43, .09);
}

.site-header::after {
    content: "";
    display: block;
    height: 12px;
    background: linear-gradient(180deg, rgba(2, 21, 48, .12), rgba(2, 21, 48, 0));
    border-radius: 0 0 50% 50%;
}

.nav-inner {
    min-height: 92px !important;
    gap: 22px;
}

.logo.logo-image-link {
    width: 275px !important;
    flex: 0 0 275px !important;
    height: 78px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
    text-decoration: none;
}

.logo.logo-image-link img {
    width: 265px !important;
    max-width: 265px !important;
    height: 78px !important;
    object-fit: contain;
    display: block !important;
    filter: drop-shadow(0 4px 5px rgba(5, 24, 56, .10));
}

.main-nav {
    gap: 27px !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1;
    letter-spacing: .15px;
    flex: 1 1 auto;
    justify-content: center;
    white-space: nowrap;
}

.main-nav a {
    padding: 39px 0 34px !important;
    color: #071f45;
}

.main-nav a::after {
    bottom: 25px !important;
    height: 3px !important;
    background: #075cff !important;
}

.nav-right-tools {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.language-switch {
    min-width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d8e4f4;
    border-radius: 10px;
    color: #07336f;
    font-size: 17px;
    font-weight: 950;
    background: #fbfdff;
    box-shadow: 0 8px 16px rgba(0, 33, 78, .06);
}

.phone-cta {
    min-width: 244px !important;
    height: 62px;
    padding: 0 24px !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, var(--stage22-orange-2), var(--stage22-orange)) !important;
    box-shadow: 0 10px 20px rgba(255, 88, 6, .26), inset 0 1px 0 rgba(255,255,255,.25);
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    letter-spacing: .2px;
}

/* Hero section */
.hero {
    min-height: 462px !important;
    background:
        radial-gradient(circle at 73% 24%, rgba(16, 112, 219, .35), transparent 30%),
        radial-gradient(circle at 46% 62%, rgba(0, 123, 255, .20), transparent 26%),
        linear-gradient(115deg, #021126 0%, #031b3f 35%, #06346f 73%, #031932 100%) !important;
    color: #ffffff;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(113deg, rgba(255,255,255,.045) 0 1px, transparent 1px 23px),
        radial-gradient(circle at 44% 53%, rgba(37, 155, 255, .24) 0 2px, transparent 3px),
        radial-gradient(circle at 48% 59%, rgba(37, 155, 255, .20) 0 2px, transparent 3px),
        radial-gradient(circle at 52% 65%, rgba(37, 155, 255, .16) 0 2px, transparent 3px);
    opacity: .72;
}

.hero::after {
    content: "";
    position: absolute;
    right: 4%;
    bottom: -72px;
    width: 70%;
    height: 300px;
    background:
        radial-gradient(ellipse at center, rgba(0, 124, 255, .30), transparent 62%);
    pointer-events: none;
}

.hero-grid {
    min-height: 462px !important;
    grid-template-columns: minmax(560px, 0.96fr) minmax(600px, 1.04fr) !important;
    gap: 34px !important;
    align-items: center !important;
    padding: 38px 0 34px !important;
}

.hero-text {
    position: relative;
    z-index: 4;
    max-width: 620px;
}

.hero-text h1 {
    max-width: 640px !important;
    margin: 0 0 18px !important;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', 'Arial Black', sans-serif !important;
    font-size: clamp(54px, 4.55vw, 66px) !important;
    line-height: .98 !important;
    letter-spacing: .3px !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow:
        0 4px 0 rgba(0,0,0,.22),
        0 12px 24px rgba(0,0,0,.32) !important;
}

.hero-text h1 .hero-line {
    display: block;
    white-space: nowrap;
}

.hero-text h1 strong {
    color: var(--stage22-orange) !important;
    font-weight: 900;
}

.hero-text p {
    max-width: 560px !important;
    margin: 0 0 24px !important;
    color: #ffffff !important;
    font-size: 23px !important;
    line-height: 1.28 !important;
    font-weight: 450;
    text-shadow: 0 5px 14px rgba(0,0,0,.22);
}

.hero-points {
    gap: 14px 22px !important;
    margin: 0 0 30px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 900 !important;
}

.hero-points span::before {
    width: 23px !important;
    height: 23px !important;
    background: linear-gradient(180deg, #2fa5ff, #0759bd) !important;
    border: 1px solid rgba(255,255,255,.45) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 5px 11px rgba(0,0,0,.20);
}

.hero-actions {
    gap: 28px !important;
}

.btn-orange {
    min-height: 58px;
    padding: 0 31px !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, var(--stage22-orange-2), var(--stage22-orange)) !important;
    border: 2px solid rgba(255, 177, 78, .55);
    box-shadow: 0 13px 25px rgba(255, 82, 0, .28), inset 0 1px 0 rgba(255,255,255,.28) !important;
    font-size: 17px !important;
    font-weight: 950 !important;
    letter-spacing: .15px;
    text-transform: uppercase;
}

.btn-outline-play {
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 950 !important;
    text-transform: uppercase;
    line-height: 1.05;
    gap: 12px;
}

.btn-outline-play span {
    width: 56px !important;
    height: 56px !important;
    border: 2px solid rgba(255,255,255,.85) !important;
    background: rgba(5, 35, 73, .25);
    box-shadow: 0 0 0 7px rgba(255,255,255,.04);
}

/* New vector device artwork - no screenshots, no cropped reference image */
.hero-devices-stage22 {
    position: relative;
    z-index: 3;
    min-height: 392px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    pointer-events: none;
}

.hero-devices-stage22 img {
    width: min(720px, 100%) !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
    transform: translate(12px, 12px);
    filter: drop-shadow(0 28px 26px rgba(0, 0, 0, .26));
}

/* Compact hero pages */
.hero.compact {
    min-height: 405px !important;
}

.hero.compact .hero-grid {
    min-height: 405px !important;
    padding: 36px 0 31px !important;
}

.hero.compact .hero-text h1 {
    font-size: clamp(46px, 3.8vw, 58px) !important;
    line-height: 1.02 !important;
}

.hero.compact .hero-devices-stage22 {
    min-height: 342px;
}

.hero.compact .hero-devices-stage22 img {
    width: min(620px, 100%) !important;
    transform: translate(10px, 8px);
}

.pricing-hero .hero-grid {
    grid-template-columns: minmax(570px, 1fr) minmax(560px, .95fr) !important;
}

.pricing-hero-art {
    position: relative;
}

.pricing-hero .hero-badge {
    position: absolute;
    right: 18px;
    bottom: 22px;
    z-index: 7;
    width: 160px;
    height: 160px;
    font-size: 22px;
}

/* Remove artifacts from older failed device rebuilds if cached CSS is still present */
.hero-devices-built,
.device-scene,
.device,
.device-keyboard,
.device-mouse,
.device-glow {
    display: none !important;
}

/* Keep sections tight under hero, like the reference */
.hero + .section.white {
    padding-top: 24px;
}

.hero + .section.white .section-title {
    margin-top: 0;
}

@media (max-width: 1280px) {
    .container {
        width: min(1190px, calc(100% - 48px));
    }

    .hero-grid {
        grid-template-columns: minmax(500px, .92fr) minmax(540px, 1.08fr) !important;
        gap: 24px !important;
    }

    .hero-devices-stage22 img {
        width: min(660px, 100%) !important;
        transform: translate(0, 12px);
    }

    .hero-text h1 {
        font-size: clamp(50px, 4.65vw, 62px) !important;
    }
}

@media (max-width: 1120px) {
    .nav-inner {
        min-height: 84px !important;
    }

    .logo.logo-image-link {
        width: 230px !important;
        flex-basis: 230px !important;
    }

    .logo.logo-image-link img {
        width: 225px !important;
        height: auto !important;
    }

    .main-nav {
        gap: 17px !important;
        font-size: 12px !important;
    }

    .phone-cta {
        min-width: 205px !important;
        height: 56px;
        font-size: 20px !important;
    }

    .hero-grid {
        grid-template-columns: minmax(430px, 1fr) minmax(450px, 1fr) !important;
    }

    .hero-text h1 .hero-line {
        white-space: normal;
    }
}

@media (max-width: 960px) {
    .container {
        width: min(100% - 32px, 720px);
    }

    .nav-inner {
        min-height: 78px !important;
    }

    .main-nav {
        display: none !important;
    }

    .logo.logo-image-link {
        width: 220px !important;
        flex-basis: 220px !important;
    }

    .phone-cta {
        min-width: unset !important;
        width: auto;
        padding: 0 18px !important;
        font-size: 18px !important;
    }

    .hero,
    .hero.compact {
        min-height: auto !important;
    }

    .hero-grid,
    .hero.compact .hero-grid,
    .pricing-hero .hero-grid {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        padding: 42px 0 34px !important;
        gap: 18px !important;
    }

    .hero-text {
        max-width: 100%;
        text-align: left;
    }

    .hero-text h1 {
        font-size: clamp(42px, 8vw, 58px) !important;
    }

    .hero-devices-stage22,
    .hero.compact .hero-devices-stage22 {
        min-height: 300px;
        justify-content: center;
    }

    .hero-devices-stage22 img,
    .hero.compact .hero-devices-stage22 img {
        width: min(620px, 100%) !important;
        transform: translate(0, 0);
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 540px);
    }

    .logo.logo-image-link {
        width: 190px !important;
        flex-basis: 190px !important;
    }

    .logo.logo-image-link img {
        width: 188px !important;
    }

    .language-switch {
        display: none;
    }

    .phone-cta {
        height: 48px;
        font-size: 0 !important;
        min-width: 52px !important;
        padding: 0 !important;
    }

    .phone-cta::after {
        content: "☎";
        font-size: 22px;
    }

    .hero-text h1 {
        font-size: 40px !important;
        letter-spacing: 0 !important;
    }

    .hero-text p {
        font-size: 19px !important;
    }

    .hero-points {
        gap: 10px 14px !important;
        font-size: 13px !important;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-devices-stage22,
    .hero.compact .hero-devices-stage22 {
        min-height: 230px;
    }

    .hero-devices-stage22 img,
    .hero.compact .hero-devices-stage22 img {
        width: 520px !important;
        max-width: 112% !important;
    }
}
