:root {
    --bg: #f7f9ff;
    --surface: #ffffff;
    --surface-2: #eef4ff;
    --text: #0f172a;
    --muted: #5d6b84;
    --line: #dbe5f3;
    --primary: #1759f5;
    --primary-2: #0bbfe8;
    --accent: #10d4d4;
    --shadow: 0 22px 60px rgba(25, 54, 105, 0.12);
    --header-bg: rgba(247, 249, 255, 0.88);
    --contact-bg: #102454;
    --contact-text: #ffffff;
}

html[data-theme="dark"] {
    --bg: #0b1120;
    --surface: #111a2e;
    --surface-2: #0e1729;
    --text: #f4f7ff;
    --muted: #a5b2ca;
    --line: #253452;
    --primary: #4c7dff;
    --primary-2: #22c8ec;
    --accent: #35d8d0;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    --header-bg: rgba(11, 17, 32, 0.9);
    --contact-bg: #162a5e;
    --contact-text: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 94px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    transition: background-color .25s ease, color .25s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
}

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

.section {
    padding: 96px 0;
}

.section-muted {
    background: var(--surface-2);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 18%);
    background: var(--header-bg);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    flex-shrink: 0;
}

.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid #dce7fa;
    overflow: hidden;
}

.brand-logo img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-logo.small {
    width: 38px;
    height: 38px;
}

.brand-logo.small img {
    width: 30px;
    height: 30px;
}

.brand-name {
    font-size: 1.04rem;
    letter-spacing: -0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 21px;
    font-size: .92rem;
    font-weight: 650;
}

.main-nav > a:not(.btn) {
    color: var(--muted);
    transition: color .2s ease;
    white-space: nowrap;
}

.main-nav > a:not(.btn):hover {
    color: var(--primary);
}

.store-link {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-btn {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text);
    padding: 7px 10px;
    cursor: pointer;
    font-weight: 750;
    font-size: .82rem;
}

.control-btn:hover {
    border-color: var(--primary);
}

.control-separator {
    opacity: .35;
    margin: 0 3px;
}

.theme-control {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.theme-icon {
    font-size: 1rem;
}

.mobile-menu-btn {
    display: none;
    border: 0;
    background: transparent;
    width: 42px;
    height: 42px;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--text);
}

.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 12px 20px;
    font-weight: 800;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #244dd8);
    color: white;
    box-shadow: 0 11px 24px rgba(23, 89, 245, .22);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--line);
}

.btn-small {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 10px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding-top: 112px;
    padding-bottom: 112px;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(2px);
}

.hero::before {
    width: 430px;
    height: 430px;
    right: -140px;
    top: -180px;
    background: radial-gradient(circle, rgba(10, 197, 235, .19), transparent 68%);
}

.hero::after {
    width: 420px;
    height: 420px;
    left: -210px;
    bottom: -210px;
    background: radial-gradient(circle, rgba(31, 84, 244, .15), transparent 68%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
    align-items: center;
    gap: 44px;
}

.eyebrow {
    display: inline-block;
    color: var(--primary);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 850;
    margin-bottom: 15px;
}

.hero h1,
.section-heading h2,
.about-grid h2,
.contact-card h2 {
    letter-spacing: -.045em;
    line-height: 1.08;
    margin: 0;
}

.hero h1 {
    max-width: 760px;
    font-size: clamp(2.75rem, 5vw, 5rem);
}

.hero-lead {
    max-width: 690px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.13rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 30px;
    color: var(--muted);
    font-size: .87rem;
    font-weight: 700;
}

.hero-points span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-points span::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.section-heading {
    max-width: 740px;
    margin-bottom: 44px;
}

.section-heading.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-heading h2,
.about-grid h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
}

.section-heading p {
    color: var(--muted);
    font-size: 1.04rem;
    margin: 16px 0 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    min-height: 282px;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 12px 34px rgba(36, 64, 113, .05);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--primary), var(--line) 58%);
    box-shadow: var(--shadow);
}

.service-number {
    color: var(--primary);
    font-size: .8rem;
    font-weight: 850;
    letter-spacing: .1em;
}

.service-card h3 {
    margin: 28px 0 10px;
    line-height: 1.18;
    font-size: 1.25rem;
    letter-spacing: -.02em;
}

.service-card p {
    color: var(--muted);
    margin: 0 0 28px;
    font-size: .94rem;
}

