:root {
    --bg: #070a10;
    --bg-soft: #0b1018;
    --panel: rgba(13, 18, 28, 0.72);
    --panel-strong: rgba(11, 16, 24, 0.92);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #f5f7fb;
    --muted: #8d98aa;
    --muted-strong: #b2bac8;
    --accent: #2a72ff;
    --accent-light: #64a2ff;
    --success: #52d38d;
    --radius-lg: 28px;
    --radius-md: 18px;
    --container: 1240px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::selection {
    color: #fff;
    background: var(--accent);
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

svg,
img {
    display: block;
}

.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 30%, rgba(42, 114, 255, 0.09), transparent 28%),
        radial-gradient(circle at 10% 80%, rgba(42, 114, 255, 0.05), transparent 26%),
        linear-gradient(180deg, #080b11 0%, #06090e 100%);
}

.page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 86%);
}

.page__noise {
    position: absolute;
    inset: 0;
    z-index: 10;
    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='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.page__glow,
.page__cursor-glow {
    position: absolute;
    z-index: -2;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.page__glow--one {
    top: -260px;
    right: -160px;
    background: rgba(42, 114, 255, 0.18);
}

.page__glow--two {
    bottom: -330px;
    left: -260px;
    background: rgba(42, 114, 255, 0.09);
}

.page__cursor-glow {
    top: -240px;
    left: -240px;
    width: 480px;
    height: 480px;
    opacity: 0;
    background: rgba(64, 137, 255, 0.09);
    transition: opacity 0.35s ease;
    will-change: transform;
}

.page.is-pointer-active .page__cursor-glow {
    opacity: 1;
}

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

.header {
    position: relative;
    z-index: 2;
    padding: 30px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.brand__logo-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand__logo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 24px rgba(42, 114, 255, 0.12);
    pointer-events: none;
}

.brand__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.header__status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    color: var(--muted-strong);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.header__status-dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 14px rgba(82, 211, 141, 0.55);
}

.header__status-dot::before {
    content: "";
    position: absolute;
    inset: -5px;
    border: 1px solid rgba(82, 211, 141, 0.42);
    border-radius: 50%;
    animation: status-pulse 2s ease-out infinite;
}

.main {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    align-items: center;
    padding: 58px 0 82px;
}

.main__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 72px;
}

.hero {
    flex: 1 1 630px;
    max-width: 680px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 27px;
    color: var(--muted-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero__eyebrow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 24px;
    color: #fff;
    border: 1px solid rgba(42, 114, 255, 0.4);
    border-radius: 8px;
    background: rgba(42, 114, 255, 0.12);
    font-size: 9px;
    letter-spacing: 0.08em;
}

.hero__title {
    margin: 0;
    font-size: clamp(52px, 6vw, 88px);
    font-weight: 680;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero__title span {
    color: transparent;
    background: linear-gradient(96deg, #4f8cff 4%, #99beff 52%, #4f8cff 96%);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero__lead {
    max-width: 615px;
    margin: 30px 0 0;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: -0.01em;
}

.hero__notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 620px;
    margin-top: 29px;
    padding: 17px 18px;
    border: 1px solid rgba(42, 114, 255, 0.17);
    border-radius: var(--radius-md);
    background: linear-gradient(120deg, rgba(42, 114, 255, 0.075), rgba(255, 255, 255, 0.018));
}

.hero__notice-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--accent-light);
    border: 1px solid rgba(42, 114, 255, 0.22);
    border-radius: 11px;
    background: rgba(42, 114, 255, 0.08);
}

.hero__notice-icon svg {
    width: 18px;
    height: 18px;
}

.hero__notice-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 1px;
}

.hero__notice-content strong {
    font-size: 13px;
    font-weight: 700;
}

.hero__notice-content span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 21px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.button::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -30%;
    width: 40%;
    height: 320%;
    opacity: 0;
    transform: rotate(22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transition: left 0.5s ease, opacity 0.25s ease;
}

.button:hover::before {
    left: 110%;
    opacity: 1;
}

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

.button:active {
    transform: translateY(0);
}

.button:focus-visible {
    outline: 2px solid var(--accent-light);
    outline-offset: 3px;
}

.button--primary {
    gap: 11px;
    color: #fff;
    background: linear-gradient(135deg, #2f78ff, #1f5fe1);
    box-shadow: 0 14px 34px rgba(42, 114, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button--primary:hover {
    box-shadow: 0 18px 42px rgba(42, 114, 255, 0.29), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.button--primary svg {
    width: 17px;
    height: 17px;
}

.button--ghost {
    color: var(--muted-strong);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.button--ghost:hover {
    color: #fff;
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
}

.terminal {
    position: relative;
    flex: 0 1 450px;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(155deg, rgba(17, 23, 34, 0.84), rgba(7, 11, 17, 0.94));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
}

.terminal::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 38%, rgba(42, 114, 255, 0.1), transparent 34%);
}

.terminal::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -70%;
    z-index: 0;
    width: 80%;
    height: 180%;
    pointer-events: none;
    transform: rotate(17deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.035), transparent);
    animation: terminal-sheen 8s ease-in-out infinite;
}

.terminal__topbar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.016);
}

.terminal__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.terminal__label {
    flex: 1;
    color: #9ca7b7;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terminal__secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7b8799;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 9px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.terminal__secure svg {
    width: 12px;
    height: 12px;
}

.terminal__body {
    position: relative;
    z-index: 1;
    padding: 38px 28px 28px;
}

.terminal__orb {
    position: relative;
    width: 154px;
    height: 154px;
    margin: 2px auto 35px;
}

