/* ===================================
   CSS Variables
   =================================== */
:root {
    --black: #000000;
    --gold: #D4AF37;
    --off-white: #F5F5F5;
    --card-bg: rgba(0, 0, 0, 0.92);
    --gold-glow: rgba(212, 175, 55, 0.3);
    --gold-glow-intense: rgba(212, 175, 55, 0.6);
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.3s ease-out;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--black);
    color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* ===================================
   Fixed Background Layer
   =================================== */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('Background 2.png');
    background-position: center 80px;
    background-size: contain;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -1;
    pointer-events: none;
}

/* Ensure only top portion is visible */
.background-layer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, var(--black) 60%, transparent 100%);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition-fast);
}

.nav-logo:hover {
    color: var(--off-white);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--off-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link.btn-primary {
    border: 2px solid var(--gold);
    color: var(--gold);
}

.nav-link.btn-primary:hover {
    background: var(--gold);
    color: var(--black);
}

.nav-link.btn-secondary {
    border: 1px solid var(--gold);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-fast);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
}

.pfp-container {
    position: relative;
    z-index: 10;
    margin-bottom: 3rem;
}

.pfp-flame {
    width: 340px;
    height: auto;
    filter: drop-shadow(0 0 40px var(--gold-glow));
    animation: breathe 1.8s ease-in-out infinite;
    transition: filter var(--transition-medium);
}

.pfp-flame:hover {
    filter: drop-shadow(0 0 60px var(--gold-glow-intense));
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 5;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--off-white);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.hero-microcopy {
    font-size: 1rem;
    color: rgba(245, 245, 245, 0.8);
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gold);
    font-style: italic;
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--gold-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--off-white);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

/* ===================================
   Section & Card Styles
   =================================== */
.section {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.card {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(245, 245, 245, 0.8);
    text-align: center;
    margin-bottom: 2.5rem;
    font-style: italic;
}

/* ===================================
   How It Works Section
   =================================== */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.text-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.feature-text h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.feature-text p {
    color: rgba(245, 245, 245, 0.8);
    font-size: 0.95rem;
}

.burn-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
}

.flow-step {
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gold);
    border-radius: 6px;
    color: var(--gold);
    font-weight: 600;
}

.flow-arrow {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
}

/* ===================================
   Live Burn Section
   =================================== */
.burn-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.stat-hash a {
    color: var(--gold);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.stat-hash a:hover {
    color: var(--off-white);
}

#refreshBurn {
    display: block;
    margin: 0 auto;
}

/* ===================================
   Tokenomics Section
   =================================== */
.tokenomics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tokenomics-item {
    text-align: center;
}

.tokenomics-label {
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.tokenomics-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}

.contract-section {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 2rem;
    margin-top: 2rem;
}

.contract-label {
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-align: center;
}

.contract-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.contract-address code {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--gold);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    word-break: break-all;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-copy:hover {
    background: var(--gold);
    color: var(--black);
}

.btn-copy.copied {
    background: var(--gold);
    color: var(--black);
}

/* ===================================
   How to Buy Section
   =================================== */
.steps-list {
    list-style: none;
    counter-reset: step-counter;
    max-width: 800px;
    margin: 0 auto;
}

.steps-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    color: var(--gold);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(245, 245, 245, 0.8);
    font-size: 1rem;
}

/* ===================================
   Roadmap Section
   =================================== */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.roadmap-phase {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    padding: 2rem;
    transition: var(--transition-medium);
}

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

.phase-number {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--gold);
    color: var(--black);
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.roadmap-phase h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.roadmap-phase ul {
    list-style: none;
    padding-left: 0;
}

.roadmap-phase li {
    padding: 0.5rem 0;
    color: rgba(245, 245, 245, 0.8);
    position: relative;
    padding-left: 1.5rem;
}

.roadmap-phase li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

/* ===================================
   FAQ Section
   =================================== */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.faq-answer {
    color: rgba(245, 245, 245, 0.9);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(212, 175, 55, 0.3);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--off-white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-disclaimer {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
}

.footer-disclaimer p {
    font-size: 0.9rem;
    color: rgba(245, 245, 245, 0.7);
    line-height: 1.6;
}

.footer-copyright {
    text-align: center;
    color: rgba(245, 245, 245, 0.6);
    font-size: 0.9rem;
}

/* ===================================
   Responsive Design - Tablet
   =================================== */
@media (max-width: 1199px) {
    .pfp-flame {
        width: 260px;
    }

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

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card {
        padding: 2.5rem;
    }
}

/* ===================================
   Responsive Design - Mobile
   =================================== */
@media (max-width: 767px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 2rem 1rem;
        transition: right 0.3s ease-out;
        border-left: 1px solid var(--gold);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 100vh;
    }

    .pfp-flame {
        width: 180px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .burn-flow {
        flex-direction: column;
        gap: 1rem;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .burn-stats {
        grid-template-columns: 1fr;
    }

    .tokenomics-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contract-address {
        flex-direction: column;
    }

    .contract-address code {
        font-size: 0.8rem;
        padding: 0.5rem;
        text-align: center;
    }

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

    .steps-list li {
        gap: 1rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-content h3 {
        font-size: 1.1rem;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Ensure background figures remain visible on mobile */
    .background-layer {
        background-size: contain;
        background-position: top center;
    }
}

/* ===================================
   Focus States for Accessibility
   =================================== */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

/* ===================================
   Utility Classes
   =================================== */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
