/* Hero */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 420px;
    margin: 0 auto 36px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Features */
.features {
    padding: 40px 0 80px;
    max-width: 780px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 0;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Container - used inside landing sections */
.container {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Pricing */
.pricing {
    padding: 0 0 80px;
    max-width: 780px;
    margin: 0 auto;
}

.pricing h2 {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    text-align: center;
}

.pricing-intro {
    max-width: 520px;
    margin: 0 auto 48px;
    text-align: center;
}

.pricing-intro p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}

.pricing-intro .pricing-highlight {
    color: var(--text);
    font-weight: 500;
}

.pricing-divider {
    border: none;
    border-top: 1px solid var(--border);
    max-width: 80px;
    margin: 0 auto 48px;
}

.pricing-section-heading {
    text-align: center;
    margin-bottom: 36px;
}

.pricing-section-heading h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.pricing-section-heading p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

.pricing-picker {
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
}

.pricing-picker-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pricing-tier-select {
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    outline: none;
}

.pricing-tier-select:focus {
    border-color: var(--text-label);
}

.pricing-picker-detail {
    text-align: right;
}

.pricing-picker-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.03em;
}

.pricing-price-unit {
    font-size: 15px;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-picker-note {
    display: block;
    font-size: 13px;
    color: var(--text-label);
    margin-top: 2px;
}

.pricing-btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    background: var(--text);
    color: var(--bg);
    border-radius: 9999px;
}

.pricing-btn:hover {
    opacity: 0.8;
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    color: var(--text-label);
    font-size: 14px;
    line-height: 1.7;
}

/* Auth pages */
.auth-page {
    padding: 120px 0 80px;
}

.auth-card {
    max-width: 320px;
    margin: 0 auto;
}

.auth-card h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 32px;
}

.auth-error {
    color: #dc2626;
    font-size: 13px;
    margin-bottom: 16px;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.auth-input {
    height: 36px;
    background: transparent;
    color: var(--text);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0;
    font-size: 14px;
    margin-bottom: 20px;
    outline: none;
}

.auth-input:focus {
    border-bottom-color: var(--text);
}

.auth-submit {
    margin-top: 8px;
}

.auth-hint {
    font-size: 11px;
    color: var(--text-label);
    margin-top: -16px;
    margin-bottom: 20px;
}

.auth-switch {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 24px;
}

.auth-switch a {
    color: var(--text);
    font-weight: 500;
}

.check-email-message {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 4px;
}

.check-email-sent-to {
    font-size: 13px;
    color: var(--text-label);
    margin-bottom: 32px;
}

.check-email-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.auth-link-btn {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    line-height: inherit;
}

.auth-link-btn:hover {
    color: var(--text);
}

.auth-link-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Account page */
.account-page {
    padding: 100px 0 80px;
    max-width: 480px;
    margin: 0 auto;
}

.account-page h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 40px;
}

.account-section {
    margin-bottom: 32px;
}

.account-section h3 {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.account-email,
.account-username {
    font-size: 15px;
    color: var(--text);
}

.account-username-link {
    font-size: 13px;
    color: var(--text-label);
    margin-top: 4px;
}

.account-username-link a {
    color: var(--text-muted);
}

.account-status {
    font-size: 15px;
    color: var(--text);
}

.account-status-active {
    color: var(--text);
}

.account-link {
    display: inline-block;
    font-size: 13px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-top: 4px;
    text-decoration: underline;
}

.usage-bar-container {
    height: 4px;
    background: var(--border);
    margin-top: 12px;
    overflow: hidden;
}

.usage-bar {
    height: 100%;
    background: var(--text);
}

.usage-text {
    font-size: 13px;
    color: var(--text-label);
    margin-top: 6px;
}

.usage-reset {
    font-size: 13px;
    color: var(--text-label);
    margin-top: 2px;
}

.account-signout {
    background: none;
    border: none;
    color: var(--text-label);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.account-signout:hover {
    color: var(--text);
}

/* Profile page */
.profile-page {
    padding: 100px 0 80px;
    max-width: 480px;
    margin: 0 auto;
}

.profile-username {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.profile-joined {
    font-size: 14px;
    color: var(--text-label);
}

/* Responsive */
@media (max-width: 960px) {
    .hero {
        padding: 80px 0 60px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .pricing-picker {
        max-width: 100%;
    }
}

/* ============================================================================
 * Hero image
 * ========================================================================= */
.hero-image {
    margin: 56px auto 0;
    max-width: 980px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18), 0 1px 0 var(--border) inset;
    border: 1px solid var(--border);
}
.hero-image img { display: block; width: 100%; height: auto; }

/* ============================================================================
 * Containers
 * ========================================================================= */
.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-wide {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================================
 * Download page
 * ========================================================================= */
.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 640px;
    margin: 0 auto 48px;
}
.download-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    background: var(--bg);
}
.download-card-os {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.download-card-version {
    font-size: 13px;
    color: var(--text-label);
    margin-bottom: 18px;
}
.download-btn { display: inline-block; margin: 6px 0 12px; }
.download-card-meta {
    font-size: 12px;
    color: var(--text-label);
}
.sysreq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}
.sysreq-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}
.sysreq-card-os {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}
.sysreq-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sysreq-list li {
    font-size: 13px;
    color: var(--text-muted);
}
.sysreq-list strong { color: var(--text); font-weight: 500; }

/* ============================================================================
 * Changelog
 * ========================================================================= */
.changelog-page-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.changelog-intro {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 48px;
}
.changelog-list {
    display: flex;
    flex-direction: column;
}
.changelog-entry {
    padding: 28px 0;
    border-top: 1px solid var(--border);
}
.changelog-entry:last-child { border-bottom: 1px solid var(--border); }
.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 12px;
}
.changelog-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}
.changelog-date {
    font-size: 12px;
    color: var(--text-label);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.changelog-body { color: var(--text-muted); font-size: 14px; line-height: 1.65; }
.changelog-body p { margin: 0 0 10px; }
.changelog-body p:last-child { margin-bottom: 0; }
.changelog-body a { color: var(--text); }

/* ============================================================================
 * Roadmap
 * ========================================================================= */
.roadmap-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    text-align: center;
}
.roadmap-intro {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}
.roadmap-col {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
}
.roadmap-col-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-label);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px;
}
.roadmap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.roadmap-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.roadmap-item-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.roadmap-footer {
    text-align: center;
    margin-top: 56px;
    color: var(--text-label);
    font-size: 14px;
}

