:root {
    --blue: #263a8b;
    --orange: #ff554d;
    --orange2: #ff6a60;
    --light: #eaf7fa;
    --soft: #f7fcfe;
    --soft-orange: #fff0ee;
    --soft-blue: #eef3ff;
    --border: #d8eaf0;
    --text: #64748b;
    --dark: #334155;
    --white: #fff;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--soft);
    color: var(--blue)
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto
}

header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(247, 252, 254, .94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border)
}

.nav {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.logo img {
    height: 54px;
    width: auto;
    display: block
}

nav {
    display: flex;
    gap: 28px
}

nav a {
    font-weight: 900;
    color: var(--blue);
    text-decoration: none;
    font-size: 14px;
    transition: .2s
}

nav a:hover {
    color: var(--orange)
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 999px;
    text-decoration: none;
    border: 0;
    font-weight: 900;
    cursor: pointer;
    transition: .25s;
    white-space: nowrap
}

.btn-primary {
    background: var(--orange);
    color: white;
    box-shadow: 0 14px 30px rgba(255, 85, 77, .25)
}

.btn-primary:hover {
    background: var(--orange2);
    transform: translateY(-3px)
}

.btn-white {
    background: white;
    color: var(--blue);
    box-shadow: 0 14px 30px rgba(38, 58, 139, .08)
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, .35);
    color: white
}

.uv-btn-outline {
    border: 1px solid rgba(255, 85, 77, .35);
    color: var(--orange);
}

.uv-btn-outline:hover {
    border-color: rgba(255, 85, 77, .65);
    background: var(--soft-orange);
    color: var(--orange);
    transform: translateY(-3px)
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--soft-orange);
    color: var(--orange);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .4px
}

.badge.blue {
    background: var(--soft-blue);
    color: var(--blue)
}

h1 {
    font-size: clamp(44px, 6vw, 76px);
    line-height: 1.04;
    margin: 0 0 26px;
    color: var(--blue);
    font-weight: 950;
    letter-spacing: -2px
}

h2 {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.1;
    margin: 18px 0 24px;
    color: var(--blue);
    font-weight: 950;
    letter-spacing: -1px
}

h3 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
    color: var(--blue)
}

p {
    margin: 0;
    color: var(--text);
    line-height: 1.8;
    font-size: 17px;
    font-weight: 500
}

section {
    padding: 96px 0
}

svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 82px);
    padding: 86px 0;
    background: var(--light)
}

.hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, .9), transparent 32%), radial-gradient(circle at 10% 90%, rgba(255, 85, 77, .14), transparent 28%)
}

.shape {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(38, 58, 139, .1);
    background: rgba(255, 255, 255, .45);
    animation: float 5s ease-in-out infinite
}

.shape.one {
    width: 112px;
    height: 112px;
    top: 110px;
    left: 50px
}

.shape.two {
    width: 144px;
    height: 144px;
    top: 70px;
    right: 80px;
    animation-delay: .6s
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0)
    }

    50% {
        transform: translateY(-18px) rotate(6deg)
    }
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center
}

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

.hero-services {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.service-tile {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, .86);
    border: 1px solid white;
    border-radius: 30px;
    padding: 26px 22px;
    min-height: 250px;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(38, 58, 139, .06);
    transition: .25s;
    display: flex;
    flex-direction: column;
    justify-content: flex-start
}

.service-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(38, 58, 139, .12)
}

.service-tile:after {
    content: "";
    position: absolute;
    right: -35px;
    top: -35px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--soft-orange)
}

.service-tile .icon {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    border-radius: 24px;
    background: var(--orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(255, 85, 77, .24);
    margin-bottom: 20px
}

.service-tile h3 {
    position: relative;
    z-index: 2;
    font-size: 18px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .3px;
    color: var(--blue);
    margin: 0 0 12px;
    word-break: normal;
    overflow-wrap: break-word
}

.service-tile p {
    position: relative;
    z-index: 2;
    font-size: 15px;
    line-height: 1.65;
    color: var(--dark);
    font-weight: 700;
    margin: 0
}

.hero-img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    border: 10px solid white;
    border-radius: 44px;
    box-shadow: 0 28px 70px rgba(38, 58, 139, .14)
}

.stats {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px
}

.stat {
    background: rgba(255, 255, 255, .82);
    border: 1px solid white;
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 16px 34px rgba(38, 58, 139, .06);
    transition: .25s
}

.stat:hover,
.card:hover,
.list-card:hover {
    transform: translateY(-8px)
}

.stat .num {
    font-size: 34px;
    color: var(--orange);
    font-weight: 950;
    margin: 8px 0 4px
}

.stat .label {
    font-size: 14px;
    color: var(--dark);
    font-weight: 900
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px
}

.center {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 70px
}

.soft-blue {
    background: var(--light)
}

.white-bg {
    background: var(--soft)
}

.dark-section {
    position: relative;
    background: var(--blue);
    color: white;
    overflow: hidden
}

