:root {
    --navy: #020b1e;
    --ink: #071329;
    --blue: #0a5cff;
    --blue2: #1f83ff;
    --line: #dce5f3;
    --muted: #5e6b82;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.shell {
    width: min(1480px, 90vw);
    margin-inline: auto;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero */

.hero-section {
    min-height: 430px;
    color: #fff;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 76% 38%,
            rgba(11, 85, 222, 0.18),
            transparent 28%
        ),
        linear-gradient(115deg, #020817, #03132f 62%, #02091b);
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(64, 130, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 130, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(
        to bottom,
        transparent,
        #000 28%,
        transparent 88%
    );
}

.site-header {
    position: relative;
    z-index: 30;
}

.header-inner {
    height: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 28px;
}

/* Logo */

.brand {
    position: relative;
    display: block;
    flex: 0 0 245px;
    width: 245px;
    height: 52px;
    overflow: visible;
}

.brand img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 245px;
    height: auto;
    max-width: none;
    object-fit: initial;
    transform: translateY(-10px);
}

/* Navigation */

.desktop-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 13px;
    font-weight: 650;
}

.desktop-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-block: 26px 23px;
    color: #e8efff;
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--blue2);
}

.desktop-nav a.active::after {
    content: "";
    position: absolute;
    height: 2px;
    left: 0;
    right: 0;
    bottom: 13px;
    background: var(--blue);
}

.desktop-nav span {
    color: #c7d0e0;
    background: rgba(255, 255, 255, 0.13);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
}

.menu-button {
    display: none;
    color: #fff;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
}

/* Buttons */

