:root {
    --bg: #060814;
    --surface: rgba(255, 255, 255, 0.07);
    --surface-2: rgba(255, 255, 255, 0.1);
    --dark: #080b12;
    --dark-2: #111621;
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --muted-dark: rgba(255, 255, 255, 0.7);
    --line: rgba(255, 255, 255, 0.15);
    --line-dark: rgba(255, 255, 255, 0.13);
    --blue: #2862ff;
    --cyan: #18c8d8;
    --violet: #8a5cff;
    --electric: #52d9ff;
    --pink: #ff5aa5;
    --orange: #ffb14a;
    --shadow: 0 24px 70px rgba(17, 24, 39, 0.14);
    --shadow-dark: 0 34px 90px rgba(0, 0, 0, 0.34);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background:
        radial-gradient(circle at 12% 8%, rgba(112, 52, 255, 0.28), transparent 34rem),
        radial-gradient(circle at 90% 24%, rgba(24, 200, 216, 0.22), transparent 38rem),
        radial-gradient(circle at 8% 78%, rgba(255, 90, 165, 0.16), transparent 34rem),
        linear-gradient(135deg, #080513 0%, #10162a 48%, #031d26 100%);
    background-attachment: fixed;
    color: #fff;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 78px 78px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.42));
}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

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

.narrow {
    max-width: 850px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 50;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    background: rgba(9, 12, 25, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(20px);
}

.site-header.is-scrolled {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.header-inner {
    min-height: 72px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    width: 100%;
    padding-inline: 18px 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: #fff;
    font-weight: 950;
    line-height: 1;
}

.brand-logo {
    width: clamp(158px, 17vw, 222px);
    height: auto;
}

.brand-word {
    letter-spacing: 0;
    padding: 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 0;
    text-transform: none;
}

.footer-brand .brand-word {
    padding: 0;
    border: 0;
}

.brand-word span {
    background: linear-gradient(135deg, #7ee7ff 0%, #2f7bff 48%, #8a5cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    display: none;
}

.nav-menu {
    display: flex;
    justify-content: flex-end;
    gap: 26px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 850;
    font-size: 0.94rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--electric);
}

.header-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-cta,
.button-primary {
    color: #fff;
    background: linear-gradient(135deg, #6b35ff 0%, #2f7bff 52%, #18c8d8 100%);
    box-shadow: 0 18px 42px rgba(35, 92, 255, 0.28);
}

.button-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.header-cta:hover,
.button:hover {
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-dark);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #fff;
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero-motion {
    min-height: calc(100vh - 78px);
    padding: 116px 0 88px;
    color: #fff;
    background: transparent;
}

.hero-motion::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 78px 78px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 84%);
}

.hero-motion-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1fr);
    gap: 58px;
    align-items: center;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.split-grid h2,
.cta-box h2,
.contact-panel h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.5rem, 5.7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: 0;
}

.hero-motion .hero-copy h1 {
    color: #fff;
    max-width: 870px;
    font-size: clamp(3.4rem, 7.2vw, 7.3rem);
}

.page-hero h1,
.section-heading h2,
.split-grid h2,
.cta-box h2,
.contact-panel h2 {
    font-size: clamp(2.25rem, 4.8vw, 4.8rem);
}

.eyebrow {
    margin: 0 0 15px;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 900;
}

.hero-motion .eyebrow {
    color: var(--electric);
}

