:root {
    --codeit-navy: #050b16;
    --codeit-panel: #0d1726;
    --codeit-blue: #3363ae;
    --codeit-cyan: #07a4c8;
    --codeit-soft: #eaf2ff;
    --codeit-text: #e5eefb;
    --primary-color: #07a4c8;
    --secondary-color: #3363ae;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

.codeit-profile {
    background: #f6f9fe;
}

.codeit-profile h1,
.codeit-profile h2,
.codeit-profile h3,
.codeit-profile h4 {
    letter-spacing: 0;
}

.codeit-logo {
    width: 200px;
    height: auto;
}

.codeit-header .navbar {
    background: rgba(5, 11, 22, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(125, 211, 252, 0.12);
}

.codeit-header .nav-link {
    font-weight: 700;
}

.codeit-hero {
    min-height: 100vh;
    background: var(--codeit-navy);
    overflow: hidden;
}

.hero-visual {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 74% 18%, rgba(7, 164, 200, 0.28), transparent 32%),
        linear-gradient(135deg, #020617 0%, #08111f 56%, #0f172a 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image:
        linear-gradient(115deg, transparent 0 28%, rgba(7, 164, 200, 0.38) 28.1% 28.25%, transparent 28.35% 100%),
        linear-gradient(60deg, transparent 0 58%, rgba(51, 99, 174, 0.45) 58.1% 58.25%, transparent 58.4% 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 90px;
}

.eyebrow {
    color: var(--codeit-cyan);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.codeit-hero .title {
    color: #fff;
    font-size: clamp(3rem, 7vw, 6.5rem);
    line-height: 0.9;
    max-width: 850px;
}

.codeit-hero .description {
    width: auto !important;
    max-width: 720px;
    margin: 28px 0 0;
    color: #cbd5e1;
    font-size: 1.18rem;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-proof {
    padding: 28px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(125, 211, 252, 0.18);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.28);
}

.hero-proof img {
    width: 100%;
    max-width: 310px;
    margin-bottom: 28px;
}

.proof-grid {
    display: grid;
    gap: 12px;
}

.proof-grid span,
.contact-strip span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 11px 14px;
    color: #fff;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(125, 211, 252, 0.22);
    font-weight: 800;
}

.proof-grid i,
.contact-strip i {
    color: var(--codeit-cyan);
}

.codeit-section {
    padding: 105px 0;
    background: #f6f9fe;
}

.codeit-section h2 {
    color: #07111f;
    font-size: clamp(2.2rem, 5vw, 4.4rem);
    line-height: 0.98;
    font-weight: 900;
}

.codeit-section .lead {
    color: #172033;
    font-size: 1.2rem;
    line-height: 1.65;
}

.codeit-section p {
    color: #475569;
    line-height: 1.7;
}

.dark-section {
    background:
        radial-gradient(circle at 84% 12%, rgba(7, 164, 200, 0.2), transparent 30%),
        linear-gradient(135deg, #020617, #0f172a);
}

.dark-section h2,
.dark-section h3,
.dark-section h4 {
    color: #fff;
}

.dark-section p {
    color: #cbd5e1;
}

.stats-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stats-panel div {
    padding: 24px;
    background: #fff;
    border-left: 4px solid var(--codeit-cyan);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}

.stats-panel strong {
    display: block;
    color: #07111f;
    font-size: 2rem;
    line-height: 1;
}

.stats-panel span {
    display: block;
    margin-top: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.76rem;
    font-weight: 900;
}

.service-grid {
    row-gap: 30px;
}

.service-grid article,
.why-grid article,
.site-case {
    height: 100%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(125, 211, 252, 0.16);
    transition: transform 250ms ease, border-color 250ms ease, background 250ms ease;
}

.service-grid article:hover,
.why-grid article:hover,
.site-case:hover {
    transform: translateY(-5px);
    border-color: rgba(7, 164, 200, 0.5);
}

.service-grid i {
    color: var(--codeit-cyan);
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.service-grid h4 {
    margin-bottom: 12px;
}

.stack-grid,
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 36px;
}

.stack-grid span,
.industry-grid span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 86px;
    padding: 18px;
    background: #fff;
    color: #07111f;
    border: 1px solid #dbeafe;
    font-weight: 900;
    text-align: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.stack-grid i,
.industry-grid i {
    color: var(--codeit-cyan);
    font-size: 1.55rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 80px;
}

.featured-grid a {
    display: block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(125, 211, 252, 0.14);
    color: #fff;
}

.featured-grid img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    object-position: top center;
    margin-bottom: 14px;
    border: 1px solid rgba(203, 213, 225, 0.18);
}

.featured-grid strong,
.featured-grid span {
    display: block;
}

.featured-grid span {
    color: #cbd5e1;
    font-size: 0.82rem;
}

.project-row {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 48px;
    align-items: center;
    padding: 68px 0;
    border-top: 1px solid rgba(125, 211, 252, 0.14);
}

.project-row.reverse {
    grid-template-columns: 1.3fr 0.7fr;
}

.project-row.reverse .project-copy {
    order: 2;
}

.project-row h3 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    line-height: 1;
    margin-bottom: 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.tag-list span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(7, 164, 200, 0.12);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 900;
}

.brand-sites-section .tag-list span,
.contact-section .tag-list span {
    color: #1d4ed8;
    background: #eaf2ff;
}

.project-media {
    min-width: 0;
}

.browser-phone {
    display: grid;
    grid-template-columns: 1fr 110px 110px;
    gap: 16px;
    align-items: center;
}

.browser-trio {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.browser-trio .browser-frame:first-child {
    grid-column: span 2;
    height: 300px;
}

.browser-frame {
    overflow: hidden;
    height: 420px;
    background: #fff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 30px 85px rgba(0, 0, 0, 0.28);
}

.browser-frame span {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 27px;
    padding: 0 12px;
    background: #eef4fb;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
}

.browser-frame span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #94a3b8;
    box-shadow: 12px 0 #94a3b8, 24px 0 #94a3b8;
    margin-right: 25px;
}

.browser-frame img {
    width: 100%;
    height: calc(100% - 27px);
    object-fit: cover;
    object-position: top center;
}

.browser-frame.contain img {
    object-fit: contain;
    background: #fff;
}

.phone-frame {
    position: relative;
    overflow: hidden;
    height: 236px;
    background: #020617;
    border: 7px solid #020617;
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.phone-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    border-radius: 18px;
}

.phone-frame.crop-status img {
    height: calc(100% + 34px);
    transform: translateY(-34px);
}

.compact-projects {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.compact-projects article {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(125, 211, 252, 0.14);
    padding: 14px;
}

.compact-projects img {
    height: 104px;
    width: 100%;
    object-fit: cover;
    object-position: top center;
    margin-bottom: 16px;
}

.compact-projects h4 {
    margin-bottom: 8px;
}

.compact-projects p {
    font-size: 0.88rem;
}

.site-case {
    background: #fff;
    border-color: #dbeafe;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
}

.site-case .browser-frame {
    height: 260px;
    margin-bottom: 26px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
}

.site-case h3 {
    color: #07111f;
    font-size: 2rem;
}

.approach-grid,
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.approach-grid article {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #07111f;
}

.approach-grid article::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.9)), var(--bg);
    background-size: cover;
    background-position: top center;
}

