:root {
    --blue: #3168ad;
    --blue-dark: #23588f;
    --blue-soft: #8fbae8;
    --blue-pale: #eaf4ff;
    --text: #2c5f9e;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(43, 103, 169, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

html {
    background: #f6fbff;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::selection {
    background: rgba(49, 104, 173, 0.18);
}

.page-shell {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 50% 17%, rgba(255,255,255,1) 0 23%, rgba(255,255,255,.88) 43%, rgba(239,247,255,.72) 70%, rgba(225,240,255,.92) 100%),
        linear-gradient(145deg, #ffffff 0%, #f7fbff 48%, #edf6ff 100%);
}

.page-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(49,104,173,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49,104,173,.018) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.4), transparent 75%);
}

#networkCanvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: .58;
}

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

.ambient-one {
    width: 520px;
    height: 520px;
    left: -250px;
    bottom: -170px;
    background: rgba(126, 186, 242, .18);
    animation: breathe 9s ease-in-out infinite alternate;
}

.ambient-two {
    width: 460px;
    height: 460px;
    right: -190px;
    top: 110px;
    background: rgba(163, 205, 245, .14);
    animation: breathe 12s ease-in-out 1s infinite alternate-reverse;
}

.corner {
    position: absolute;
    width: 270px;
    height: 210px;
    border: 1px solid rgba(70, 139, 210, .28);
    pointer-events: none;
}

.corner::after {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(70, 139, 210, .09);
    border-radius: inherit;
}

.corner-top-left {
    top: -96px;
    left: -68px;
    border-radius: 0 0 55px 0;
}

.corner-top-right {
    top: -64px;
    right: -52px;
    border-radius: 0 0 0 55px;
}

.corner-bottom-right {
    right: -125px;
    bottom: 65px;
    width: 300px;
    height: 220px;
    border-radius: 60px 0 0 60px;
    opacity: .65;
}

.hero {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: calc(100svh - 72px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 24px 210px;
    text-align: center;
}

.logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(195px, 30vh, 305px);
    margin-bottom: 22px;
}

.brand-logo {
    display: block;
    width: clamp(180px, 24vw, 286px);
    height: auto;
    filter: drop-shadow(0 16px 25px rgba(42, 102, 168, .08));
    animation: logoFloat 5.5s ease-in-out infinite;
}

.content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    margin: 0;
    color: var(--blue);
    font-size: clamp(2.35rem, 5.8vw, 5.35rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .98;
    text-shadow: 0 10px 28px rgba(41, 99, 163, .1);
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(330px, 70vw);
    margin: 30px auto 25px;
}

.divider span {
    width: 78px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, #71abe7);
}

.divider span:last-child {
    transform: scaleX(-1);
}

.divider i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4f91d7;
    box-shadow: 0 0 0 8px rgba(79,145,215,.08), 0 0 20px rgba(79,145,215,.5);
    animation: dotPulse 2.4s ease-in-out infinite;
}

.status {
    margin: 0;
    color: #2f619f;
    font-size: clamp(1.05rem, 2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: -.015em;
}

.email-card {
    display: inline-flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 36px;
    padding: 13px 25px;
    border: 1px solid rgba(74, 144, 217, .68);
    border-radius: 14px;
    background: rgba(255,255,255,.7);
    box-shadow:
        0 13px 34px rgba(51,107,171,.07),
        inset 0 1px 0 rgba(255,255,255,.9);
    color: var(--blue);
    font-size: clamp(.97rem, 1.8vw, 1.23rem);
    text-decoration: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.email-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.96);
    box-shadow:
        0 20px 45px rgba(51,107,171,.14),
        0 0 0 5px rgba(91,155,221,.07);
}

.email-card:focus-visible {
    outline: 3px solid rgba(49,104,173,.25);
    outline-offset: 5px;
}

.email-card svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.world-lines {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: -250px;
    width: min(1220px, 122vw);
    aspect-ratio: 2 / 1;
    transform: translateX(-50%);
    pointer-events: none;
    opacity: .72;
}

