/* ============================================================
   BRYHT — exploring the universe of software
   ============================================================ */

:root {
    --bg: #03040c;
    --bg-2: #070a18;
    --ink: #eaf0ff;
    --muted: #8b93b8;
    --accent: #7c5cff; /* violet */
    --accent-2: #2ad8ff; /* cyan   */
    --accent-3: #ff5cae; /* magenta */
    --maxw: 1180px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: radial-gradient(
        120% 120% at 50% 0%,
        #0a0e22 0%,
        var(--bg) 55%,
        #000 100%
    );
    color: var(--ink);
    font-family: "Space Grotesk", system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Background layers ---------- */
#space {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    display: block;
}

.nebula {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(
            40% 50% at 18% 25%,
            rgba(124, 92, 255, 0.22),
            transparent 70%
        ),
        radial-gradient(
            35% 45% at 85% 30%,
            rgba(42, 216, 255, 0.16),
            transparent 70%
        ),
        radial-gradient(
            45% 55% at 60% 90%,
            rgba(255, 92, 174, 0.14),
            transparent 70%
        );
    filter: blur(10px);
    animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
        transform: translate3d(0, -3%, 0) scale(1.08);
    }
}

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px clamp(20px, 5vw, 60px);
    transition:
        background 0.4s var(--ease),
        backdrop-filter 0.4s var(--ease),
        padding 0.4s var(--ease);
}
.nav.scrolled {
    background: rgba(5, 7, 18, 0.6);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 14px;
    padding-bottom: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}
.brand-mark {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 60, 80, 0.85));
    animation: starpulse 3.2s ease-in-out infinite;
}
@keyframes starpulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 60, 80, 0.7));
    }
    50% {
        transform: scale(1.12);
        filter: drop-shadow(0 0 18px rgba(255, 60, 80, 1));
    }
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.brand-name {
    font-family: "Sora", sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1rem;
}
.brand-dot {
    color: var(--accent-2);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 34px);
}
.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    transition: color 0.25s var(--ease);
}
.nav-links a:hover {
    color: var(--ink);
}
.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 18px;
    border-radius: 100px;
    color: var(--ink) !important;
}
.nav-cta:hover {
    border-color: var(--accent-2);
    box-shadow: 0 0 22px rgba(42, 216, 255, 0.35);
}

/* ---------- Generic section ---------- */
.section {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: clamp(90px, 16vh, 180px) clamp(20px, 5vw, 40px);
}

.section-tag {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--accent-2);
    text-transform: uppercase;
    margin-bottom: 22px;
}
.section-title {
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5.5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 28px;
}
.section-lead {
    max-width: 640px;
    color: var(--muted);
    font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.grad {
    background: linear-gradient(
        110deg,
        var(--accent-2),
        var(--accent),
        var(--accent-3)
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 clamp(20px, 5vw, 40px);
}
.hero-inner {
    max-width: 920px;
}

.eyebrow {
    font-size: 0.85rem;
    letter-spacing: 5px;
    color: var(--accent-2);
    margin-bottom: 26px;
}
.hero-title {
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 9vw, 6.4rem);
    line-height: 1.02;
    letter-spacing: -2px;
}
.hero-title .line {
    display: block;
}

.hero-sub {
    margin: 32px auto 0;
    max-width: 620px;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}

.hero-actions {
    margin-top: 42px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition:
        transform 0.3s var(--ease),
        box-shadow 0.3s var(--ease),
        background 0.3s var(--ease);
}
.btn-primary {
    color: #04050f;
    background: linear-gradient(110deg, var(--accent-2), var(--accent));
    box-shadow: 0 8px 40px rgba(124, 92, 255, 0.45);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 54px rgba(42, 216, 255, 0.55);
}
.btn-ghost {
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
    transform: translateY(-3px);
    border-color: var(--accent-2);
    box-shadow: 0 0 30px rgba(42, 216, 255, 0.3);
}

.scroll-hint {
    position: absolute;
    bottom: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    box-shadow: 0 0 12px var(--accent-2);
    animation: fall 1.8s var(--ease) infinite;
}
@keyframes fall {
    0% {
        transform: translateY(-6px);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translateY(14px);
        opacity: 0;
    }
}

/* ---------- Big words marquee ---------- */
.bigwords {
    overflow: hidden;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.015);
}
.marquee {
    display: flex;
    white-space: nowrap;
    width: max-content;
    animation: scroll-x 26s linear infinite;
}
.marquee span {
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 4.5rem);
    letter-spacing: 4px;
    padding: 0 30px;
    color: transparent;
    -webkit-text-stroke: 1px rgba(234, 240, 255, 0.25);
}
@keyframes scroll-x {
    to {
        transform: translateX(-50%);
    }
}

/* ---------- Cards ---------- */
.cards {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.card {
    position: relative;
    padding: 34px 30px;
    border-radius: 20px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02)
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transition:
        transform 0.4s var(--ease),
        border-color 0.4s var(--ease);
}
.card:hover {
    transform: translateY(-8px);
    border-color: rgba(42, 216, 255, 0.4);
}
.card-glow {
    position: absolute;
    inset: -40% 50% 60% -40%;
    background: radial-gradient(
        circle,
        rgba(124, 92, 255, 0.5),
        transparent 60%
    );
    opacity: 0;
    transition:
        opacity 0.5s var(--ease),
        transform 0.6s var(--ease);
}
.card:hover .card-glow {
    opacity: 1;
    transform: translate(60%, 30%);
}
.card h3 {
    font-family: "Sora", sans-serif;
    font-weight: 600;
    font-size: 1.35rem;
    margin-bottom: 14px;
    position: relative;
}
.card p {
    color: var(--muted);
    font-size: 0.98rem;
    position: relative;
}

/* ---------- Stats ---------- */
.stats {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
}
.stat {
    text-align: center;
    padding: 24px 10px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}
.stat-num {
    display: block;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1;
    background: linear-gradient(110deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ---------- Contact ---------- */
.contact {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-star {
    width: clamp(160px, 28vw, 300px);
    height: clamp(160px, 28vw, 300px);
    object-fit: contain;
    margin-bottom: 50px;
    filter: drop-shadow(0 0 60px rgba(255, 50, 70, 0.65));
    animation:
        float 6s ease-in-out infinite,
        spin 30s linear infinite,
        glowpulse 4s ease-in-out infinite;
}
@keyframes glowpulse {
    0%,
    100% {
        filter: drop-shadow(0 0 40px rgba(255, 50, 70, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 80px rgba(255, 50, 70, 0.95));
    }
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-22px);
    }
}
.contact-title {
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.footer {
    text-align: center;
    padding: 50px 20px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.footer .brand-name {
    font-size: 1.1rem;
}
.footer p {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity 0.9s var(--ease),
        transform 0.9s var(--ease);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }
}