.terminal__orb::before,
.terminal__orb::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.terminal__orb::before {
    inset: 18px;
    border: 1px solid rgba(100, 162, 255, 0.13);
    box-shadow: 0 0 45px rgba(42, 114, 255, 0.1);
}

.terminal__orb::after {
    inset: 35px;
    background: radial-gradient(circle at 34% 27%, #77adff 0 4%, #2d79ff 32%, #163b86 64%, #071121 75%);
    box-shadow: 0 0 38px rgba(42, 114, 255, 0.3), inset -12px -15px 30px rgba(0, 0, 0, 0.28);
    animation: core-breathe 4.5s ease-in-out infinite;
}

.terminal__orbit {
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(100, 162, 255, 0.18);
    border-radius: 50%;
    transform: rotateX(67deg) rotateZ(-15deg);
}

.terminal__orbit::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -3px;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: #72a8ff;
    box-shadow: 0 0 13px rgba(114, 168, 255, 0.8);
}

.terminal__orbit--one {
    animation: orbit-one 6s linear infinite;
}

.terminal__orbit--two {
    inset: 23px;
    opacity: 0.6;
    transform: rotateY(68deg) rotateZ(28deg);
    animation: orbit-two 8s linear infinite reverse;
}

.terminal__core {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #cfe1ff;
    box-shadow: 0 0 14px rgba(207, 225, 255, 0.92);
}

.terminal__content {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.terminal__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 10px;
}

.terminal__row:last-child {
    border-bottom: 0;
}

.terminal__key {
    color: #667286;
}

.terminal__value {
    max-width: 60%;
    overflow: hidden;
    color: #aeb8c7;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.terminal__value--accent {
    color: var(--accent-light);
}

.terminal__value--online {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #8ce3b3;
}

.terminal__value--online i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 10px rgba(82, 211, 141, 0.7);
}

.terminal__command {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-top: 23px;
    padding: 13px 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.16);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 10px;
}

.terminal__prompt {
    color: var(--accent-light);
}

.terminal__command-text {
    min-width: 0;
    overflow: hidden;
    color: #7f8a9b;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.terminal__caret {
    flex: 0 0 auto;
    width: 6px;
    height: 13px;
    background: rgba(100, 162, 255, 0.74);
    animation: caret 1s steps(1) infinite;
}

.footer {
    position: relative;
    z-index: 1;
    padding: 24px 0 28px;
    color: #667184;
}

.footer__inner {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 11px;
    line-height: 1.5;
}

.footer__divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #3f4856;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes status-pulse {
    0% {
        opacity: 0.75;
        transform: scale(0.7);
    }
    80%,
    100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

@keyframes terminal-sheen {
    0%, 15% {
        transform: translateX(0) rotate(17deg);
    }
    42%, 100% {
        transform: translateX(320%) rotate(17deg);
    }
}

@keyframes core-breathe {
    0%,
    100% {
        transform: scale(0.96);
        filter: brightness(0.95);
    }
    50% {
        transform: scale(1.04);
        filter: brightness(1.1);
    }
}

@keyframes orbit-one {
    from {
        transform: rotateX(67deg) rotateZ(-15deg) rotate(0deg);
    }
    to {
        transform: rotateX(67deg) rotateZ(-15deg) rotate(360deg);
    }
}

@keyframes orbit-two {
    from {
        transform: rotateY(68deg) rotateZ(28deg) rotate(0deg);
    }
    to {
        transform: rotateY(68deg) rotateZ(28deg) rotate(360deg);
    }
}

@keyframes caret {
    0%, 48% {
        opacity: 1;
    }
    49%, 100% {
        opacity: 0;
    }
}

@media (max-width: 1040px) {
    .main {
        align-items: flex-start;
        padding-top: 44px;
    }

    .main__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 52px;
    }

    .hero {
        flex-basis: auto;
        max-width: 760px;
    }

    .terminal {
        flex-basis: auto;
        max-width: 620px;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .header {
        padding: 20px 0;
    }

    .brand__logo-wrap {
        width: 48px;
        height: 48px;
        border-radius: 13px;
    }

    .brand__logo {
        width: 40px;
        height: 40px;
    }

    .header__status {
        padding: 9px 11px;
        font-size: 9px;
    }

    .main {
        padding: 38px 0 58px;
    }

    .main__inner {
        gap: 42px;
    }

    .hero__eyebrow {
        margin-bottom: 21px;
        font-size: 10px;
    }

    .hero__title {
        font-size: clamp(43px, 13vw, 65px);
        line-height: 1.01;
    }

    .hero__lead {
        margin-top: 23px;
        font-size: 15px;
        line-height: 1.68;
    }

    .hero__notice {
        margin-top: 23px;
        padding: 15px;
    }

    .hero__notice-icon {
        width: 34px;
        height: 34px;
    }

    .hero__actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .terminal {
        border-radius: 22px;
    }

    .terminal__body {
        padding: 29px 18px 20px;
    }

    .terminal__orb {
        width: 132px;
        height: 132px;
        margin-bottom: 28px;
    }

    .terminal__row {
        min-height: 43px;
        font-size: 9px;
    }

    .footer__inner {
        flex-wrap: wrap;
    }
}

@media (max-width: 420px) {
    .header__status span:last-child {
        display: none;
    }

    .header__status {
        width: 34px;
        height: 34px;
        justify-content: center;
        padding: 0;
    }

    .hero__notice-content span {
        font-size: 12px;
    }

    .terminal__topbar {
        padding: 0 14px;
    }

    .terminal__secure {
        display: none;
    }

    .footer__divider,
    .footer__inner > span:last-child {
        display: none;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }

    .page__cursor-glow {
        display: none;
    }
}