.card-link {
    color: var(--primary);
    font-weight: 800;
    font-size: .9rem;
    margin-top: auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.portfolio-card {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 12px 38px rgba(36, 64, 113, .07);
}

.portfolio-preview {
    min-height: 210px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.4rem;
    color: #ffffff;
}

.preview-apps {
    background:
        radial-gradient(circle at 15% 20%, rgba(255,255,255,.2), transparent 36%),
        linear-gradient(135deg, #1d65f2, #2335a7);
}

.preview-software {
    background:
        radial-gradient(circle at 80% 15%, rgba(255,255,255,.2), transparent 32%),
        linear-gradient(135deg, #153b87, #0bb3db);
}

.preview-automation {
    background:
        radial-gradient(circle at 20% 75%, rgba(255,255,255,.18), transparent 32%),
        linear-gradient(135deg, #0659c8, #08cbbf);
}

.portfolio-body {
    padding: 25px;
}

.status {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .7rem;
    font-weight: 850;
}

.portfolio-body h3 {
    margin: 10px 0 8px;
    font-size: 1.25rem;
}

.portfolio-body p {
    color: var(--muted);
    min-height: 72px;
    margin: 0 0 20px;
    font-size: .92rem;
}

.portfolio-body a {
    color: var(--primary);
    font-weight: 800;
    font-size: .9rem;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.tech-list span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    padding: 10px 17px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 750;
}

.capabilities {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.capabilities article {
    padding: 28px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.capability-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    font-weight: 900;
}

.capabilities h3 {
    margin: 22px 0 8px;
    font-size: 1.2rem;
}

.capabilities p {
    color: var(--muted);
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: start;
}

.about-copy {
    color: var(--muted);
    font-size: 1.06rem;
}

.about-copy p:first-child {
    margin-top: 4px;
}

.contact-section {
    padding-top: 40px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 50px;
    align-items: center;
    border-radius: 26px;
    padding: 54px;
    background:
        radial-gradient(circle at 90% 0%, rgba(18, 213, 219, .22), transparent 32%),
        linear-gradient(135deg, var(--contact-bg), #173a88);
    color: var(--contact-text);
    box-shadow: 0 24px 65px rgba(13, 31, 76, .22);
}

.eyebrow-light {
    color: #77eaf0;
}

.contact-card h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.contact-card p {
    max-width: 690px;
    color: rgba(255,255,255,.76);
    margin: 17px 0 0;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-light {
    background: white;
    color: #112553;
}

.btn-outline-light {
    border-color: rgba(255,255,255,.42);
    color: white;
    background: rgba(255,255,255,.05);
}

.site-footer {
    padding: 34px 0 38px;
}

.footer-grid {
    min-height: 80px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand strong {
    display: block;
}

.footer-brand p,
.copyright {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: .8rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 1120px) {
    .main-nav {
        gap: 14px;
        font-size: .86rem;
    }

    .brand-name {
        display: none;
    }

    .store-link {
        padding-left: 10px;
    }
}

@media (max-width: 980px) {
    .mobile-menu-btn {
        display: block;
        margin-left: auto;
    }

    .brand-name {
        display: inline;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 20px;
        right: 20px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: var(--surface);
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .main-nav.open {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav > a:not(.btn) {
        padding: 10px 8px;
    }

    .store-link {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 8px;
        padding-top: 13px !important;
        margin-top: 5px;
    }

    .nav-controls {
        margin-top: 8px;
    }

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

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

    .portfolio-card:last-child {
        grid-column: 1 / -1;
        max-width: 570px;
        width: 100%;
        margin: 0 auto;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }
}

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

    .section {
        padding: 72px 0;
    }

    .hero {
        padding-top: 82px;
        padding-bottom: 78px;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 12vw, 4rem);
    }

    .hero-lead {
        font-size: 1rem;
    }

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

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

    .hero-points {
        flex-direction: column;
        gap: 8px;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .service-grid,
    .portfolio-grid,
    .capabilities,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .service-card {
        min-height: 0;
    }

    .portfolio-body p {
        min-height: auto;
    }

    .about-grid {
        gap: 24px;
    }

    .contact-card {
        padding: 34px 24px;
        gap: 34px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

    .footer-links {
        line-height: 2;
    }
}


.hero-nex {
    position: relative;
    min-height: 610px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    isolation: isolate;
}

.nex-glow {
    position: absolute;
    z-index: -2;
    width: 470px;
    height: 470px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -44%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 48% 45%,
            rgba(5, 207, 230, .24) 0%,
            rgba(9, 105, 249, .14) 44%,
            rgba(9, 105, 249, 0) 72%);
}

.hero-nex::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: 72%;
    height: 34px;
    border-radius: 50%;
    background: rgba(12, 44, 106, .14);
    filter: blur(18px);
}

.nex-image {
    width: min(100%, 515px);
    max-height: 610px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 24px 34px rgba(16, 49, 112, .16));
    user-select: none;
    pointer-events: none;
}

.floating-actions {
    position: fixed;
    z-index: 1100;
    right: 22px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-btn {
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 36, 78, .2);
    transition: transform .18s ease, opacity .18s ease, visibility .18s ease;
}

.floating-btn:hover {
    transform: translateY(-2px);
}

.floating-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.whatsapp-btn {
    background: #25D366;
    color: #ffffff;
}

.whatsapp-btn[aria-disabled="true"] {
    cursor: default;
}

.to-top-btn {
    background: linear-gradient(135deg, var(--primary), #0051D8);
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
}

.to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .hero-nex {
        min-height: 500px;
    }

    .nex-image {
        max-height: 500px;
        width: min(100%, 450px);
    }
}

@media (max-width: 720px) {
    .hero-nex {
        min-height: 390px;
        margin-top: -12px;
    }

    .nex-image {
        width: min(100%, 360px);
        max-height: 410px;
    }

    .nex-glow {
        width: 330px;
        height: 330px;
    }

    .floating-actions {
        right: 14px;
        bottom: 14px;
    }

    .floating-btn {
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
