:root {
    --bg: #07111d;
    --bg-soft: #0c1a2b;
    --surface: #102033;
    --surface-strong: #152b43;
    --text: #f5f8fb;
    --muted: #9fb0c3;
    --muted-strong: #c8d3df;
    --line: rgba(255, 255, 255, 0.11);
    --green: #9cff28;
    --green-strong: #77d315;
    --cyan: #38b6d8;
    --blue: #246bfe;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(56, 182, 216, 0.16), transparent 28rem),
        linear-gradient(145deg, #07111d 0%, #091522 48%, #06101a 100%);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: inherit;
}

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

.skip-link {
    position: absolute;
    top: -48px;
    left: 16px;
    z-index: 20;
    padding: 10px 14px;
    color: #07111d;
    background: var(--green);
    border-radius: 6px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 17, 29, 0.86);
    backdrop-filter: blur(18px);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    display: block;
    width: 300px;
    height: auto;
}

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

.nav a {
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
    color: var(--green);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: #07111d;
    background: linear-gradient(135deg, #b8ff3d, #77d315);
    box-shadow: 0 14px 34px rgba(119, 211, 21, 0.2);
}

.button-secondary {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.05);
}

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

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
    align-items: center;
    gap: 58px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 18px rgba(156, 255, 40, 0.75);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(42px, 7vw, 74px);
    line-height: 1.02;
    letter-spacing: 0;
}

h1 span {
    color: var(--green);
}

.hero-lead {
    max-width: 660px;
    margin-bottom: 34px;
    color: var(--muted-strong);
    font-size: 20px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 610px;
    gap: 12px;
}

.trust-item {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
}

.trust-item strong {
    display: block;
    color: var(--text);
    font-size: 20px;
    line-height: 1.1;
}

.trust-item span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.phone-stage {
    position: relative;
    min-height: 610px;
    display: grid;
    place-items: center;
}

.phone-stage::before {
    content: "";
    position: absolute;
    inset: 9% 0 5% 8%;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(56, 182, 216, 0.18), rgba(156, 255, 40, 0.18));
    filter: blur(30px);
}

.phone {
    position: relative;
    width: min(310px, 78vw);
    aspect-ratio: 9 / 18.7;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    background: linear-gradient(145deg, #22364e, #070c13 50%, #1a2d42);
    box-shadow: var(--shadow);
}

.phone-screen {
    height: 100%;
    overflow: hidden;
    border-radius: 25px;
    background:
        linear-gradient(180deg, rgba(36, 107, 254, 0.24), transparent 28%),
        #0b1522;
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 18px 10px;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 750;
}

.speaker {
    width: 58px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.app-preview {
    padding: 14px 18px 20px;
}

.app-card-main {
    min-height: 150px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(156, 255, 40, 0.95), rgba(56, 182, 216, 0.86));
    color: #06101a;
}

.app-card-main small {
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.app-card-main strong {
    display: block;
    max-width: 190px;
    margin-top: 18px;
    font-size: 28px;
    line-height: 1.05;
}

.app-progress {
    height: 8px;
    margin-top: 22px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(6, 16, 26, 0.18);
}

.app-progress span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: #06101a;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.metric {
    min-height: 82px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.045);
}

.metric strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
}

.metric span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}

.task-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.task {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 650;
}

.task::before {
    content: "";
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--green);
}

.section {
    padding: 82px 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.6fr);
    align-items: end;
    gap: 36px;
    margin-bottom: 36px;
}

.section-heading h2 {
    margin-bottom: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.section-heading p {
    margin-bottom: 0;
    color: var(--muted-strong);
    font-size: 17px;
}

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

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

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.service-card {
    min-height: 252px;
    padding: 26px;
}

.technology-card {
    min-height: 278px;
    padding: 26px;
}

.technology-label {
    display: inline-flex;
    margin-bottom: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(156, 255, 40, 0.22);
    border-radius: 999px;
    color: var(--green);
    background: rgba(156, 255, 40, 0.06);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.icon-box {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    border-radius: 8px;
    color: #07111d;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    font-weight: 900;
}

.service-card h3,
.technology-card h3,
.portfolio-card h3,
.process-card h3 {
    margin-bottom: 12px;
    font-size: 21px;
    line-height: 1.2;
}

.service-card p,
.technology-card p,
.portfolio-card p,
.process-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 18px;
}

.portfolio-card {
    padding: 28px;
    min-height: 300px;
    display: grid;
    align-content: space-between;
    overflow: hidden;
}

.portfolio-visual {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}

.portfolio-visual span {
    min-height: 86px;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(156, 255, 40, 0.26), transparent),
        var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.portfolio-visual span:nth-child(2) {
    min-height: 128px;
    background:
        linear-gradient(135deg, rgba(56, 182, 216, 0.32), transparent),
        var(--surface-strong);
}

.portfolio-visual span:nth-child(3) {
    background:
        linear-gradient(135deg, rgba(36, 107, 254, 0.32), transparent),
        var(--surface);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.tag {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.035);
    font-size: 12px;
    font-weight: 750;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    counter-reset: process;
}

.process-card {
    min-height: 240px;
    padding: 24px;
    counter-increment: process;
}

.process-card::before {
    content: "0" counter(process);
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--green);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.6px;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.65fr);
    gap: 28px;
    align-items: stretch;
    padding: 34px;
}

.contact-panel h2 {
    margin-bottom: 16px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
}

.contact-panel p {
    max-width: 650px;
    color: var(--muted-strong);
    font-size: 18px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.contact-list {
    display: grid;
    gap: 12px;
    align-content: center;
}

.contact-item {
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.035);
    text-decoration: none;
}

.contact-item span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item strong {
    color: var(--text);
    font-size: 16px;
}

.site-footer {
    padding: 34px 0;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--muted-strong);
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid rgba(156, 255, 40, 0.75);
    outline-offset: 3px;
}

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

    .header-inner {
        min-height: 74px;
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav {
        position: fixed;
        inset: 74px 14px auto 14px;
        display: grid;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #0a1726;
        box-shadow: var(--shadow);
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .nav-open .nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav a {
        padding: 14px;
        border-radius: 6px;
    }

    .nav a:hover,
    .nav a:focus-visible {
        background: rgba(255, 255, 255, 0.05);
    }

    .hero {
        padding-top: 58px;
    }

    .hero-grid,
    .section-heading,
    .portfolio-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .phone-stage {
        min-height: auto;
    }

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

@media (max-width: 640px) {
            .logo-image {
                width: 232px;
            }

    .hero {
        padding-bottom: 56px;
    }

    h1 {
        font-size: clamp(38px, 12vw, 48px);
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-actions,
    .contact-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .trust-row,
            .services-grid,
            .technology-grid,
            .process-grid {
                grid-template-columns: 1fr;
            }

    .section {
        padding: 62px 0;
    }

            .service-card,
            .technology-card,
            .portfolio-card,
    .process-card,
    .contact-panel {
        padding: 22px;
    }

    .portfolio-visual span {
        min-height: 70px;
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
