@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: Manrope;
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: dark;
    --background: #080d1b;
    --text: #f4f7ff;
    --muted: #9baac4;
    --mint: #78f4dd;
    --violet: #b8a5ff;
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
    margin: 0;
    min-width: 320px;
    background: var(--background);
    color: var(--text);
    font-family: Manrope, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 34px clamp(22px, 5vw, 80px) 28px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 57% 46% at 50% 44%, rgba(25, 73, 93, .29), transparent 75%),
        radial-gradient(ellipse 42% 38% at 78% 22%, rgba(91, 66, 155, .17), transparent 80%),
        linear-gradient(145deg, #0b1224 0%, #080d1b 57%, #090d1b 100%);
}

.page::before,
.page::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    content: "";
}

.page::before {
    opacity: .28;
    background-image:
        linear-gradient(rgba(156, 189, 233, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(156, 189, 233, .09) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 66% 68% at 50% 43%, #000 8%, transparent 100%);
    mask-image: radial-gradient(ellipse 66% 68% at 50% 43%, #000 8%, transparent 100%);
}

.page::after {
    opacity: .8;
    background: radial-gradient(circle at 50% 49%, transparent 11%, rgba(4, 8, 18, .18) 72%, rgba(4, 8, 18, .48) 100%);
}

.ambient {
    position: absolute;
    z-index: -1;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(85px);
    pointer-events: none;
    animation: drift 14s ease-in-out infinite alternate;
}

.ambient--mint {
    top: 28%;
    left: -130px;
    background: rgba(54, 195, 183, .16);
}

.ambient--violet {
    right: -145px;
    bottom: 13%;
    background: rgba(143, 115, 233, .18);
    animation-delay: -7s;
}

.topbar,
.footer {
    position: relative;
    z-index: 2;
    width: min(100%, 1360px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar {
    gap: 20px;
    color: rgba(231, 239, 255, .72);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2em;
}

.topbar__brand,
.topbar__meta { white-space: nowrap; }

.topbar__mark {
    display: inline-block;
    margin-right: 8px;
    color: var(--mint);
    font-size: 18px;
    vertical-align: -2px;
    text-shadow: 0 0 19px rgba(120, 244, 221, .7);
}

.topbar__meta span {
    margin: 0 9px;
    color: rgba(161, 176, 206, .45);
}

.hero {
    position: relative;
    z-index: 1;
    width: min(100%, 850px);
    margin: auto;
    padding: 42px 0 26px;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 10px 16px;
    border: 1px solid rgba(143, 231, 221, .19);
    border-radius: 999px;
    background: rgba(43, 95, 103, .16);
    box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 12px 35px rgba(0, 0, 0, .11);
    color: #b9f8ed;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero__badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(120, 244, 221, .12), 0 0 16px var(--mint);
    animation: beacon 2.6s ease-in-out infinite;
}

h1 {
    margin: 25px 0 10px;
    color: var(--text);
    font-family: "Space Grotesk", Manrope, sans-serif;
    font-size: clamp(3.65rem, 8.4vw, 7.25rem);
    font-weight: 700;
    letter-spacing: -.072em;
    line-height: .98;
}

h1 span {
    background: linear-gradient(112deg, #9efbe9 10%, #9bd5f9 54%, #c4a9ff 94%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 28px rgba(132, 223, 228, .14));
}

.hero__intro {
    margin: 0;
    color: var(--muted);
    font-size: clamp(14px, 1.6vw, 17px);
    font-weight: 500;
    line-height: 1.65;
}

.scene {
    position: relative;
    width: min(100%, 560px);
    height: 330px;
    margin: 18px auto 0;
}

.scene__halo {
    position: absolute;
    top: 35px;
    left: 50%;
    width: 350px;
    height: 245px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(63, 180, 179, .16) 0%, rgba(113, 103, 232, .08) 47%, transparent 72%);
    filter: blur(14px);
}

.scene__orbit {
    position: absolute;
    left: 50%;
    border: 1px solid rgba(151, 201, 228, .16);
    border-radius: 50%;
    pointer-events: none;
}

.scene__orbit::after {
    position: absolute;
    top: 12%;
    left: 17%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a9efea;
    box-shadow: 0 0 16px rgba(135, 245, 225, .8);
    content: "";
}

.scene__orbit--outer {
    top: 28px;
    width: 450px;
    height: 275px;
    transform: translateX(-50%) rotate(-16deg);
    border-style: dashed;
    animation: orbit-outer 18s ease-in-out infinite alternate;
}

.scene__orbit--inner {
    top: 37px;
    width: 315px;
    height: 260px;
    transform: translateX(-50%) rotate(26deg);
    border-color: rgba(164, 157, 242, .18);
    animation: orbit-inner 14s ease-in-out infinite alternate;
}

.scene__orbit--inner::after {
    top: 72%;
    left: 90%;
    width: 5px;
    height: 5px;
    background: #c4b2ff;
    box-shadow: 0 0 14px #a98dff;
}

.scene__spark {
    position: absolute;
    color: #a6f8e8;
    text-shadow: 0 0 20px rgba(132, 246, 222, .7);
    animation: twinkle 3.2s ease-in-out infinite;
}

.scene__spark--one { top: 47px; left: 59px; font-size: 17px; }
.scene__spark--two { right: 66px; bottom: 65px; color: #c3adff; font-size: 13px; animation-delay: -1.5s; }
.scene__spark--three { top: 123px; right: 41px; color: #c9ddff; font-size: 22px; font-weight: 300; animation-delay: -.9s; }

.thought {
    position: absolute;
    z-index: 4;
    top: 52px;
    right: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 73px;
    height: 50px;
    border: 1px solid rgba(172, 237, 237, .26);
    border-radius: 19px 19px 19px 6px;
    background: rgba(32, 56, 83, .62);
    box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 18px 36px rgba(2, 11, 25, .25), 0 0 28px rgba(114, 220, 219, .09);
    backdrop-filter: blur(12px);
    animation: bubble-float 4s ease-in-out infinite;
}

.thought span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 12px rgba(120, 244, 221, .8);
    animation: thinking 1.4s ease-in-out infinite;
}

.thought span:nth-child(2) { animation-delay: .18s; }
.thought span:nth-child(3) { animation-delay: .36s; }

.agent-float {
    position: absolute;
    z-index: 3;
    top: 55px;
    left: 50%;
    width: 232px;
    height: 248px;
    margin-left: -116px;
    animation: float 4.2s ease-in-out infinite;
}

.agent { position: relative; width: 100%; height: 100%; }

.agent__antenna {
    position: absolute;
    z-index: 0;
    top: 5px;
    left: 113px;
    width: 6px;
    height: 43px;
    border-radius: 6px;
    background: linear-gradient(#c5d9ed, #7c93b5);
}

.agent__antenna::before {
    position: absolute;
    top: -12px;
    left: -8px;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(229, 255, 252, .68);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e2fff8, #7cf5dc 54%, #31b6b7);
    box-shadow: 0 0 12px rgba(112, 250, 226, .75), 0 0 34px rgba(81, 220, 207, .35);
    content: "";
    animation: beacon 2.6s ease-in-out infinite;
}

.agent__ear {
    position: absolute;
    z-index: 1;
    top: 90px;
    width: 28px;
    height: 55px;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 15px;
    background: linear-gradient(145deg, #dce6f7, #96abc9);
    box-shadow: inset 2px 2px 7px rgba(255, 255, 255, .6), 0 7px 16px rgba(3, 12, 29, .3);
}

.agent__ear--left { left: 8px; }
.agent__ear--right { right: 8px; }

.agent__ear::after {
    position: absolute;
    inset: 17px 9px;
    border-radius: 5px;
    background: #79eee0;
    box-shadow: 0 0 12px rgba(116, 249, 219, .8);
    content: "";
}

.agent__arm {
    position: absolute;
    z-index: 1;
    top: 177px;
    width: 54px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 18px;
    background: linear-gradient(155deg, #edf3ff, #9dafcb);
    box-shadow: inset 2px 2px 6px rgba(255, 255, 255, .64), 0 10px 16px rgba(5, 12, 31, .3);
}

.agent__arm--left { left: 14px; transform: rotate(-31deg); }

.agent__arm--right {
    right: 14px;
    transform-origin: 11px 14px;
    animation: wave 2.9s ease-in-out infinite;
}

.agent__body {
    position: absolute;
    z-index: 2;
    top: 161px;
    left: 56px;
    width: 120px;
    height: 79px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 43px 43px 37px 37px;
    background: linear-gradient(148deg, #f4f8ff 5%, #b9c8df 56%, #829aba 100%);
    box-shadow: inset 4px 6px 11px rgba(255, 255, 255, .72), inset -7px -8px 16px rgba(57, 80, 124, .17), 0 22px 34px rgba(3, 12, 29, .4);
}

.agent__body::before {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 69px;
    height: 1px;
    transform: translateX(-50%);
    background: rgba(84, 111, 153, .31);
    content: "";
}

.agent__core {
    position: absolute;
    top: 31px;
    left: 49px;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(225, 255, 251, .9);
    border-radius: 9px;
    background: linear-gradient(130deg, #8af8e1, #5ed9dc);
    box-shadow: 0 0 16px rgba(102, 243, 219, .55), inset 0 0 5px rgba(255, 255, 255, .8);
    transform: rotate(45deg);
    animation: core-glow 3.4s ease-in-out infinite;
}

.agent__head {
    position: absolute;
    z-index: 3;
    top: 35px;
    left: 21px;
    width: 190px;
    height: 151px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 59px 59px 54px 54px;
    background: linear-gradient(139deg, #f9fbff 5%, #d9e4f6 36%, #9db1d0 79%, #758caf 100%);
    box-shadow: inset 6px 7px 13px rgba(255, 255, 255, .76), inset -9px -10px 17px rgba(62, 81, 127, .18), 0 20px 31px rgba(0, 9, 27, .43), 0 0 37px rgba(129, 182, 218, .12);
}

.agent__head::before {
    position: absolute;
    top: 8px;
    left: 38px;
    width: 81px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .61);
    filter: blur(6px);
    content: "";
}

.agent__face {
    position: absolute;
    inset: 17px 17px 18px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .14);
    border-radius: 43px;
    background: linear-gradient(152deg, #183553 0%, #0b1935 62%, #0a142b 100%);
    box-shadow: inset 0 6px 18px rgba(0, 0, 0, .23), 0 2px 6px rgba(255, 255, 255, .24);
}

.agent__face::before {
    position: absolute;
    top: -40px;
    left: -48px;
    width: 150px;
    height: 105px;
    transform: rotate(-26deg);
    background: linear-gradient(rgba(255, 255, 255, .08), transparent);
    content: "";
}

.agent__eye {
    position: absolute;
    top: 34px;
    width: 21px;
    height: 29px;
    border-radius: 12px;
    background: linear-gradient(#a7fff1, #5beddb);
    box-shadow: 0 0 14px rgba(118, 250, 226, .85), 0 0 34px rgba(85, 234, 213, .33);
    transform-origin: center;
    animation: blink 6s infinite;
}

.agent__eye--left { left: 39px; }
.agent__eye--right { right: 39px; }

.agent__cheek {
    position: absolute;
    top: 69px;
    width: 19px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 158, 183, .65);
    filter: blur(3px);
}

.agent__cheek--left { left: 25px; }
.agent__cheek--right { right: 25px; }

.agent__smile {
    position: absolute;
    top: 75px;
    left: 50%;
    width: 27px;
    height: 13px;
    transform: translateX(-50%);
    border-bottom: 3px solid #86f4df;
    border-radius: 0 0 50% 50%;
    filter: drop-shadow(0 0 5px rgba(121, 246, 220, .55));
}

.scene__shadow {
    position: absolute;
    bottom: 11px;
    left: 50%;
    width: 175px;
    height: 24px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: rgba(1, 6, 18, .72);
    filter: blur(11px);
    animation: shadow 4.2s ease-in-out infinite;
}

.status { margin-top: 0; }

.status h2 {
    margin: 0 0 9px;
    font-size: clamp(1.65rem, 3.2vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -.052em;
    line-height: 1.2;
}

.status__loading {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 27px;
}

.status__loading span {
    width: 22px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--mint), var(--violet));
    opacity: .3;
    animation: loading 1.65s ease-in-out infinite;
}

.status__loading span:nth-child(2) { animation-delay: .2s; }
.status__loading span:nth-child(3) { animation-delay: .4s; }

.footer {
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
    color: rgba(164, 183, 212, .45);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .22em;
    white-space: nowrap;
}

.footer__line {
    width: 31px;
    height: 1px;
    background: rgba(164, 183, 212, .23);
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes shadow { 0%, 100% { opacity: .58; transform: translateX(-50%) scale(1); } 50% { opacity: .34; transform: translateX(-50%) scale(.8); } }
@keyframes blink { 0%, 43%, 47%, 77%, 81%, 100% { transform: scaleY(1); } 45%, 79% { transform: scaleY(.1); } }
@keyframes wave { 0%, 100% { transform: rotate(29deg); } 50% { transform: rotate(-22deg); } }
@keyframes beacon { 0%, 100% { opacity: 1; filter: brightness(1); } 50% { opacity: .72; filter: brightness(1.22); } }
@keyframes core-glow { 0%, 100% { box-shadow: 0 0 16px rgba(102, 243, 219, .55), inset 0 0 5px rgba(255, 255, 255, .8); } 50% { box-shadow: 0 0 28px rgba(102, 243, 219, .8), inset 0 0 8px rgba(255, 255, 255, .9); } }
@keyframes thinking { 0%, 70%, 100% { opacity: .45; transform: translateY(0); } 35% { opacity: 1; transform: translateY(-5px); } }
@keyframes bubble-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes twinkle { 0%, 100% { opacity: .45; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes loading { 0%, 100% { opacity: .3; transform: scaleX(.8); } 50% { opacity: 1; transform: scaleX(1.15); } }
@keyframes drift { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(38px, -27px, 0); } }
@keyframes orbit-outer { 0% { transform: translateX(-50%) rotate(-16deg); } 100% { transform: translateX(-50%) rotate(8deg); } }
@keyframes orbit-inner { 0% { transform: translateX(-50%) rotate(26deg); } 100% { transform: translateX(-50%) rotate(3deg); } }

@media (max-width: 640px) {
    .page { padding: 22px 18px 22px; }
    .topbar { font-size: 9px; letter-spacing: .13em; }
    .topbar__mark { margin-right: 4px; font-size: 15px; }
    .topbar__meta span { margin: 0 4px; }
    .hero { padding: 58px 0 44px; }
    .hero__badge { padding: 9px 13px; font-size: 10px; }
    h1 { margin-top: 22px; font-size: clamp(3.2rem, 13vw, 5rem); line-height: 1.02; }
    .hero__intro { max-width: 25ch; margin: 0 auto; font-size: 14px; }
    .scene { height: 288px; margin-top: 13px; }
    .scene__halo { top: 25px; width: 300px; height: 210px; }
    .scene__orbit--outer { top: 28px; width: 315px; height: 222px; }
    .scene__orbit--inner { top: 28px; width: 250px; height: 218px; }
    .scene__spark--one { top: 36px; left: 9px; }
    .scene__spark--two { right: 9px; bottom: 55px; }
    .scene__spark--three { top: 117px; right: 6px; }
    .thought { top: 42px; right: 4px; transform: scale(.84); transform-origin: right top; animation: none; }
    .agent-float { top: 35px; animation: float-small 4.2s ease-in-out infinite; }
    .scene__shadow { bottom: 13px; }
    .status h2 { margin-top: 2px; }
    .footer { gap: 11px; font-size: 8px; letter-spacing: .14em; }
    .footer__line { width: 19px; }
}

@keyframes float-small {
    0%, 100% { transform: scale(.86) translateY(0); }
    50% { transform: scale(.86) translateY(-12px); }
}

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