/* STAMP Protocol Website Styles */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #64748b;
    --success: #10b981;
    --background: #ffffff;
    --surface: #f8fafc;
    --text: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --code-bg: #1e293b;
    --code-text: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
}

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

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero .tagline {
    font-size: 1.5rem;
    opacity: 0.95;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero .subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.hero strong {
    color: #fbbf24;
    font-weight: 700;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Problem Section */
.problem {
    padding: 6rem 0;
    background: var(--surface);
}

.problem h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.problem-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.problem-card .stat {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: 1rem;
}

/* Solution Section */
.solution {
    padding: 6rem 0;
}

.solution h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solution .intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 4rem;
}

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

.feature {
    text-align: center;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature code {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-family: 'Monaco', 'Courier New', monospace;
}

/* Technical Section */
.technical {
    padding: 6rem 0;
    background: var(--surface);
}

.technical h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.tech-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.tech-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.tech-col pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.tech-col .explanation {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Demo Section */
.demo {
    padding: 6rem 0;
}

.demo h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.demo-box {
    max-width: 800px;
    margin: 0 auto 3rem;
    background: var(--surface);
    padding: 3rem;
    border-radius: 1rem;
    border: 2px solid var(--border);
}

.demo-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.demo-box ol {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.demo-box li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.demo-box code {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Courier New', monospace;
}

.demo-box .btn {
    margin-top: 2rem;
}

/* Interactive Demo */
.interactive-demo {
    max-width: 900px;
}

.demo-controls {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.demo-control-group h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.demo-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.demo-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Monaco', 'Courier New', monospace;
    margin-bottom: 1rem;
}

.demo-input:focus {
    outline: none;
    border-color: var(--primary);
}

.demo-output {
    min-height: 200px;
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border);
    margin-top: 2rem;
}

.demo-placeholder {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.demo-loading {
    text-align: center;
    font-size: 1.25rem;
    padding: 2rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.demo-result {
    animation: slideIn 0.3s ease-out;
}

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

.demo-result h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.demo-result.success h4 {
    color: var(--success);
}

.demo-result.error h4 {
    color: #ef4444;
}

.demo-details {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.demo-details p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.demo-details strong {
    color: var(--text);
}

.demo-proof {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.demo-proof strong {
    display: block;
    margin-bottom: 0.75rem;
    color: #fbbf24;
}

.demo-proof code {
    background: transparent;
    padding: 0;
    display: block;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Use Cases */
.use-cases {
    padding: 6rem 0;
    background: var(--surface);
}

.use-cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.use-case {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.use-case h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

/* Stats */
.stats {
    padding: 6rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.stat-card {
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    text-align: center;
    background: var(--text);
    color: white;
}

.footer h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.copyright {
    margin-top: 2rem;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .tagline {
        font-size: 1.25rem;
    }

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

    .tech-comparison {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }
}
