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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Text', system-ui, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #000000;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-logo {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.04em;
    color: #000000;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 400;
    font-size: 14px;
    position: relative;
    transition: all 250ms ease-out;
}

.nav-link:hover {
    text-decoration: underline;
    text-decoration-color: #000000;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

.nav-link:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFFFFF;
    padding: 80px 24px 64px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

/* 3D Canvas Container */
.canvas-container {
    position: relative;
    margin: 0 auto 48px;
    width: 320px;
    height: 320px;
}

@media (min-width: 768px) {
    .canvas-container {
        width: 480px;
        height: 480px;
    }
}

@media (min-width: 1024px) {
    .canvas-container {
        width: 640px;
        height: 640px;
    }
}

#hat-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

#hat-fallback {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pause-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #000000;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 250ms ease-out;
}

.pause-btn:hover {
    background: #000000;
    color: #FFFFFF;
    transform: scale(1.05);
}

.pause-btn:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Hero Text */
.hero-headline {
    font-weight: 800;
    font-size: clamp(28px, 5vw, 48px);
    line-height: 1.1;
    color: #000000;
    margin-bottom: 24px;
}

.hero-subhead {
    font-weight: 400;
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.4;
    color: #000000;
    max-width: 760px;
    margin: 0 auto 48px;
}

/* CTAs */
.hero-ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 250ms ease-out;
    cursor: pointer;
    border: 1px solid #000000;
}

.btn-primary {
    background-color: #000000;
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background-color: #FFFFFF;
    color: #000000;
}

.btn-secondary:hover {
    transform: scale(1.02);
    background-color: #000000;
    color: #FFFFFF;
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

/* Sections */
.section {
    padding: 64px 0;
    background-color: #FFFFFF;
}

.section-title {
    font-weight: 800;
    font-size: 32px;
    color: #000000;
    text-align: center;
    margin-bottom: 48px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 280ms ease-out forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-title {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* How It Works */
.steps {
    display: grid;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

@media (max-width: 767px) {
    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

.step-number {
    font-weight: 800;
    font-size: 24px;
    color: #000000;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #000000;
    border-radius: 50%;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    font-size: 20px;
    color: #000000;
    margin-bottom: 8px;
}

.step-text {
    font-weight: 400;
    font-size: 16px;
    color: #000000;
    line-height: 1.5;
}

.micro-note {
    text-align: center;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    margin-top: 32px;
    font-style: italic;
}

/* Possible Outcome */
.outcome-card {
    background-color: #FFFFFF;
    border: 1px solid #000000;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
}

.scenario-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 16px;
}

.outcome-headline {
    font-weight: 800;
    font-size: 24px;
    color: #000000;
    margin-bottom: 24px;
}

.outcome-math {
    margin-bottom: 24px;
}

.math-line {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    padding: 8px 0;
}

.outcome-result {
    font-weight: 600;
    font-size: 16px;
    color: #000000;
    margin-bottom: 16px;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.outcome-caption {
    font-size: 16px;
    color: #000000;
    margin-bottom: 16px;
    line-height: 1.5;
}

.outcome-note {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    font-style: italic;
}

/* Tokenomics */
.tokenomics-grid {
    display: grid;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .tokenomics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tokenomics-card {
    background-color: #FFFFFF;
    border: 1px solid #000000;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.card-title {
    font-weight: 600;
    font-size: 18px;
    color: #000000;
    margin-bottom: 12px;
}

.card-text {
    font-size: 16px;
    color: #000000;
    line-height: 1.5;
}

.tokenomics-subtext {
    text-align: center;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    margin-top: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Proof */
.proof-checklist {
    max-width: 600px;
    margin: 0 auto 32px;
}

.proof-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

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

.proof-text {
    color: #000000;
}

.proof-link {
    color: #000000;
    text-decoration: underline;
    font-weight: 600;
    margin-right: 8px;
}

.proof-link:hover {
    text-decoration-thickness: 2px;
}

.proof-hash {
    color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
}

.proof-gallery {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .proof-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.proof-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #000000;
    border-radius: 16px;
}

.proof-note {
    text-align: center;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
    font-style: italic;
}

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

.faq-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    text-align: left;
    cursor: pointer;
    transition: all 250ms ease-out;
}

.faq-question:hover {
    color: rgba(0, 0, 0, 0.7);
}

.faq-question:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
    border-radius: 4px;
}

.faq-icon {
    font-size: 24px;
    font-weight: 300;
    transition: transform 250ms ease-out;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 250ms ease-out;
}

.faq-answer.open {
    max-height: 200px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 16px;
    color: #000000;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 32px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.footer-left,
.footer-center {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

.footer-right {
    display: flex;
    gap: 16px;
}

.footer-link {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 18px;
    transition: all 250ms ease-out;
}

.footer-link:hover {
    color: #000000;
    transform: scale(1.1);
}

.footer-link:focus {
    outline: 2px solid #000000;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile Navigation */
@media (max-width: 767px) {
    .nav-links {
        display: none;
    }
    
    .nav-container {
        justify-content: center;
    }
    
    .hero {
        padding-top: 100px;
    }
}

/* Responsive Typography */
@media (max-width: 767px) {
    .section {
        padding: 48px 0;
    }
    
    .section-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .btn:hover,
    .btn:active {
        transform: none;
    }
    
    .pause-btn:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .nav,
    .pause-btn,
    .hero-ctas {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 24pt 0;
    }
}
