:root {
    --bg: #03040a;
    --bg-soft: #080a14;
    --panel: rgba(12, 15, 28, 0.78);
    --panel-border: rgba(174, 122, 255, 0.24);
    --text: #f7f5ff;
    --muted: #c6bfd8;
    --purple: #a66cff;
    --purple-soft: #c59dff;
    --purple-dark: #5f35ba;
    --white-glow: rgba(255, 255, 255, 0.7);
    --shadow: 0 26px 90px rgba(83, 41, 173, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% 12%, rgba(134, 75, 255, 0.22), transparent 32rem),
        radial-gradient(circle at 18% 72%, rgba(80, 49, 175, 0.18), transparent 28rem),
        linear-gradient(145deg, #020308 0%, #060713 50%, #020308 100%);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(255,255,255,.85) 1px, transparent 1px),
        radial-gradient(circle, rgba(171,123,255,.7) 1px, transparent 1px);
    background-size: 120px 120px, 190px 190px;
    background-position: 14px 18px, 80px 50px;
    opacity: .18;
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,.03), transparent 22%, transparent 76%, rgba(166,108,255,.05));
    z-index: -1;
}

.site-shell {
    width: min(1500px, 100%);
    margin: 0 auto;
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: 290px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 1.4rem clamp(1.1rem, 5vw, 5rem);
    background: rgba(3, 4, 10, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand img {
    display: block;
    width: min(280px, 100%);
    height: auto;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 2vw, 2.2rem);
}

.site-nav a,
.email-pill,
.button,
.contact-button {
    color: var(--text);
    text-decoration: none;
}

.site-nav a {
    position: relative;
    font-size: .91rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1rem;
    height: 2px;
    transform: scaleX(0);
    background: var(--purple);
    transform-origin: left;
    transition: transform .2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.email-pill {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    border: 1px solid var(--purple-soft);
    border-radius: 999px;
    padding: .76rem 1.25rem;
    background: rgba(17, 13, 32, .42);
    box-shadow: 0 0 26px rgba(166,108,255,.1);
    white-space: nowrap;
}

.nav-toggle {
    display: none;
}

main {
    padding: 0 clamp(1.1rem, 5vw, 5rem) 4rem;
}

.section-panel {
    border: 1px solid rgba(255,255,255,.07);
    background: linear-gradient(135deg, rgba(7, 9, 18, .88), rgba(16, 10, 40, .72));
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.35fr);
    min-height: 620px;
    margin: 0 calc(clamp(1.1rem, 5vw, 5rem) * -1);
    padding: clamp(3rem, 8vw, 7rem) clamp(1.1rem, 5vw, 5rem);
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
}

.eyebrow {
    margin: 0 0 1.15rem;
    color: var(--purple-soft);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
}

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

h1 {
    margin-bottom: 1rem;
    font-size: clamp(3rem, 5.6vw, 5.6rem);
    line-height: .98;
    letter-spacing: -.055em;
}

h1 span,
h2 span {
    color: var(--purple);
    text-shadow: 0 0 30px rgba(166,108,255,.38);
}

.title-rule {
    width: 48px;
    height: 2px;
    margin: 1.3rem 0;
    background: var(--purple-soft);
}

.hero-text,
.content-block p,
.platform-grid p,
.astronomy p,
.contact-section p,
.site-footer p,
.service-card p {
    color: var(--muted);
    line-height: 1.7;
}

.hero-text {
    max-width: 500px;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button,
.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 52px;
    padding: .95rem 1.6rem;
    border-radius: 12px;
    font-weight: 800;
}

.button-primary,
.contact-button {
    background: linear-gradient(135deg, var(--purple), var(--purple-dark));
    box-shadow: 0 18px 45px rgba(166,108,255,.22);
}

.button-ghost {
    border: 1px solid rgba(197,157,255,.34);
    background: rgba(255,255,255,.03);
}

.hero-visual {
    position: relative;
    display: grid;
    place-items: center;
}

.hero-visual img {
    position: relative;
    z-index: 3;
    width: min(780px, 90%);
    filter: drop-shadow(0 0 30px rgba(197,157,255,.24));
}

.planet {
    position: absolute;
    right: -14%;
    bottom: -38%;
    width: min(850px, 82vw);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 38% 28%, rgba(255,255,255,.18), transparent 18%),
        linear-gradient(145deg, rgba(47,30,102,.55), rgba(13,15,38,.94) 48%, #03040a 70%);
    box-shadow: inset 0 0 70px rgba(197,157,255,.3), 0 -18px 60px rgba(166,108,255,.32);
}

.planet::before {
    content: "";
    position: absolute;
    left: -15%;
    right: -15%;
    top: 20%;
    height: 6px;
    background: linear-gradient(90deg, transparent, rgba(197,157,255,.92), transparent);
    transform: rotate(-10deg);
    filter: blur(.4px);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.7rem;
}

.service-card,
.platform-grid > div,
.contact-section,
.astronomy,
.split-section {
    border: 1px solid var(--panel-border);
    background: var(--panel);
    border-radius: 18px;
    box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

.service-card {
    padding: 1.8rem;
}

.service-icon {
    min-height: 52px;
    margin-bottom: 1rem;
    color: var(--purple);
    font-size: 2.25rem;
    font-weight: 900;
}

.service-card h2 {
    font-size: 1.15rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.1fr);
    gap: 2rem;
    margin-top: 1.7rem;
    padding: clamp(1.3rem, 3vw, 2.4rem);
}

.tech-card {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 18px;
    background:
        radial-gradient(circle at 50% 40%, rgba(173,119,255,.65), transparent 6rem),
        linear-gradient(135deg, #070913, #100a2f);
    border: 1px solid rgba(197,157,255,.22);
}

.chip {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 185px;
    aspect-ratio: 1.4;
    transform: translate(-50%, -50%) rotate(30deg);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(197,157,255,.45), rgba(42,30,86,.85));
    border: 1px solid rgba(255,255,255,.28);
    box-shadow: 0 0 70px rgba(166,108,255,.45);
}

.circuit {
    position: absolute;
    width: 330px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(197,157,255,.9), transparent);
    box-shadow: 0 0 16px rgba(166,108,255,.8);
}

