:root {
    --bg: #020805;
    --bg-soft: rgba(6, 16, 11, 0.78);
    --panel: rgba(7, 20, 16, 0.82);
    --panel-strong: rgba(4, 12, 9, 0.94);
    --line: rgba(106, 255, 170, 0.14);
    --line-strong: rgba(106, 255, 170, 0.26);
    --text: #edfdf6;
    --muted: #95b7aa;
    --green: #77ffb1;
    --teal: #4df0c8;
    --emerald: #17b978;
    --violet: #7f5dff;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius: 28px;
    --radius-small: 18px;
    --max: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 18%, rgba(77, 240, 200, 0.16), transparent 22%),
        radial-gradient(circle at 85% 8%, rgba(127, 93, 255, 0.1), transparent 24%),
        radial-gradient(circle at 52% 86%, rgba(119, 255, 177, 0.18), transparent 26%),
        linear-gradient(165deg, #010402 0%, #04110b 42%, #020907 100%);
    color: var(--text);
    font-family: "Manrope", sans-serif;
}

body.nav-open {
    overflow: hidden;
}

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

button,
input,
textarea {
    font: inherit;
}

.particle-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.8;
}

.site-shell {
    position: relative;
    overflow: hidden;
}

.ambient {
    position: fixed;
    inset: auto;
    width: 34rem;
    height: 34rem;
    border-radius: 999px;
    filter: blur(88px);
    opacity: 0.32;
    pointer-events: none;
    z-index: 0;
}

.ambient-a {
    top: -10rem;
    right: -7rem;
    background: linear-gradient(180deg, var(--emerald), var(--teal));
}

.ambient-b {
    bottom: -14rem;
    left: -6rem;
    background: linear-gradient(180deg, #0d8f5c, var(--green));
}

.ambient-c {
    top: 38%;
    left: 44%;
    background: linear-gradient(180deg, rgba(77, 240, 200, 0.42), rgba(127, 93, 255, 0.18));
    width: 22rem;
    height: 22rem;
}

.grid-noise {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 92%);
    pointer-events: none;
    z-index: 0;
}

.topbar,
.section,
.footer {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 2rem), var(--max));
    margin-inline: auto;
}

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 0.95rem 0;
    z-index: 20;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
    border-bottom: 1px solid transparent;
}

.topbar.is-scrolled,
.topbar.is-open {
    background: rgba(3, 10, 7, 0.92);
    border-bottom-color: rgba(106, 255, 170, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.topbar-inner {
    width: min(calc(100% - 2rem), var(--max));
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    min-width: 0;
}

.brand-text {
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 1.7em;
}

.brand-mark {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--teal));
    box-shadow: 0 0 20px rgba(77, 240, 200, 0.55);
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.3rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(0.42rem) rotate(45deg);
}

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

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-0.42rem) rotate(-45deg);
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.3rem;
    color: var(--muted);
    justify-self: end;
}

.topnav-links {
    display: flex;
    align-items: center;
    gap: 1.3rem;
}

.topnav a,
.contact-links a {
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topnav a:hover,
.contact-links a:hover,
.nav-link.is-active {
    color: var(--text);
}

.nav-link {
    position: relative;
    padding: 0.35rem 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.2rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green), var(--teal));
    opacity: 0;
    transform: scaleX(0.55);
    transition: opacity 180ms ease, transform 180ms ease;
}

.nav-link.is-active::after,
.nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-left: 0.7rem;
}

.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.7rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1;
}

.lang-pill.is-active,
.lang-pill:hover {
    color: var(--text);
    border-color: var(--line-strong);
    background: rgba(77, 240, 200, 0.08);
}

.lang-flag {
    width: 1.15rem;
    height: 0.8rem;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

main {
    padding-top: 6.8rem;
}

.section {
    padding: 4.5rem 0;
    scroll-margin-top: 7.5rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.95fr);
    gap: 2.2rem;
    align-items: center;
    min-height: calc(100vh - 9rem);
    padding-top: 1rem;
}

.eyebrow,
.service-eyebrow,
.panel-label,
.process-grid span {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    color: var(--green);
    margin: 0 0 1rem;
}

.hero h1,
.section-heading h2,
.about-stat strong {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(2.85rem, 5.2vw, 4.8rem);
    max-width: 11ch;
}

.lede,
.about-copy p,
.service-card p,
.process-grid p,
.contact-copy p,
.panel-stack p,
.footer p,
.about-stat span {
    color: var(--muted);
    line-height: 1.75;
}