/* ============================================================================
 * Gallery
 * ========================================================================= */
.gallery-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    text-align: center;
}
.gallery-intro {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 48px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1080px;
    margin: 0 auto;
}
.gallery-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
}
.gallery-thumb {
    aspect-ratio: 16 / 10;
    background: var(--bg-code);
    display: block;
}
.gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-card-body { padding: 16px 18px 20px; }
.gallery-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 4px;
}
.gallery-card-artist {
    font-size: 12px;
    color: var(--text-label);
    margin-bottom: 8px;
}
.gallery-card-artist span { color: var(--text-muted); }
.gallery-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
 * Comparison
 * ========================================================================= */
.cmp-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    text-align: center;
}
.cmp-intro {
    font-size: 15px;
    color: var(--text-muted);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 40px;
}
.cmp-table-wrap {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: auto;
    max-width: 1080px;
    margin: 0 auto;
}
.cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.cmp-table th, .cmp-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.cmp-table tr:last-child th, .cmp-table tr:last-child td { border-bottom: none; }
.cmp-table thead th {
    font-weight: 600;
    color: var(--text);
    background: var(--bg-code);
    border-bottom-width: 2px;
}
.cmp-table th[scope="row"] {
    font-weight: 500;
    color: var(--text);
    width: 28%;
}
.cmp-table td { color: var(--text-muted); }
.cmp-table .cmp-magerie {
    color: var(--text);
    font-weight: 500;
}
.cmp-footnote {
    text-align: center;
    margin-top: 32px;
    color: var(--text-label);
    font-size: 13px;
}

/* ============================================================================
 * Legal pages (privacy, terms)
 * ========================================================================= */
.legal-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.legal-meta {
    color: var(--text-label);
    font-size: 13px;
    margin-bottom: 32px;
}
.legal-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin: 32px 0 12px;
    letter-spacing: -0.01em;
}
.legal-section p, .legal-section li {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
}
.legal-section ul {
    margin: 0 0 16px;
    padding-left: 22px;
}
.legal-section li { margin-bottom: 6px; }
.legal-section a { color: var(--text); }
.legal-section code {
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--bg-code);
    padding: 1px 6px;
    border-radius: 4px;
}
.legal-disclaimer {
    margin-top: 36px;
    padding: 16px;
    background: var(--bg-code);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================================================
 * Search page
 * ========================================================================= */
.search-title {
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}
.search-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-family: inherit;
    font-size: 16px;
    background: var(--bg-code);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--text); }
.search-empty {
    margin-top: 24px;
    color: var(--text-label);
    font-size: 14px;
}
.search-results {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.search-hit {
    display: block;
    padding: 14px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
    transition: background 0.12s, border-color 0.12s;
}
.search-hit:hover {
    background: var(--bg-code);
    border-color: var(--border);
}
.search-hit-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.search-hit-snippet {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}
.search-hit-snippet mark {
    background: rgba(124, 111, 247, 0.22);
    color: inherit;
    padding: 0 2px;
    border-radius: 3px;
}

/* ============================================================================
 * Responsive overrides
 * ========================================================================= */
@media (max-width: 960px) {
    .download-grid,
    .sysreq-grid,
    .roadmap-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

