:root {
    --bg: #05070c;
    --bg-panel: #0a0e18;
    --bg-panel-2: #0d1220;
    --line: #1a2236;
    --line-soft: rgba(120, 150, 220, 0.14);
    --blue: #2e6bff;
    --blue-bright: #5b9dff;
    --blue-dim: #1d3d8f;
    --silver: #c7d0e0;
    --silver-dim: #7c879e;
    --white: #f8fafc;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 14px;
    --ease: cubic-bezier(.16, .8, .24, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--silver);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

ul {
    list-style: none;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

section {
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    color: var(--white);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue-bright);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--blue-bright);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    box-shadow: 0 0 10px var(--blue-bright);
}

.section-head {
    max-width: 640px;
    margin-bottom: 64px;
}

.section-head p {
    color: var(--silver-dim);
    font-size: 16.5px;
    margin-top: 14px;
}

.section-head h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    line-height: 1.15;
}

/* ---------- NAV ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(5, 7, 12, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line-soft);
}

nav {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand span {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    color: var(--white);
    letter-spacing: 0.01em;
}

.brand span em {
    font-style: normal;
    color: var(--blue-bright);
}

.nav-links {
    display: flex;
    gap: 34px;
    font-size: 14.5px;
    color: var(--silver-dim);
}

.nav-links a {
    transition: color .2s;
    position: relative;
}

.nav-links a:hover {
    color: var(--white);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: all .25s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue), #1c4fd6);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(91, 157, 255, 0.3) inset, 0 8px 24px -8px rgba(46, 107, 255, 0.6);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(91, 157, 255, 0.5) inset, 0 12px 30px -6px rgba(46, 107, 255, 0.75);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--silver);
}

.btn-ghost:hover {
    border-color: var(--blue-dim);
    color: var(--white);
    background: rgba(46, 107, 255, 0.06);
}

.btn-sm {
    padding: 10px 18px;
    font-size: 14px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.burger {
    display: none;
    width: 22px;
    height: 16px;
    position: relative;
}

.burger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--silver);
    transition: .25s;
}

.burger span:nth-child(1) {
    top: 0;
}

.burger span:nth-child(2) {
    top: 7px;
}

.burger span:nth-child(3) {
    top: 14px;
}

/* ---------- HERO ---------- */
.hero {
    padding: 190px 0 120px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 900px 500px at 50% -10%, rgba(46, 107, 255, 0.16), transparent 60%),
        radial-gradient(ellipse 600px 400px at 85% 20%, rgba(91, 157, 255, 0.08), transparent 60%);
}

.orbit-field {
    position: absolute;
    top: -200px;
    right: -260px;
    width: 900px;
    height: 900px;
    pointer-events: none;
    opacity: 0.55;
    z-index: 0;
}

.orbit-ring {
    fill: none;
    stroke: var(--line-soft);
}

.orbit-ring.spin {
    animation: spin 90s linear infinite;
    transform-origin: 450px 450px;
}

.orbit-ring.spin-rev {
    animation: spin-rev 130s linear infinite;
    transform-origin: 450px 450px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin-rev {
    to {
        transform: rotate(-360deg);
    }
}

.orbit-dot {
    fill: var(--blue-bright);
    filter: drop-shadow(0 0 6px var(--blue-bright));
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: clamp(38px, 5.2vw, 62px);
    line-height: 1.08;
    margin-bottom: 24px;
}

.hero h1 .accent {
    color: var(--blue-bright);
}

.hero .lede {
    font-size: 18px;
    color: var(--silver-dim);
    max-width: 560px;
    margin-bottom: 38px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 70px;
    flex-wrap: wrap;
}

.hero-panel {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    backdrop-filter: blur(20px);
    padding: 0;
    max-width: 920px;
    overflow: hidden;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.hero-panel-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.02);
}

.hero-panel-bar .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--line);
}

.hero-panel-bar span {
    margin-left: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--silver-dim);
    letter-spacing: 0.05em;
}

