:root {
    --ink: #0a0f1e;
    --sky: #0ea5e9;
    --sky-dim: rgba(14,165,233,0.12);
    --emerald: #10b981;
    --emerald-dim: rgba(16,185,129,0.12);
    --slate: #475569;
    --muted: #94a3b8;
    --surface: #f8fafc;
    --border: rgba(15,23,42,0.08);
    --font: -apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    --mono: 'Space Mono', monospace;
    --nav-h: 68px;
    --pad: clamp(64px, 10vw, 110px);
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}


body {
    font-family: var(--font);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

/* ===== Tags ===== */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 100px;
    font-weight: 700;
}

.tag-sky {
    background: var(--sky-dim);
    color: var(--sky);
}

.tag-em {
    background: var(--emerald-dim);
    color: var(--emerald);
}

/* ===== Buttons ===== */
.btn {
    font-family: var(--font);
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 26px;
    transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}

    .btn:hover {
        transform: translateY(-2px);
    }

.btn-sky {
    background: var(--sky);
    color: #fff;
    box-shadow: 0 4px 18px rgba(14,165,233,.35);
}

    .btn-sky:hover {
        background: #0284c7;
        color: #fff;
        box-shadow: 0 8px 28px rgba(14,165,233,.45);
    }

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--border);
}

    .btn-ghost:hover {
        border-color: var(--sky);
        color: var(--sky);
    }

.btn-white {
    background: #fff;
    color: var(--ink);
}

    .btn-white:hover {
        background: var(--surface);
        color: var(--ink);
    }

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.22);
}

    .btn-outline-white:hover {
        border-color: rgba(255,255,255,.5);
        background: rgba(255,255,255,.06);
        color: #fff;
    }

/* ===== Header ===== */
header {
    background: rgba(255, 255, 255, 1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    transition: background .3s, box-shadow .3s;
}

    header.scrolled {
        background: rgba(255,255,255,.96);
        box-shadow: 0 1px 0 var(--border);
    }

.navbar-inner {
    height: var(--nav-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    color: var(--ink);
}

.logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky);
    font-size: 18px;
}

.logo em {
    color: var(--sky);
    font-style: normal;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate) !important;
    padding: 8px 13px !important;
    border-radius: 8px;
    transition: .2s;
}

    .nav-link:hover, .nav-link.active {
        color: var(--sky) !important;
        background: var(--sky-dim);
    }

/* ===== Hero ===== */
.hero {
    padding-top: calc(var(--nav-h) + clamp(56px,10vw,96px));
    padding-bottom: clamp(56px,10vw,110px);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: -100px;
        right: -100px;
        width: clamp(360px,55vw,640px);
        height: clamp(360px,55vw,640px);
        background: radial-gradient(circle, rgba(14,165,233,.08) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
}

.eyebrow-line {
    width: 30px;
    height: 2px;
    background: var(--sky);
}

.hero h1 {
    font-size: clamp(32px,5vw,54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.02em;
}

    .hero h1 .hl {
        color: var(--sky);
        position: relative;
    }

        .hero h1 .hl::after {
            content: '';
            position: absolute;
            bottom: 2px;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--sky), var(--emerald));
            border-radius: 2px;
            opacity: .45;
        }

.hero-desc {
    font-size: clamp(14px,2vw,16px);
    color: var(--slate);
    max-width: 460px;
    line-height: 1.75;
}

.stat-num {
    font-size: clamp(28px,4vw,36px);
    font-weight: 800;
    line-height: 1;
}

    .stat-num em {
        color: var(--sky);
        font-style: normal;
    }

.stat-lbl {
    font-size: 12px;
    color: var(--muted);
    margin-top: 5px;
}

/* Code window */
.code-win {
    background: var(--ink);
    border-radius: 20px;
    box-shadow: 0 28px 60px rgba(10,15,30,.22), 0 0 0 1px rgba(255,255,255,.06);
    overflow: hidden;
    position: relative;
}