.approach-grid span,
.approach-grid h4,
.approach-grid p {
    position: relative;
    z-index: 1;
}

.approach-grid span {
    color: #67e8f9;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: auto;
}

.approach-grid h4 {
    color: #fff;
    font-size: 1.7rem;
}

.approach-grid p {
    color: #dbeafe;
}

.marketing-section .client-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.marketing-section .client-grid span {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(125, 211, 252, 0.18);
    font-weight: 900;
}

.marketing-section .client-grid b {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--codeit-cyan), var(--codeit-blue));
    color: #fff;
    font-size: 0.74rem;
}

.marketing-section h2 {
    font-size: clamp(3.6rem, 4.8vw, 5.6rem);
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
}

.why-grid article {
    padding: 28px;
    background: #fff;
    border: 1px solid #dbeafe;
    border-top: 5px solid var(--codeit-cyan);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.why-grid h4 {
    color: #07111f;
    font-size: 1.35rem;
}

.contact-section {
    background: #fff;
}

.contact-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.contact-strip span {
    color: #07111f;
    background: #f8fbff;
    border-color: #dbeafe;
}

.contact-section .form-control {
    border: 1px solid #dbeafe;
    background: #f8fbff;
    color: #07111f;
}

.contact-section textarea.form-control {
    min-height: 160px;
}

footer .social .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1199px) {
    .featured-grid,
    .compact-projects {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .approach-grid,
    .why-grid,
    .contact-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .codeit-hero .title {
        font-size: clamp(3.4rem, 14vw, 5.5rem);
    }

    .hero-proof {
        margin-top: 45px;
    }

    .project-row,
    .project-row.reverse {
        grid-template-columns: 1fr;
    }

    .project-row.reverse .project-copy {
        order: 0;
    }

    .browser-phone {
        grid-template-columns: 1fr 110px 110px;
    }

    .stack-grid,
    .industry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .codeit-logo {
        width: 145px;
    }

    .codeit-section {
        padding: 78px 0;
    }

    .hero-inner {
        padding-top: 110px;
        padding-bottom: 70px;
    }

    .codeit-hero .description {
        max-width: 100%;
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .hero-proof {
        padding: 22px;
    }

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

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .stats-panel,
    .featured-grid,
    .compact-projects,
    .approach-grid,
    .why-grid,
    .contact-strip,
    .marketing-section .client-grid {
        grid-template-columns: 1fr;
    }

    .browser-phone,
    .browser-trio {
        grid-template-columns: 1fr;
    }

    .browser-trio .browser-frame:first-child {
        grid-column: auto;
    }

    .browser-frame,
    .browser-trio .browser-frame:first-child {
        height: 260px;
    }

    .phone-frame {
        width: 170px;
        height: 340px;
        margin: 0 auto;
    }

    .codeit-section h2 {
        font-size: clamp(2.2rem, 12vw, 3.4rem);
    }
}
