:root {
    --bg: #020307;
    --panel: rgba(22, 22, 24, 0.96);
    --panel-border: rgba(255, 255, 255, 0.04);
    --panel-border-accent: rgba(35, 188, 133, 0.44);
    --text: #f5f6fb;
    --muted: #7d818f;
    --pill-bg: rgba(39, 41, 49, 0.8);
    --outline: rgba(255, 255, 255, 0.08);
    --green: #1fc18b;
    --green-dark: #0f9e73;
    --blue: #5d85ff;
    --teal: #56d9a7;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Inter", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 35% 0%, rgba(255, 255, 255, 0.14), transparent 26%),
        radial-gradient(circle at 50% 18%, rgba(50, 56, 80, 0.12), transparent 36%),
        linear-gradient(180deg, #04060b 0%, #020307 58%, #010105 100%);
    color: var(--text);
}

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

.page-shell {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
}

.starfield {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 5% 10%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.2px),
        radial-gradient(circle at 14% 42%, rgba(255, 255, 255, 0.25) 0 1px, transparent 1.2px),
        radial-gradient(circle at 24% 32%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.2px),
        radial-gradient(circle at 28% 70%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.2px),
        radial-gradient(circle at 37% 16%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.2px),
        radial-gradient(circle at 42% 56%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.2px),
        radial-gradient(circle at 54% 8%, rgba(255, 255, 255, 0.32) 0 1px, transparent 1.2px),
        radial-gradient(circle at 58% 34%, rgba(255, 255, 255, 0.28) 0 1px, transparent 1.2px),
        radial-gradient(circle at 63% 74%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.2px),
        radial-gradient(circle at 72% 23%, rgba(255, 255, 255, 0.38) 0 1px, transparent 1.2px),
        radial-gradient(circle at 81% 56%, rgba(255, 255, 255, 0.24) 0 1px, transparent 1.2px),
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.34) 0 1px, transparent 1.2px),
        radial-gradient(circle at 91% 86%, rgba(255, 255, 255, 0.26) 0 1px, transparent 1.2px);
    opacity: 0.72;
    animation: drift 18s ease-in-out infinite alternate;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(110px);
    pointer-events: none;
}

.glow-left {
    top: -9rem;
    left: 10%;
    width: 20rem;
    height: 20rem;
    background: rgba(255, 215, 120, 0.09);
}

.glow-center {
    top: 3rem;
    left: 50%;
    width: 26rem;
    height: 16rem;
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(-50%);
}

.site-header {
    position: relative;
    z-index: 2;
    padding: 1.35rem 1.8rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
}

.brand-logo {
    width: 1.6rem;
    height: 1.6rem;
    object-fit: contain;
}

.brand-fallback {
    position: relative;
    width: 1.6rem;
    height: 1.6rem;
    display: inline-block;
}

.brand-fallback span {
    position: absolute;
    border-radius: 999px;
    background: #f5f6fb;
}

.brand-fallback span:nth-child(1) {
    inset: 0.05rem 0.55rem 0.9rem 0.1rem;
    transform: rotate(-12deg);
}

.brand-fallback span:nth-child(2) {
    inset: 0.7rem 0.25rem 0.45rem 0.9rem;
    background: #ef3340;
}

.brand-fallback span:nth-child(3) {
    inset: 1rem 0.9rem 0.15rem 0.25rem;
}

.brand-name {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.hero {
    position: relative;
    z-index: 2;
    width: min(100%, 86rem);
    margin: 0 auto;
    padding: 1.3rem 1.5rem 4rem;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 1.4rem;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    padding: 0.62rem 0.95rem;
    border-radius: 999px;
    background: var(--pill-bg);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: rgba(239, 242, 250, 0.86);
    font-size: 0.92rem;
    font-weight: 600;
}

.hero-pill-dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 0.6rem rgba(93, 133, 255, 0.55);
}

.hero-title {
    margin: 2.2rem 0 0;
    font-size: clamp(3.4rem, 5vw, 5.3rem);
    line-height: 0.94;
    font-weight: 800;
    letter-spacing: -0.065em;
}

.hero-title-line {
    display: block;
}

