﻿:root {
    --color-bg1: #120520;
    --color-bg2: #05030d;
    --color1: 74, 216, 255;
    --color2: 255, 143, 78;
    --color3: 138, 95, 255;
    --color4: 64, 200, 180;
    --color5: 255, 220, 140;
    --color-interactive: 120, 140, 255;
    --circle-size: 80%;
    --blending: hard-light;
    --transition: 0.25s;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    color: #f5f5ff;
    min-height: 100vh;
    background: #010104;
}

.gradient-bg {
    width: 100vw;
    height: 100vh;
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
    z-index: -2;
}

.gradient-bg svg {
    position: absolute;
    width: 0;
    height: 0;
}

.gradients-container {
    filter: url(#goo) blur(40px);
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.g1,
.g2,
.g3,
.g4,
.g5,
.interactive {
    position: absolute;
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    mix-blend-mode: var(--blending);
    opacity: 0.9;
}

.g1 {
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%);
    transform-origin: 20% 40%;
    animation: moveVertical 30s ease infinite;
}

.g2 {
    background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%);
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 25s reverse infinite;
}

.g3 {
    background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%);
    transform-origin: calc(50% + 300px);
    animation: moveInCircle 38s linear infinite;
}

.g4 {
    background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%);
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;
}

.g5 {
    background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%);
    transform-origin: calc(50% - 700px) calc(50% + 200px);
    animation: moveInCircle 22s ease infinite;
}

.interactive {
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.65) 0, rgba(var(--color-interactive), 0) 50%);
    width: 120%;
    height: 120%;
    opacity: 0.6;
    transform: translate3d(var(--pointer-x, -50%), var(--pointer-y, -50%), 0);
    transition: transform 0.2s ease-out;
}

@keyframes moveInCircle {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
    100% { transform: rotate(360deg); }
}

@keyframes moveVertical {
    0% { transform: translateY(-35%); }
    50% { transform: translateY(35%); }
    100% { transform: translateY(-35%); }
}

@keyframes moveHorizontal {
    0% { transform: translate(-25%, -10%); }
    50% { transform: translate(25%, 10%); }
    100% { transform: translate(-25%, -10%); }
}

.landing-shell {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 96px;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a,
.ghost-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.ghost-link:hover {
    color: #ffffff;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 5vw, 3.6rem);
    margin: 0 0 16px;
    line-height: 1.1;
}

.lead {
    font-size: 1.08rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-cta {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.galaxy-btn {
    --cut: 0.25em;
    --active: 0;
    border: none;
    border-radius: 999px;
    padding: 1rem 1.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    color: #120024;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.9), transparent 50%),
        linear-gradient(120deg, #ffbf81, #ff62d4, #5f8dff);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.galaxy-btn .spark,
.galaxy-btn .backdrop,
.galaxy-btn .galaxy,
.galaxy-btn .star {
    pointer-events: none;
}

.galaxy-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 45px rgba(255, 121, 198, 0.4);
}

.spark {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
    mask: linear-gradient(white, transparent 65%);
    animation: flipSpark 5s infinite steps(2, end);
}

@keyframes flipSpark {
    to { rotate: 360deg; }
}

.backdrop {
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background: rgba(255, 255, 255, 0.12);
}

.galaxy {
    position: absolute;
    inset: 0;
    display: block;
    opacity: 0.9;
}

.galaxy__ring {
    position: absolute;
    inset: -60%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    animation: orbit 9s linear infinite;
}

.galaxy__container {
    position: absolute;
    inset: 0;
}

.star {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    top: 50%;
    left: 50%;
    transform-origin: -20px;
    animation: twinkle 6s linear infinite;
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.5); }
}

.ghost-link {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.electric-card {
    position: relative;
    width: min(360px, 90vw);
    padding: 2px;
    border-radius: 32px;
    background: linear-gradient(-30deg, rgba(221,132,72,0.5), transparent 30%, rgba(221,132,72,0.5));
}

.card-core {
    position: relative;
    border-radius: 32px;
    padding: 32px;
    background: rgba(4, 5, 24, 0.8);
    border: 1px solid rgba(221,132,72,0.4);
}

.card-glow {
    position: absolute;
    inset: 0;
    border-radius: 32px;
    pointer-events: none;
}

.glow-layer-1 {
    border: 2px solid rgba(221, 132, 72, 0.4);
    filter: blur(2px);
}

.glow-layer-2 {
    border: 2px solid rgba(221, 132, 72, 0.8);
    filter: blur(6px);
}

.scrollbar-glass {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 14px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.card-description {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.mini-cta {
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mini-cta:hover {
    background: rgba(255,255,255,0.2);
}

.features {
    margin-top: 96px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0;
}

.features-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 24px;
    border-radius: 24px;
    background: rgba(3, 3, 18, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(79, 209, 197, 0.2);
}

.level-section {
    margin-top: 96px;
}

.level-card {
    border-radius: 32px;
    padding: 40px;
    background: rgba(3, 4, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.level-content {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.level-copy {
    flex: 2;
    min-width: 260px;
}

.level-copy ul {
    padding-left: 18px;
    color: rgba(255,255,255,0.8);
}

.timeline {
    position: relative;
    display: grid;
    gap: 24px;
    padding-left: 26px;
    margin-top: 28px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, #ffbf81, transparent);
    transition: height 0.8s ease;
}

.timeline.is-visible::before {
    height: 100%;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -2px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffbf81;
    box-shadow: 0 0 0 6px rgba(255, 191, 129, 0.2);
}

.timeline-card {
    background: rgba(7, 9, 32, 0.9);
    border-radius: 20px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.timeline-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(255, 191, 129, 0.15);
}

.role {
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

.projects-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.project-card {
    border-radius: 24px;
    background: rgba(3, 5, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(79, 209, 197, 0.2);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.project-body {
    padding: 20px;
    display: grid;
    gap: 10px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
}

.security {
    margin-top: 96px;
}

.security-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.security-grid article {
    background: rgba(0, 0, 0, 0.45);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}

.cta-final {
    text-align: center;
    margin-top: 96px;
    padding: 64px 20px;
    border-radius: 32px;
    background: rgba(2, 4, 12, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

footer {
    margin-top: 48px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 720px) {
    .top-nav {
        flex-wrap: wrap;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }
}
