:root {
    --primary-color: #86EFAC;
    /* Mint Green - Accents, Buttons */
    --secondary-color: #FBE291;
    /* Yellow - Accents, Highlights */
    --bg-color: #111827;
    /* Dark Blue/Grey - Main BG */
    --bg-card: #1F2937;
    /* Dark Grey - Card BG */
    --border-color: #2A3341;
    /* Subtle Border */
    --text-color: #f3f4f6;
    /* Light Text */
    --text-muted: #9ca3af;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 60px;
}

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

html {
    scroll-behavior: smooth;
}

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

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



/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    /* text-transform: uppercase; Removed to allow lowercase override */
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    /* text-transform: uppercase; Removed for Title Case */
    font-family: 'Garet', sans-serif;
}

/* Specific Heading Colors */
.heading-mint {
    color: var(--primary-color);
}

.heading-yellow {
    color: var(--secondary-color);
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.highlight {
    color: var(--secondary-color);
}

.scramble-glitch {
    display: inline-block;
    min-width: 1ch;
    /* Helps maintain spacing slightly better in some browsers */
}

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

.section {
    padding: 60px 0;
    background-color: transparent;
    /* Changed to transparent for stars visibility */
}

.bg-darker {
    background-color: transparent;
    /* Changed to transparent */
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    /* text-transform: uppercase; Removed for Title Case */
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #111827;
    box-shadow: 0 0 15px rgba(134, 239, 172, 0.2);
    position: relative;
    overflow: hidden;
    /* Contain the shine */
}

/* Button Gloss Shine Animation */
.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to bottom right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    animation: turboShine 3s infinite;
}

@keyframes turboShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    20% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.btn-primary:hover {
    background-color: #fff;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: #111827 !important;
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #111827;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    z-index: 1001;
    /* Above header */
    box-shadow: 0 0 10px var(--primary-color);
    transition: width 0.1s ease-out;
}

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

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    /* Needed for absolute positioning of hover image */
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo .logo-hover {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
}

.logo:hover .logo-normal {
    opacity: 0;
}

.logo:hover .logo-hover {
    opacity: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #fff;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    padding-top: var(--header-height);
    padding-bottom: 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /* Force stack from top */
    position: relative;
    overflow: hidden;
}

.hero-video-banner {
    position: relative;
    width: calc(100% - 40px);
    max-width: var(--container-width);
    aspect-ratio: 21 / 7;
    /* Ultra-wide banner ratio */
    margin: 0 auto;
    /* Touch header */
    filter: brightness(1);
    z-index: 1;
    pointer-events: none;
    border-radius: 20px;
    overflow: hidden;
}

.hero-video-banner video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensures the whole video is visible without clipping */
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 60px;
    /* Separation from video banner */
    width: 100%;
}

.hero-content {
    z-index: 2;
}

.hero-title {
    font-family: 'Garet', sans-serif;
    font-weight: 800;
    /* Ensure bold weight */
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.contract-address-container {
    margin-top: 30px;
}

.copy-box {
    display: flex;
    align-items: center;
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    gap: 15px;
    transition: var(--transition);
}

.copy-box:hover {
    border-color: var(--primary-color);
}

#contract-address {
    font-family: monospace;
    color: var(--primary-color);
    font-size: 1.1rem;
}

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



.hero-image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    display: block;
    margin: 0 auto;
    animation: chaotic-spin 6s ease-in-out infinite;
    transform-origin: center;
}


/* About Section */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-image-container {
    text-align: center;
    margin-top: -40px;
    /* Base pull-up for all sections */
    margin-bottom: -15px;
    position: relative;
    z-index: 2;
}

/* Specific overrides to compensate for internal whitespace in different images */
.about-image-container {
    margin-top: -30px;
}

.roadmap-image-container {
    margin-top: -75px;
    margin-bottom: -55px;
}

.tokenomics-image-container {
    margin-top: -45px;
}

.how-to-buy-image-container {
    margin-top: -40px;
}

.official-links-image-container {
    margin-top: -40px;
}

/* Integrated into shared class */

.about-img {
    max-width: 100%;
    height: auto;
    width: 350px;
    /* Adjust size as needed, slightly smaller than the buttons image */
}

/* Roadmap Image */

/* Integrated into shared class */

.roadmap-img {
    max-width: 100%;
    height: auto;
    width: 350px;
    /* Adjust size as needed */
}

.tokenomics-img {
    max-width: 100%;
    height: auto;
    width: 350px;
    /* Adjust size as needed */
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.about-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-card h3 {
    margin-bottom: 15px;
    color: #fff;
}

/* Tokenomics */
.tokenomics-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    flex: 1;
    min-width: 300px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.stat-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
}