.dark-section:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 85, 77, .22), transparent 34%), radial-gradient(circle at bottom right, rgba(255, 255, 255, .12), transparent 32%)
}

.dark-section .container {
    position: relative;
    z-index: 2
}

.dark-section h2,
.dark-section h3 {
    color: white
}

.dark-section p {
    color: rgba(255, 255, 255, .78)
}

.card {
    background: white;
    border: 1px solid white;
    border-radius: 34px;
    padding: 36px;
    box-shadow: 0 18px 45px rgba(38, 58, 139, .06);
    transition: .25s
}

.card.dark {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .16)
}

.card.dark h3 {
    color: white
}

.icon-box,
.small-icon {
    background: var(--soft-orange);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s
}

.icon-box {
    width: 64px;
    height: 64px;
    border-radius: 24px;
    margin-bottom: 28px;
    box-shadow: 0 14px 28px rgba(255, 85, 77, .12)
}

.small-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 22px
}

.card:hover .icon-box,
.list-card:hover .small-icon {
    transform: rotate(6deg) scale(1.08)
}

.list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px
}

.list-card {
    display: flex;
    gap: 20px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 26px;
    box-shadow: 0 12px 28px rgba(38, 58, 139, .04);
    transition: .25s
}

.dark-section .list-card {
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .16);
    backdrop-filter: blur(10px)
}

.dark-section .list-card .small-icon {
    background: var(--soft-orange);
    color: var(--orange)
}

.section-image {
    width: 100%;
    height: 720px;
    object-fit: cover;
    border: 10px solid white;
    border-radius: 44px;
    box-shadow: 0 28px 70px rgba(38, 58, 139, .14)
}

.about-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    border-radius: 28px;
    background: var(--orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 40px rgba(255, 85, 77, .25)
}

.process-card {
    position: relative;
    overflow: hidden;
    background: white;
    border: 1px solid white;
    border-radius: 34px;
    padding: 36px;
    box-shadow: 0 18px 45px rgba(38, 58, 139, .06)
}

.process-card:before {
    content: attr(data-num);
    position: absolute;
    right: -14px;
    top: -22px;
    font-size: 112px;
    color: var(--soft-blue);
    font-weight: 950;
    line-height: 1
}

.process-card>* {
    position: relative;
    z-index: 2
}

.cta {
    background: var(--orange);
    color: white
}

.cta h2 {
    color: white
}

.cta p {
    color: rgba(255, 255, 255, .9);
    font-size: 20px
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center
}

.form-box {
    background: white;
    color: var(--blue);
    border-radius: 34px;
    padding: 34px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .18)
}

input,
textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--soft);
    border-radius: 18px;
    padding: 16px 18px;
    font-weight: 800;
    color: var(--blue);
    outline: none;
    margin-bottom: 16px;
    font-family: inherit
}

input:focus,
textarea:focus {
    border-color: var(--orange)
}

textarea {
    resize: none
}

footer {
    background: var(--blue);
    color: white;
    padding: 56px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .12)
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px
}

footer h4 {
    margin: 0 0 18px;
    color: white;
    font-size: 20px
}

footer p,
footer li {
    color: rgba(255, 255, 255, .72)
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px
}

.social {
    display: flex;
    gap: 12px;
    margin-top: 18px
}

.social a {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-weight: 900;
    transition: .25s
}

.social a:hover {
    background: var(--orange);
    transform: translateY(-4px)
}

.copyright {
    margin-top: 44px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    text-align: center;
    color: rgba(255, 255, 255, .56);
    font-size: 14px
}

@media(max-width:1050px) {
    nav {
        display: none
    }

    .hero-grid,
    .grid-2,
    .cta-grid {
        grid-template-columns: 1fr
    }

    .hero-services,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr)
    }

    .grid-3 {
        grid-template-columns: 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr
    }

    .hero-img,
    .section-image {
        height: 480px
    }
}

@media(max-width:640px) {
    .container {
        width: min(100% - 28px, 1180px)
    }

    .nav {
        height: auto;
        padding: 14px 0
    }

    .hero-services,
    .stats,
    .grid-4 {
        grid-template-columns: 1fr
    }

    h1 {
        font-size: 42px
    }

    .hero {
        padding: 58px 0
    }
}


/* Final responsive and UX polish */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

section {
    scroll-margin-top: 90px;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
    align-items: center;
}

.hero-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 640px;
}

.service-tile {
    min-height: 238px;
    padding: 26px 24px;
}

.service-tile h3 {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 12px;
    word-break: normal;
    overflow-wrap: normal;
}

.service-tile p {
    font-size: 15px;
    line-height: 1.65;
}

.hero-img {
    height: clamp(520px, 46vw, 690px);
}

.section-image {
    height: clamp(520px, 48vw, 720px);
}

.list-card,
.card,
.process-card,
.form-box,
.service-tile,
.stat {
    will-change: transform;
}