.hero-panel-body {
    padding: 26px 28px;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 2;
}

.hero-panel-body .l1 {
    color: var(--silver-dim);
}

.hero-panel-body .key {
    color: var(--blue-bright);
}

.hero-panel-body .val {
    color: var(--white);
}

.hero-panel-body .ok {
    color: #4ade80;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-soft);
}

.hero-metrics div {
    padding: 20px 16px;
    text-align: center;
    border-right: 1px solid var(--line-soft);
}

.hero-metrics div:last-child {
    border-right: none;
}

.hero-metrics b {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--white);
}

.hero-metrics small {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--silver-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- SERVICES ---------- */
.services {
    padding: 120px 0;
    border-top: 1px solid var(--line-soft);
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-soft);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
}

.svc-card {
    background: var(--bg-panel);
    padding: 34px 30px;
    transition: background .3s;
}

.svc-card:hover {
    background: var(--bg-panel-2);
}

.svc-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 22px;
    color: var(--blue-bright);
}

.svc-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.svc-card p {
    font-size: 14.5px;
    color: var(--silver-dim);
}

/* ---------- WHY ---------- */
.why {
    padding: 120px 0;
    border-top: 1px solid var(--line-soft);
    background: var(--bg-panel);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px 30px;
}

.why-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.why-mark {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    clip-path: polygon(0 0, 70% 50%, 0 100%);
    background: var(--blue-bright);
}

.why-item h4 {
    font-size: 15.5px;
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 4px;
}

.why-item p {
    font-size: 13.5px;
    color: var(--silver-dim);
}

/* ---------- PROCESS ---------- */
.process {
    padding: 120px 0;
    border-top: 1px solid var(--line-soft);
}

.route {
    position: relative;
}

.route-line {
    position: absolute;
    left: 19px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(var(--line-soft), var(--line-soft));
}

.route-line-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(var(--blue), var(--blue-bright));
    transition: height .1s linear;
    box-shadow: 0 0 12px var(--blue-bright);
}

.step {
    position: relative;
    padding: 0 0 56px 64px;
}

.step:last-child {
    padding-bottom: 0;
}

.step-node {
    position: absolute;
    left: 8px;
    top: 2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--silver-dim);
    transition: all .4s var(--ease);
    z-index: 2;
}

.step.active .step-node {
    border-color: var(--blue-bright);
    color: var(--blue-bright);
    box-shadow: 0 0 16px rgba(91, 157, 255, 0.5);
    background: #0a1730;
}

.step h3 {
    font-size: 19px;
    margin-bottom: 8px;
    transition: color .4s;
}

.step p {
    font-size: 14.5px;
    color: var(--silver-dim);
    max-width: 520px;
}

.step-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--blue-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    display: block;
}

.step.active .step-tag {
    color: var(--blue-bright);
}

/* ---------- TECH ---------- */
.tech {
    padding: 100px 0;
    border-top: 1px solid var(--line-soft);
    background: var(--bg-panel);
    text-align: center;
}

.tech .section-head {
    margin: 0 auto 50px;
    text-align: center;
}

.tech-marquee {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.tech-badge {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--silver);
    border: 1px solid var(--line);
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    transition: all .25s;
}

.tech-badge:hover {
    border-color: var(--blue);
    color: var(--white);
    background: rgba(46, 107, 255, 0.08);
    transform: translateY(-3px);
}

/* ---------- CASES ---------- */
.cases {
    padding: 120px 0;
    border-top: 1px solid var(--line-soft);
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.case-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
}

.case-top {
    padding: 30px 26px 24px;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(160deg, rgba(46, 107, 255, 0.08), transparent 60%);
}

.case-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--blue-bright);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-top h3 {
    font-size: 19px;
    margin-top: 10px;
}

.case-top p {
    font-size: 13.5px;
    color: var(--silver-dim);
    margin-top: 8px;
}

.case-top a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    color: var(--blue-bright);
    font-size: 13px;
    text-decoration: none;
}

