:root {
    --primary: #ff0000;
    --secondary: #ffffff;
    --accent: #14f195; /* Solana Green */
    --bg-dark: #0a0a0a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.7);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    width: 100vw;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.8s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: auto;
    position: relative;
}

.loader-logo {
    width: 250px;
    height: auto;
    animation: logoPulse 2s infinite ease-in-out;
}

@keyframes logoPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.2)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 30px rgba(255, 0, 0, 0.5)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.2)); }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 50%;
    background: var(--primary);
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* Background */
.background-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) saturate(1.2);
    transform: scale(1.1);
    animation: slowZoom 20s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

/* Header */
header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    z-index: 100;
    animation: slideDown 1s ease forwards;
}

@keyframes slideDown {
    from { transform: translate(-50%, -100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

nav {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    padding: 0.75rem 2rem;
    display: flex;
    gap: 4rem;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.nav-logo {
    height: 35px;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(255, 0, 0, 0.6)); /* RED GLOW UNDER LOGO */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a.nav-btn {
    background: linear-gradient(to right, var(--accent), #56ffbb); /* GRADIENT RIGHT */
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: #000;
    font-weight: 800;
    box-shadow: 0 5px 15px rgba(20, 241, 149, 0.3);
}

.nav-links a.nav-btn::after {
    display: none;
}

.nav-links a.nav-btn:hover, .nav-links a.nav-btn.active {
    background: #fff;
    box-shadow: 0 10px 25px rgba(20, 241, 149, 0.5);
    color: #000;
    transform: translateY(-2px);
}

/* Hero Section */
main {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
}

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

h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3); /* SUBTLE WHITE GLOW */
    color: #fff;
}

.reveal-text {
    animation: reveal 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

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

p.fade-in {
    font-size: 1.5rem;
    color: #fff; /* MAIN TEXT WHITE */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 auto 2.5rem; /* Centered with bottom margin */
    max-width: 550px; /* Forces text to wrap under itself, but less compressed */
    line-height: 1.4;
    animation: fadeIn 1.5s ease 0.5s forwards;
    opacity: 0;
}

.accent-text {
    color: var(--accent); /* Solana Green */
    text-shadow: 0 0 15px rgba(20, 241, 149, 0.8); /* INTENSE GLOW FOR NUMBERS */
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeIn 1.5s ease 0.8s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn.primary {
    background: linear-gradient(to bottom, #ff3333, #cc0000);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.btn.primary:hover {
    background: linear-gradient(to bottom, #ff4d4d, #e60000);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.6);
}

.btn.secondary {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    color: white;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn.secondary:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2));
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}

/* Footer & CA */
footer {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 100;
    animation: slideUp 1s ease forwards;
}

@keyframes slideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}

.ca-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border: 2px solid var(--accent);
    border-radius: 100px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 0 20px rgba(20, 241, 149, 0.2);
    position: relative;
    width: fit-content; /* Shrink to fit content */
    max-width: 100%;
    margin: 0 auto; /* Center within footer */
}

.ca-container:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 40px rgba(20, 241, 149, 0.4);
    transform: translateY(-5px); /* FIXED: No more glitching */
}

.ca-label {
    color: var(--accent);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
}

.ca-address {
    font-family: monospace;
    font-size: 1rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(20, 241, 149, 0.8); /* GREEN GLOWING LETTERS */
    word-break: break-all;
}

.copy-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    transition: var(--transition);
}

.ca-container:hover .copy-icon {
    transform: scale(1.2);
    color: #fff;
}

.copy-hint {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-left: auto;
}

.ca-container:hover .ca-address {
    color: var(--text-main);
}

.copy-hint {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--accent);
    color: #000;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Content Sections */
.floating-socials {
    position: fixed;
    bottom: 2.5rem;
    left: 2.5rem;
    display: flex;
    gap: 1rem;
    z-index: 100;
    animation: slideRight 1s ease forwards;
}

@keyframes slideRight {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(20, 241, 149, 0.5);
    border-color: var(--accent);
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.socials-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: 30px;
}

.socials-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.socials-card p {
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.socials-page-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 300px;
    margin: 0 auto;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.content-section {
    min-height: 100vh;
    padding: 8rem 10% 4rem;
    display: none; /* Hide by default */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(20px);
}

.content-section.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.content-section.animating-out {
    display: flex;
    opacity: 0;
    transform: translateY(-20px);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

/* Thesis Card */
.thesis-card {
    position: relative;
    text-align: center;
}

.quote-icon {
    font-size: 8rem;
    font-family: serif;
    position: absolute;
    top: -2rem;
    left: 2rem;
    opacity: 0.1;
    color: var(--primary);
}

.thesis-text {
    font-size: 1.8rem;
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-style: italic;
}

.quote-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.author-name {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.author-title {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buy Section */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-dim);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1100px;
}

.step-card {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 0, 0, 0.05);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.1;
    position: absolute;
    top: -0.5rem;
    right: 1rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.step-card p {
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-time {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

/* Stream Section */
.stream-card {
    text-align: center;
    max-width: 700px;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 0, 0, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

.stream-meta {
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stream-desc {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.stream-btn {
    background: linear-gradient(to right, var(--accent), #56ffbb); /* GRADIENT RIGHT */
    color: #000; /* BLACK TEXT */
    width: 100%;
    display: block;
    padding: 1.2rem;
    font-size: 1.2rem;
    font-weight: 800;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(20, 241, 149, 0.4);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
}

.stream-btn:hover {
    background: #fff;
    box-shadow: 0 15px 40px rgba(20, 241, 149, 0.6);
    transform: translateY(-5px);
}

/* ============ MOBILE ============ */
@media (max-width: 768px) {

    /* Header: full-width bar at top, no floating pill */
    header {
        top: 0;
        width: 100%;
        max-width: 100%;
    }

    nav {
        border-radius: 0;
        padding: 0.8rem 1.2rem;
        gap: 0.8rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    nav::-webkit-scrollbar { display: none; }

    .nav-logo {
        height: 25px;
    }

    /* Nav links: always visible, compact, single row */
    .nav-links {
        display: flex;
        gap: 0.75rem;
        flex-shrink: 0;
    }

    .nav-links a {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .nav-home {
        display: none;
    }

    .nav-links a.nav-btn {
        padding: 0.45rem 0.9rem;
        font-size: 0.75rem;
    }

    /* Hide hamburger - we don't need it */
    .hamburger { display: none; }

    /* Hero */
    main {
        padding: 0 5%;
        height: 100vh;
    }

    h1 {
        font-size: clamp(2.5rem, 11vw, 3.8rem);
    }

    p.fade-in {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .cta-group {
        flex-direction: row;
        gap: 0.75rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Keep buttons natural width - NOT full width */
    .btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    /* Content sections */
    .content-section {
        padding: 5rem 5% 8rem;
        min-height: 100vh;
    }

    /* Thesis */
    .glass-card {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .thesis-text {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    /* How to Buy */
    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.6rem; }
    .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
    .step-card { padding: 1.5rem; }

    /* Stream */
    .stream-card { padding: 1.5rem; }
    .stream-btn { font-size: 1rem; padding: 1rem; }

    /* Footer CA - compact pill, address wraps naturally */
    footer {
        bottom: 1.5rem;
        width: 95%;
    }

    .ca-container {
        padding: 0.6rem 1rem;
        gap: 0.5rem;
        border-radius: 12px;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .ca-label { font-size: 0.8rem; }

    .ca-address {
        font-size: 0.85rem;
        word-break: break-all;
        flex: 1;
    }

    .copy-hint { display: none; }

    /* Loader logo smaller */
    .loader-logo { width: 180px; }

    /* Socials Floating Mobile - Move under Hero Buttons */
    .floating-socials {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
        gap: 1.5rem;
        animation: none;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
    }
    
    .social-icon svg {
        width: 24px;
        height: 24px;
    }
}
