*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --beyond-black: #07070E;
    --void-dark: #0E0E1A;
    --surface: #13131F;
    --panel: #1A1A2E;
    --purple: #7B2FFF;
    --cyan: #00F5D4;
    --lime: #B8FF57;
    --pink: #FF2D78;
    --white: #FFFFFF;
    --muted: rgba(255,255,255,0.62);
    --dim: rgba(255,255,255,0.2);
}

html {
    scroll-behavior: smooth;
    background: var(--beyond-black);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: transparent;
    color: var(--white);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: opacity 0.25s;
}

    a:hover {
        opacity: 0.8;
    }

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 20px 48px;
    background: rgba(7,7,14,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nav-right {
    justify-self: end;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

    .logo span {
        font-weight: 300;
        color: var(--cyan);
    }

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

    .nav-mid a {
        color: var(--muted);
        font-size: 13px;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        transition: color 0.15s;
    }

        .nav-mid a:hover {
            color: var(--white);
            opacity: 1;
        }

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

.lang {
    display: flex;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 5px;
    overflow: hidden;
}

    .lang button {
        background: transparent;
        border: none;
        color: var(--muted);
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        padding: 6px 10px;
        cursor: pointer;
        transition: all 0.15s;
        text-transform: uppercase;
    }

        .lang button:hover {
            color: var(--white);
        }

        .lang button.on {
            background: rgba(123,47,255,0.15);
            color: var(--white);
        }

        .lang button + button {
            border-left: 1px solid rgba(255,255,255,0.05);
        }

.lang-select {
    display: none;
}

.nav-cta {
    width: 140px;
    padding: 9px 0;
    border-radius: 6px;
    background: var(--purple);
    color: var(--white) !important;
    font-weight: 500;
    font-size: 13px;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.25s;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .nav-cta:hover {
        box-shadow: 0 4px 20px rgba(123,47,255,0.4);
    }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

    .menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--white);
        margin: 5px 0;
        transition: transform 0.25s, opacity 0.25s;
    }

.wrap {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 48px;
}

@keyframes heroGlowPurple {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-12%, 12%) scale(1.18);
    }

    100% {
        transform: translate(9%, -10%) scale(0.9);
    }
}

@keyframes heroGlowCyan {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(14%, -14%) scale(1.16);
    }

    100% {
        transform: translate(-11%, 10%) scale(0.92);
    }
}

@keyframes dividerGlowShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 300% 50%;
    }
}

/* Fixed viewport: one animated gradient for the whole page (scroll does not “reset” it) */
.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background: var(--beyond-black);
}

    .ambient-bg::before {
        content: '';
        position: absolute;
        top: -25%;
        right: -20%;
        width: 120%;
        height: 140%;
        background: radial-gradient( ellipse at center, rgba(123, 47, 255, 0.42) 0%, rgba(123, 47, 255, 0.18) 22%, rgba(123, 47, 255, 0.06) 42%, transparent 65% );
        filter: blur(40px);
        will-change: transform;
        animation: heroGlowPurple 14s ease-in-out infinite alternate;
    }

    .ambient-bg::after {
        content: '';
        position: absolute;
        bottom: -20%;
        left: -15%;
        width: 90%;
        height: 110%;
        background: radial-gradient( ellipse at center, rgba(0, 245, 212, 0.14) 0%, rgba(0, 245, 212, 0.05) 30%, transparent 60% );
        filter: blur(50px);
        will-change: transform;
        animation: heroGlowCyan 17s ease-in-out infinite alternate;
    }

/* ─────────────────────────────────────────────────────────
   HERO — OG-style: centered logo + headline
   ───────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 140px 32px 80px;
    background: transparent;
}

.hero-inner {
    position: relative;
    max-width: 740px;
    z-index: 1;
}

.hero-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(44px, 5.2vw, 72px);
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--white);
    margin-bottom: clamp(32px, 6vw, 64px);
    line-height: 1;
}

    .hero-logo span {
        font-weight: 300;
        color: var(--cyan);
    }

.hero h1 {
    font-size: clamp(40px, 5.6vw, 64px);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

    .hero h1 .acc {
        color: var(--cyan);
    }

.hero-sub {
    font-size: 18px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 560px;
    margin: 0 auto 40px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-p {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 30px;
    border-radius: 6px;
    background: var(--purple);
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

    .btn-p:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 28px rgba(123,47,255,0.4);
    }

.btn-g {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 30px;
    border-radius: 6px;
    background: transparent;
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    transition: border-color 0.2s;
}

    .btn-g:hover {
        border-color: var(--cyan);
    }

.divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(123,47,255,0.22) 35%,
        rgba(0,245,212,0.22) 50%,
        rgba(123,47,255,0.22) 65%,
        transparent 100%
    );
    background-size: 300% 100%;
    animation: dividerGlowShift 7s linear infinite;
    position: relative;
    z-index: 2;
}

/* ─────────────────────────────────────────────────────────
   SECTIONS
   ───────────────────────────────────────────────────────── */
