:root {
    --ink: #05070b;
    --paper: #edf4fb;
    --blue: #7ebfff;
    --amber: #f2a648;
    --accent: #f2a648;
    --line: rgba(197, 221, 244, 0.16);
    --page: clamp(24px, 6vw, 110px);
    --display: 'DM Serif Display', Georgia, serif;
    --sans: 'Manrope', Arial, sans-serif;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--ink);
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100svh;
    overflow-x: hidden;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

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

::selection {
    background: var(--accent);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 5px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 100px;
    background: var(--paper);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-shell {
    position: relative;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr;
    isolation: isolate;
    overflow: clip;
    background:
        radial-gradient(circle at 74% 38%, rgba(30, 132, 185, 0.17), transparent 30rem),
        radial-gradient(circle at 32% 76%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 25rem),
        var(--ink);
}

.intelligence-field {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.62;
    mask-image: radial-gradient(ellipse at center, black, transparent 82%);
}

.ambient {
    position: absolute;
    z-index: -3;
    border-radius: 50%;
    filter: blur(20px);
    pointer-events: none;
}

.ambient--blue {
    top: -22vw;
    right: -18vw;
    width: min(64vw, 920px);
    aspect-ratio: 1;
    background: conic-gradient(from 35deg, transparent, rgba(126, 191, 255, 0.1), transparent 43%);
    animation: atmosphere-spin 30s linear infinite;
}

.ambient--warm {
    right: 15%;
    bottom: -21rem;
    width: min(42vw, 620px);
    aspect-ratio: 1;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent) 9%, transparent), transparent 66%);
    animation: atmosphere-float 13s ease-in-out infinite alternate;
}

.grain {
    position: absolute;
    z-index: 10;
    inset: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.site-header {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--page);
    border-bottom: 1px solid var(--line);
}

.brand {
    width: clamp(154px, 13vw, 208px);
}

.brand img {
    width: 100%;
    height: 58px;
    object-fit: contain;
    object-position: center;
}

.main-content {
    display: grid;
    place-items: center;
    padding: clamp(64px, 10vh, 130px) var(--page);
}

.hero {
    width: min(1120px, 100%);
    margin: 0 auto;
    text-align: center;
}

h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(62px, 8.4vw, 126px);
    font-weight: 400;
    line-height: 0.91;
    letter-spacing: -0.055em;
    text-wrap: balance;
    text-shadow: 0 10px 40px rgba(126, 191, 255, 0.08);
}

h1 > span {
    display: block;
}

.accent-line {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.16em;
    width: fit-content;
    margin: 0 auto;
    white-space: nowrap;
}

.accent-word {
    position: relative;
    display: inline-block;
    color: var(--paper);
    line-height: inherit;
    white-space: nowrap;
}

.accent-word::after {
    content: attr(data-word);
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: calc(100% + 0.3em);
    pointer-events: none;
    background-image: linear-gradient(112deg, #1e84b9, #1c4e55 24%, #854f12 46%, #e5971a 65%, #86432c 82%, #c36c36);
    background-size: 220% 100%;
    background-repeat: no-repeat;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    white-space: nowrap;
    filter: drop-shadow(0 0 8px rgba(126, 188, 255, 0.16));
    opacity: 0;
}

.accent-word--digital::after {
    animation: accent-digital 9.8s ease-in-out infinite;
}

.accent-word--human::after {
    animation: accent-human 9.8s ease-in-out infinite;
}

.hero-action {
    display: flex;
    justify-content: center;
    margin-top: clamp(38px, 5vw, 58px);
}

.button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 0 15px 0 24px;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button--light {
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.button--light:hover {
    background: var(--accent);
    box-shadow: 0 20px 65px color-mix(in srgb, var(--accent) 20%, transparent);
}

.button-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: rgba(5, 7, 11, 0.08);
    font-size: 13px;
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    animation: enter-up 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

@keyframes enter-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes atmosphere-spin {
    to {
        transform: rotate(1turn);
    }
}

@keyframes atmosphere-float {
    to {
        transform: translate3d(-28px, -22px, 0) scale(1.08);
    }
}

@keyframes accent-digital {
    0%,
    8%,
    100% {
        opacity: 0;
        background-position: 0% 50%;
    }
    14% {
        opacity: 1;
        background-position: 0% 50%;
    }
    27% {
        opacity: 1;
        background-position: 95% 50%;
    }
    34% {
        opacity: 0;
        background-position: 120% 50%;
    }
}

@keyframes accent-human {
    0%,
    31%,
    100% {
        opacity: 0;
        background-position: 0% 50%;
    }
    38% {
        opacity: 1;
        background-position: 0% 50%;
    }
    51% {
        opacity: 1;
        background-position: 95% 50%;
    }
    58% {
        opacity: 0;
        background-position: 120% 50%;
    }
}

@media (max-width: 760px) {
    :root {
        --page: 22px;
    }

    .site-header {
        min-height: 72px;
        padding-inline: 20px;
    }

    .brand {
        width: 152px;
    }

    .brand img {
        height: 48px;
    }

    .main-content {
        padding-block: 64px 80px;
    }

    h1 {
        font-size: clamp(50px, 14.5vw, 76px);
        line-height: 0.94;
    }
}

@media (max-width: 420px) {
    h1 {
        font-size: clamp(46px, 13.5vw, 58px);
    }
}

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

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