.stat-box p {
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Roadmap */
.roadmap-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.roadmap-item {
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.roadmap-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;

    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

/* Engine Rev Hover Effect */
.hero-image img:hover,
.about-img:hover,
.roadmap-img:hover,
.tokenomics-img:hover,
.how-to-buy-img:hover,
.official-links-img:hover {
    animation: engineRev 0.4s ease-in-out infinite alternate;
    transform: scale(1.05);
    /* Stick the landing on zoom */
    filter: brightness(1.1);
    /* Slight power-up glow */
}

@keyframes engineRev {
    0% {
        transform: scale(1.05) rotate(0deg) translateY(0);
    }


    25% {
        transform: scale(1.05) rotate(-1deg) translateY(-1px);
    }

    50% {
        transform: scale(1.05) rotate(0deg) translateY(1px);
    }

    75% {
        transform: scale(1.05) rotate(1deg) translateY(-1px);
    }

    100% {
        transform: scale(1.05) rotate(0deg) translateY(0);
    }
}

.roadmap-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.roadmap-item:hover::before {
    transform: scaleX(1);
}

.roadmap-item .phase {
    display: inline-block;
    background-color: rgba(134, 239, 172, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.roadmap-item ul {
    list-style: none;
    margin-top: 20px;
}

.roadmap-item ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-muted);
}

.roadmap-item ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* How to Buy Image */

/* Integrated into shared class */

.how-to-buy-img {
    max-width: 100%;
    height: auto;
    width: 280px;
    /* Adjust size as needed */
    transition: transform 0.3s ease;
}

.how-to-buy-img:hover {
    animation: breathe 3s ease-in-out infinite;
}

/* Official Links Image */

/* Integrated into shared class */

.official-links-img {
    max-width: 100%;
    height: auto;
    width: 280px;
    /* Adjust size as needed */
    /* filter: drop-shadow(0 0 20px rgba(134, 239, 172, 0.2)); - Removed per user request */
    /* Optional glow to match theme */
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.step-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.step-card h3 {
    margin-top: 20px;
    position: relative;
    z-index: 1;
    color: #fff;
}

.step-card p {
    position: relative;
    z-index: 1;
}

/* Official Links Section */
.official-links-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(31, 41, 55, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    /* text-transform: uppercase; Removed for Title Case */
}

.link-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.copy-icon {
    opacity: 0.7;
    transition: var(--transition);
}

.link-btn:hover .copy-icon {
    opacity: 1;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: #050505;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-disclaimer {
    margin: 10px auto 30px auto;
    max-width: 900px;
    padding: 30px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(134, 239, 172, 0.1);
    border-radius: 12px;
    text-align: left;
    transition: all 0.4s ease;
}

.footer-disclaimer:hover {
    border-color: rgba(134, 239, 172, 0.3);
    box-shadow: 0 0 30px rgba(134, 239, 172, 0.1);
    transform: translateY(-2px);
}

.disclaimer-header {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.terminal-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.pulse-dot {
    font-size: 1rem;
    animation: gentlePulse 2s ease-in-out infinite;
}

.disclaimer-text {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 0;
    font-weight: 300;
}

.terminal-cursor {
    color: var(--primary-color);
    font-weight: bold;
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes gentlePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-content {
    text-align: center;
}

.coin-spinner {
    font-size: 5rem;
    animation: spin 2s linear infinite;
    margin-bottom: 20px;
}

.loader-content p {
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

/* Animations */
@keyframes chaotic-spin {
    0% {
        transform: rotate(0deg);
    }

    5% {
        transform: rotate(-5deg);
    }

    10% {
        transform: rotate(5deg);
    }

    15% {
        transform: rotate(-10deg);
    }

    20% {
        transform: rotate(10deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    30% {
        transform: rotate(15deg);
    }

    35% {
        transform: rotate(-25deg);
    }

    40% {
        transform: rotate(25deg);
    }

    45% {
        transform: rotate(-60deg);
    }

    48% {
        transform: rotate(60deg);
    }

    65% {
        transform: rotate(1440deg);
    }

    100% {
        transform: rotate(1440deg);
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto 50px;
    }

    .copy-box {
        margin: 0 auto;
    }

    .tokenomics-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: 100vh;
        justify-content: center;
        transition: 0.3s;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .section {
        padding: 60px 0;
    }
}

/* ==========================================
   TURBO LAUNCH EFFECT
   ========================================== */
.btn-launching {
    pointer-events: none;
    animation: launchPropulsion 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards;
}

@keyframes launchPropulsion {
    0% {
        transform: translateX(0) scale(1.05);
    }

    100% {
        transform: translateX(3000px) scale(0.8);
    }
}

.turbo-flame {
    position: absolute;
    left: -140px;
    /* Start further back for 'long' effect */
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    /* Much longer flame */
    height: 40px;
    background: #ff4d00;
    /* Extra jagged, long flame tail */
    clip-path: polygon(100% 0, 100% 100%, 0 80%, 15% 70%, 0 60%, 20% 50%, 0 40%, 15% 30%, 0 20%);
    animation: flameFlicker 0.1s infinite alternate;
    z-index: -1;
}

.turbo-flame::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    width: 60%;
    height: 60%;
    background: #ffcc00;
    /* Yellow Inner */
    clip-path: polygon(100% 0, 100% 100%, 0 50%);
}

@keyframes flameFlicker {
    from {
        transform: translateY(-50%) scaleY(1);
        opacity: 1;
    }

    to {
        transform: translateY(-50%) scaleY(1.3);
        opacity: 0.9;
    }
}

.turbo-spark {
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 4px;
    background: #ffcc00;
    border-radius: 50%;
    z-index: -1;
    animation: sparkFly 0.6s ease-out forwards;
}

@keyframes sparkFly {
    to {
        transform: translate(var(--vx), var(--vy)) scale(0);
        opacity: 0;
    }
}