.hero-title-gradient {
    background: linear-gradient(90deg, #5f86ff 8%, #67a4ff 42%, #54dca7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    width: min(100%, 47rem);
    margin: 1.55rem 0 0;
    color: rgba(169, 174, 188, 0.76);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    width: min(100%, 47.5rem);
    margin: 3.2rem auto 0;
}

.choice-card {
    min-height: 17.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.8rem;
    border-radius: 1rem;
    background: var(--panel);
    box-shadow:
        0 0 0 1px var(--panel-border),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(12px);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.choice-card:hover {
    transform: translateY(-0.28rem);
}

.choice-card-muted:hover {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 1rem 2rem rgba(0, 0, 0, 0.22);
}

.choice-card-accent {
    box-shadow:
        0 0 0 1px var(--panel-border-accent),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.choice-card-accent:hover {
    box-shadow:
        0 0 0 1px rgba(39, 210, 153, 0.65),
        0 1rem 2rem rgba(13, 32, 24, 0.45);
}

.card-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.7rem;
}

.card-icon {
    width: 2.3rem;
    height: 2.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.78rem;
}

.card-icon svg {
    width: 1.18rem;
    height: 1.18rem;
}

.card-icon-muted {
    color: rgba(205, 208, 218, 0.7);
    background: rgba(39, 41, 49, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card-icon-accent {
    color: #27d299;
    background: rgba(22, 62, 49, 0.45);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(39, 210, 153, 0.08);
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    background: #20cc8f;
    color: #062d20;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.card-badge svg {
    width: 0.72rem;
    height: 0.72rem;
}

.card-body {
    margin-top: auto;
}

.card-body h2 {
    margin: 2rem 0 0;
    font-size: 1.28rem;
    line-height: 1.2;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.card-body p {
    max-width: 19rem;
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.65;
    font-weight: 500;
}

.cta-button {
    margin-top: 2rem;
    min-height: 3.05rem;
    border-radius: 0.72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.48rem;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.cta-button svg {
    width: 1rem;
    height: 1rem;
}

.cta-button:hover {
    transform: translateY(-0.08rem);
}

.cta-button-outline {
    color: rgba(242, 244, 250, 0.82);
    border: 1px solid var(--outline);
    background: rgba(19, 19, 21, 0.84);
}

.cta-button-outline:hover {
    border-color: rgba(255, 255, 255, 0.14);
}

.cta-button-solid {
    color: #03140f;
    background: var(--green);
}

.cta-button-solid:hover {
    background: #25cc95;
}

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

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 560ms ease, transform 560ms ease;
}

@keyframes drift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-0.5rem);
    }
}

@media (max-width: 900px) {
    .hero {
        padding-top: 0.7rem;
    }

    .hero-title {
        font-size: clamp(2.9rem, 11vw, 4.3rem);
    }

    .choice-grid {
        width: min(100%, 32rem);
        grid-template-columns: 1fr;
    }

    .choice-card {
        min-height: 15.5rem;
    }
}

@media (max-width: 560px) {
    .site-header {
        padding: 1.2rem 1rem 0.4rem;
    }

    .brand-name {
        font-size: 0.88rem;
    }

    .hero {
        padding: 1rem 1rem 3rem;
    }

    .hero-pill {
        font-size: 0.84rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .choice-grid {
        margin-top: 2.4rem;
    }

    .choice-card {
        padding: 1.35rem;
    }

    .card-body h2 {
        margin-top: 1.6rem;
    }
}

/* Mobile reveal fix */
@media (max-width: 760px) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
/* Glassmorphism polish */
.site-header {
    width: min(100% - 1.4rem, 72rem);
    margin: 1rem auto 0;
    padding: 1rem 1.2rem;
    border-radius: 1.1rem;
    background: linear-gradient(180deg, rgba(18, 22, 32, 0.42), rgba(10, 13, 21, 0.2));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 1.2rem 2.5rem rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px) saturate(135%);
}

.hero-pill {
    background: linear-gradient(180deg, rgba(31, 35, 47, 0.5), rgba(13, 16, 24, 0.22));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0.8rem 1.6rem rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(16px) saturate(135%);
}

.choice-card {
    background: linear-gradient(180deg, rgba(24, 28, 39, 0.42), rgba(10, 13, 20, 0.24));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 1.2rem 2.8rem rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(20px) saturate(140%);
}

.card-icon-muted,
.card-icon-accent {
    backdrop-filter: blur(14px) saturate(140%);
}

.card-badge {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 0.55rem 1rem rgba(14, 67, 48, 0.22);
}

.cta-button-outline {
    background: linear-gradient(180deg, rgba(23, 26, 36, 0.44), rgba(12, 14, 20, 0.24));
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 0.8rem 1.6rem rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(14px) saturate(130%);
}

.cta-button-solid {
    background: linear-gradient(180deg, rgba(46, 226, 163, 0.95), rgba(22, 182, 126, 0.78));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 0.9rem 1.8rem rgba(17, 88, 62, 0.24);
}
/* Homepage responsive final pass */
@media (max-width: 980px) {
    .hero {
        width: min(100%, 48rem) !important;
        padding: 1.15rem 1rem 3.2rem !important;
    }

    .hero-copy {
        margin-top: 1rem !important;
    }

    .hero-subtitle {
        width: min(100%, 34rem) !important;
    }

    .choice-grid {
        width: min(100%, 36rem) !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    .choice-card {
        min-height: auto !important;
    }
}

@media (max-width: 640px) {
    .site-header {
        width: calc(100% - 1rem) !important;
        margin-top: 0.75rem !important;
        padding: 0.95rem 1rem !important;
    }

    .hero {
        padding: 0.95rem 0.85rem 2.4rem !important;
    }

    .hero-title {
        font-size: clamp(2.35rem, 13vw, 3.4rem) !important;
    }

    .hero-subtitle {
        font-size: 0.92rem !important;
        line-height: 1.7 !important;
    }

    .choice-grid {
        width: 100% !important;
        max-width: none !important;
        margin-top: 2rem !important;
    }

    .choice-card {
        padding: 1.1rem !important;
        border-radius: 1rem !important;
    }

    .card-body h2 {
        margin-top: 1.2rem !important;
        font-size: 1.12rem !important;
    }

    .card-body p {
        max-width: none !important;
        font-size: 0.9rem !important;
        line-height: 1.65 !important;
    }

    .card-badge {
        font-size: 0.58rem !important;
        padding: 0.34rem 0.62rem !important;
    }

    .cta-button {
        width: 100% !important;
        min-height: 3rem !important;
        font-size: 0.82rem !important;
    }
}