.code-bar {
    background: #141927;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.05);
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.code-file {
    font-family: var(--mono);
    font-size: 12px;
    color: #4a5568;
}

.code-body {
    padding: clamp(16px,3vw,24px);
    font-family: var(--mono);
    font-size: clamp(11px,1.4vw,13px);
    line-height: 1.85;
    overflow-x: auto;
}

    .code-body p {
        white-space: pre;
        margin: 0;
    }

.cc {
    color: #4a5568
}

.ck {
    color: #f472b6
}

.cf {
    color: #60a5fa
}

.cs {
    color: #34d399
}

.cn {
    color: #fb923c
}

.cv {
    color: #e2e8f0
}

.cp {
    color: #94a3b8
}

.float-badge {
    position: absolute;
    bottom: -14px;
    right: 20px;
    background: var(--emerald);
    color: #fff;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(16,185,129,.4);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fl 3s ease-in-out infinite;
    z-index: 2;
}

@keyframes fl {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-6px)
    }
}

.hero-visual {
    position: relative;
    padding-bottom: 20px;
}

/* ===== Section head ===== */
.sec-hd {
    text-align: center;
    margin-bottom: clamp(36px,6vw,60px);
}

    .sec-hd h2 {
        font-size: clamp(26px,4vw,40px);
        font-weight: 800;
        letter-spacing: -.02em;
        margin: 12px 0;
    }

    .sec-hd p {
        color: var(--slate);
        max-width: 540px;
        margin: 0 auto;
        font-size: clamp(14px,1.8vw,15px);
    }

/* ===== Services ===== */
.services {
    padding: var(--pad) 0;
}

.svc-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: clamp(26px,4vw,40px) clamp(22px,3vw,34px);
    position: relative;
    overflow: hidden;
    height: 100%;
    transition: transform .3s, box-shadow .3s, border-color .3s;
}

    .svc-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--sky), var(--emerald));
        opacity: 0;
        transition: opacity .3s;
    }

    .svc-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 18px 44px rgba(14,165,233,.1);
        border-color: rgba(14,165,233,.2);
    }

        .svc-card:hover::before {
            opacity: 1;
        }

.svc-ico {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    color: var(--sky);
    font-size: 27px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.svc-card h3 {
    font-size: clamp(15px,2vw,18px);
    font-weight: 700;
    margin-bottom: 10px;
}

.svc-card p {
    font-size: clamp(13px,1.5vw,14px);
    color: var(--slate);
    line-height: 1.7;
    margin: 0;
}

.svc-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sky);
    cursor: pointer;
}

/* ===== Kernel ===== */
.kernel {
    padding: var(--pad) 0;
    background: linear-gradient(160deg,#f0f7ff 0%,#eef9f4 100%);
    position: relative;
    overflow: hidden;
}

.k-item {
    display: flex;
    gap: 18px;
    padding: clamp(18px,3vw,26px);
    border-radius: 12px;
    border: 1px solid rgba(14,165,233,.15);
    background: rgba(255,255,255,.7);
    transition: .3s;
}

    .k-item:hover {
        border-color: rgba(14,165,233,.35);
        background: #fff;
        box-shadow: 0 8px 24px rgba(14,165,233,.1);
    }

.k-ico {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--sky-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--sky);
    font-size: 20px;
}

.k-item h4 {
    font-size: clamp(14px,2vw,16px);
    font-weight: 700;
    margin-bottom: 7px;
}

.k-item p {
    font-size: clamp(12px,1.5vw,14px);
    color: var(--slate);
    line-height: 1.7;
    margin: 0;
}

/* Orbit */
.orbit-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.orbit {
    position: relative;
    width: 300px;
    height: 300px;
    max-width: 100%;
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg,#0ea5e9,#0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    box-shadow: 0 0 36px rgba(14,165,233,.45);
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform-origin: center center;
}

    .orbit-ring.r1 {
        width: 150px;
        height: 150px;
        margin: -75px 0 0 -75px;
        border: 1px solid rgba(14,165,233,.18);
        animation: nomspin 8s linear infinite;
    }

    .orbit-ring.r2 {
        width: 250px;
        height: 250px;
        margin: -125px 0 0 -125px;
        border: 1px dashed rgba(16,185,129,.15);
        animation: nomspin 14s linear infinite reverse;
    }

.orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    top: -5px;
    left: 50%;
    margin-left: -5px;
    background: var(--sky);
    box-shadow: 0 0 8px rgba(14,165,233,.7);
}

.orbit-dot2 {
    background: var(--emerald);
    box-shadow: 0 0 8px rgba(16,185,129,.7);
}

@keyframes nomspin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.tech-tags {
    position: absolute;
    right: -10px;
    bottom: -10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

/* ===== CTA ===== */
.cta-sec {
    padding: 0;
    background: var(--surface);
}

.cta-box {
    background: linear-gradient(135deg,#0ea5e9 0%,#0369a1 50%,#065f46 100%);
    padding: clamp(56px,9vw,110px) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-box::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(ellipse at 20% 50%, rgba(255,255,255,.12) 0%, transparent 55%), radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.08) 0%, transparent 50%);
    }

    .cta-box > * {
        position: relative;
    }

    .cta-box h2 {
        font-size: clamp(24px,4vw,40px);
        font-weight: 800;
        color: #fff;
        letter-spacing: -.02em;
        margin-bottom: 14px;
    }

    .cta-box p {
        color: rgba(255,255,255,.75);
        margin: 0 auto 30px;
        max-width: 480px;
        font-size: clamp(13px,1.8vw,15px);
    }

/* ===== Footer ===== */
footer {
    background: #f1f5f9;
    border-top: 1px solid var(--border);
    padding: clamp(44px,8vw,76px) 0 28px;
}

.foot-tagline {
    margin-top: 14px;
    font-size: 14px;
    color: var(--slate);
    line-height: 1.65;
    max-width: 300px;
}

.s-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate);
    transition: .2s;
}

    .s-btn:hover {
        background: var(--sky);
        color: #fff;
        border-color: var(--sky);
    }

.foot-h {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.foot-link {
    font-size: 14px;
    color: var(--slate);
}

    .foot-link:hover {
        color: var(--sky);
    }

.foot-contact {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    color: var(--slate);
    margin-bottom: 11px;
}

    .foot-contact i {
        color: var(--sky);
        margin-top: 2px;
    }

    .foot-contact a {
        color: var(--slate);
    }

        .foot-contact a:hover {
            color: var(--sky);
        }

.foot-mono {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

    .foot-mono em {
        color: var(--sky);
        font-style: normal;
    }

/* ===== Reveal ===== */
.rv {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}

    .rv.on {
        opacity: 1;
        transform: translateY(0);
    }

.rv1 {
    transition-delay: .1s
}

.rv2 {
    transition-delay: .2s
}

.rv3 {
    transition-delay: .3s
}

/* ===== Modal styling ===== */
.modal-content {
    border: none;
    border-radius: 20px;
}

.popup-ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--sky-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sky);
    font-size: 24px;
    flex-shrink: 0;
}

.popup-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.popup-subtitle {
    font-size: 13px;
    color: var(--muted);
    margin-top: 3px;
}

.popup-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .popup-section-title::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

.popup-desc {
    font-size: 15px;
    color: var(--slate);
    line-height: 1.75;
}

.pf-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    height: 100%;
}

.pf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sky);
    flex-shrink: 0;
    margin-top: 6px;
}

.pf-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.popup-tech-tag {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 6px;
    background: var(--ink);
    color: #e2e8f0;
}

.pp-step {
    display: flex;
    gap: 16px;
    position: relative;
}

    .pp-step:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 15px;
        top: 32px;
        bottom: -8px;
        width: 2px;
        background: var(--border);
    }

.pp-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--sky-dim);
    color: var(--sky);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.pp-content {
    padding: 6px 0 20px;
}

.pp-title {
    font-size: 14px;
    font-weight: 700;
}

.pp-desc {
    font-size: 13px;
    color: var(--slate);
    margin-top: 3px;
    line-height: 1.6;
}

/* Offcanvas mobile */
#navDrawer {
    background: #fff;
    width: 300px;
}

@media (max-width: 991.98px) {
    .orbit-wrap {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-visual {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *:not(.orbit-ring):not(.float-badge) {
        transition: none !important;
    }
}