:root {
    --bg: #050712;
    --bg-soft: #0a1024;
    --panel: rgba(255, 255, 255, 0.065);
    --panel-strong: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --muted: #c7c9df;
    --purple: #9b5cff;
    --purple-2: #6d5dfc;
    --cyan: #20d7ff;
    --line: rgba(255, 255, 255, 0.14);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Segoe UI, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(155, 92, 255, 0.24), transparent 32rem),
        radial-gradient(circle at top right, rgba(32, 215, 255, 0.12), transparent 30rem),
        linear-gradient(180deg, #050712 0%, #080b18 48%, #03040a 100%);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

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

p {
    color: var(--muted);
    line-height: 1.75;
}

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

.section-pad {
    padding: 96px 0;
}

.section-pad.compact {
    padding-top: 44px;
}

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

.nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    object-position: left center;
    background: #fff;
    box-shadow: 0 14px 36px rgba(155, 92, 255, 0.32);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    transition: 180ms ease;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
    border-radius: 999px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 54px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    color: #d9ccff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
    max-width: 880px;
    margin-top: 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    font-weight: 900;
}

.hero-copy p,
.page-hero p {
    max-width: 700px;
    margin: 24px 0 0;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    border: 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(135deg, var(--purple), var(--purple-2) 55%, var(--cyan));
    color: #fff;
    box-shadow: 0 18px 42px rgba(109, 93, 252, 0.34);
}

.btn.ghost {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 38px;
    max-width: 640px;
}

.hero-stats div,
.feature-card,
.member-card,
.contact-form,
.contact-info,
.split-panel {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
    box-shadow: var(--shadow);
}

.hero-stats div {
    border-radius: 16px;
    padding: 18px;
}

.hero-stats strong {
    display: block;
    font-size: 22px;
    color: #fff;
}

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

.robot-showcase {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 25%, rgba(155, 92, 255, 0.32), transparent 18rem),
        rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
}

.logo-showcase {
    padding: 32px;
}

.hero-logo {
    position: relative;
    z-index: 1;
    width: min(440px, 88%);
    border-radius: 26px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.circuit-lines {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background:
        linear-gradient(90deg, transparent 0 18%, rgba(155, 92, 255, 0.75) 18% 19%, transparent 19% 100%),
        linear-gradient(0deg, transparent 0 58%, rgba(32, 215, 255, 0.55) 58% 59%, transparent 59% 100%);
    background-size: 120px 120px;
}

.robot-card {
    position: relative;
    width: min(320px, 72vw);
    height: 390px;
    border-radius: 34px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
    background: linear-gradient(180deg, rgba(155, 92, 255, 0.26), rgba(32, 215, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.06), 0 30px 90px rgba(0, 0, 0, 0.45);
}

.robot-head {
    width: 168px;
    height: 126px;
    border-radius: 32px;
    background: linear-gradient(135deg, #b991ff, #713cff);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.robot-head span {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #050712;
    box-shadow: 0 0 20px rgba(32, 215, 255, 0.8);
}

.robot-body {
    width: 210px;
    height: 138px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 38px;
    font-weight: 900;
}

.robot-base {
    width: 150px;
    height: 22px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.floating-chip {
    position: absolute;
    padding: 11px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(5, 7, 18, 0.7);
    border: 1px solid var(--line);
    font-weight: 800;
    box-shadow: var(--shadow);
}

.chip-one {
    left: 28px;
    top: 88px;
}

.chip-two {
    right: 28px;
    bottom: 92px;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-heading h2,
.split-panel h2,
.contact-info h2 {
    margin-top: 14px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.05;
    font-weight: 900;
}

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

.feature-card,
.member-card,
.contact-form,
.contact-info,
.split-panel {
    border-radius: 22px;
}

.feature-card {
    padding: 28px;
}

.feature-card i {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--cyan));
    font-size: 22px;
}

.feature-card h3 {
    margin-top: 22px;
    font-size: 24px;
}

.split-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    align-items: center;
    padding: 34px;
}

.capability-list {
    display: grid;
    gap: 12px;
}

.capability-list span,
.mini-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 800;
}

.page-hero {
    padding-bottom: 42px;
}

.team-hero {
    padding-bottom: 56px;
}

.team-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: center;
}

.team-logo-panel {
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    box-shadow: var(--shadow);
}

.team-logo-panel img {
    display: block;
    width: 100%;
    border-radius: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.member-card {
    position: relative;
    padding: 14px 14px 24px;
    text-align: center;
    overflow: hidden;
}

.member-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(155, 92, 255, 0.22), transparent 36%, rgba(32, 215, 255, 0.12));
}

.member-photo {
    position: relative;
    height: 360px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.member-photo::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(to top, rgba(5, 7, 18, 0.88), transparent);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.member-icon {
    width: 64px;
    height: 64px;
    margin: -32px auto 16px;
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--purple-2));
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 35px rgba(109, 93, 252, 0.4);
}

.member-card h2 {
    position: relative;
    font-size: 24px;
}

.role {
    position: relative;
    min-height: 46px;
    color: #c99cff;
    font-weight: 900;
}

.member-card > p:not(.role) {
    position: relative;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 22px;
    align-items: start;
}

.contact-form,
.contact-info {
    padding: 28px;
}

.contact-form label {
    display: block;
    margin: 16px 0 8px;
    color: #fff;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    padding: 14px 15px;
    font: inherit;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(155, 92, 255, 0.8);
    box-shadow: 0 0 0 4px rgba(155, 92, 255, 0.16);
}

.contact-form .btn {
    width: 100%;
    margin-top: 18px;
}

.contact-info a {
    display: flex;
    margin: 18px 0 6px;
    color: #fff;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.contact-logo {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    object-position: left center;
    border-radius: 18px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.form-alert {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-weight: 800;
}

.form-alert.success {
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.form-alert.error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.site-footer {
    margin-top: 60px;
    padding: 44px 0 24px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.28);
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.6fr 0.8fr 1fr;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 14px;
}

.footer-layout h4 {
    margin: 0 0 14px;
}

.footer-layout a,
.footer-layout span {
    display: block;
    margin: 10px 0;
    color: var(--muted);
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero-grid,
    .split-panel,
    .contact-layout,
    .footer-layout,
    .team-hero-grid {
        grid-template-columns: 1fr;
    }

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

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

    .robot-showcase {
        min-height: 440px;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 28px, 1180px);
    }

    .section-pad {
        padding: 64px 0;
    }

    .nav {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(5, 7, 18, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        justify-content: center;
        padding: 13px;
    }

    .hero-stats,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(38px, 13vw, 58px);
    }

    .hero-copy p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .robot-showcase {
        min-height: 380px;
    }

    .robot-card {
        height: 320px;
    }

    .floating-chip {
        display: none;
    }

    .member-photo {
        height: 340px;
    }
}
