/* AV HQ — Shared Stylesheet */

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-elevated: #1a1a1a;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.1);
    --text-primary: #f5f5f7;
    --text-secondary: rgba(245, 245, 247, 0.7);
    --text-tertiary: rgba(245, 245, 247, 0.4);
    --accent: #0a84ff;
    --accent-hover: #409cff;
    --green: #30d158;
    --red: #ff453a;
    --purple: #bf5af2;
    --orange: #ff9f0a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", SFMono-Regular, ui-monospace, Menlo, monospace;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

/* ── Navigation ── */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.nav-brand img {
    height: 32px;
    width: auto;
    border-radius: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
    transition: color 0.2s ease;
}

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

.nav-links a.active {
    color: var(--text-primary);
}

/* ── Buttons ── */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(10, 132, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(10, 132, 255, 0.08);
    color: var(--accent-hover);
}

/* ── Hero ── */

.hero {
    padding: 140px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(10, 132, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: 980px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(17px, 2.5vw, 21px);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero-screenshot {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border-subtle),
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 120px rgba(10, 132, 255, 0.06);
}

.hero-screenshot img {
    width: 100%;
    border-radius: var(--radius-lg);
}

/* ── Section ── */

.section {
    padding: 100px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 16px;
}

.section .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.5;
}

.section-center {
    text-align: center;
}

.section-center .subtitle {
    margin: 0 auto;
}

/* ── Feature Grid ── */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-medium);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.feature-icon.blue { background: rgba(10, 132, 255, 0.12); color: var(--accent); }
.feature-icon.green { background: rgba(48, 209, 88, 0.12); color: var(--green); }
.feature-icon.red { background: rgba(255, 69, 58, 0.12); color: var(--red); }
.feature-icon.purple { background: rgba(191, 90, 242, 0.12); color: var(--purple); }
.feature-icon.orange { background: rgba(255, 159, 10, 0.12); color: var(--orange); }

.feature-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* ── Showcase (alternating screenshot + text) ── */

.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 80px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.showcase.reverse {
    direction: rtl;
}

.showcase.reverse > * {
    direction: ltr;
}

.showcase-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 0 0 1px var(--border-subtle),
        0 12px 40px rgba(0, 0, 0, 0.4);
}

.showcase-image img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.showcase-text .section-label {
    margin-bottom: 12px;
}

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

.showcase-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.showcase-text ul {
    list-style: none;
    padding: 0;
}

.showcase-text ul li {
    font-size: 15px;
    color: var(--text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.showcase-text ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

/* ── CTA Section ── */

.cta {
    text-align: center;
    padding: 100px 24px;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(10, 132, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ── Footer ── */

.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 32px 24px;
    text-align: center;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-tertiary);
}

.footer-links a:hover {
    color: var(--text-secondary);
}

/* ── Legal Pages ── */

.legal {
    max-width: 720px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.legal h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal .last-updated {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 48px;
}

.legal h2 {
    font-size: 22px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 12px;
}

.legal h3 {
    font-size: 17px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 8px;
}

.legal p, .legal li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal ul, .legal ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal li {
    margin-bottom: 6px;
}

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

/* ── Support / Wiki ── */

.wiki-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px 80px;
    min-height: calc(100vh - 52px);
}

.wiki-sidebar {
    position: sticky;
    top: 80px;
    align-self: start;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.wiki-sidebar-section {
    margin-bottom: 28px;
}

.wiki-sidebar-section h4 {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    padding-left: 12px;
}

.wiki-sidebar-section a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.wiki-sidebar-section a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
}

.wiki-sidebar-section a.active {
    color: var(--text-primary);
    background: rgba(10, 132, 255, 0.1);
}

.wiki-content {
    min-width: 0;
}

.wiki-content h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.wiki-content .wiki-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.wiki-content h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 56px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.wiki-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.wiki-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 12px;
}

.wiki-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.wiki-content ul, .wiki-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.wiki-content li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 6px;
}

.wiki-screenshot {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 24px 0 32px;
    box-shadow:
        0 0 0 1px var(--border-subtle),
        0 8px 24px rgba(0, 0, 0, 0.3);
}

.wiki-screenshot img {
    width: 100%;
    border-radius: var(--radius-md);
}

.wiki-callout {
    background: rgba(10, 132, 255, 0.06);
    border: 1px solid rgba(10, 132, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.wiki-callout strong {
    color: var(--accent);
}

.wiki-kbd {
    display: inline-block;
    padding: 2px 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: 5px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-primary);
    line-height: 1.6;
}

.wiki-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 28px;
    font-size: 14px;
}

.wiki-table th {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-medium);
}

.wiki-table td {
    padding: 10px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.support-banner {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
    margin-top: 56px;
}

.support-banner h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 0;
}

.support-banner p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ── Responsive ── */

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .showcase {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .showcase.reverse {
        direction: ltr;
    }
    .wiki-layout {
        grid-template-columns: 1fr;
    }
    .wiki-sidebar {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border-subtle);
        max-height: none;
    }
    .wiki-sidebar-section {
        margin-bottom: 0;
    }
    .wiki-sidebar-section h4 {
        display: none;
    }
    .wiki-sidebar-section a {
        padding: 6px 14px;
        background: var(--bg-card);
        border-radius: 980px;
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        gap: 16px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