.case-top a:hover {
    text-decoration: underline;
}

.case-metric {
    padding: 24px 26px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.case-metric b {
    font-family: var(--font-display);
    font-size: 34px;
    color: var(--white);
}

.case-metric span {
    font-size: 12.5px;
    color: var(--silver-dim);
}

/* ---------- TESTIMONIALS ---------- */
.testi {
    padding: 120px 0;
    border-top: 1px solid var(--line-soft);
    background: var(--bg-panel);
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testi-card {
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    padding: 30px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.testi-quote {
    font-size: 15px;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testi-who {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #0e2a7a);
    flex: none;
}

.testi-who b {
    display: block;
    font-size: 14px;
    color: var(--white);
}

.testi-who small {
    font-size: 12.5px;
    color: var(--silver-dim);
}

/* ---------- FAQ ---------- */
.faq {
    padding: 120px 0;
    border-top: 1px solid var(--line-soft);
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--line-soft);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 4px;
    cursor: pointer;
    font-size: 16px;
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 500;
}

.faq-q .fq-mark {
    flex: none;
    width: 16px;
    height: 16px;
    position: relative;
}

.faq-q .fq-mark::before,
.faq-q .fq-mark::after {
    content: '';
    position: absolute;
    background: var(--blue-bright);
    transition: transform .3s var(--ease);
}

.faq-q .fq-mark::before {
    left: 0;
    top: 7px;
    width: 16px;
    height: 2px;
}

.faq-q .fq-mark::after {
    left: 7px;
    top: 0;
    width: 2px;
    height: 16px;
}

.faq-item.open .fq-mark::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease);
}

.faq-a p {
    padding: 0 4px 24px;
    font-size: 14.5px;
    color: var(--silver-dim);
    max-width: 640px;
}

/* ---------- FINAL CTA ---------- */
.final-cta {
    padding: 130px 0;
    text-align: center;
    border-top: 1px solid var(--line-soft);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 700px 400px at 50% 40%, rgba(46, 107, 255, 0.14), transparent 65%);
    z-index: 0;
}

.final-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.final-cta h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin-bottom: 18px;
    line-height: 1.15;
}

.final-cta p {
    color: var(--silver-dim);
    font-size: 16.5px;
    margin-bottom: 38px;
}

.final-cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
footer {
    border-top: 1px solid var(--line-soft);
    padding: 70px 0 30px;
    background: var(--bg-panel);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.foot-brand .brand {
    margin-bottom: 16px;
}

.foot-brand p {
    font-size: 14px;
    color: var(--silver-dim);
    max-width: 280px;
}

.foot-col h5 {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--silver-dim);
    margin-bottom: 18px;
}

.foot-col a {
    display: block;
    font-size: 14px;
    color: var(--silver);
    margin-bottom: 12px;
    transition: color .2s;
}

.foot-col a:hover {
    color: var(--blue-bright);
}

.foot-bottom {
    border-top: 1px solid var(--line-soft);
    padding-top: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--silver-dim);
    font-family: var(--font-mono);
}

.foot-social {
    display: flex;
    gap: 14px;
}

.foot-social a {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver-dim);
    transition: all .2s;
}

.foot-social a:hover {
    border-color: var(--blue);
    color: var(--blue-bright);
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:980px) {
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-grid,
    .testi-grid {
        grid-template-columns: 1fr;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-metrics div:nth-child(2) {
        border-right: none;
    }
}

@media (max-width:768px) {
    .nav-links {
        display: none;
    }

    .burger {
        display: block;
    }

    .nav-cta .btn-ghost {
        display: none;
    }

    .hero {
        padding: 150px 0 80px;
    }

    .svc-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .wrap {
        padding: 0 22px;
    }
}

@media (prefers-reduced-motion:reduce) {

    .orbit-ring.spin,
    .orbit-ring.spin-rev {
        animation: none;
    }

    .reveal {
        transition: none;
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
}