@media (min-width: 1280px) {
    .container {
        width: min(1240px, calc(100% - 56px));
    }

    h1 {
        font-size: 74px;
        line-height: 1.04;
    }

    h2 {
        font-size: 52px;
        line-height: 1.1;
    }

    .hero {
        padding: 86px 0 94px;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        width: min(100% - 44px, 1100px);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-services {
        max-width: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-tile {
        min-height: 210px;
    }

    .hero-img {
        height: 560px;
    }

    .section-image {
        height: 560px;
    }

    h1 {
        font-size: 58px;
        line-height: 1.07;
    }

    h2 {
        font-size: 44px;
        line-height: 1.12;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        width: min(100% - 40px, 920px);
    }

    header .nav {
        height: 76px;
    }

    nav {
        display: none;
    }

    .hero {
        padding: 64px 0;
        min-height: auto;
    }

    .hero-grid,
    .grid-2,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .hero-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        max-width: none;
    }

    .service-tile {
        min-height: 210px;
        padding: 24px 20px;
    }

    .hero-img,
    .section-image {
        height: 500px;
        border-radius: 36px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
        margin-top: 30px;
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid>div:first-child {
        grid-column: 1 / -1;
    }

    h1 {
        font-size: 52px;
        line-height: 1.08;
    }

    h2 {
        font-size: 40px;
        line-height: 1.13;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .shape {
        display: none;
    }

    header .nav {
        height: auto;
        min-height: 72px;
        padding: 12px 0;
        gap: 12px;
    }

    nav {
        display: none;
    }

    .logo img {
        height: 42px;
    }

    header .btn {
        width: auto;
        padding: 10px 14px;
        font-size: 12px;
        box-shadow: none;
    }

    section {
        padding: 56px 0;
    }

    .hero {
        padding: 46px 0 58px;
        min-height: auto;
    }

    .hero-grid,
    .grid-2,
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    h1 {
        font-size: 36px;
        line-height: 1.08;
        letter-spacing: -1px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 30px;
        line-height: 1.15;
        letter-spacing: -0.5px;
    }

    h3 {
        font-size: 21px;
    }

    p {
        font-size: 15.5px;
        line-height: 1.75;
    }

    .badge {
        font-size: 11.5px;
        padding: 8px 13px;
        max-width: 100%;
        line-height: 1.35;
    }

    .actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 14px 18px;
    }

    .hero-services {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 30px;
        max-width: none;
    }

    .service-tile {
        min-height: auto;
        padding: 18px;
        border-radius: 24px;
        display: grid;
        grid-template-columns: 56px 1fr;
        column-gap: 16px;
        align-items: start;
    }

    .service-tile:after {
        width: 76px;
        height: 76px;
        right: -28px;
        top: -28px;
    }

    .service-tile .icon {
        width: 56px;
        height: 56px;
        border-radius: 20px;
        margin: 0;
        grid-row: span 2;
    }

    .service-tile h3 {
        font-size: 17px;
        line-height: 1.25;
        margin: 0 0 6px;
        letter-spacing: .2px;
    }

    .service-tile p {
        font-size: 14px;
        line-height: 1.55;
    }

    .hero-img,
    .section-image {
        height: 340px;
        border-radius: 26px;
        border-width: 6px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 24px;
    }

    .stat {
        padding: 16px;
        border-radius: 22px;
    }

    .stat .num {
        font-size: 26px;
    }

    .stat .label {
        font-size: 12px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .card,
    .list-card,
    .process-card,
    .form-box {
        border-radius: 24px;
        padding: 20px;
    }

    .list-card {
        flex-direction: column;
        gap: 16px;
    }

    .icon-box,
    .small-icon {
        width: 56px;
        height: 56px;
        min-width: 56px;
        border-radius: 20px;
    }

    .about-icon {
        width: 64px;
        height: 64px;
        min-width: 64px;
        border-radius: 22px;
    }

    .center {
        margin-bottom: 42px;
    }

    input,
    textarea {
        font-size: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    footer {
        padding: 42px 0 24px;
    }

    footer img[alt="Capnova White Logo"] {
        height: 72px !important;
        max-width: 220px !important;
    }
}

@media (max-width: 420px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    header .btn {
        display: none;
    }

    h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 27px;
    }

    .hero-img,
    .section-image {
        height: 300px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .service-tile {
        grid-template-columns: 50px 1fr;
        column-gap: 14px;
    }

    .service-tile .icon {
        width: 50px;
        height: 50px;
        border-radius: 18px;
    }
}

/* ===== Hamburger & Mobile Nav ===== */
.d-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--blue);
    border-radius: 3px;
    transition: .3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(247, 252, 254, .98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 80px 24px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    font-weight: 900;
    /* color: var(--blue); */
    text-decoration: none;
    font-size: 22px;
    transition: .2s;
}

.mobile-nav a:hover {
    color: var(--orange);
}

.mobile-nav .btn {
    font-size: 16px;
    width: 100%;
    max-width: 300px;
}

@media (max-width: 1050px) {
    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .nav {
        height: 72px;
    }
}