:root {
    --bg-dark: #000000;
    --bg-mid: #000000;
    --text-light: #f5fbff;
    --accent: #f9bc60;
    --accent-dark: #d5973f;
    --card: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-mid));
    color: var(--text-light);
}

.hero {
    min-height: 100vh;
    background-image: linear-gradient(120deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.76)), url('../media/bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    pointer-events: none;
}

.hero::before {
    width: 320px;
    height: 320px;
    right: -60px;
    top: 18%;
    background: radial-gradient(circle, rgba(249, 188, 96, 0.2), rgba(249, 188, 96, 0));
    animation: driftGlow 9s ease-in-out infinite;
}

.hero::after {
    width: 380px;
    height: 380px;
    left: -120px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(112, 176, 216, 0.15), rgba(112, 176, 216, 0));
    animation: driftGlow 11s ease-in-out infinite reverse;
}

.navbar {
    width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    z-index: 3;
    animation: slideDown .55s ease both;
}

.logo img {
    width: 148px;
    max-width: 100%;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color .25s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(249, 188, 96, 0), rgba(249, 188, 96, 0.9), rgba(249, 188, 96, 0));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s ease;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.hamburger {
    display: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.hamburger:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.35);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07));
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    margin: 0;
    background: #fff;
    border-radius: 999px;
    transition: transform .3s ease, opacity .3s ease;
}

.hamburger span:nth-child(2) {
    width: 18px;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero-content {
    width: min(1100px, 92%);
    margin: auto 4% auto auto;
    padding: 2rem 0 4rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    animation: fadeUp .9s ease both;
    z-index: 2;
}

.hello {
    margin: 0;
    font-size: 1.6rem;
    color: #dbefff;
}

h1 {
    margin: 0.5rem 0 1rem;
    font-size: clamp(1.6rem, 3.8vw, 3rem);
    line-height: 1.15;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.sub {
    font-size: 1.1rem;
    max-width: 620px;
    opacity: .9;
}

.cta-row {
    margin-top: 1.6rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.btn {
    padding: 0.85rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, background .2s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn::before {
    content: "";
    position: absolute;
    top: -120%;
    left: -35%;
    width: 42%;
    height: 340%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    transform: rotate(20deg);
    transition: left .6s ease;
}

.btn:hover::before {
    left: 120%;
}

.btn.primary {
    background: var(--accent);
    color: #2b1b03;
}

.btn.primary:hover {
    background: var(--accent-dark);
}

.btn.ghost {
    border: 1px solid #fff;
    color: #fff;
}

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

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

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes driftGlow {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -18px, 0) scale(1.07); }
}

@media (max-width: 900px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
        padding: .8rem 1rem;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
    }

    .hamburger {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        right: 1rem;
        top: 4.4rem;
        flex-direction: column;
        background:
            radial-gradient(circle at 10% 0%, rgba(249, 188, 96, 0.2), transparent 40%),
            linear-gradient(140deg, rgba(6, 18, 28, 0.96), rgba(0, 0, 0, 0.94));
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-radius: 16px;
        padding: .9rem;
        width: min(260px, 90vw);
        display: none;
        box-shadow: 0 22px 34px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(8px);
        z-index: 55;
    }

    .hero-content {
        min-height: 100vh;
        padding-top: 8.5rem;
        justify-content: center;
    }

    .nav-links a {
        padding: .55rem .65rem;
        border-radius: 10px;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .nav-links.open {
        display: flex;
        animation: fadeUp .25s ease;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
