:root {
    --home-bg: #0c1218;
    --home-surface: rgba(23, 29, 37, 0.72);
    --home-border: rgba(232, 238, 245, 0.08);
    --home-text: #e8eef5;
    --home-muted: #8b97a8;
    --home-accent: #3dbea5;
    --home-accent-soft: rgba(61, 190, 165, 0.16);
    --home-sky: #152033;
    --home-font-display: "Segoe UI Semibold", "Segoe UI", "Helvetica Neue", sans-serif;
    --home-font: "Segoe UI", "Helvetica Neue", sans-serif;
}

body:has(.home) {
    font-family: var(--home-font);
    background:
        radial-gradient(900px 480px at 18% -8%, rgba(61, 190, 165, 0.18), transparent 55%),
        radial-gradient(700px 420px at 92% 8%, rgba(90, 140, 200, 0.14), transparent 50%),
        linear-gradient(180deg, #101822 0%, var(--home-bg) 48%, #0a1016 100%);
    color: var(--home-text);
}

body:has(.home) .site-header,
body:has(.home) .site-footer {
    background: transparent;
    border-bottom: 1px solid var(--home-border);
    color: var(--home-text);
}

body:has(.home) .site-footer {
    border-bottom: 0;
    border-top: 1px solid var(--home-border);
    color: var(--home-muted);
}

body:has(.home) .site-main {
    align-items: stretch;
    justify-content: flex-start;
    padding: 0;
}

body:has(.home) .content-wrapper {
    max-width: none;
    margin: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.home-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.home-top__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--home-text);
    text-decoration: none;
    font-family: var(--home-font-display);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.home-top__mark {
    width: 14px;
    height: 14px;
    border-radius: 50% 50% 50% 10%;
    background:
        radial-gradient(circle at 30% 30%, #9be7d5, var(--home-accent) 55%, #1f7f6d 100%);
    box-shadow: 0 0 0 4px var(--home-accent-soft);
}

.home-top__nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.home-top__user {
    color: var(--home-muted);
    font-size: 0.95rem;
}

.home-top__link {
    color: var(--home-text);
    text-decoration: none;
    font-size: 0.95rem;
}

.home-top__link:hover {
    color: var(--home-accent);
}

.home-top__signout {
    margin: 0;
}

.home-top__button,
.home-top__cta {
    padding: 8px 12px;
    border-radius: 999px;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.home-top__button {
    border: 1px solid var(--home-border);
    background: transparent;
    color: var(--home-muted);
}

.home-top__button:hover {
    color: var(--home-text);
    border-color: rgba(61, 190, 165, 0.4);
}

.home-top__cta {
    border: 0;
    background: var(--home-accent);
    color: #0b1210;
    font-weight: 650;
}

.home {
    position: relative;
    overflow: hidden;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: 56px 0 72px;
}

.home-sky {
    position: absolute;
    inset: 8% -4% auto;
    height: 280px;
    pointer-events: none;
}

.home-cloud {
    position: absolute;
    display: block;
    background: rgba(232, 238, 245, 0.08);
    filter: blur(0.2px);
    border-radius: 999px;
    animation: home-drift 18s ease-in-out infinite;
}

.home-cloud::before,
.home-cloud::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.home-cloud--a {
    width: 180px;
    height: 54px;
    left: 8%;
    top: 40px;
}

.home-cloud--a::before {
    width: 70px;
    height: 70px;
    left: 28px;
    top: -34px;
}

.home-cloud--a::after {
    width: 96px;
    height: 96px;
    right: 24px;
    top: -48px;
}

.home-cloud--b {
    width: 240px;
    height: 64px;
    right: 10%;
    top: 18px;
    opacity: 0.75;
    animation-duration: 22s;
    animation-delay: -4s;
}

.home-cloud--b::before {
    width: 88px;
    height: 88px;
    left: 36px;
    top: -42px;
}

.home-cloud--b::after {
    width: 110px;
    height: 110px;
    right: 30px;
    top: -54px;
}

.home-cloud--c {
    width: 140px;
    height: 42px;
    left: 42%;
    top: 110px;
    opacity: 0.55;
    animation-duration: 16s;
    animation-delay: -8s;
}

.home-cloud--c::before {
    width: 56px;
    height: 56px;
    left: 22px;
    top: -28px;
}

.home-cloud--c::after {
    width: 72px;
    height: 72px;
    right: 18px;
    top: -36px;
}

@keyframes home-drift {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(18px);
    }
}

.home-hero {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 48px 0 56px;
}

.home-hero__brand {
    margin: 0 0 18px;
    color: var(--home-accent);
    font-family: var(--home-font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 0.95;
    animation: home-rise 700ms ease both;
}

.home-hero__title {
    margin: 0 0 14px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 550;
    letter-spacing: -0.02em;
    line-height: 1.25;
    animation: home-rise 700ms ease 80ms both;
}

.home-hero__text {
    margin: 0 0 28px;
    max-width: 34rem;
    color: var(--home-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    animation: home-rise 700ms ease 140ms both;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: home-rise 700ms ease 200ms both;
}

.home-hero__primary,
.home-hero__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 650;
}

.home-hero__primary {
    background: var(--home-accent);
    color: #0b1210;
}

.home-hero__secondary {
    border: 1px solid var(--home-border);
    color: var(--home-text);
    background: var(--home-surface);
}

.home-hero__primary:hover,
.home-hero__secondary:hover {
    filter: brightness(1.06);
}

.home-strip {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--home-border);
}

.home-strip h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 650;
}

.home-strip p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.5;
    font-size: 0.95rem;
}

@keyframes home-rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 800px) {
    .home {
        width: min(100% - 32px, 1120px);
        padding: 36px 0 56px;
    }

    .home-strip {
        grid-template-columns: 1fr;
    }

    .home-top {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-cloud,
    .home-hero__brand,
    .home-hero__title,
    .home-hero__text,
    .home-hero__actions {
        animation: none;
    }
}