.lead {
    max-width: 720px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.hero-motion .lead {
    color: var(--muted-dark);
}

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

.motion-stage {
    position: relative;
    min-height: 620px;
    isolation: isolate;
}

.motion-stage::before {
    content: "";
    position: absolute;
    width: 76%;
    aspect-ratio: 1;
    right: 0;
    top: 8%;
    border-radius: 50%;
    background: conic-gradient(from 120deg, #235cff, var(--cyan), var(--violet), #4f8cff, #235cff);
    filter: blur(28px);
    opacity: 0.22;
    animation: slowSpin 18s linear infinite;
}

.motion-card {
    position: absolute;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(125, 70, 255, 0.13), rgba(24, 200, 216, 0.1)),
        rgba(255, 255, 255, 0.055);
    box-shadow: var(--shadow-dark);
    backdrop-filter: blur(14px);
}

.motion-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.motion-card div {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(8, 11, 18, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.motion-card span,
.motion-card strong {
    display: block;
}

.motion-card span {
    color: var(--electric);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.motion-card strong {
    margin-top: 4px;
    color: #fff;
    font-size: 1.05rem;
}

.motion-card-large {
    width: 76%;
    height: 470px;
    right: 5%;
    top: 24px;
    animation: floatY 7s ease-in-out infinite;
}

.motion-card-a {
    width: 48%;
    height: 270px;
    left: 0;
    top: 275px;
    animation: floatY 6s ease-in-out infinite reverse;
}

.motion-card-b {
    width: 46%;
    height: 250px;
    right: 0;
    bottom: 0;
    animation: floatY 8s ease-in-out infinite;
}

.tech-strip {
    overflow: hidden;
    padding: 18px 0;
    background: rgba(8, 11, 18, 0.58);
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}

.tech-marquee {
    display: flex;
    width: max-content;
    gap: 14px;
    animation: marquee 26s linear infinite;
}

.tech-marquee span {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.055);
    font-weight: 850;
}

.section {
    padding: 96px 0;
}

.section-heading,
.intro-grid,
.detail-grid,
.contact-grid {
    position: relative;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(125, 70, 255, 0.1), rgba(24, 200, 216, 0.07)),
        rgba(255, 255, 255, 0.035);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(12px);
}

.intro-section {
    background: transparent;
}

.intro-grid,
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 70px;
    align-items: start;
}

.section-heading {
    max-width: 850px;
    margin-bottom: 38px;
}

.intro-grid .section-heading,
.contact-grid .contact-aside,
.detail-grid > div {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.text-stack {
    display: grid;
    gap: 18px;
    font-size: 1.08rem;
}

.services-section {
    background: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.service-card,
.examples-grid article,
.solutions-grid article,
.values-grid article {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(125, 70, 255, 0.12), rgba(24, 200, 216, 0.08)),
        rgba(255, 255, 255, 0.055);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(14px);
}

.colorful-card {
    position: relative;
    overflow: hidden;
}

.colorful-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 6px;
    background: linear-gradient(90deg, #235cff, var(--cyan), var(--violet));
}

.service-card span,
.solutions-grid span,
.detail-grid span {
    color: var(--blue);
    font-weight: 900;
}

.service-card h3,
.examples-grid h3,
.values-grid h3 {
    margin: 18px 0 10px;
    color: #fff;
}

.service-card p,
.examples-grid p,
.solutions-grid p,
.values-grid p,
.text-stack p,
.detail-grid p,
.detail-grid li,
.contact-aside p,
.cta-box p {
    color: var(--muted);
}

.visual-flow {
    overflow: hidden;
    padding: 54px 0;
    background: transparent;
}

.visual-track {
    display: flex;
    width: max-content;
    gap: 22px;
    animation: marquee 34s linear infinite;
}

.visual-track figure {
    width: min(460px, 74vw);
    margin: 0;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--line-dark);
    background: #111;
    box-shadow: var(--shadow-dark);
}

.visual-track img {
    width: 100%;
    aspect-ratio: 1.34 / 1;
    object-fit: cover;
}

.examples-section {
    background: transparent;
}

.examples-grid,
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.cta-section {
    background: transparent;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    padding: 42px;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 18% 10%, rgba(107, 53, 255, 0.34), transparent 34%),
        radial-gradient(circle at 90% 16%, rgba(24, 200, 216, 0.25), transparent 30%),
        rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line-dark);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.cta-box h2 {
    color: #fff;
}

