:root {
    --bg-color: #0d0d0d;
    --text-active: #ffffff;
    --text-muted: #a0a0a0;
    --accent-color: #10b981;
    /* Emerald for SupaExplorer/Supabase */
    --accent-hover: #059669;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 900px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-active);
    font-family: var(--font-family);
    line-height: 1.6;
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

h1,
h2,
h3 {
    font-weight: 800;
    color: var(--text-active);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -0.05em;
    text-align: center;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-top: 5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

strong {
    color: var(--text-active);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    text-align: center;
}

.header-logo {
    display: block;
    margin: 0 auto 3rem auto;
    width: 60px;
    height: auto;
    filter: brightness(0) invert(1);
}

.hero p {
    font-size: 1.25rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Code Snippets */
pre {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin-bottom: 2rem;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.9rem;
    position: relative;
}

code {
    color: #d4d4d4;
}

/* Call to Action */
.cta-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 135, 129, 0) 100%);
    border: 1px solid var(--accent-color);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    margin: 6rem 0;
    box-shadow: 0 4px 24px -1px rgba(16, 185, 129, 0.1);
}

.cta-box h2 {
    margin-top: 0;
    border: none;
    font-size: 2.5rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-logo {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #000;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-active);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    margin: 0 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
    }

    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    }

    100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
    }
}

.animate-fade {
    animation: fadeIn 0.8s ease forwards;
}

.cta-box {
    animation: glow 4s infinite ease-in-out;
}

html {
    scroll-behavior: smooth;
}

:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* Grid overlay effect - premium touch */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

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

.torito-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.torito-link:hover {
    opacity: 1;
    color: var(--text-active);
    text-decoration: none;
}

.torito-logo {
    filter: brightness(0) invert(1);
    height: 20px !important;
    width: 20px !important;
    object-fit: contain;
}