.section {
    padding: 100px 0;
    position: relative;
}

.sec-head {
    text-align: center;
    margin-bottom: 56px;
}

.sec-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--purple);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.sec-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 14px;
    text-align: center;
}

    .sec-title .acc {
        color: var(--cyan);
    }

.sec-desc {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
}

.about-feat {
    background: rgba(14, 14, 26, 0.85);
    backdrop-filter: blur(10px);
    padding: 32px 24px;
    text-align: center;
    transition: background 0.25s;
}

    .about-feat:hover {
        background: rgba(19, 19, 31, 0.95);
    }

.about-feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 18px;
}

.about-feat h4 {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 6px;
}

.about-feat p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
}

.svc-card {
    background: rgba(14, 14, 26, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px 28px;
    text-align: center;
    transition: background 0.25s;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .svc-card:hover {
        background: rgba(19, 19, 31, 0.95);
    }

.svc-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 22px;
    flex-shrink: 0;
}

.svc-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.svc-card p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.55;
    flex: 1;
}

.svc-card .tg {
    display: inline-block;
    margin-top: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyan);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(0,245,212,0.12);
    flex-shrink: 0;
}

.prod-card {
    background: var(--surface);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.03);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

    .prod-card::after {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, rgba(0,245,212,0.06) 0%, transparent 70%);
        pointer-events: none;
    }

.prod-info {
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prod-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(0,245,212,0.07);
    font-size: 12px;
    color: var(--cyan);
    font-weight: 500;
    margin-bottom: 20px;
    width: fit-content;
}

    .prod-badge::before {
        content: '';
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--cyan);
    }

.prod-name {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 14px;
}

.prod-desc {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 32px;
}

.prod-visual {
    background: var(--panel);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 340px;
}

    .prod-visual::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(123,47,255,0.1) 0%, transparent 50%), linear-gradient(225deg, rgba(0,245,212,0.07) 0%, transparent 50%);
    }

    .prod-visual span {
        position: relative;
        font-size: 48px;
        font-weight: 700;
        color: rgba(255,255,255,0.05);
    }

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

.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .form label {
        font-family: 'JetBrains Mono', monospace;
        font-size: 12px;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 6px;
        display: block;
    }

    .form input, .form textarea {
        width: 100%;
        padding: 14px 16px;
        background: rgba(14, 14, 26, 0.85);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255,255,255,0.05);
        border-radius: 8px;
        color: var(--white);
        font-family: 'Space Grotesk', sans-serif;
        font-size: 15px;
        outline: none;
        transition: border-color 0.2s;
    }

        .form input:focus, .form textarea:focus {
            border-color: var(--purple);
        }

    .form textarea {
        resize: vertical;
        min-height: 150px;
    }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.form-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

    .form-status.success {
        display: block;
        background: rgba(184,255,87,0.08);
        border: 1px solid rgba(184,255,87,0.2);
        color: var(--lime);
    }

    .form-status.error {
        display: block;
        background: rgba(255,45,120,0.08);
        border: 1px solid rgba(255,45,120,0.2);
        color: var(--pink);
    }

.cinfo {
    padding-top: 8px;
}

.cinfo-block {
    margin-bottom: 32px;
}

.cinfo-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.cinfo-val {
    font-size: 16px;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px;
    border-top: 1px solid rgba(255,255,255,0.03);
    position: relative;
    z-index: 2;
    background: transparent;
}

    footer p {
        font-size: 13px;
        color: rgba(255,255,255,0.18);
    }

/* ── Scroll reveal: reference = Services (#services) — scale-fade, 1.95s, stagger 0.14s ── */
html.sr [data-reveal="scale-fade"] .sec-head,
html.sr [data-reveal="scale-fade"] .about-feat,
html.sr [data-reveal="scale-fade"] .svc-card,
html.sr [data-reveal="scale-fade"] .contact-grid,
html.sr footer[data-reveal="scale-fade"] > * {
    transition-property: opacity, transform;
    transition-duration: 1.95s;
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.2, 1);
}

html.sr [data-reveal="scale-fade"]:not(.is-visible) .sec-head {
    opacity: 0;
    transform: scale(0.94) translateY(24px);
}

