:root {
    --text: #192033;
    --muted: #65708a;
    --soft: rgba(255, 255, 255, 0.68);
    --softer: rgba(255, 255, 255, 0.36);
    --line: rgba(25, 32, 51, 0.1);
    --shadow: 0 24px 80px rgba(93, 114, 148, 0.24);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

body {
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.95), transparent 30%),
        radial-gradient(circle at 85% 15%, rgba(201, 222, 255, 0.85), transparent 34%),
        radial-gradient(circle at 50% 90%, rgba(255, 229, 204, 0.72), transparent 38%),
        linear-gradient(135deg, #f8fbff 0%, #eef5ff 44%, #fff6ec 100%);
}

button,
a {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.page-shell {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(1180px, calc(100vw - 48px));
    height: min(760px, calc(100vh - 48px));
    margin: 24px auto;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.38));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.page-shell::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 26px;
    pointer-events: none;
}

.ambient {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.45;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

.ambient-one {
    width: 230px;
    height: 230px;
    left: -70px;
    top: 120px;
    background: rgba(194, 214, 255, 0.56);
}

.ambient-two {
    width: 300px;
    height: 300px;
    right: -120px;
    top: 40px;
    background: rgba(255, 220, 186, 0.5);
    animation-delay: -2s;
}

.ambient-three {
    width: 180px;
    height: 180px;
    right: 18%;
    bottom: -80px;
    background: rgba(219, 255, 234, 0.48);
    animation-delay: -4s;
}

.top-nav,
.footer-note,
.hero {
    position: relative;
    z-index: 2;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(74, 97, 132, 0.14);
    font-weight: 900;
    letter-spacing: -0.08em;
}

.brand-name {
    font-weight: 800;
    letter-spacing: -0.04em;
}

.nav-actions {
    display: flex;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
}

.nav-button {
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-button:hover,
.nav-button.is-active {
    color: var(--text);
    background: #ffffff;
    transform: translateY(-1px);
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 34px 10px 20px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.22em;
    max-width: 96vw;
    margin: 0 auto;

    font-size: clamp(2.8rem, 7.2vw, 7rem);
    line-height: 0.9;
    font-weight: 950;
    letter-spacing: -0.07em;

    white-space: nowrap;
}

.hero-title span {
    display: inline-block;
    animation: titleReveal 760ms cubic-bezier(0.16, 1, 0.3, 1) both, titleBreath 4.2s ease-in-out infinite;
}

.hero-title span:nth-child(2) {
    animation-delay: 90ms, 600ms;
}

.hero-title span:nth-child(3) {
    animation-delay: 180ms, 900ms;
}

.hero-subtitle {
    width: min(660px, 92%);
    margin: 26px auto 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    line-height: 1.7;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.hero-tags span {
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--softer);
    color: #3f4b63;
    font-size: 0.9rem;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

.primary-action,
.ghost-action {
    min-width: 150px;
    padding: 13px 18px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-action {
    color: #ffffff;
    background: #192033;
    box-shadow: 0 16px 28px rgba(25, 32, 51, 0.18);
}

.ghost-action {
    color: var(--text);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
}

.primary-action:hover,
.ghost-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(25, 32, 51, 0.14);
}

.footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.is-switching .eyebrow,
.is-switching .hero-subtitle,
.is-switching .hero-tags,
.is-switching .hero-actions {
    animation: fadeUp 420ms ease both;
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.96);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

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

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(18px, -16px, 0);
    }
}

@media (max-width: 720px) {
    .page-shell {
        width: calc(100vw - 24px);
        height: calc(100vh - 24px);
        margin: 12px auto;
        padding: 18px;
        border-radius: 24px;
    }

    .top-nav {
        align-items: flex-start;
    }

    .brand-name {
        display: none;
    }

    .nav-actions {
        gap: 4px;
    }

    .nav-button {
        padding: 9px 10px;
        font-size: 0.86rem;
    }

    .hero {
        padding-top: 8px;
    }

    .hero-title {
        flex-wrap: wrap;
        white-space: normal;
        max-width: 92vw;
        font-size: clamp(3rem, 14vw, 5.4rem);
        line-height: 0.88;
        gap: 0.18em;
    }

    .hero-subtitle {
        margin-top: 18px;
        line-height: 1.55;
    }

    .hero-tags {
        margin-top: 18px;
    }

    .hero-actions {
        margin-top: 22px;
    }

    .footer-note {
        font-size: 0.78rem;
    }
}

@media (max-height: 680px) {
    .hero-tags {
        display: none;
    }

    .hero-actions {
        margin-top: 22px;
    }
}