.world-glow {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 70%;
    height: 80%;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 50% 15%, rgba(255,255,255,.98), rgba(157,203,246,.18) 38%, rgba(63,135,209,.1) 52%, transparent 70%);
    box-shadow:
        inset 0 44px 85px rgba(83,151,220,.16),
        0 -35px 120px rgba(116,181,238,.14);
}

.orbit {
    position: absolute;
    left: 50%;
    bottom: 20%;
    width: 92%;
    height: 65%;
    border: 1px solid rgba(56,132,210,.17);
    border-radius: 50%;
    transform: translateX(-50%) rotate(-3deg);
}

.orbit-2 {
    width: 78%;
    height: 70%;
    transform: translateX(-50%) rotate(10deg);
}

.orbit-3 {
    width: 64%;
    height: 74%;
    transform: translateX(-50%) rotate(-15deg);
}

.orbit-4 {
    width: 49%;
    height: 78%;
    transform: translateX(-50%) rotate(24deg);
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 0 0 5px rgba(255,255,255,.18),
        0 0 22px rgba(68,145,220,.65);
    animation: nodeBlink 3s ease-in-out infinite;
}

.node-1 { left: 18%; bottom: 48%; }
.node-2 { left: 35%; bottom: 66%; animation-delay: .6s; }
.node-3 { left: 54%; bottom: 72%; animation-delay: 1.2s; }
.node-4 { right: 26%; bottom: 61%; animation-delay: 1.7s; }
.node-5 { right: 12%; bottom: 43%; animation-delay: 2.2s; }

footer {
    position: absolute;
    z-index: 4;
    right: 26px;
    bottom: 20px;
    color: rgba(45, 94, 150, .65);
    font-size: .76rem;
    letter-spacing: .015em;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    animation: reveal .8s cubic-bezier(.22,.7,.18,1) forwards;
}

.reveal-1 { animation-delay: .08s; }
.reveal-2 { animation-delay: .23s; }
.reveal-3 { animation-delay: .36s; }
.reveal-4 { animation-delay: .49s; }
.reveal-5 { animation-delay: .63s; }

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes dotPulse {
    0%, 100% { transform: scale(.85); opacity: .82; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes breathe {
    to { transform: scale(1.14) translate3d(15px, -10px, 0); }
}

@keyframes nodeBlink {
    0%, 100% { opacity: .35; transform: scale(.75); }
    50% { opacity: 1; transform: scale(1.2); }
}

@media (max-width: 720px) {
    .hero {
        min-height: calc(100svh - 55px);
        justify-content: flex-start;
        padding: 54px 18px 165px;
    }

    .logo-wrap {
        height: 230px;
        margin-bottom: 15px;
    }

    .brand-logo {
        width: 198px;
    }

    h1 {
        max-width: 500px;
        font-size: clamp(2.2rem, 10.5vw, 3.5rem);
        line-height: 1.04;
    }

    .divider {
        margin: 25px auto 21px;
    }

    .email-card {
        max-width: calc(100vw - 38px);
        min-height: 58px;
        margin-top: 30px;
        padding: 12px 18px;
        gap: 11px;
        border-radius: 13px;
    }

    .email-card span {
        overflow-wrap: anywhere;
    }

    .world-lines {
        bottom: -115px;
        width: 145vw;
    }

    footer {
        right: 0;
        bottom: 14px;
        left: 0;
        text-align: center;
    }

    .corner {
        opacity: .58;
    }
}

@media (max-height: 760px) and (min-width: 721px) {
    .hero {
        padding-top: 20px;
        padding-bottom: 165px;
    }

    .logo-wrap {
        height: 210px;
        margin-bottom: 8px;
    }

    .brand-logo {
        width: 205px;
    }

    h1 {
        font-size: clamp(2.5rem, 5vw, 4.5rem);
    }

    .divider {
        margin-block: 22px 18px;
    }

    .email-card {
        margin-top: 25px;
    }

    .world-lines {
        bottom: -280px;
    }
}

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