:root {
    --bg: #050816;
    --bg-soft: #0b1020;
    --text: #f8fafc;
    --muted: #9ca3af;
    --muted-strong: #cbd5e1;

    --border: rgba(255, 255, 255, 0.14);
    --border-strong: rgba(255, 255, 255, 0.24);

    --card-bg: rgba(15, 23, 42, 0.64);
    --card-bg-hover: rgba(15, 23, 42, 0.82);

    --blue: #38bdf8;
    --cyan: #22d3ee;
    --purple: #8b5cf6;
    --green: #34d399;

    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: var(--bg);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: inherit;
}

.page-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.16), transparent 36%),
        radial-gradient(circle at bottom right, rgba(139, 92, 246, 0.16), transparent 38%),
        linear-gradient(135deg, #050816 0%, #0b1020 48%, #020617 100%);
}

.gradient {
    position: absolute;
    border-radius: 999px;
    filter: blur(90px);
    opacity: 0.34;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
}

.gradient-one {
    width: 460px;
    height: 460px;
    top: -120px;
    left: -120px;
    background: var(--blue);
    animation-name: drift-one;
    animation-duration: 18s;
}

.gradient-two {
    width: 420px;
    height: 420px;
    right: -140px;
    bottom: -120px;
    background: var(--purple);
    animation-name: drift-two;
    animation-duration: 20s;
}

.gradient-three {
    width: 320px;
    height: 320px;
    top: 42%;
    left: 52%;
    background: var(--cyan);
    opacity: 0.18;
    animation-name: drift-three;
    animation-duration: 24s;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.13;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 72%);
}

.shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    flex: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 32px 0 48px;
}

.topbar {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);

    width: min(1120px, calc(100% - 40px));

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-symbol {
    width: 38px;
    height: 38px;
    border-radius: 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    color: #020617;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.24);
}

.brand-name {
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted-strong);
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(18px);

    color: var(--muted-strong);
    font-size: 0.86rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.9);
}

.hero {
    max-width: 850px;
    margin: 104px auto 44px;
    text-align: center;
}

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

.hero h1 {
    margin: 0;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
    line-height: 0.96;
    letter-spacing: -0.075em;
}

.hero-text {
    max-width: 650px;
    margin: 26px auto 0;

    color: var(--muted);
    font-size: clamp(1.02rem, 2vw, 1.22rem);
    line-height: 1.65;
}

.cards {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.app-card {
    position: relative;
    overflow: hidden;
    min-height: 330px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 30px;
    border-radius: 30px;
    border: 1px solid var(--border);

    text-decoration: none;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        var(--card-bg);

    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);

    transform-style: preserve-3d;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.app-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 180ms ease;
    pointer-events: none;
}

.freeza-card::before {
    background:
        radial-gradient(circle at 20% 10%, rgba(56, 189, 248, 0.25), transparent 36%),
        radial-gradient(circle at 90% 90%, rgba(34, 211, 238, 0.16), transparent 42%);
}

.karicare-card::before {
    background:
        radial-gradient(circle at 20% 10%, rgba(52, 211, 153, 0.22), transparent 36%),
        radial-gradient(circle at 90% 90%, rgba(139, 92, 246, 0.18), transparent 42%);
}

.app-card:hover {
    border-color: var(--border-strong);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
        var(--card-bg-hover);
    box-shadow:
        0 32px 100px rgba(0, 0, 0, 0.58),
        0 0 40px rgba(56, 189, 248, 0.12);
}

.app-card:hover::before {
    opacity: 1;
}

.card-topline,
.card-body,
.card-footer {
    position: relative;
    z-index: 1;
}

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

.icon-shell {
    width: 58px;
    height: 58px;
    border-radius: 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.icon {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.freeza-card .icon-shell {
    color: var(--blue);
}

.karicare-card .icon-shell {
    color: var(--green);
}

.card-label {
    padding: 8px 12px;
    border-radius: 999px;

    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-body {
    margin-top: 54px;
}

.card-body h2 {
    margin: 0 0 14px;
    font-size: 2.1rem;
    letter-spacing: -0.045em;
}

.card-body p {
    margin: 0;
    max-width: 360px;
    color: var(--muted);
    line-height: 1.65;
    font-size: 1.02rem;
}

.card-footer {
    margin-top: 42px;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--text);
    font-weight: 750;
}

.arrow {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;

    transition: transform 180ms ease;
}

.app-card:hover .arrow {
    transform: translateX(5px);
}

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 20px 30px;

    color: rgba(203, 213, 225, 0.62);
    font-size: 0.9rem;
}

.footer-separator {
    color: rgba(203, 213, 225, 0.34);
}

@keyframes drift-one {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(160px, 110px, 0);
    }
}

@keyframes drift-two {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-140px, -90px, 0);
    }
}

@keyframes drift-three {
    from {
        transform: translate3d(-80px, 0, 0);
    }

    to {
        transform: translate3d(80px, -70px, 0);
    }
}

@media (max-width: 780px) {
    .shell {
        width: min(100% - 28px, 560px);
        padding-top: 112px;
    }

    .topbar {
        top: 20px;
        width: min(100% - 28px, 560px);
    }

    .brand-name {
        font-size: 0.82rem;
        letter-spacing: 0.13em;
    }

    .status-pill {
        display: none;
    }

    .hero {
        margin: 42px auto 34px;
        text-align: left;
    }

    .hero h1 {
        font-size: clamp(2.55rem, 12vw, 4.2rem);
    }

    .hero-text {
        margin-left: 0;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .app-card {
        min-height: 280px;
        border-radius: 26px;
        padding: 24px;
    }

    .card-body {
        margin-top: 38px;
    }

    .footer {
        flex-wrap: wrap;
        padding-bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}