/* ===== UNITE — Neon Green Theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---------- RESET & TOKENS ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #39FF14;
    --green-dim: #1aad0e;
    --green-glow: rgba(57, 255, 20, .35);
    --green-bg: rgba(57, 255, 20, .08);
    --bg: #040a04;
    --bg-card: rgba(10, 22, 10, .85);
    --text: #e8e8e8;
    --text-muted: #9a9a9a;
    --radius: 16px;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

/* ---------- NAVBAR ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: rgba(4, 10, 4, .8);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(57, 255, 20, .12);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--green);
    box-shadow: 0 0 12px var(--green-glow);
}

.nav-logo span {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--green);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    letter-spacing: .5px;
}

.nav-links a:hover {
    color: var(--green);
}

.btn-buy {
    background: transparent;
    color: var(--green);
    border: 1.5px solid var(--green);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .85rem;
    letter-spacing: 1px;
    transition: all var(--transition);
}

.btn-buy:hover {
    background: var(--green);
    color: #000;
    box-shadow: 0 0 20px var(--green-glow);
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 48px 80px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: .7;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--bg), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-content h1 {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 16px;
    text-shadow: 0 0 40px var(--green-glow);
}

.hero-content h1 span {
    color: var(--green);
    text-shadow: 0 0 30px var(--green-glow), 0 0 60px var(--green-glow);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 480px;
    line-height: 1.7;
}

.contract-box {
    margin-top: 8px;
}

.contract-box label {
    font-size: .75rem;
    color: var(--green-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.contract-input {
    display: flex;
    align-items: center;
    background: rgba(57, 255, 20, .06);
    border: 1px solid rgba(57, 255, 20, .2);
    border-radius: 10px;
    padding: 4px;
    max-width: 480px;
}

.contract-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'Outfit', monospace;
    font-size: .82rem;
    padding: 12px 16px;
    outline: none;
    min-width: 0;
}

.contract-input button {
    background: var(--green);
    color: #000;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contract-input button:hover {
    box-shadow: 0 0 20px var(--green-glow);
    transform: scale(1.05);
}

.btn-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 28px;
    background: var(--green);
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 14px var(--green-glow);
    transition: all var(--transition);
}

.btn-x span {
    font-size: 1.1rem;
    font-weight: 800;
}

.btn-x:hover {
    box-shadow: 0 0 30px var(--green-glow), 0 0 60px rgba(57, 255, 20, .15);
    transform: translateY(-2px) scale(1.03);
}

/* ---------- SECTIONS ---------- */
section {
    padding: 100px 48px;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--green);
    text-shadow: 0 0 20px var(--green-glow);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 60px;
    font-size: 1rem;
    line-height: 1.7;
}

/* ---------- ABOUT ---------- */
.about {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 30, 10, .4) 50%, var(--bg) 100%);
}

/* ---------- LORE / STORY CARDS ---------- */
.lore {
    position: relative;
}

.lore-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* Timeline line */
.lore-grid::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--green-dim), transparent);
    transform: translateX(-50%);
}

.lore-card {
    position: relative;
    width: 45%;
    background: var(--bg-card);
    border: 1px solid rgba(57, 255, 20, .18);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.lore-card:hover {
    border-color: var(--green);
    box-shadow: 0 0 30px rgba(57, 255, 20, .12);
    transform: translateY(-4px);
}

.lore-card:nth-child(odd) {
    align-self: flex-start;
}

.lore-card:nth-child(even) {
    align-self: flex-end;
}

/* Dot on timeline */
.lore-card::after {
    content: '';
    position: absolute;
    top: 40px;
    width: 14px;
    height: 14px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--green-glow);
}

.lore-card:nth-child(odd)::after {
    right: -7%;
    transform: translateX(50%);
}

.lore-card:nth-child(even)::after {
    left: -7%;
    transform: translateX(-50%);
}

.lore-card .tag {
    display: inline-block;
    background: var(--green-bg);
    color: var(--green);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border: 1px solid rgba(57, 255, 20, .2);
}

.lore-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.lore-card p {
    color: var(--text-muted);
    font-size: .92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.lore-card .source-link {
    color: var(--green);
    font-size: .85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all var(--transition);
}

.lore-card .source-link:hover {
    gap: 10px;
}

.lore-card-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(57, 255, 20, .1);
}

/* ---------- COMMUNITY ---------- */
.community {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 30, 10, .3) 50%, var(--bg) 100%);
}

.community-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.community-card {
    background: var(--bg-card);
    border: 1px solid rgba(57, 255, 20, .15);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    width: 140px;
    transition: all var(--transition);
}

.community-card:hover {
    border-color: var(--green);
    box-shadow: 0 0 25px rgba(57, 255, 20, .12);
    transform: translateY(-6px);
}

.community-card .icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    background: var(--green-bg);
    border: 1px solid rgba(57, 255, 20, .2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all var(--transition);
}

.community-card:hover .icon {
    background: var(--green);
    color: #000;
    box-shadow: 0 0 16px var(--green-glow);
}

.community-card span {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.community-card:hover span {
    color: var(--text);
}

/* ---------- HOW TO BUY ---------- */
.how-to-buy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid rgba(57, 255, 20, .15);
    border-radius: var(--radius);
    padding: 32px 24px;
    position: relative;
    transition: all var(--transition);
}

.step-card:hover {
    border-color: var(--green);
    box-shadow: 0 0 25px rgba(57, 255, 20, .1);
    transform: translateY(-4px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--green);
    color: #000;
    font-weight: 800;
    font-size: .9rem;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 0 14px var(--green-glow);
}

.step-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-muted);
    font-size: .85rem;
    line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
    text-align: center;
    padding: 32px 48px;
    border-top: 1px solid rgba(57, 255, 20, .1);
    color: var(--text-muted);
    font-size: .82rem;
    letter-spacing: .5px;
    background: var(--bg);
}

.footer span {
    color: var(--green);
}

/* ---------- ANIMATIONS ---------- */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 8px var(--green-glow);
    }

    50% {
        box-shadow: 0 0 22px var(--green-glow);
    }
}

.nav-logo img {
    animation: glow-pulse 3s ease-in-out infinite;
}

/* Fade-in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- MOBILE MENU ---------- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--green);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 4px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .how-to-buy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .lore-grid::before {
        left: 20px;
    }

    .lore-card {
        width: 85%;
        align-self: flex-end !important;
        margin-left: auto;
    }

    .lore-card::after {
        left: -12% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 14px 20px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(4, 10, 4, .95);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        border-bottom: 1px solid rgba(57, 255, 20, .12);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    section {
        padding: 64px 20px;
    }

    .hero {
        padding: 0 20px 60px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .community-card {
        width: calc(33% - 14px);
        min-width: 100px;
    }

    .how-to-buy-grid {
        grid-template-columns: 1fr 1fr;
    }

    .lore-card {
        width: 100%;
    }

    .lore-grid::before {
        display: none;
    }

    .lore-card::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .community-card {
        width: calc(50% - 10px);
    }

    .how-to-buy-grid {
        grid-template-columns: 1fr;
    }

    .contract-input {
        flex-direction: column;
    }

    .contract-input input {
        width: 100%;
    }

    .contract-input button {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}