:root {
    --color-primary: #4f8cff;
    --color-accent: #16d9e3;
    --color-bg: #07111f;
    --color-surface: rgba(255, 255, 255, 0.08);
    --color-text: #ffffff;
    --color-muted: #d6dff1;
    --content-width: 1200px;
    --radius: 18px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    min-width: 320px;
    background: radial-gradient(circle at top, #12284a, var(--color-bg) 60%);
    color: var(--color-text);
    font-family: "Poppins", sans-serif;
}

a {
    color: inherit;
}

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

.site-header {
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px max(5%, calc((100% - var(--content-width)) / 2));
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: rgba(7, 17, 31, .78);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 9px;
    object-fit: cover;
}

.brand span {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-nav {
    display: flex;
    gap: 24px;
}

.site-nav a {
    position: relative;
    text-decoration: none;
}

.site-nav a::after {
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    content: "";
    transition: width .2s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    width: 100%;
}

.hero,
.section {
    width: min(90%, var(--content-width));
    margin-inline: auto;
}

.hero {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
    padding-block: 130px 80px;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--color-primary);
    border-radius: 25px;
    background: rgba(79, 140, 255, .08);
}

h1 {
    max-width: 720px;
    margin: 18px 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.12;
}

.gradient-text {
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    background-clip: text;
    color: transparent;
}

.hero__content>p {
    max-width: 620px;
    font-size: 1.05rem;
}

.button {
    display: inline-block;
    margin-top: 24px;
    padding: 14px 26px;
    border-radius: 40px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 12px 30px rgba(22, 217, 227, .16);
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.button:hover,
.button:focus-visible {
    box-shadow: 0 16px 36px rgba(22, 217, 227, .25);
    transform: translateY(-2px);
}

.mockup {
    width: min(100%, 360px);
    height: 320px;
    justify-self: end;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    background: var(--color-surface);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
}

.mockup__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    background: radial-gradient(circle at center, #173664 0%, #081528 72%);
    isolation: isolate;
}

.mockup__screen::before,
.mockup__screen::after {
    position: absolute;
    z-index: 2;
    inset: -35%;
    pointer-events: none;
    content: "";
}

.mockup__screen::before {
    background:
        radial-gradient(circle at 25% 45%, rgba(79, 140, 255, .75), transparent 23%),
        radial-gradient(circle at 72% 55%, rgba(22, 217, 227, .58), transparent 25%),
        radial-gradient(ellipse at center, rgba(40, 87, 160, .55), transparent 55%);
    filter: blur(24px);
    mix-blend-mode: multiply;
    animation: atmospheric-clouds 10s ease-in-out infinite;
}

.mockup__screen::after {
    inset: -10% -80%;
    background: linear-gradient(105deg, transparent 43%, rgba(255, 255, 255, .18) 47%, #16d9e3 50%, rgba(79, 140, 255, .3) 53%, transparent 57%);
    filter: blur(5px);
    mix-blend-mode: multiply;
    animation: neon-sweep 10s cubic-bezier(.45, 0, .3, 1) infinite;
}

.mockup__screen img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: atmospheric-logo-reveal 10s ease-in-out infinite;
    transform-origin: center;
    will-change: clip-path, opacity, transform, filter;
}

@keyframes atmospheric-logo-reveal {

    0%,
    8% {
        opacity: 0;
        clip-path: circle(0 at 50% 50%);
        filter: brightness(.45) blur(5px) drop-shadow(0 0 0 transparent);
        transform: scale(1.22);
    }

    28% {
        opacity: 1;
        clip-path: circle(75% at 50% 50%);
        filter: brightness(1.28) blur(0) drop-shadow(0 0 24px rgba(22, 217, 227, .9));
        transform: scale(1.08);
    }

    42%,
    78% {
        opacity: 1;
        clip-path: circle(75% at 50% 50%);
        filter: brightness(1) blur(0) drop-shadow(0 0 10px rgba(79, 140, 255, .4));
        transform: scale(1);
    }

    100% {
        opacity: 0;
        clip-path: circle(75% at 50% 50%);
        filter: brightness(.7) blur(3px) drop-shadow(0 0 0 transparent);
        transform: scale(.96);
    }
}

@keyframes atmospheric-clouds {

    0%,
    100% {
        opacity: .25;
        transform: translate3d(-5%, 2%, 0) scale(.9) rotate(-4deg);
    }

    35% {
        opacity: .9;
        transform: translate3d(4%, -2%, 0) scale(1.05) rotate(2deg);
    }

    75% {
        opacity: .45;
        transform: translate3d(-1%, 3%, 0) scale(1) rotate(-1deg);
    }
}

@keyframes neon-sweep {

    0%,
    12% {
        opacity: 0;
        transform: translateX(-42%);
    }

    22% {
        opacity: .85;
    }

    40% {
        opacity: 0;
        transform: translateX(42%);
    }

    100% {
        opacity: 0;
        transform: translateX(42%);
    }
}


.section {
    padding-block: 80px;
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading h2,
.callout h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.eyebrow {
    color: var(--color-accent);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.card-grid,
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card,
.stat {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    background: var(--color-surface);
}

.card h3 {
    margin-bottom: 12px;
}

.stat {
    text-align: center;
}

.stat strong {
    display: block;
    color: var(--color-accent);
    font-size: 2rem;
}

.stat span {
    color: var(--color-muted);
}

.callout {
    padding: clamp(36px, 6vw, 72px);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px;
    background: linear-gradient(90deg, #12366e, #0d6671);
    text-align: center;
}

.callout h2 {
    margin: 8px 0 12px;
}

.callout p a {
    text-decoration: none;
}

.site-footer {
    padding: 30px 5%;
    text-align: center;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .mockup {
        justify-self: center;
    }

    .card-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

    .brand span {
        font-size: 1.3rem;
    }

    .site-nav {
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        font-size: .9rem;
    }

    .hero {
        padding-top: 150px;
        gap: 0;
    }

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

    .mockup {
        width: min(100%, 360px);
    }

    .callout p span {
        display: block;
        height: 0;
        overflow: hidden;
    }

    .callout p a {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
    }

    .mockup__screen img {
        animation: none;
    }

    .mockup__screen::before,
    .mockup__screen::after {
        animation: none;
    }

}
