:root {
    --bg: #050816;
    --panel: rgba(255, 255, 255, .08);
    --panel-strong: rgba(255, 255, 255, .14);
    --line: rgba(255, 255, 255, .16);
    --text: #f8fbff;
    --muted: rgba(248, 251, 255, .72);
    --soft: rgba(248, 251, 255, .52);
    --cyan: #5fffe4;
    --blue: #7c8cff;
    --violet: #b175ff;
    --shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 12%, rgba(95, 255, 228, .18), transparent 26rem),
        radial-gradient(circle at 86% 8%, rgba(124, 140, 255, .18), transparent 28rem),
        linear-gradient(145deg, #03040b 0%, #07101f 45%, #050816 100%);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

body:before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), transparent 80%);
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}

img {
    max-width: 100%;
}

#particles {
    position: fixed;
    inset: 0;
    z-index: -3;
}

.ambient {
    position: fixed;
    z-index: -2;
    width: 42vw;
    min-width: 340px;
    aspect-ratio: 1;
    border-radius: 999px;
    filter: blur(48px);
    opacity: .5;
    animation: drift 16s ease-in-out infinite alternate;
}

.ambient-one {
    top: 8%;
    left: -12%;
    background: rgba(95, 255, 228, .28);
}

.ambient-two {
    right: -12%;
    bottom: 6%;
    background: rgba(177, 117, 255, .24);
    animation-delay: -6s;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .18;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
}

.site-header {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1120px, calc(100% - 32px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(5, 8, 22, .62);
    box-shadow: 0 20px 80px rgba(0, 0, 0, .24);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    transform: translateX(-50%);
}

.brand,
.main-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 12px;
}

.brand-logo {
    position: relative;
    display: grid;
    width: 68px;
    height: 52px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(95, 255, 228, .42);
    border-radius: 17px;
    background: linear-gradient(135deg, rgba(95, 255, 228, .92), rgba(255, 255, 255, .98));
    box-shadow: 0 0 38px rgba(95, 255, 228, .35);
}

.brand-logo img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-logo.has-image img {
    display: block;
}

.brand-logo.has-image {
    width: 88px;
    background: #000;
    border-color: rgba(95, 255, 228, .28);
}

.brand-logo.has-image .brand-fallback {
    display: none;
}

.brand-fallback {
    color: #07101f;
    font-family: "Space Grotesk", Inter, sans-serif;
    font-weight: 700;
    letter-spacing: .04em;
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-family: "Space Grotesk", Inter, sans-serif;
    font-size: 18px;
    letter-spacing: .04em;
}

.brand-text small {
    color: var(--soft);
    font-size: 12px;
}

.main-nav {
    gap: 6px;
}

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease, background .2s ease;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--text);
    background: rgba(255, 255, 255, .1);
}

.section-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: 48px;
    align-items: center;
    min-height: 100vh;
    padding: 150px 0 92px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.eyebrow:before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--cyan);
    box-shadow: 0 0 18px var(--cyan);
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", Inter, sans-serif;
    line-height: 1.02;
}

h1 {
    max-width: 780px;
    margin-bottom: 24px;
    font-size: clamp(48px, 8vw, 92px);
    letter-spacing: -.07em;
}

h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: -.055em;
}

h3 {
    margin-bottom: 12px;
    font-size: 24px;
    letter-spacing: -.035em;
}

.hero-lead {
    max-width: 660px;
    margin-bottom: 34px;
    color: var(--muted);
    font-size: clamp(18px, 2.2vw, 22px);
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: -.01em;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.button:hover,
.button:focus {
    transform: translateY(-2px);
}

.button-primary {
    border-color: rgba(95, 255, 228, .78);
    color: #04111d;
    background: linear-gradient(135deg, var(--cyan), #ffffff);
    box-shadow: 0 20px 60px rgba(95, 255, 228, .26);
}

.button-primary:hover,
.button-primary:focus {
    box-shadow: 0 28px 86px rgba(95, 255, 228, .36);
}

.button-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, .06);
}

.button-ghost:hover,
.button-ghost:focus {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(255, 255, 255, .11);
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.code-window {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(100%, 440px);
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .055));
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transform: translate(-50%, -50%) rotate(-3deg);
}

.code-window:after {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(95, 255, 228, .5), transparent 36%, rgba(177, 117, 255, .42));
}

.window-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
}

.window-bar span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 18px rgba(95, 255, 228, .72);
}

.window-bar span:nth-child(2) {
    background: var(--blue);
    box-shadow: 0 0 18px rgba(124, 140, 255, .72);
}

.window-bar span:nth-child(3) {
    background: var(--violet);
    box-shadow: 0 0 18px rgba(177, 117, 255, .72);
}

.code-lines {
    padding: 22px;
    border-radius: 18px;
    background: rgba(2, 5, 14, .62);
    font-family: "Space Grotesk", Inter, sans-serif;
}