.cta-box p {
    color: var(--muted-dark);
}

.page-hero {
    padding: 118px 0 64px;
    background: transparent;
}

.split-section {
    background: transparent;
}

.text-link {
    color: var(--blue);
    font-weight: 900;
}

.service-detail {
    background: transparent;
    border-top: 1px solid var(--line-dark);
}

.service-detail.alt {
    background: transparent;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.08fr);
    gap: 60px;
}

.detail-grid h2,
.solutions-grid h2 {
    margin: 12px 0 0;
    font-size: clamp(1.7rem, 3vw, 3rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.detail-grid ul {
    margin: 20px 0;
    padding-left: 1.15rem;
}

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

.contact-section {
    background: transparent;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.1fr);
    gap: 50px;
    align-items: start;
}

.contact-aside {
    position: sticky;
    top: 110px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: var(--surface-2);
    backdrop-filter: blur(14px);
}

.contact-aside h2 {
    margin: 0 0 14px;
}

.contact-aside a {
    display: inline-block;
    margin-top: 18px;
    color: var(--blue);
    font-weight: 900;
}

.contact-form {
    display: grid;
    gap: 18px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.form-row {
    display: grid;
    gap: 8px;
}

.form-row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form label {
    color: #fff;
    font-weight: 800;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.contact-form select option {
    color: #111827;
}

.form-note {
    margin: 0;
    color: #0f8f65;
    font-weight: 800;
}

.site-footer {
    padding: 58px 0 28px;
    background: rgba(5, 7, 15, 0.55);
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 34px;
}

.footer-brand {
    color: #fff;
    margin-bottom: 16px;
}

.footer-brand .brand-logo {
    width: 190px;
}

.footer-title {
    margin: 0 0 14px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.76rem;
    font-weight: 900;
}

.site-footer a,
.site-footer span {
    display: block;
    margin-bottom: 9px;
}

.footer-bottom {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floatY {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-18px);
    }
}

@keyframes slowSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 1040px) {
    .header-inner {
        grid-template-columns: auto auto;
    }

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

    .header-cta {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        display: grid;
        gap: 0;
        padding: 12px 20px 24px;
        color: #fff;
        background: rgba(9, 12, 25, 0.96);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 28px;
        box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-menu.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-menu a {
        padding: 15px 0;
        border-bottom: 1px solid var(--line-dark);
    }

    .nav-menu a:hover,
    .nav-menu a.active {
        color: var(--electric);
    }

    .hero-motion-grid,
    .intro-grid,
    .split-grid,
    .detail-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .motion-stage {
        min-height: 540px;
    }

    .services-grid,
    .examples-grid,
    .values-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-aside {
        position: static;
    }
}

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

    .header-inner {
        min-height: 76px;
        padding-inline: 14px 10px;
    }

    .brand-logo {
        width: 190px;
        max-width: calc(100vw - 166px);
    }

    .nav-menu {
        top: 68px;
    }

    .hero-motion {
        min-height: auto;
        padding: 58px 0 54px;
    }

    .hero-motion .hero-copy h1,
    .page-hero h1 {
        font-size: clamp(2.9rem, 13vw, 4.6rem);
    }

    .motion-stage {
        min-height: auto;
        display: grid;
        gap: 16px;
    }

    .motion-stage::before {
        width: 92%;
        right: 4%;
        top: 18%;
    }

    .motion-card,
    .motion-card-large,
    .motion-card-a,
    .motion-card-b {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        animation: none;
    }

    .motion-card img {
        aspect-ratio: 1.22 / 1;
    }

    .proof-grid,
    .services-grid,
    .examples-grid,
    .solutions-grid,
    .values-grid,
    .footer-grid,
    .form-row.two {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 66px 0;
    }

    .visual-flow {
        padding: 34px 0;
    }

    .cta-box {
        display: grid;
        padding: 28px;
    }

    .contact-form {
        padding: 22px;
    }
}
