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

:root {
    --bg: #0a0a0f;
    --bg-card: #13131a;
    --bg-nav: rgba(10, 10, 15, 0.92);
    --text: #e8e8ec;
    --text-muted: #8888a0;
    --accent: #6c5ce7;
    --accent-glow: rgba(108, 92, 231, 0.25);
    --border: #1e1e2e;
    --radius: 10px;
    --max-width: 1280px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Navigation ───────────────────────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

nav .nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 64px;
    gap: 32px;
    overflow-x: auto;
}

nav .logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

nav .logo span {
    color: var(--accent);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 24px 64px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent), #a29bfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 32px;
}

.hero .stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.hero .stat {
    text-align: left;
}

.hero .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--accent);
}

.hero .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Section ──────────────────────────────────────────────────────────── */
.section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 24px;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 600px;
}

.section + .section {
    border-top: 1px solid var(--border);
}

/* ── Image Grid ───────────────────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

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

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.card .label {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.card .prompt {
    padding: 0 14px 12px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Lightbox ─────────────────────────────────────────────────────────── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.lightbox .caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    max-width: 80vw;
    text-align: center;
}

.lightbox .close-hint {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 32px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

footer .footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

footer p {
    margin-bottom: 6px;
}

footer .footer-specs {
    margin-top: 12px;
    font-size: 12px;
}

footer .footer-copyright {
    margin-top: 16px;
    font-size: 12px;
    color: #555568;
}

footer .footer-legal {
    margin-top: 12px;
    font-size: 12px;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

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

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    nav .nav-inner {
        gap: 20px;
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .card .label {
        padding: 8px 10px;
        font-size: 12px;
    }

    .card .prompt {
        display: none;
    }

    .hero .stats {
        gap: 20px;
    }
}
