@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
    --background: #06101d;
    --surface: rgba(13, 29, 48, 0.78);
    --surface-border: rgba(148, 196, 255, 0.16);
    --text: #f6f9ff;
    --muted: #9eafc5;
    --blue: #4da3ff;
    --cyan: #4ee5dc;
    --green: #63e6a6;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 20%, rgba(31, 106, 194, 0.18), transparent 28rem),
        radial-gradient(circle at 85% 70%, rgba(42, 196, 184, 0.12), transparent 30rem),
        var(--background);
    font-family: "DM Sans", sans-serif;
    display: flex;
    flex-direction: column;
}

button,
a {
    font: inherit;
}

.page-glow {
    position: fixed;
    top: var(--mouse-y, 50%);
    left: var(--mouse-x, 50%);
    width: 28rem;
    height: 28rem;
    border-radius: 50%;
    background: rgba(77, 163, 255, 0.07);
    filter: blur(20px);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: top 0.15s ease-out, left 0.15s ease-out;
}

.grid {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(122, 176, 232, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 176, 232, 0.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.site-header,
.hero,
footer {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.brand strong {
    color: #8fc5ff;
    font-weight: 700;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(118, 185, 255, 0.25);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(77, 163, 255, 0.2), rgba(78, 229, 220, 0.08));
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 8px 30px rgba(0, 0, 0, 0.2);
}

.brand-mark svg {
    width: 25px;
    fill: none;
    stroke: #91c9ff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.brand-mark .brand-mark-line {
    stroke: var(--cyan);
    stroke-width: 2;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(99, 230, 166, 0.16);
    border-radius: 999px;
    color: #b5c3d4;
    background: rgba(14, 34, 50, 0.58);
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(99, 230, 166, 0.1), 0 0 14px rgba(99, 230, 166, 0.7);
    animation: breathe 2.4s ease-in-out infinite;
}

.hero {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
    align-items: center;
    gap: clamp(48px, 8vw, 110px);
    padding: 76px 0 96px;
}

.hero-copy {
    animation: enter-left 0.8s ease-out both;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 24px;
    padding: 8px 12px;
    border: 1px solid rgba(77, 163, 255, 0.18);
    border-radius: 999px;
    color: #a7cfff;
    background: rgba(77, 163, 255, 0.07);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eyebrow span {
    color: var(--cyan);
}

h1 {
    max-width: 720px;
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(45px, 6vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

h1 span,
h1 strong {
    display: block;
}

h1 span {
    color: #f5f8fd;
    font-weight: 600;
}

h1 strong {
    margin-top: 8px;
    color: transparent;
    background: linear-gradient(100deg, #70b4ff 5%, #79e6de 90%);
    background-clip: text;
    -webkit-background-clip: text;
    font-weight: 800;
}

.hero-copy > p {
    max-width: 590px;
    margin: 28px 0 0;
    color: var(--muted);
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.75;
}

.actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 38px;
}

.primary-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 0 22px;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    color: #03111e;
    background: linear-gradient(110deg, #75b9ff, #68e1d5);
    box-shadow: 0 14px 38px rgba(50, 151, 216, 0.24), inset 0 1px rgba(255, 255, 255, 0.55);
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.5), transparent 75%);
    content: "";
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(50, 151, 216, 0.34), inset 0 1px rgba(255, 255, 255, 0.55);
}

.primary-button:hover::before {
    transform: translateX(120%);
}

.primary-button:active {
    transform: translateY(0) scale(0.98);
}

.primary-button:focus-visible {
    outline: 3px solid rgba(117, 185, 255, 0.4);
    outline-offset: 4px;
}

.primary-button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transition: transform 0.2s ease;
}

.primary-button:hover svg {
    transform: translateX(3px);
}

.secure-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #879bb1;
    font-size: 13px;
    font-weight: 600;
}

.secure-note svg {
    width: 19px;
    fill: none;
    stroke: var(--green);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.gateway-card {
    position: relative;
    min-height: 520px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(20, 43, 68, 0.86), rgba(8, 22, 37, 0.78));
    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.34),
        inset 0 1px rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    animation: enter-right 0.9s 0.08s ease-out both, float 7s 1.2s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: transform 0.2s ease-out;
}

.gateway-card::before {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 78% 5%, rgba(82, 174, 255, 0.16), transparent 42%);
    content: "";
    pointer-events: none;
}

