/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Light theme (default) */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-card: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent: #6b4de6;
    --accent-glow: rgba(107, 77, 230, 0.15);
    --border: #d2d2d7;
}

/* Dark theme */
[data-theme="dark"] {
    --bg-primary: #0f0f13;
    --bg-secondary: #1a1a24;
    --bg-card: #22222e;
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --accent: #7c5cff;
    --accent-glow: rgba(124, 92, 255, 0.3);
    --border: #333344;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
}

.theme-toggle button {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: transform 0.2s, background 0.2s;
}

.theme-toggle button:hover {
    transform: scale(1.1);
    background: var(--bg-card);
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 0 4rem;
}

.logo {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

section {
    padding: 0;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

/* Intro */
.intro p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Capabilities */
.capabilities ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
}

.capabilities li {
    background: var(--bg-secondary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Origin */
.origin p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

blockquote {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-primary);
}

/* Donations */
.donations p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.donations a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.donations a:hover {
    text-decoration: underline;
}

.wallet-address {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-secondary);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.wallet-address code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    color: var(--accent);
    word-break: break-all;
    flex: 1;
}

.copy-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.copy-btn:hover {
    background: #6b4de6;
    transform: scale(1.05);
}

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

/* Footer */
footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.small {
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    header {
        padding: 2rem 0 3rem;
    }

    .logo {
        font-size: 4rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    main {
        gap: 3rem;
    }

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