:root {
    --bg: #030611;
    --fg: #f2f2f2;
    --muted: #9fa3ad;
    --accent: #c1ff00;
    --accent-2: #c1ff00;
    --border: rgba(193, 255, 0, 0.2);
    --card: rgba(10, 16, 39, 0.64);
    --shadow: 0 20px 60px rgba(4, 9, 30, 0.55);
    --brand-primary: #c1ff00;
    --px: 0;
    --py: 0;
}

* { box-sizing: border-box; }
html, body {
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
}
body {
    margin: 0;
    font-family: "JetBrains Mono", monospace;
    background: radial-gradient(circle at 50% 120%, #10192e 0%, #060a14 36%, #02040a 70%, #000 100%);
    color: var(--fg);
    min-height: 100vh;
}

.space-noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.32;
    background-image:
        radial-gradient(circle 230px at 12% 22%, rgba(115, 131, 165, 0.24) 0%, transparent 74%),
        radial-gradient(circle 170px at 88% 10%, rgba(96, 116, 157, 0.2) 0%, transparent 72%),
        radial-gradient(circle 120px at 76% 72%, rgba(78, 92, 130, 0.18) 0%, transparent 70%),
        radial-gradient(circle 90px at 28% 84%, rgba(85, 104, 150, 0.15) 0%, transparent 73%);
    animation: nebulaMove 44s linear infinite alternate;
    transform: translate3d(calc(var(--px) * -12px), calc(var(--py) * -12px), 0);
    will-change: transform;
}
.stars, .stars::before, .stars::after {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(circle 3px at 18% 22%, rgba(236, 242, 255, 0.95) 40%, transparent 44%),
        radial-gradient(circle 4px at 72% 31%, rgba(216, 227, 255, 0.78) 40%, transparent 44%),
        radial-gradient(circle 2px at 45% 78%, rgba(214, 233, 255, 0.85) 40%, transparent 44%),
        radial-gradient(circle 5px at 82% 62%, rgba(231, 239, 255, 0.62) 40%, transparent 44%),
        radial-gradient(circle 2px at 35% 50%, rgba(209, 223, 255, 0.66) 40%, transparent 44%),
        radial-gradient(circle 3px at 64% 84%, rgba(200, 219, 255, 0.6) 40%, transparent 44%);
    opacity: 0.46;
    animation: drift 56s linear infinite;
}
.stars::before { transform: scale(1.25); opacity: 0.24; animation-duration: 76s; }
.stars::after { transform: scale(1.55); opacity: 0.16; animation-duration: 94s; }

.planet {
    position: fixed;
    border-radius: 50%;
    filter: blur(0.1px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
    --fx: 0px;
    --fy: 0px;
}
.planet-a {
    width: 260px; height: 260px; right: -70px; top: 70px;
    background: radial-gradient(circle at 30% 30%, #9be5ff 0%, #5d8bff 46%, #311f74 100%);
    box-shadow: 0 0 70px rgba(92, 142, 255, 0.45);
    animation: float 8s ease-in-out infinite;
    --fx: calc(var(--px) * 18px);
    --fy: calc(var(--py) * 18px);
}
.planet-b {
    width: 170px; height: 170px; left: -30px; bottom: 66px;
    background: radial-gradient(circle at 30% 30%, #ffd37a 0%, #ff8d52 50%, #5a274a 100%);
    box-shadow: 0 0 54px rgba(255, 162, 98, 0.35);
    animation: float 10s ease-in-out infinite reverse;
    --fx: calc(var(--px) * -14px);
    --fy: calc(var(--py) * -14px);
}

.wrap { position: relative; z-index: 1; width: min(1180px, 92%); margin: 0 auto; }
.topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 22px 0;
}
.top-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.logo {
    font-family: "Syne", sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .01em;
    color: #fff;
    text-decoration: none;
}
.logo span { color: var(--brand-primary); }
.back-link {
    color: var(--fg); text-decoration: none; border: 1px solid var(--border);
    padding: 10px 16px; border-radius: 999px; font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(13, 24, 56, 0.5);
    transition: .35s ease;
}
.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 35, 91, 0.35);
    border-color: rgba(128, 243, 255, 0.4);
}