html.sr [data-reveal="scale-fade"]:not(.is-visible) .about-feat,
html.sr [data-reveal="scale-fade"]:not(.is-visible) .svc-card {
    opacity: 0;
    transform: scale(0.9) translateY(36px);
}

html.sr [data-reveal="scale-fade"]:not(.is-visible) .contact-grid {
    opacity: 0;
    transform: scale(0.92) translateY(32px);
}

html.sr footer[data-reveal="scale-fade"]:not(.is-visible) > *:nth-child(1) {
    opacity: 0;
    transform: scale(0.94) translateY(24px);
}

html.sr footer[data-reveal="scale-fade"]:not(.is-visible) > *:nth-child(2) {
    opacity: 0;
    transform: scale(0.9) translateY(36px);
}

/* About: 4 cards — same steps as Services grid */
html.sr [data-reveal="scale-fade"].is-visible .about-feat:nth-child(1) { transition-delay: 0.14s; }
html.sr [data-reveal="scale-fade"].is-visible .about-feat:nth-child(2) { transition-delay: 0.28s; }
html.sr [data-reveal="scale-fade"].is-visible .about-feat:nth-child(3) { transition-delay: 0.42s; }
html.sr [data-reveal="scale-fade"].is-visible .about-feat:nth-child(4) { transition-delay: 0.56s; }

/* Services: 8 cards */
html.sr [data-reveal="scale-fade"].is-visible .svc-card:nth-child(1) { transition-delay: 0.14s; }
html.sr [data-reveal="scale-fade"].is-visible .svc-card:nth-child(2) { transition-delay: 0.28s; }
html.sr [data-reveal="scale-fade"].is-visible .svc-card:nth-child(3) { transition-delay: 0.42s; }
html.sr [data-reveal="scale-fade"].is-visible .svc-card:nth-child(4) { transition-delay: 0.56s; }
html.sr [data-reveal="scale-fade"].is-visible .svc-card:nth-child(5) { transition-delay: 0.7s; }
html.sr [data-reveal="scale-fade"].is-visible .svc-card:nth-child(6) { transition-delay: 0.84s; }
html.sr [data-reveal="scale-fade"].is-visible .svc-card:nth-child(7) { transition-delay: 0.98s; }
html.sr [data-reveal="scale-fade"].is-visible .svc-card:nth-child(8) { transition-delay: 1.12s; }

/* Contact: second block — same delay as first svc-card (0.14s) */
html.sr [data-reveal="scale-fade"].is-visible .contact-grid {
    transition-delay: 0.14s;
}

/* Footer: second line — same stagger as first card row */
html.sr footer[data-reveal="scale-fade"].is-visible > *:nth-child(2) {
    transition-delay: 0.14s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo, .hero h1, .hero-sub, .hero-btns {
    animation: fadeUp 1.15s cubic-bezier(0.25, 0.46, 0.2, 1) both;
}

.hero h1 {
    animation-delay: 0.22s;
}

.hero-sub {
    animation-delay: 0.4s;
}

.hero-btns {
    animation-delay: 0.56s;
}

@media (prefers-reduced-motion: reduce) {
    .ambient-bg::before,
    .ambient-bg::after,
    .divider {
        animation: none;
        will-change: auto;
    }

    .divider {
        background: linear-gradient(90deg, transparent, rgba(123,47,255,0.2), rgba(0,245,212,0.2), transparent);
        background-size: auto;
    }

    html.sr [data-reveal="scale-fade"] .sec-head,
    html.sr [data-reveal="scale-fade"] .about-feat,
    html.sr [data-reveal="scale-fade"] .svc-card,
    html.sr [data-reveal="scale-fade"] .contact-grid,
    html.sr footer[data-reveal="scale-fade"] > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 1024px) {
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    nav {
        padding: 14px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-mid {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav-right {
        justify-self: unset;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .lang {
        display: none;
    }

    .lang-select {
        display: block;
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.07);
        border-radius: 5px;
        color: var(--white);
        font-family: 'JetBrains Mono', monospace;
        font-size: 11px;
        padding: 6px 8px;
        cursor: pointer;
        outline: none;
        appearance: none;
        -webkit-appearance: none;
        text-align: center;
    }

        .lang-select option {
            background: #13131F;
            color: var(--white);
        }

    .nav-cta {
        width: 140px;
        padding: 8px 14px;
        font-size: 12px;
    }

    .logo {
        font-size: 18px;
    }

    .wrap {
        padding: 0 24px;
    }

    .hero {
        padding: 120px 24px 60px;
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

        .form-row > div:last-child {
            grid-column: span 2;
        }

    footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 24px;
    }
}