.lede {
    max-width: 42rem;
    margin-top: 1.35rem;
    font-size: 1.04rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0 1.6rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.5rem;
    padding: 0 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
    background: linear-gradient(135deg, var(--green), var(--teal));
    color: #021009;
    font-weight: 800;
}

.button-secondary {
    border-color: rgba(106, 255, 170, 0.14);
    background: rgba(255, 255, 255, 0.025);
}

.signal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.signal-list li {
    padding: 0.62rem 0.9rem;
    border: 1px solid rgba(106, 255, 170, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    color: #d3efe2;
    font-size: 0.96rem;
    line-height: 1.35;
}

.capability-cloud span {
    padding: 0.8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #dcfff0;
}

.hero-panel,
.contact-card,
.about-card {
    position: relative;
}

.panel-card,
.contact-card,
.service-card,
.process-grid article,
.about-card {
    background: linear-gradient(180deg, rgba(8, 22, 17, 0.88), rgba(4, 11, 9, 0.94));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.panel-card {
    padding: 1.5rem;
}

.panel-stack {
    display: grid;
    gap: 1rem;
}

.panel-stack article {
    padding: 1.15rem 1.2rem;
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.03);
}

.panel-stack span {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--green);
    font-size: 0.88rem;
}

.panel-stack h2,
.service-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.35rem;
}

.section-heading {
    max-width: 50rem;
    margin-bottom: 2.2rem;
}

.section-heading h2 {
    font-size: clamp(2.15rem, 4vw, 3.85rem);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
}

.about-card {
    display: grid;
    gap: 1rem;
    padding: 1.45rem;
}

.about-stat {
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
}

.about-stat strong {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1.35rem;
}

.service-grid,
.process-grid,
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.service-card,
.process-grid article,
.contact-card {
    padding: 1.55rem;
}

.stack-card {
    min-height: 100%;
}

.capability-band {
    padding-top: 1.2rem;
}

.capability-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.contact-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2rem;
    align-items: start;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: #dcfff0;
}

.contact-links i {
    font-size: 1rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

form {
    display: grid;
    gap: 1rem;
}

label {
    display: grid;
    gap: 0.55rem;
    color: #dcfff0;
    font-weight: 700;
}

label span {
    font-size: 0.94rem;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    padding: 1rem 1.1rem;
    outline: none;
    transition: border-color 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus {
    border-color: rgba(77, 240, 200, 0.7);
    background: rgba(255, 255, 255, 0.06);
}

textarea {
    resize: vertical;
    min-height: 11rem;
}

.button-submit {
    width: 100%;
}

.form-alert {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    line-height: 1.6;
}

.form-alert-success {
    border: 1px solid rgba(119, 255, 177, 0.25);
    background: rgba(119, 255, 177, 0.08);
}

.form-alert-error {
    border: 1px solid rgba(127, 93, 255, 0.22);
    background: rgba(127, 93, 255, 0.08);
}

.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.footer {
    padding: 0 0 2rem;
    text-align: center;
}

.footer p {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    main {
        padding-top: 6rem;
    }

    .hero,
    .about-layout,
    .contact-section,
    .service-grid,
    .process-grid,
    .stack-grid,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 1.2rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .hero-panel {
        order: -1;
    }
}

@media (max-width: 820px) {
    .topbar {
        padding: 0.85rem 0;
    }

    .topbar-inner {
        grid-template-columns: 1fr auto;
        gap: 0.85rem;
    }

    .nav-toggle {
        display: inline-flex;
        justify-self: end;
    }

    .topnav {
        position: fixed;
        top: 5.2rem;
        left: 1rem;
        right: 1rem;
        width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
        justify-self: stretch;
        box-sizing: border-box;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(3, 10, 7, 0.96);
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
    }

    .topnav.is-open {
        display: flex;
    }

    .topnav-links,
    .lang-switcher {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin: 0;
    }

    .topnav-links a {
        padding: 0.9rem 1rem;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.02);
        color: var(--text);
    }

    .topnav-links a::after {
        display: none;
    }

    .lang-pill {
        justify-content: center;
        padding: 0.8rem 1rem;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3rem 0;
    }

    .hero-actions,
    .contact-links,
    .signal-list {
        flex-direction: column;
        align-items: stretch;
    }

    .hero h1 {
        max-width: 100%;
        font-size: clamp(2.4rem, 11vw, 3.35rem);
    }

    .section-heading h2 {
        font-size: clamp(1.9rem, 9vw, 2.7rem);
    }

    .button {
        width: 100%;
    }

    .panel-card,
    .service-card,
    .process-grid article,
    .contact-card,
    .about-card {
        padding: 1.3rem;
    }
}