.card-shine {
    position: absolute;
    top: var(--shine-y, 0);
    left: var(--shine-x, 50%);
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(100, 201, 255, 0.09);
    filter: blur(30px);
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.card-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.card-label {
    color: #7890aa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.card-header h2 {
    margin: 7px 0 0;
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    letter-spacing: -0.03em;
}

.card-header h2::before {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 13px rgba(99, 230, 166, 0.65);
    content: "";
    vertical-align: 3px;
}

.signal {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
    margin-top: 5px;
}

.signal span {
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(to top, var(--blue), var(--cyan));
}

.signal span:nth-child(1) { height: 7px; }
.signal span:nth-child(2) { height: 12px; }
.signal span:nth-child(3) { height: 17px; }

.visual {
    position: relative;
    display: grid;
    height: 310px;
    place-items: center;
}

.visual::after {
    position: absolute;
    width: 180px;
    height: 34px;
    bottom: 22px;
    border-radius: 50%;
    background: rgba(41, 161, 221, 0.12);
    filter: blur(16px);
    content: "";
}

.cloud-core {
    position: relative;
    z-index: 2;
    display: grid;
    width: 126px;
    height: 126px;
    place-items: center;
    border: 1px solid rgba(126, 199, 255, 0.22);
    border-radius: 36px;
    background: linear-gradient(145deg, rgba(63, 149, 223, 0.25), rgba(53, 219, 203, 0.1));
    box-shadow:
        0 26px 55px rgba(1, 10, 19, 0.45),
        0 0 60px rgba(67, 180, 223, 0.13),
        inset 0 1px rgba(255, 255, 255, 0.14);
    transform: rotate(-4deg);
}

.cloud-core svg {
    width: 72px;
    fill: none;
    stroke: #8fcaff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transform: rotate(4deg);
}

.cloud-core .cloud-arrow {
    stroke: var(--cyan);
    stroke-width: 2.4;
}

.orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(119, 190, 250, 0.13);
    border-radius: 50%;
}

.orbit-one {
    width: 210px;
    height: 210px;
    animation: spin 12s linear infinite;
}

.orbit-two {
    width: 284px;
    height: 284px;
    border-style: dashed;
    animation: spin 22s linear reverse infinite;
}

.orbit span {
    position: absolute;
    top: 50%;
    left: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 12px var(--blue);
}

.orbit-two span {
    top: 13%;
    right: 38px;
    left: auto;
    width: 6px;
    height: 6px;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.metrics {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
    border: 1px solid rgba(143, 197, 255, 0.1);
    border-radius: 15px;
    background: rgba(4, 15, 27, 0.42);
}

.metrics div {
    display: flex;
    min-width: 0;
    padding: 15px 10px;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.metrics div + div {
    border-left: 1px solid rgba(143, 197, 255, 0.09);
}

.metrics span {
    color: #667e98;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.metrics strong {
    color: #cfdef0;
    font-size: 13px;
    font-weight: 600;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 0 28px;
    color: #60768e;
    font-size: 12px;
}

.footer-separator {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #456079;
}

.toast {
    position: fixed;
    z-index: 10;
    bottom: 24px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border: 1px solid rgba(99, 230, 166, 0.2);
    border-radius: 13px;
    color: #d8f7e8;
    background: rgba(10, 30, 36, 0.92);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    backdrop-filter: blur(14px);
    font-size: 14px;
    font-weight: 600;
}

.toast span {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    color: #09261a;
    background: var(--green);
    font-size: 12px;
}

.toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@keyframes enter-left {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes enter-right {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes breathe {
    50% { opacity: 0.55; box-shadow: 0 0 0 6px rgba(99, 230, 166, 0.04), 0 0 10px rgba(99, 230, 166, 0.4); }
}

@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

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

    .hero-copy {
        text-align: center;
    }

    .eyebrow,
    .hero-copy > p {
        margin-inline: auto;
    }

    .actions {
        justify-content: center;
    }

    .gateway-card {
        width: min(100%, 500px);
        margin-inline: auto;
    }
}

@media (max-width: 560px) {
    .site-header,
    .hero,
    footer {
        width: min(100% - 28px, 1160px);
    }

    .site-header {
        padding-top: 20px;
    }

    .brand {
        font-size: 14px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .status {
        padding: 8px 10px;
        font-size: 0;
    }

    .status::after {
        content: "Online";
        font-size: 11px;
    }

    .hero {
        gap: 54px;
        padding: 40px 0 70px;
    }

    h1 {
        font-size: clamp(40px, 13vw, 57px);
    }

    .hero-copy > p {
        font-size: 16px;
    }

    .actions {
        flex-direction: column;
    }

    .primary-button {
        width: 100%;
        max-width: 320px;
    }

    .gateway-card {
        min-height: 465px;
        padding: 22px;
        border-radius: 22px;
    }

    .visual {
        height: 270px;
    }

    .orbit-two {
        width: 245px;
        height: 245px;
    }

    .orbit-one {
        width: 185px;
        height: 185px;
    }

    .cloud-core {
        width: 108px;
        height: 108px;
        border-radius: 30px;
    }

    footer {
        flex-wrap: wrap;
    }
}

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

    .page-glow {
        display: none;
    }
}
