:root {
    --bg: #0b0d12;
    --bg-alt: #11141b;
    --surface: #171b24;
    --border: #262c3a;
    --text: #e8ebf2;
    --text-dim: #9aa3b5;
    --accent: #6366f1;
    --accent-2: #22d3ee;
    --accent-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #22d3ee 100%);
    --radius: 12px;
    --max-width: 1080px;
}

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

html { scroll-behavior: smooth; }

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

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

img { max-width: 100%; display: block; }

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 13, 18, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}
.nav-brand:hover { text-decoration: none; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-grad);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}

.nav-links {
    display: flex;
    gap: 1.6rem;
    list-style: none;
}
.nav-links a {
    color: var(--text-dim);
    font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 1.2rem;
    padding: 0.3rem 0.7rem;
    cursor: pointer;
}

/* Hero */
.hero {
    padding: 6rem 0 4.5rem;
    background:
        radial-gradient(ellipse 60% 50% at 70% 0%, rgba(99, 102, 241, 0.18), transparent),
        radial-gradient(ellipse 40% 40% at 15% 20%, rgba(34, 211, 238, 0.10), transparent);
}

.hero-eyebrow {
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.2rem;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-lede {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 46rem;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary {
    background: var(--accent-grad);
    color: #fff;
}
.btn-primary:hover { filter: brightness(1.1); }

.btn-secondary {
    border-color: var(--border);
    color: var(--text);
    background: var(--surface);
}
.btn-secondary:hover { border-color: var(--accent); }

.hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 1.8rem;
}
.hero-stats dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
}
.hero-stats dd { font-weight: 600; font-size: 1.05rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section h2 {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 1.4rem;
}

.section-lede { color: var(--text-dim); margin-bottom: 2rem; max-width: 44rem; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    color: var(--text-dim);
}
.two-col p + p { margin-top: 1rem; }

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    list-style: none;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.feature-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.feature-card h3::before {
    content: "✓ ";
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}
.feature-card p { color: var(--text-dim); font-size: 0.92rem; }

/* Screenshots */
.screenshot-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.screenshot-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.screenshot-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid var(--border);
    transition: opacity 0.2s;
}
.screenshot-card a:hover img { opacity: 0.85; }
.screenshot-card figcaption {
    padding: 0.9rem 1.2rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}
.screenshot-card figcaption strong { color: var(--text); }

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem;
}
.info-card h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.info-card p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 0.8rem; }
.card-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-top: 0.4rem;
}
.tag-list li {
    font-size: 0.78rem;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-dim);
    background: var(--bg);
}

/* Credits */
.credits-list {
    list-style: none;
    display: grid;
    gap: 1.1rem;
    color: var(--text-dim);
    max-width: 46rem;
}
.credits-list strong { color: var(--text); }

/* Contact */
.contact-wrap { max-width: 46rem; }

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-field { margin-bottom: 1.1rem; }
.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    padding: 0.7rem 0.9rem;
    font-size: 0.95rem;
    font-family: inherit;
}
.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

.form-note { margin-top: 0.9rem; font-size: 0.88rem; color: var(--text-dim); }

/* Honeypot — hidden from humans, filled by bots */
.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    color: var(--text-dim);
    font-size: 0.85rem;
}
.footer-inner { display: grid; gap: 0.5rem; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }

/* Cookie consent banner */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
    padding: 1rem 0;
}

#cookie-consent-banner .cookie-consent-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

#cookie-consent-banner .cookie-consent-text {
    flex: 1 1 480px;
    font-size: 0.9rem;
    color: var(--text-dim);
    margin: 0;
}

#cookie-consent-banner .cookie-consent-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Privacy page */
.privacy-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.privacy-content h2 { font-size: 1.2rem; margin: 1.8rem 0 0.6rem; }
.privacy-content p { color: var(--text-dim); margin-bottom: 1rem; max-width: 46rem; }
.privacy-content code { color: var(--accent-2); }

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.9rem;
}
.privacy-table th, .privacy-table td {
    border: 1px solid var(--border);
    padding: 0.55rem 0.8rem;
    text-align: left;
}
.privacy-table th { background: var(--surface); }
.privacy-table td { color: var(--text-dim); }

@media (max-width: 576px) {
    #cookie-consent-banner .cookie-consent-actions { width: 100%; }
    #cookie-consent-banner .cookie-consent-actions .btn { flex: 1; }
}

/* Responsive */
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-alt);
        border-bottom: 1px solid var(--border);
        padding: 1rem 1.5rem 1.4rem;
        gap: 0.9rem;
    }
    .nav-links.open { display: flex; }

    .two-col, .card-grid, .screenshot-grid, .form-row { grid-template-columns: 1fr; }
    .hero { padding: 4rem 0 3rem; }
    .hero-stats { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
