/* ============================================================
   I&T WebDesign - Stage 21 Hero Rebuild
   This replaces screenshot-based hero artwork with real HTML/CSS
   device composition and fixes the logo block issue in the header.
   ============================================================ */

/* Header logo rebuilt: no baked white rectangle, no dark cropped edge */
.logo.logo-rendered {
    width: 294px;
    flex: 0 0 294px;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
}

.logo-rendered img {
    display: none !important;
}

.brand-logo-rendered {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 270px;
    min-height: 74px;
    background: transparent;
    color: #061f4b;
    filter: drop-shadow(0 4px 5px rgba(0, 27, 68, .10));
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 124px;
    height: 60px;
    font-size: 44px;
    line-height: 1;
    font-weight: 950;
    font-style: italic;
    letter-spacing: -4px;
    color: #0a58ba;
    text-shadow: 2px 2px 0 #ffffff, 3px 4px 0 rgba(0, 22, 62, .12);
}

.brand-mark::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -5px;
    width: 42px;
    height: 56px;
    background:
        radial-gradient(circle, #0a58ba 0 2px, transparent 3px) 0 0 / 10px 10px,
        radial-gradient(circle, #0a58ba 0 2px, transparent 3px) 5px 5px / 10px 10px;
    opacity: .95;
    transform: skew(-13deg) rotate(3deg);
    z-index: -1;
}

.brand-mark::after {
    content: "";
    position: absolute;
    left: -6px;
    bottom: 8px;
    width: 96px;
    height: 31px;
    border: 4px solid #0a58ba;
    border-top-color: transparent;
    border-right-color: transparent;
    border-radius: 0 0 0 46px;
    transform: rotate(-8deg);
    z-index: -1;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    transform: translateX(-5px);
}

.brand-name {
    font-size: 24px;
    line-height: 1;
    font-weight: 950;
    font-style: italic;
    color: #071f4c;
    letter-spacing: -1px;
    white-space: nowrap;
}

.brand-name::after {
    content: "";
    display: inline-block;
    width: 71px;
    height: 21px;
    margin-left: 2px;
    vertical-align: -3px;
    border-radius: 0 16px 16px 0;
    background: linear-gradient(90deg, #0c57b4, #0a88e8);
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
    opacity: .98;
}

.brand-tagline {
    position: relative;
    margin-top: 7px;
    padding: 0 24px;
    color: #061f4b;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -.2px;
    white-space: nowrap;
}

.brand-tagline::before,
.brand-tagline::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 19px;
    height: 1px;
    background: #061f4b;
    opacity: .75;
}

.brand-tagline::before { left: 0; }
.brand-tagline::after { right: 0; }

.site-header::after {
    pointer-events: none;
}

.nav-inner {
    min-height: 92px;
}

/* Prevent old screenshot/image hero rules from applying */
.hero-devices-built,
.hero-devices-built * {
    box-sizing: border-box;
}

.hero-devices-built {
    position: relative;
    min-height: 365px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    z-index: 2;
}

.hero-devices-built img {
    display: none !important;
}

.device-scene {
    position: relative;
    width: min(720px, 100%);
    height: 365px;
    overflow: visible;
    transform: translateX(24px);
}

.device-glow {
    position: absolute;
    left: 38px;
    right: -25px;
    bottom: -8px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, .35), rgba(0, 20, 55, 0) 72%);
    filter: blur(5px);
    z-index: 0;
}

.device {
    position: absolute;
    z-index: 2;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #0b0d12, #30343b 45%, #050609);
    border: 2px solid rgba(255, 255, 255, .20);
    box-shadow:
        0 24px 42px rgba(0, 0, 0, .44),
        inset 0 0 0 2px rgba(255, 255, 255, .05);
    overflow: hidden;
}

.device-desktop {
    left: 82px;
    top: 4px;
    width: 448px;
    transform: rotate(-5deg);
    z-index: 3;
}

.device-desktop .device-frame {
    width: 448px;
    height: 260px;
    padding: 11px;
    border-radius: 17px;
}

.device-desktop .device-frame::after,
.device-tablet .device-frame::after,
.device-phone .device-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(125deg, rgba(255,255,255,.20), transparent 24%, transparent 68%, rgba(255,255,255,.10));
    pointer-events: none;
}