.code-lines p {
    margin: 0 0 14px;
    color: var(--muted);
}

.code-lines p:last-child {
    margin-bottom: 0;
}

.code-lines span {
    color: var(--cyan);
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 520px;
    max-width: 96vw;
    aspect-ratio: 1;
    border: 1px solid rgba(95, 255, 228, .2);
    border-radius: 999px;
    box-shadow: inset 0 0 90px rgba(95, 255, 228, .08), 0 0 90px rgba(95, 255, 228, .08);
    transform: translate(-50%, -50%);
    animation: rotateSlow 22s linear infinite;
}

.orbit-ring:before,
.orbit-ring:after {
    content: "";
    position: absolute;
    border-radius: inherit;
    border: 1px solid rgba(124, 140, 255, .18);
}

.orbit-ring:before {
    inset: 56px;
}

.orbit-ring:after {
    inset: 116px;
}

.floating-card {
    position: absolute;
    display: grid;
    min-width: 108px;
    min-height: 72px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .09);
    box-shadow: var(--shadow);
    color: var(--text);
    font-weight: 900;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: float 6s ease-in-out infinite;
}

.card-a {
    top: 74px;
    right: 42px;
}

.card-b {
    bottom: 62px;
    left: 18px;
    animation-delay: -2s;
}

.card-c {
    right: 0;
    bottom: 120px;
    animation-delay: -4s;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading p {
    color: var(--muted);
    font-size: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-tile,
.process-step,
.contact-panel {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .045));
    box-shadow: 0 18px 70px rgba(0, 0, 0, .24);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.service-tile {
    position: relative;
    min-height: 244px;
    padding: 28px;
    overflow: hidden;
    border-radius: 30px;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.service-tile:after {
    content: "";
    position: absolute;
    right: -56px;
    bottom: -56px;
    width: 150px;
    aspect-ratio: 1;
    border-radius: 999px;
    background: rgba(95, 255, 228, .16);
    filter: blur(8px);
}

.service-tile:hover {
    transform: translateY(-8px);
    border-color: rgba(95, 255, 228, .45);
    background: linear-gradient(145deg, rgba(95, 255, 228, .14), rgba(255, 255, 255, .055));
}

.service-tile p,
.process-step p,
.contact-panel p {
    color: var(--muted);
}

.tile-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    margin-bottom: 36px;
    place-items: center;
    border: 1px solid rgba(95, 255, 228, .32);
    border-radius: 16px;
    color: var(--cyan);
    background: rgba(95, 255, 228, .08);
    font-weight: 900;
}

.highlighted {
    border-color: rgba(95, 255, 228, .34);
    background: linear-gradient(145deg, rgba(95, 255, 228, .16), rgba(124, 140, 255, .08));
}

.process-section,
.contact-section {
    padding-top: 110px;
}

.process-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.process-step {
    padding: 28px;
    border-radius: 28px;
}

.process-step span {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 999px;
    color: #04111d;
    background: var(--cyan);
    font-weight: 900;
    box-shadow: 0 0 32px rgba(95, 255, 228, .28);
}

.contact-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 38px;
    align-items: end;
    padding: 42px;
    border-radius: 34px;
}

.contact-panel h2 {
    max-width: 620px;
}

.contact-actions {
    justify-content: flex-end;
}

.mail-link {
    display: inline-flex;
    width: 100%;
    justify-content: flex-end;
    color: var(--cyan);
    font-size: 20px;
    font-weight: 900;
}

.mail-link:hover,
.mail-link:focus {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    width: min(1120px, calc(100% - 32px));
    margin: 70px auto 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--soft);
    font-size: 14px;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(7%, -5%, 0) scale(1.12);
    }
}

@keyframes rotateSlow {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

@media (max-width: 960px) {
    .hero,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 138px;
    }

    .hero-visual {
        min-height: 430px;
    }

    .services-grid,
    .process-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-actions,
    .mail-link {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .site-header {
        top: 10px;
        align-items: flex-start;
        border-radius: 24px;
    }

    .brand-text small {
        display: none;
    }

    .main-nav {
        gap: 0;
    }

    .main-nav a {
        padding: 9px 8px;
        font-size: 12px;
    }

    .hero {
        gap: 20px;
        padding-top: 124px;
        padding-bottom: 56px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 330px;
    }

    .code-window {
        width: 92%;
    }

    .floating-card {
        min-width: 88px;
        min-height: 58px;
        border-radius: 18px;
    }

    .services-grid,
    .process-track {
        grid-template-columns: 1fr;
    }

    .service-tile {
        min-height: auto;
    }

    .contact-panel {
        padding: 28px;
    }

    .mail-link {
        font-size: 17px;
    }

    .site-footer {
        display: grid;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