.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 24px;
    padding: 18px 0 12px;
    align-items: stretch;
}
.hero-content,
.hero-slider {
    border: 1px solid var(--border);
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(8, 16, 41, 0.72), rgba(8, 15, 35, 0.48));
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
}
.hero-content {
    padding: 38px;
    position: relative;
    overflow: hidden;
}
.hero-content::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    bottom: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(128, 243, 255, 0.2), transparent 70%);
}
.badge {
    display: inline-block; padding: 8px 14px; border-radius: 999px;
    background: rgba(193, 255, 0, 0.11); border: 1px solid rgba(193, 255, 0, 0.35);
    color: var(--accent); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
}
h1 {
    margin: 18px 0 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.04;
    font-family: "Syne", sans-serif;
}
.hero p { max-width: 760px; color: var(--muted); font-size: 1.01rem; }
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 320px;
}
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity .9s ease, transform 1.2s ease;
}
.slide.active {
    opacity: 1;
    transform: scale(1);
}
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
}
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 6, 17, 0.8), rgba(3, 6, 17, 0.2) 45%, rgba(3, 6, 17, 0.55));
}
.slide-caption {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    border: 1px solid rgba(164, 183, 255, 0.32);
    background: rgba(9, 16, 37, 0.64);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: .85rem;
    color: #d7e2ff;
    letter-spacing: .02em;
}
.slider-dots {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}
.slider-dots button {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 0;
    background: rgba(221, 230, 255, 0.35);
    cursor: pointer;
    transition: .3s;
}
.slider-dots button.active { background: var(--accent); transform: scale(1.15); }

.section-title {
    margin: 34px 0 14px;
    font-size: 1.5rem;
    letter-spacing: .02em;
    font-family: "Syne", sans-serif;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    padding: 8px 0 80px;
}
.card {
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(9px);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition: transform .5s ease, box-shadow .5s ease, border-color .4s ease, opacity .6s ease;
    position: relative;
}
.card.in {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.card::before {
    content: "";
    position: absolute;
    inset: -30% -10%;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(128, 243, 255, 0.18), transparent 45%);
    opacity: 0;
    transition: opacity .35s ease;
    pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(128, 243, 255, 0.42);
    box-shadow: 0 22px 45px rgba(8, 18, 53, 0.46);
}
.card-media { height: 170px; background: #0f1b3f; }
.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.86;
    transition: transform .55s ease, filter .55s ease;
}
.card:hover .card-media img {
    transform: scale(1.08);
    filter: saturate(1.2) brightness(1.05);
}
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-title-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #f0f5e2;
    font-family: "Syne", sans-serif;
}
.app-meta-text {
    margin: -2px 0 0;
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9db2d8;
}
.card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.card a {
    margin-top: auto; text-decoration: none; color: #071223; font-weight: 700;
    background: linear-gradient(120deg, #c1ff00, #e2ff93); border-radius: 12px;
    padding: 10px 14px; text-align: center; transition: .35s;
    font-family: "Syne", sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.card a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(128, 180, 255, 0.35);
}

.empty {
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 22px;
    color: var(--muted);
    background: rgba(11, 18, 40, 0.35);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.in {
    opacity: 1;
    transform: none;
}

@keyframes float {
    0%, 100% { transform: translate3d(var(--fx), var(--fy), 0); }
    50% { transform: translate3d(var(--fx), calc(var(--fy) - 18px), 0); }
}
@keyframes drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-30px, -36px, 0); }
}
@keyframes nebulaMove {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-24px, 18px, 0) scale(1.06); }
}

@media (max-width: 950px) {
    .hero { grid-template-columns: 1fr; }
    .hero-slider { min-height: 260px; }
}
@media (max-width: 640px) {
    .hero-content { padding: 24px; }
    .topbar { padding-top: 16px; }
    .top-actions { flex-direction: column; align-items: flex-end; }
    h1 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
}
