:root {
    --primary-color: #00F5FF;
    --secondary-color: #FF2BD6;
    --bg-color: #111827;
    --bg-card: rgba(31, 41, 55, 0.7);
    --font-main: 'Outfit', system-ui, sans-serif;
    --header-height: 60px;
    --container-width: 1100px;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: #ffffff;
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Global Elements --- */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0 0px;
    /* Chopped bottom padding to near 0 */
    scroll-margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.mint-text {
    color: var(--primary-color);
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.muted {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* --- Progress Line --- */

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    z-index: 1001;
}

/* --- Warp Stars --- */

#stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* --- Header & Nav --- */

#header {
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#header .container {
    height: 100%;
}

.navbar {
    display: flex;
    justify-content: center;
    /* Center everything together */
    align-items: center;
    height: 100%;
    gap: 50px;
    /* Fixed tight gap between logo and nav links */
    margin: 0 auto;
}

.logo {
    text-decoration: none;
    font-family: 'Bebas Neue', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.logo:hover {
    color: var(--primary-color);
    transform: skew(-5deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.bar {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: var(--transition-fast);
}

/* --- Buttons --- */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 245, 255, 0.05);
}

/* --- Cards --- */

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 245, 255, 0.1);
    padding: 20px;
    /* Reduced from 30px for smaller feel */
    transition: var(--transition-slow);
    position: relative;
    clip-path: polygon(0% 15px, 15px 0%,
            calc(100% - 30px) 0%, 100% 30px,
            100% calc(100% - 15px), calc(100% - 15px) 100%,
            15px 100%, 0% calc(100% - 15px));
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid var(--secondary-color);
    opacity: 0.2;
    pointer-events: none;
    z-index: -1;
    transform: translate(4px, 4px);
    transition: var(--transition-fast);
}

.card:hover {
    transform: translate(-2px, -2px);
    border-color: var(--primary-color);
    box-shadow: 8px 8px 0px rgba(0, 245, 255, 0.1);
}

.card:hover::before {
    transform: translate(8px, 8px);
    opacity: 0.4;
}

/* --- Hero Section --- */

#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + 60px) 0 100px;
    position: relative;
    z-index: 1;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    max-width: 800px;
    height: 85vh;
    /* Occupy most of the viewport height */
    padding: 60px 0;
    /* Add padding to keep content within safe zones */
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-family: 'Bebas Neue', cursive;
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0;
    margin-bottom: 100px;
    /* Moved up by increasing bottom spacing */
    order: 2;
    text-shadow: none;
    /* Cleaner, minimalist look */
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    order: 1;
    margin-top: 40px;
    /* Spacing from top */
    margin-bottom: 0;
}

.hero-microline {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.5;
}

/* --- Sections --- */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: 'Bebas Neue', cursive;
    font-size: 3.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tagline-short {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
}

/* --- About Grid --- */

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.about-card h3 {
    font-family: 'Bebas Neue', cursive;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-text {
    text-align: center;
    font-size: 1.1rem;
}

/* --- Steps Grid --- */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.step-card {
    text-align: center;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    margin-bottom: 10px;
}

.step-card:hover .step-num {
    color: var(--secondary-color);
    opacity: 0.2;
}

/* --- Contract Box --- */

.contract-container {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.copy-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 20px;
    margin: 10px 0 0;
    /* Reduced top margin and removed bottom margin */
    position: relative;
}

#contract-address {
    font-family: monospace;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 15px;
    font-size: 0.9rem;
}

#copy-btn {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

#copy-btn svg {
    width: 20px;
    height: 20px;
}

#copy-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.safety-hint {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- Links Grid --- */

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    /* Shrinking the width for smaller cards */
    margin: 0 auto;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    color: #ffffff;
}

.link-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.link-card:hover .link-icon {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary-color);
}

/* --- Footer --- */

#footer {
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer {
    margin-top: 20px;
    font-size: 0.75rem;
    opacity: 0.4;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Animations --- */

.firework-particle {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes glitch-shiver {
    0% {
        transform: translate(0);
    }

    10% {
        transform: translate(-2px, 2px);
    }

    20% {
        transform: translate(2px, -2px);
    }

    30% {
        transform: translate(-2px, -2px);
    }

    40% {
        transform: translate(2px, 2px);
    }

    50% {
        transform: translate(0);
    }

    100% {
        transform: translate(0);
    }
}

.scramble-glitch.active {
    animation: glitch-shiver 0.2s infinite;
}

/* --- Mobile --- */

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 40px;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.8rem;
    }

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

    #contract-address {
        max-width: 150px;
    }
}