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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: #f8fafc;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.nav-logo h2 {
    color: #2563eb;
    font-weight: 700;
}

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

.nav-menu a {
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2563eb;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat p {
    opacity: 0.9;
}

/* Section Headers */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: #1e293b;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #334155;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.overview-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.overview-card h3 {
    color: #2563eb;
    margin-bottom: 20px;
}

.overview-card ul {
    list-style: none;
    margin-top: 20px;
}

.overview-card li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 25px;
}

.overview-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Mechanics Flow */
.mechanics-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 50px 0;
}

.flow-step {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.flow-arrow {
    font-size: 2rem;
    color: #64748b;
    font-weight: bold;
}

/* Features Grid */
.key-features {
    margin-top: 60px;
}

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

.feature {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature code {
    background: #f1f5f9;
    padding: 10px;
    border-radius: 5px;
    display: block;
    margin-top: 10px;
    font-family: 'Monaco', monospace;
    font-size: 0.9rem;
}

/* Calculator */
.calculator-container {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin: 40px 0;
}

.calc-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #374151;
}

.input-group select,
.input-group input[type="range"] {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
}

.input-group select:focus {
    outline: none;
    border-color: #2563eb;
}

#volume-display {
    margin-top: 10px;
    font-weight: 600;
    color: #2563eb;
    font-size: 1.2rem;
}

.calc-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.result-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
}

.result-card h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.result-value {
    font-size: 2rem;
    font-weight: 700;
}

.chart-container {
    margin-top: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Comparison Table */
.comparison-table {
    margin: 40px 0;
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #374151;
}

.highlight-green {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
}

.highlight-blue {
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 600;
}

.winner {
    color: #059669;
    font-weight: 600;
}

/* Strategy Steps */
.strategy-recommendation {
    margin-top: 50px;
}

.strategy-steps {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.strategy-step {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-badge {
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

/* Revenue Streams */
.revenue-streams {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stream {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.revenue-example {
    margin-top: 20px;
    padding: 15px;
    background: #f0f9ff;
    border-radius: 8px;
    border-left: 4px solid #2563eb;
}

.revenue-example span {
    font-weight: 600;
    color: #2563eb;
}

.projection-chart {
    margin-top: 50px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Deployment Grid */
.deployment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.deployment-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.deployment-card ul {
    list-style: none;
    margin-top: 20px;
}

.deployment-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 25px;
}

.deployment-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* Timeline */
.timeline {
    margin-top: 50px;
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: center;
}

.timeline-date {
    background: #2563eb;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h4 {
    color: #2563eb;
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 50px 0;
}

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

.footer-section h4 {
    color: #f1f5f9;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #60a5fa;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .mechanics-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .nav-menu {
        display: none;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .strategy-step {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.overview-card,
.flow-step,
.feature,
.result-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.overview-card:hover,
.deployment-card:hover,
.stream:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.result-card:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Dark 8-bit Theme Overrides (PoWH3d Lottery) --- */
:root {
  --bg: #0b1020;
  --panel: #151b2e;
  --text: #dbe4ff;
  --muted: #8ea0c7;
  --primary: #7c3aed; /* purple */
  --accent: #22d3ee;  /* cyan */
}

body {
  background: var(--bg);
  color: var(--text);
}

.navbar { background: #0f1430; box-shadow: 0 0 0 1px rgba(124,58,237,0.2); }
.nav-logo h2 { color: var(--accent); font-family: 'Press Start 2P', cursive; letter-spacing: 1px; }
.nav-menu a { color: var(--muted); }
.nav-menu a:hover { color: var(--accent); }

.hero { background: radial-gradient(1200px 600px at 50% -10%, rgba(124,58,237,0.35), transparent 60%), #0b1020; }
.hero h1 { font-family: 'Press Start 2P', cursive; font-size: 2.4rem; }
.hero-subtitle { color: var(--muted); }
.stat { background: rgba(34,211,238,0.08); border: 1px solid rgba(34,211,238,0.15); }

h2, h3 { color: var(--text); font-family: 'Press Start 2P', cursive; letter-spacing: 0.5px; }
.overview-card, .feature, .calculator-container, .chart-container, .strategy-step, .flow-step { background: var(--panel); border: 1px solid rgba(124,58,237,0.15); box-shadow: none; }
.overview-card h3 { color: var(--accent); }
.input-group label { color: var(--text); }
.input-group select, .input-group input[type="range"] { background: #0e1430; color: var(--text); border-color: rgba(124,58,237,0.25); }
.result-card { background: linear-gradient(135deg, rgba(124,58,237,0.6), rgba(34,211,238,0.35)); }

/* 8-bit buttons */
.btn {
  background: var(--primary);
  color: #fff;
  border: 0;
  position: relative;
  box-shadow: 0 0 0 3px #000, 0 8px 0 0 #000;
  font-family: 'Press Start 2P', cursive;
  letter-spacing: 0.5px;
}
.btn.secondary { background: var(--accent); color: #0b1020; }
.btn.danger { background: #ef4444; }
.btn:active { top: 2px; box-shadow: 0 0 0 3px #000, 0 6px 0 0 #000; }

/* dApp specific */
.dapp-container .card { background: var(--panel); border: 1px solid rgba(124,58,237,0.15); }
.log { background: #060912; color: var(--muted); border: 1px solid rgba(124,58,237,0.15); }
