:root {
    --bg: #0c0b0f;
    --bg-elevated: #16141b;
    --text: #ffffff;
    --text-muted: #ffffff;
    --accent: #d4a84b;
    --accent-dim: #9a7a36;
    --border: #2a2633;
    --radius: 8px;
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 1rem;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 11, 15, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 2.75rem;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    vertical-align: middle;
}

.logo:hover .logo-img {
    opacity: 0.9;
}

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

.site-header nav {
    display: flex;
    gap: 1.75rem;
}

.site-header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.site-header nav a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(212, 168, 75, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* New-here banner */
.newhere-banner {
    padding: 5rem 0 3rem;
    border-bottom: 1px solid var(--border);
}

.newhere-container {
    text-align: center;
}

.newhere-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

@media (min-width: 600px) {
    .newhere-title {
        font-size: 1.9rem;
    }
}

.newhere-blurb {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-newhere {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
}

/* Quick & easy page */
.hero-quick {
    padding: 6rem 0 4rem;
}

.quick-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

@media (min-width: 600px) {
    .quick-title {
        font-size: 2.5rem;
    }
}

.quick-lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 36em;
}

.quick-steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.quick-step {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.quick-step h2,
.quick-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.section-divider {
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.quick-step pre {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.quick-step code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.quick-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.quick-follow {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.quick-more {
    margin-top: 1rem;
}

.quick-more a {
    color: var(--accent);
}

.quick-more a:hover {
    text-decoration: underline;
}

.btn-download {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}

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

.btn-primary:hover {
    background: var(--accent-dim);
    color: var(--bg);
}

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

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

/* Sections */
.section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* About */
.about-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 560px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 800px) {
    .about-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.about-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.about-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

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

/* Features */
.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}

.features-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 1rem;
}

.features-list strong {
    color: var(--text);
}

.features-list div {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Tech */
.tech-intro {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
}

/* Get started */
.get-started-lead {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.btn-github {
    margin-bottom: 2rem;
}

.get-started-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 50%;
}

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

.step pre {
    margin: 0.25rem 0 0;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.step code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent);
}

.step pre code {
    color: var(--text);
}

.config-note {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.config-note code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--accent);
}

/* Screenshots */
.section-screenshots h2 {
    margin-bottom: 1.5rem;
}

.screenshots-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 560px) {
    .screenshots-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.screenshot-item {
    margin: 0;
}

.screenshot-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.screenshot-link:hover img {
    border-color: var(--accent);
    opacity: 0.95;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    transition: border-color 0.2s, opacity 0.2s;
}

.screenshot-item figcaption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.screenshot-item figcaption strong {
    color: var(--text);
}

/* Screenshot modal (lightbox) */
.screenshot-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

.screenshot-modal.open {
    visibility: visible;
    opacity: 1;
}

.screenshot-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.screenshot-modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot-modal-img {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.screenshot-modal-caption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.screenshot-modal-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.screenshot-modal-close:hover {
    color: var(--text);
}

/* Quickstart page */
.hero-quickstart {
    padding: 6rem 0 4rem;
}

.quickstart-platform-note {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

.download-cta {
    margin-top: 1rem;
    margin-bottom: 0;
}

.btn-download {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

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

.quickstart-list {
    list-style: disc;
    padding-left: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.quickstart-list li {
    margin-bottom: 0.5rem;
}

.quickstart-list code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent);
}

.quickstart-list a {
    color: var(--accent);
    text-decoration: none;
}

.quickstart-list a:hover {
    text-decoration: underline;
}

.quickstart-choices {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 560px) {
    .quickstart-choices {
        grid-template-columns: 1fr 1fr;
    }
}

.quickstart-pre {
    margin: 0.5rem 0 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.quickstart-pre code {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text);
}

/* Footer */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.site-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}