.device-stand {
    position: absolute;
    left: 190px;
    top: 254px;
    width: 84px;
    height: 62px;
    background: linear-gradient(90deg, #bdc5cc, #f5f7f8 42%, #8d969f);
    clip-path: polygon(24% 0, 76% 0, 90% 100%, 10% 100%);
    box-shadow: 0 20px 22px rgba(0,0,0,.32);
    z-index: -1;
}

.device-foot {
    position: absolute;
    left: 139px;
    top: 302px;
    width: 196px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(90deg, #9099a4, #ffffff 48%, #848c97);
    box-shadow: 0 16px 19px rgba(0,0,0,.38);
    z-index: -2;
}

.device-tablet {
    right: 11px;
    top: 73px;
    width: 210px;
    transform: rotate(4deg);
    z-index: 5;
}

.device-tablet .device-frame {
    width: 210px;
    height: 246px;
    padding: 10px;
    border-radius: 20px;
}

.device-phone {
    left: 55px;
    top: 184px;
    width: 92px;
    transform: rotate(-3deg);
    z-index: 6;
}

.device-phone .device-frame {
    width: 92px;
    height: 178px;
    padding: 8px 6px 7px;
    border-radius: 17px;
}

.phone-speaker {
    position: absolute;
    left: 50%;
    top: 5px;
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,.38);
    transform: translateX(-50%);
    z-index: 4;
}

.device-keyboard {
    position: absolute;
    left: 122px;
    bottom: 4px;
    width: 258px;
    height: 42px;
    border-radius: 12px 12px 18px 18px;
    background:
        repeating-linear-gradient(90deg, rgba(8,30,62,.16) 0 9px, transparent 9px 16px),
        repeating-linear-gradient(0deg, rgba(8,30,62,.12) 0 7px, transparent 7px 14px),
        linear-gradient(180deg, #ffffff, #cfd5dc);
    transform: perspective(360px) rotateX(50deg) rotate(-3deg);
    box-shadow: 0 20px 24px rgba(0,0,0,.35);
    z-index: 5;
}

.device-mouse {
    position: absolute;
    left: 416px;
    bottom: 6px;
    width: 70px;
    height: 32px;
    border-radius: 50% 50% 45% 45%;
    background: linear-gradient(100deg, #d5d8dc, #ffffff 55%, #aeb6be);
    transform: rotate(-5deg);
    box-shadow: 0 16px 18px rgba(0,0,0,.34);
    z-index: 5;
}

.mock-browser {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fbff;
}

.mock-header {
    height: 28px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    background: #ffffff;
    color: #052452;
    font-size: 6px;
    font-weight: 900;
    text-transform: uppercase;
    box-shadow: 0 1px 0 rgba(0,0,0,.05);
}

.mock-brand {
    margin-right: auto;
    font-size: 8px;
    font-weight: 950;
    font-style: italic;
    text-transform: none;
    white-space: nowrap;
}

.mock-brand span {
    color: #0a56ba;
    font-size: 11px;
}

.mock-nav {
    opacity: .78;
}

.mock-cta {
    padding: 4px 7px;
    border-radius: 3px;
    background: linear-gradient(180deg, #ff7a10, #ff4f00);
    color: #ffffff;
    font-size: 5px;
    font-weight: 950;
    white-space: nowrap;
}

.mock-hero-screen {
    position: relative;
    min-height: 146px;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(0,18,44,.98) 0 35%, rgba(0,34,78,.82) 56%, rgba(5,46,92,.30) 100%),
        radial-gradient(circle at 74% 35%, rgba(98,176,255,.48), transparent 34%),
        linear-gradient(135deg, #00152d, #0b3d75);
}

.mock-hero-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(112deg, rgba(255,255,255,.055) 0 1px, transparent 1px 16px),
        radial-gradient(circle at 52% 63%, rgba(37,145,255,.28) 0 2px, transparent 3px);
    opacity: .58;
}

.mock-copy {
    position: relative;
    z-index: 2;
    width: 52%;
    color: #ffffff;
}

.mock-copy small {
    display: block;
    margin-bottom: 6px;
    color: #6fb9ff;
    font-size: 6px;
    font-weight: 900;
}

.mock-copy strong {
    display: block;
    margin-bottom: 7px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.06;
    font-weight: 950;
    text-shadow: 0 3px 8px rgba(0,0,0,.35);
}

.mock-copy span {
    display: block;
    max-width: 150px;
    margin-bottom: 9px;
    color: #cce5ff;
    font-size: 6px;
    line-height: 1.35;
}

.mock-copy em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 17px;
    padding: 0 9px;
    border-radius: 3px;
    background: linear-gradient(180deg, #ff7a10, #ff4f00);
    color: #ffffff;
    font-style: normal;
    font-size: 6px;
    font-weight: 950;
    box-shadow: 0 5px 12px rgba(255, 80, 0, .32);
}

.mock-house {
    position: absolute;
    right: 20px;
    bottom: 0;
    width: 175px;
    height: 130px;
    z-index: 1;
    filter: drop-shadow(0 16px 20px rgba(0,0,0,.42));
}

.mock-house .wall {
    position: absolute;
    left: 44px;
    bottom: 0;
    width: 91px;
    height: 74px;
    background: linear-gradient(135deg, #d7e4ed, #6f879a 62%, #273d51);
    clip-path: polygon(0 28%, 50% 0, 100% 28%, 100% 100%, 0 100%);
}

.mock-house .roof {
    position: absolute;
    left: 24px;
    bottom: 63px;
    width: 132px;
    height: 50px;
    background: linear-gradient(150deg, #173754, #0a1d31 67%);
    clip-path: polygon(0 80%, 50% 0, 100% 80%, 91% 100%, 50% 33%, 9% 100%);
}

.mock-house .window,
.mock-house .door {
    position: absolute;
    z-index: 2;
    background: linear-gradient(135deg, #ffe3a1, #ff9c2d);
    box-shadow: 0 0 12px rgba(255, 160, 50, .55);
}

.mock-house .window-a {
    left: 61px;
    bottom: 38px;
    width: 18px;
    height: 20px;
}

.mock-house .window-b {
    left: 100px;
    bottom: 38px;
    width: 18px;
    height: 20px;
}

.mock-house .door {
    left: 83px;
    bottom: 0;
    width: 18px;
    height: 34px;
    background: linear-gradient(135deg, #16324b, #08192a);
}

.mock-services-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 10px 18px 12px;
    background: #ffffff;
}

.mock-services-row span,
.mock-grid-cards span {
    display: block;
    height: 32px;
    border-radius: 6px;
    background:
        radial-gradient(circle at 50% 34%, #0a56ba 0 6px, transparent 7px),
        linear-gradient(180deg, #ffffff, #eff5fb);
    border: 1px solid #dce7f3;
    box-shadow: 0 5px 10px rgba(5,35,80,.08);
}

.tablet-browser .mock-header {
    height: 24px;
    padding: 0 9px;
}

.compact-screen {
    min-height: 95px;
    padding: 12px;
}

.compact-screen .mock-copy {
    width: 60%;
}

.compact-screen .mock-copy strong {
    font-size: 11px;
    margin-bottom: 7px;
}

.compact-screen .mock-copy em {
    min-height: 14px;
    padding: 0 6px;
    font-size: 5px;
}

.small-house {
    right: 5px;
    width: 92px;
    height: 75px;
    transform: scale(.72);
    transform-origin: right bottom;
}

.mock-grid-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 13px;
    background: #ffffff;
}

.mock-grid-cards span {
    height: 42px;
}

.phone-browser {
    border-radius: 11px;
}

.phone-browser .mock-header {
    height: 19px;
    padding: 0 7px;
}

.phone-browser .mock-brand {
    font-size: 6px;
}

.phone-browser .mock-brand span {
    font-size: 8px;
}

.phone-browser .mock-header i {
    width: 10px;
    height: 6px;
    border-top: 1px solid #052452;
    border-bottom: 1px solid #052452;
}

.phone-screen {
    min-height: 63px;
    padding: 8px;
}

.phone-screen .mock-copy {
    width: 86%;
}

.phone-screen .mock-copy strong {
    font-size: 9px;
    margin-bottom: 6px;
}

.phone-screen .mock-copy em {
    min-height: 12px;
    padding: 0 6px;
    font-size: 4px;
}

.phone-browser .mock-grid-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    padding: 7px;
}

.phone-browser .mock-grid-cards span {
    height: 28px;
    border-radius: 4px;
}

/* Hero sizing closer to the supplied reference */
.hero {
    min-height: 458px;
}

.hero-grid {
    min-height: 458px;
    padding: 44px 0 44px;
    grid-template-columns: minmax(500px, .96fr) minmax(610px, 1.04fr);
    gap: 22px;
}

.hero-text h1 {
    font-size: clamp(56px, 5.1vw, 79px);
    line-height: .93;
    letter-spacing: -2.4px;
}

.hero-text p {
    max-width: 625px;
    font-size: 23px;
}

/* Pricing page uses the same rebuilt art without crop artifacts */
.pricing-hero .hero-devices-built,
.hero.compact .hero-devices-built {
    min-height: 340px;
}

.pricing-hero .device-scene,
.hero.compact .device-scene {
    transform: translateX(12px) scale(.94);
    transform-origin: center right;
}

.pricing-hero .hero-badge {
    right: 30px;
    bottom: 24px;
    z-index: 12;
}

@media (max-width: 1180px) {
    .logo.logo-rendered {
        width: 250px;
        flex-basis: 250px;
    }

    .brand-logo-rendered {
        min-width: 242px;
        transform: scale(.88);
        transform-origin: left center;
    }

    .device-scene {
        transform: translateX(2px) scale(.90);
        transform-origin: center right;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) minmax(500px, .95fr);
    }
}

@media (max-width: 960px) {
    .logo.logo-rendered {
        width: 228px;
        flex-basis: 228px;
    }

    .brand-logo-rendered {
        transform: scale(.80);
    }

    .hero-devices-built {
        justify-content: center;
        min-height: 330px;
    }

    .device-scene,
    .pricing-hero .device-scene,
    .hero.compact .device-scene {
        width: 700px;
        max-width: 100%;
        transform: scale(.86);
        transform-origin: center center;
    }

    .hero-grid,
    .hero.compact .hero-grid,
    .pricing-hero .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .brand-logo-rendered {
        transform: scale(.72);
    }

    .logo.logo-rendered {
        width: 205px;
        flex-basis: 205px;
    }

    .hero-devices-built {
        min-height: 265px;
    }

    .device-scene,
    .pricing-hero .device-scene,
    .hero.compact .device-scene {
        height: 300px;
        transform: scale(.66);
        transform-origin: center top;
    }

    .hero-text h1 {
        font-size: 40px;
    }
}