.circuit-one { left: 8%; top: 22%; transform: rotate(12deg); }
.circuit-two { right: -6%; top: 56%; transform: rotate(-20deg); }
.circuit-three { left: -8%; bottom: 20%; transform: rotate(-8deg); }

.content-block {
    align-self: center;
}

.content-block h2,
.platforms h2,
.astronomy h2,
.contact-section h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.tick-list {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem 1.4rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    color: var(--text);
}

.tick-list li::before {
    content: "✓";
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-right: .45rem;
    border: 1px solid var(--purple-soft);
    border-radius: 50%;
    color: var(--purple-soft);
    font-size: .8rem;
}

.platforms {
    padding: 5rem 0 1.7rem;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1.6rem;
}

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

.platform-grid > div {
    padding: 1.5rem;
}

.platform-grid h3 {
    color: var(--purple-soft);
}

.astronomy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: center;
    margin-top: 1.7rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.orbit-card {
    position: relative;
    min-height: 260px;
}

.orbit-card span {
    position: absolute;
    inset: 50%;
    translate: -50% -50%;
    border: 1px solid rgba(197,157,255,.45);
    border-radius: 50%;
    box-shadow: 0 0 22px rgba(166,108,255,.2);
}

.orbit-card span:nth-child(1) { width: 210px; height: 210px; }
.orbit-card span:nth-child(2) { width: 150px; height: 150px; transform: rotate(35deg) scaleX(1.45); }
.orbit-card span:nth-child(3) { width: 18px; height: 18px; background: var(--purple-soft); box-shadow: 0 0 36px var(--purple-soft); }

.contact-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 1.7rem;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: center;
    padding: 2rem clamp(1.1rem, 5vw, 5rem);
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(2,3,8,.72);
}

.footer-logo {
    width: 220px;
    max-width: 100%;
}

.footer-contact {
    display: grid;
    gap: .35rem;
}

.footer-contact span,
.copyright {
    color: var(--muted);
    font-size: .9rem;
}

.footer-contact a {
    color: var(--text);
}

@media (max-width: 1100px) {
    .site-header {
        grid-template-columns: 220px auto;
    }

    .nav-toggle {
        justify-self: end;
        display: inline-grid;
        gap: 5px;
        width: 46px;
        height: 42px;
        place-content: center;
        border: 1px solid rgba(197,157,255,.35);
        border-radius: 10px;
        background: rgba(255,255,255,.04);
    }

    .nav-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text);
    }

    .site-nav,
    .email-pill {
        display: none;
    }

    .site-header.nav-open .site-nav {
        position: absolute;
        left: 1rem;
        right: 1rem;
        top: calc(100% + .5rem);
        display: grid;
        gap: 1rem;
        padding: 1.25rem;
        border: 1px solid var(--panel-border);
        border-radius: 16px;
        background: rgba(7,9,18,.96);
    }

    .hero,
    .split-section,
    .astronomy {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-visual {
        min-height: 310px;
    }

    .service-grid,
    .platform-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .brand img {
        width: 210px;
    }

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

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

    .hero {
        padding-top: 3rem;
    }

    .hero-visual img {
        width: 100%;
    }
}