.button {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 9px;
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #1476ff, #0046e9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 750;
    font-size: 15px;
    box-shadow:
        0 10px 28px rgba(0, 77, 255, 0.25),
        inset 0 1px rgba(255, 255, 255, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 15px 34px rgba(0, 77, 255, 0.36),
        inset 0 1px rgba(255, 255, 255, 0.28);
}

.button-small {
    min-height: 38px;
    padding-inline: 20px;
    font-size: 13px;
}

.header-cta {
    margin-left: 18px;
}

.button-ghost {
    background: rgba(5, 18, 44, 0.65);
    border: 1px solid #4779d8;
    box-shadow: none;
}

.button svg,
.outline-button svg,
.service-card a svg,
.project-card a svg {
    width: 16px;
    height: 16px;
}

/* Hero content */

.hero-grid {
    position: relative;
    z-index: 2;
    min-height: 360px;
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    align-items: center;
    gap: 24px;
    padding: 26px 0 28px;
}

.hero-copy {
    padding: 0;
}

.eyebrow,
.section-kicker {
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 10px;
    font-weight: 800;
    color: #78a8ff;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
}

.eyebrow span {
    color: #265fcd;
}

.hero-copy h1 {
    margin: 0;
    max-width: 620px;
    font-size: clamp(38px, 3.25vw, 52px);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 820;
}

.hero-copy h1 span {
    color: #1970ff;
}

.hero-lead {
    max-width: 560px;
    margin: 13px 0 0;
    color: #bac6db;
    line-height: 1.55;
    font-size: 14px;
}

.hero-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

.hero-actions .button {
    min-height: 40px;
    padding: 0 20px;
    font-size: 13px;
}

.trust-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 28px;
    color: #d4dcef;
    font-size: 10px;
    font-weight: 650;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.trust-row svg {
    width: 14px;
    height: 14px;
    color: #fff;
}

.hero-visual {
    position: relative;
    min-height: 335px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-art {
    display: block;
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    mix-blend-mode: screen;
}

/* Main light surface */

.light-surface {
    width: calc(100% - 48px);
    margin: -14px auto 0;
    position: relative;
    z-index: 5;
    padding-top: 12px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, #fff, #f7faff 70%, #fff);
}

/* Flash message */

.flash {
    margin: 4px auto 15px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.flash-success {
    color: #087443;
    background: #e8fff4;
    border: 1px solid #a4e7ca;
}

.flash-error {
    color: #a12a2a;
    background: #fff0f0;
    border: 1px solid #f0b9b9;
}

/* Services */

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.service-card {
    min-height: 106px;
    padding: 14px 15px;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    box-shadow: 0 7px 30px rgba(24, 58, 106, 0.04);
    transition: 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: #9bbdff;
}

.icon-orb {
    flex: 0 0 43px;
    height: 43px;
    border-radius: 50%;
    background: #edf4ff;
    display: grid;
    place-items: center;
    color: var(--blue);
}

.icon-orb svg {
    width: 26px;
    height: 26px;
}

.service-card h2 {
    font-size: 14px;
    margin: 1px 0 5px;
}

.service-card p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    margin: 0 0 7px;
}

.service-card a,
.project-card a {
    font-size: 10px;
    font-weight: 800;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Featured projects */

.projects-section {
    padding: 20px 0 10px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    align-items: stretch;
}

.section-intro {
    padding: 8px 4px;
}

.section-kicker {
    color: #3977d9;
    margin: 0 0 8px;
}

.section-intro h2,
.ai-intro h2,
.store-intro h2 {
    margin: 0;
    color: #071329;
    font-size: 25px;
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.section-intro > p:not(.section-kicker),
.ai-intro > p:not(.section-kicker),
.store-intro > p:not(.section-kicker) {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.outline-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--blue);
    border: 1px solid #7aa4ef;
    padding: 8px 14px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    margin-top: 4px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.project-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 30px rgba(19, 53, 105, 0.06);
}

.project-visual {
    height: 120px;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-color: #06142f;
}

.project-image {
    background-image: url("/assets/project-thumbnails-v2.png");
    background-repeat: no-repeat;
    background-size: 300% 100%;
}

.project-image-0 {
    background-position: 0 50%;
}

.project-image-1 {
    background-position: 0% 50%;
}

.project-image-2 {
    background-position: 100% 50%;
}

.project-copy {
    padding: 10px 13px 12px;
}

.project-copy small {
    color: #3779e0;
    text-transform: uppercase;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.project-copy h3 {
    font-size: 14px;
    margin: 3px 0 4px;
}

.project-copy p {
    font-size: 10px;
    color: var(--muted);
    line-height: 1.45;
    margin: 0 0 8px;
}

/* AI */

.ai-band {
    margin-top: 10px;
    min-height: 112px;
    border: 0;
    border-radius: 10px;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: 1.25fr repeat(4, 1fr);
    align-items: center;
    color: #fff;
    background:
        radial-gradient(
            circle at 12% 0,
            rgba(20, 93, 226, 0.32),
            transparent 32%
        ),
        linear-gradient(115deg, #061b48, #020e28);
}

.ai-intro {
    padding-right: 20px;
}

.ai-intro h2 {
    color: #fff;
    font-size: 22px;
}

.ai-intro > p:not(.section-kicker) {
    color: #aebbd1;
    font-size: 10px;
    margin: 6px 0 9px;
}

.ai-intro .button {
    min-height: 30px;
    font-size: 10px;
    padding-inline: 12px;
}

.ai-feature {
    border-left: 1px solid rgba(108, 151, 223, 0.32);
    min-height: 65px;
    padding: 5px 15px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.ai-feature svg {
    color: #4b96ff;
    width: 27px;
    flex: 0 0 27px;
}

.ai-feature h3 {
    color: #fff;
    font-size: 12px;
    margin: 1px 0 5px;
}

.ai-feature p {
    color: #aebbd1;
    font-size: 10px;
    line-height: 1.45;
    margin: 0;
}

/* Store */

.store-section {
    padding: 12px 0;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 12px;
    align-items: stretch;
}

.store-intro {
    padding: 3px;
}

.store-intro h2 {
    font-size: 23px;
}

.store-intro > p:not(.section-kicker) {
    font-size: 11px;
    margin-bottom: 0;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 9px;
}

.store-grid article {
    min-height: 105px;
    padding: 7px 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    text-align: center;
}

.store-grid article > .product-thumb {
    position: relative;
    width: 100%;
    height: 72px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-grid article > .product-thumb {
    width: 100%;
    height: 72px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.store-grid h3 {
    font-size: 11px;
    margin: 5px 0 0;
}

.store-grid .coming-card {
    background: linear-gradient(145deg, #edf4ff, #fff);
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
    color: var(--blue);
}

.coming-card h3 {
    font-size: 14px;
    margin: 3px 0;
}

.coming-card p {
    font-size: 10px;
    font-weight: 800;
    margin: 2px 0 7px;
}

.coming-card form {
    display: grid;
    gap: 6px;
}

.coming-card input {
    min-width: 0;
    width: 100%;
    border: 1px solid #b6cdf4;
    border-radius: 6px;
    padding: 5px 7px;
    color: #071329;
    background: #fff;
    font-size: 9px;
}

.coming-card button {
    border: 1px solid #79a5f3;
    background: #fff;
    color: var(--blue);
    padding: 5px 7px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.coming-card button svg {
    width: 14px;
    height: 14px;
}

/* Contact */

.contact-band {
    color: #fff;
    background: linear-gradient(120deg, #051431, #001f52);
    display: grid;
    align-items: center;
}

.contact-band-v2 {
    min-height: 76px;
    margin-top: 0;
    border-radius: 10px 10px 0 0;
    padding: 12px 24px;
    grid-template-columns: 1.55fr 0.75fr 1fr auto;
    gap: 18px;
}

.contact-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-title > strong {
    font-size: 35px;
    color: #1680ff;
    transform: rotate(-18deg);
}

.contact-title h2 {
    font-size: 20px;
    margin: 0 0 3px;
}

.contact-title p {
    color: #aebbd1;
    font-size: 11px;
    margin: 0;
}

.contact-band-v2 > a:not(.button) {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
    padding-left: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-band-v2 > a strong {
    font-size: 13px;
}

.contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(21, 101, 236, 0.18);
    display: grid !important;
    place-items: center;
    color: #3f97ff;
    font-size: 15px;
}

.contact-band-v2 .button {
    min-height: 38px;
    font-size: 12px;
}

/* Modal and form */

.project-modal {
    width: min(760px, calc(100% - 30px));
    max-height: 90vh;
    border: 1px solid #2e5a9c;
    border-radius: 14px;
    padding: 24px;
    color: #fff;
    overflow: auto;
    background: linear-gradient(135deg, #061630, #0a285d);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
}

.project-modal::backdrop {
    background: rgba(0, 7, 20, 0.78);
    backdrop-filter: blur(6px);
}

.modal-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.modal-heading h2 {
    font-size: 26px;
    margin: 3px 0;
}

.modal-heading button {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
}

.project-form {
    display: grid;
    gap: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.project-form label {
    display: grid;
    gap: 7px;
    color: #c8d4e8;
    font-size: 12px;
    font-weight: 700;
}

.project-form input,
.project-form select,
.project-form textarea {
    width: 100%;
    border: 1px solid rgba(145, 182, 239, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.075);
    color: #fff;
    padding: 11px 12px;
    outline: none;
    font: inherit;
}

.project-form select option {
    color: #071329;
    background: #fff;
}

.project-form textarea {
    resize: vertical;
    min-height: 108px;
}

.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus {
    border-color: #4d94ff;
    box-shadow: 0 0 0 3px rgba(26, 111, 255, 0.18);
}

.project-form .button {
    justify-self: stretch;
}

.honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer */

.footer {
    position: relative;
    min-height: 168px;
    padding: 22px 28px 42px;
    display: grid;
    grid-template-columns: 1.15fr repeat(3, 0.75fr) 1.25fr;
    gap: 36px;
    border-radius: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    background: linear-gradient(115deg, #030e25, #05193a);
    color: #fff;
}

.footer .brand-footer {
    width: 220px;
    height: 48px;
    overflow: visible;
}

.footer .brand-footer img {
    width: 220px;
    transform: translateY(-9px);
}

.footer-brand p,
.footer > div > p {
    color: #9eacc3;
    font-size: 10px;
    line-height: 1.5;
    margin-top: 7px;
}

.footer h3 {
    font-size: 11px;
    margin: 3px 0 9px;
}

.footer > div:not(.footer-brand) a {
    display: block;
    color: #bec9d8;
    font-size: 10px;
    margin: 5px 0;
}

.footer-subscribe {
    display: flex;
    margin-top: 8px;
}

.footer-subscribe input {
    min-width: 0;
    flex: 1;
    border: 1px solid #294d83;
    border-radius: 6px 0 0 6px;
    background: #071a3d;
    color: #fff;
    padding: 7px 8px;
    font-size: 9px;
}

.footer-subscribe button {
    border: 0;
    border-radius: 0 6px 6px 0;
    background: #0a61f4;
    color: #fff;
    padding: 0 9px;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.footer-subscribe svg {
    width: 12px;
    height: 12px;
}

.copyright {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: #72819a;
}

/* Responsive */

@media (max-width: 1180px) {
    .shell {
        width: 92vw;
    }

    .desktop-nav {
        gap: 18px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

    .hero-art {
        width: 108%;
    }

    .header-cta {
        display: none;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .store-section {
        grid-template-columns: 230px 1fr;
    }

    .footer {
        grid-template-columns: 1.1fr repeat(3, 1fr);
    }

    .footer > div:nth-child(5) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .desktop-nav {
        display: none;
    }

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .mobile-nav {
        position: absolute;
        z-index: 40;
        top: 70px;
        left: 16px;
        right: 16px;
        padding: 18px;
        border: 1px solid #1a3e74;
        border-radius: 14px;
        background: rgba(3, 15, 38, 0.97);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
    }

    .mobile-nav:not([hidden]) {
        display: grid;
    }

    .mobile-nav a {
        padding: 13px;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    }

    .mobile-nav .button {
        margin-top: 12px;
        border: 0;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 28px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-copy h1,
    .hero-lead {
        margin-inline: auto;
    }

    .eyebrow,
    .hero-actions,
    .trust-row {
        justify-content: center;
    }

    .hero-visual {
        min-height: auto;
    }

    .hero-art {
        width: 100%;
        max-height: none;
    }

    .light-surface {
        width: calc(100% - 24px);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-section {
        grid-template-columns: 1fr;
    }

    .section-intro {
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .ai-band {
        grid-template-columns: repeat(2, 1fr);
    }

    .ai-intro {
        grid-column: 1 / -1;
        text-align: center;
        padding: 0 0 10px;
    }

    .store-section {
        grid-template-columns: 1fr;
    }

    .store-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-band-v2 {
        grid-template-columns: 1fr 1fr;
    }

    .contact-title {
        grid-column: 1 / -1;
    }

    .footer {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .shell {
        width: calc(100% - 24px);
    }

    .header-inner {
        height: 74px;
    }

    .brand {
        flex-basis: 205px;
        width: 205px;
        height: 46px;
    }

    .brand img {
        width: 205px;
        transform: translateY(-8px);
    }

    .hero-grid {
        padding-top: 34px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-lead {
        font-size: 15px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .trust-row {
        gap: 12px 18px;
        flex-wrap: wrap;
    }

    .hero-art {
        width: 112%;
        margin-left: -6%;
    }

    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-visual {
        height: 168px;
    }

    .ai-band {
        grid-template-columns: 1fr;
    }

    .ai-feature {
        border-left: 0;
        border-top: 1px solid rgba(108, 151, 223, 0.32);
        padding: 16px 4px;
    }

    .store-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-band-v2 {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .contact-title {
        grid-column: auto;
    }

    .contact-band-v2 > a:not(.button) {
        border-left: 0;
        padding-left: 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer {
        grid-template-columns: 1fr 1fr;
        padding: 28px 20px 48px;
    }

    .footer > div:nth-child(5) {
        grid-column: 1 / -1;
    }

    .footer .brand-footer {
        width: 205px;
        height: 46px;
    }

    .footer .brand-footer img {
        width: 205px;
        transform: translateY(-8px);
    }

    .copyright {
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .service-card {
        transition: none;
    }

    .button:hover,
    .service-card:hover {
        transform: none;
    }
}