/* ============================================================
   Projector Windows - Shared Stylesheet
   Covers: reset, variables, base typography, nav, hamburger,
   skip-link, buttons, sections, article layout, callout, toc,
   cta-box, footer, responsive, scrollbar, selection
   ============================================================ */

/* ============ SKIP LINK ============ */
.skip-link {
    position: absolute; left: -9999px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
    z-index: 9999;
}
.skip-link:focus {
    position: fixed; top: 10px; left: 10px;
    width: auto; height: auto;
    padding: 12px 24px;
    background: #d4a855; color: #0a0e1a;
    font-weight: 600; border-radius: 8px;
    text-decoration: none; z-index: 9999;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-deep: #0a0e1a;
    --bg-card: #111827;
    --bg-card-hover: #1a2236;
    --bg-section-alt: #0d1225;
    --text-primary: #f0ead6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --accent-amber: #d4a855;
    --accent-amber-hover: #e6be6a;
    --accent-purple: #8b5cf6;
    --accent-purple-soft: rgba(139, 92, 246, 0.15);
    --accent-indigo: #6366f1;
    --accent-green: #34d399;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
    --max-width: 1100px;
    --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; }

a { color: var(--accent-amber); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-amber-hover); }

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

/* ============ NAV ============ */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 0;
    transition: background var(--transition);
}

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

.nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem; font-weight: 700;
    color: var(--text-primary);
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.nav-brand:hover { color: var(--text-primary); }

.nav-brand svg { width: 28px; height: 28px; }

.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
    color: var(--text-secondary); font-size: 0.9rem; font-weight: 400;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active,
.nav-links a.nav-active { color: var(--accent-amber); }

.nav-hamburger {
    display: none; background: none; border: none; cursor: pointer;
    flex-direction: column; gap: 4px; padding: 4px;
}
.nav-hamburger span {
    display: block; width: 20px; height: 2px; background: var(--text-primary);
    transition: transform 0.2s;
}

@media (max-width: 640px) {
    .nav-hamburger { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(10, 14, 26, 0.95); backdrop-filter: blur(20px);
        flex-direction: column; padding: 16px 24px; gap: 16px;
        border-bottom: 1px solid var(--border-subtle);
    }
    .nav-links.nav-open { display: flex; }
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 100px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem; font-weight: 500;
    cursor: pointer; border: none;
    transition: all var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-amber), #c49a3e);
    color: #0a0e1a;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 168, 85, 0.3);
    color: #0a0e1a;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.cta-btn {
    display: inline-block;
    background: var(--accent-amber);
    color: #0a0e1a;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s;
}
.cta-btn:hover { background: var(--accent-amber-hover); color: #0a0e1a; }

/* ============ SECTION STYLES ============ */
section { padding: 80px 0; }

.section-label {
    display: inline-block;
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--accent-purple);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 540px;
    line-height: 1.7;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-header .section-subtitle { margin: 0 auto; }

/* ============ HERO (shared base) ============ */
.hero {
    padding: 140px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 70% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 60%, rgba(212, 168, 85, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-purple-soft);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 8px 18px; border-radius: 100px;
    font-size: 0.8rem; font-weight: 500;
    color: #c4b5fd; margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.hero-badge::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent-purple);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============ ARTICLE LAYOUT (blog) ============ */
.article-header {
    padding: 120px 24px 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.article-header .breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.article-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 16px;
}
.article-header .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 24px;
}
.article-header .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 80px;
}
.article-body h2 {
    font-size: 1.6rem;
    margin: 48px 0 16px;
    color: var(--accent-amber);
}
.article-body h3 {
    font-size: 1.2rem;
    margin: 32px 0 12px;
}
.article-body p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}
.article-body ul, .article-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
    color: var(--text-secondary);
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--text-primary); }

/* ============ CALLOUT ============ */
.callout {
    background: var(--bg-card);
    border-left: 3px solid var(--accent-amber);
    padding: 20px 24px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 24px 0;
}
.callout p { margin-bottom: 0; }

/* ============ TABLE OF CONTENTS ============ */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px 32px;
    margin: 32px 0;
}
.toc h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.toc ol { padding-left: 20px; }
.toc li { margin-bottom: 6px; font-size: 0.95rem; }

/* ============ CTA BOX ============ */
.cta-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(212, 168, 85, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    margin: 48px 0;
}
.cta-box h3 { margin-bottom: 12px; }
.cta-box p { margin-bottom: 20px; }

/* ============ PRODUCT CARD (blog) ============ */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    margin: 16px 0;
}
.product-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 8px;
}
.product-card .price {
    color: var(--accent-amber);
    font-weight: 600;
    font-size: 1.1rem;
}
.product-card p { font-size: 0.9rem; }

/* ============ FOOTER ============ */
footer {
    text-align: center;
    padding: 40px 24px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-inner {
    display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.footer-socials { display: flex; gap: 12px; }

.footer-text {
    text-align: center; color: var(--text-muted);
    font-size: 0.8rem; line-height: 1.8;
}
.footer-text a { color: var(--text-secondary); }

.amazon-disclosure {
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.75rem; color: var(--text-muted);
    text-align: center; max-width: 500px;
}

/* ============ SOCIAL ICON ============ */
.social-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}
.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.social-icon svg { width: 18px; height: 18px; fill: var(--text-secondary); }

/* ============ SCROLL ANIMATIONS ============ */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-children.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-children.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-children.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-children.visible > *:nth-child(4) { transition-delay: 0.25s; }
.reveal-children.visible > *:nth-child(5) { transition-delay: 0.3s; }
.reveal-children.visible > * {
    opacity: 1; transform: translateY(0);
}

/* ============ EMAIL SIGNUP RESPONSIVE ============ */
@media (max-width: 480px) {
    .email-signup-form {
        flex-direction: column !important;
    }
    .email-signup-form button {
        width: 100%;
    }
}

/* ============ ARTICLE RESPONSIVE ============ */
@media (max-width: 640px) {
    .article-header { padding: 100px 16px 40px; }
    .article-body { padding: 0 16px 60px; }
}

/* ============ BLOG BODY OVERRIDE ============ */
body.blog-article { line-height: 1.8; }

/* ============ SCENE CARD ============ */
.scene-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px;
    margin: 16px 0;
}
.scene-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--accent-purple);
}
.scene-card p { font-size: 0.9rem; margin-bottom: 8px; }
.scene-card .search-term {
    font-size: 0.8rem;
    color: var(--accent-purple);
    font-family: monospace;
    background: rgba(139, 92, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
}
.scene-card .search-term--muted {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    font-family: inherit;
    background: none;
    padding: 0;
}

/* ============ PRODUCT REVIEW ============ */
.product-review {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px;
    margin: 24px 0;
    position: relative;
}
.product-review .badge {
    position: absolute;
    top: -12px; left: 24px;
    background: var(--accent-amber);
    color: #0a0e1a;
    font-size: 0.75rem; font-weight: 700;
    padding: 4px 12px; border-radius: 20px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.product-review h3 { margin-top: 8px; margin-bottom: 8px; }
.product-review .price {
    color: var(--accent-amber);
    font-weight: 600; font-size: 1.2rem;
    margin-bottom: 16px;
}
.product-review .specs {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 8px; margin: 16px 0; font-size: 0.9rem;
}
.product-review .specs span { color: var(--text-muted); }
.product-review .specs strong { color: var(--text-secondary); }
.product-review .pros-cons {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; margin: 16px 0;
}
.product-review .pros h4, .product-review .cons h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 8px;
}
.product-review .pros h4 { color: var(--accent-green); }
.product-review .cons h4 { color: #ef4444; }
.product-review .pros ul, .product-review .cons ul {
    list-style: none; padding: 0; font-size: 0.9rem;
}
.product-review .pros li::before { content: "+ "; color: var(--accent-green); }
.product-review .cons li::before { content: "- "; color: #ef4444; }
.product-review .verdict {
    margin-top: 16px; padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-style: italic;
}
.product-review .buy-link {
    display: inline-block;
    background: var(--accent-amber); color: #0a0e1a;
    padding: 10px 24px; border-radius: 8px;
    font-weight: 600; margin-top: 16px;
    transition: background 0.3s;
}
.product-review .buy-link:hover { background: var(--accent-amber-hover); color: #0a0e1a; }

/* ============ COMPARISON TABLE ============ */
.comparison-table {
    width: 100%; border-collapse: collapse;
    margin: 24px 0; font-size: 0.9rem;
}
.comparison-table th, .comparison-table td {
    padding: 12px 16px; text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}
.comparison-table th {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-muted);
}
.comparison-table td { color: var(--text-secondary); }
.comparison-table td:first-child { color: var(--text-primary); font-weight: 500; }

/* ============ SPEC TABLE ============ */
.spec-table {
    width: 100%; border-collapse: collapse;
    margin: 16px 0 24px; font-size: 0.9rem;
}
.spec-table th, .spec-table td {
    padding: 10px 14px; text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}
.spec-table th {
    color: var(--accent-amber);
    font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 0.8rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.spec-table td { color: var(--text-secondary); }
.spec-table tr:last-child td { border-bottom: none; }

/* ============ TIER BOX ============ */
.tier-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px 28px; margin: 16px 0;
}
.tier-box h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem; color: var(--accent-amber);
    margin-bottom: 8px;
}
.tier-box p { margin-bottom: 8px; }
.tier-box p:last-child { margin-bottom: 0; }

/* ============ FAQ ITEM ============ */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 24px 28px; margin: 16px 0;
}
.faq-item h3 {
    font-size: 1.05rem; margin-bottom: 10px;
    color: var(--text-primary);
}
.faq-item p { margin-bottom: 0; }

/* ============ ACCORDION ============ */
.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    margin: 16px 0; overflow: hidden;
    transition: border-color 0.3s;
}
.accordion-item:hover { border-color: rgba(255, 255, 255, 0.12); }
.accordion-header {
    width: 100%; background: none; border: none;
    color: var(--text-primary);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem; font-weight: 600;
    text-align: left; padding: 20px 24px;
    cursor: pointer; display: flex;
    align-items: center; justify-content: space-between;
    gap: 16px; line-height: 1.4;
}
.accordion-header:hover { background: var(--bg-card-hover); }
.accordion-icon {
    flex-shrink: 0; width: 24px; height: 24px;
    border: 1.5px solid var(--accent-amber);
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    transition: transform 0.3s, background 0.3s;
}
.accordion-icon::after {
    content: '+'; color: var(--accent-amber);
    font-family: 'Inter', sans-serif;
    font-size: 1rem; font-weight: 400; line-height: 1;
}
.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
    background: var(--accent-amber);
}
.accordion-item.open .accordion-icon::after { color: var(--bg-deep); }
.accordion-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease;
}
.accordion-content {
    padding: 0 24px 24px;
    color: var(--text-secondary); line-height: 1.8;
}
.accordion-content p { margin-bottom: 12px; color: var(--text-secondary); }
.accordion-content p:last-child { margin-bottom: 0; }
.accordion-content strong { color: var(--text-primary); }
.accordion-content ul { margin: 8px 0 12px; padding-left: 20px; }
.accordion-content li { margin-bottom: 6px; color: var(--text-secondary); }
.accordion-number {
    color: var(--accent-amber);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem; font-weight: 600;
    margin-right: 12px; flex-shrink: 0;
}

/* ============ SIGNUP BOX ============ */
.signup-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px; text-align: center; margin: 48px 0;
}
.signup-box h3 { margin-bottom: 8px; }
.signup-box p { margin-bottom: 20px; color: var(--text-secondary); font-size: 0.95rem; }
.signup-form {
    display: flex; gap: 12px;
    max-width: 440px; margin: 0 auto;
}
.signup-form input[type="email"] {
    flex: 1; padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}
.signup-form input[type="email"]::placeholder { color: var(--text-muted); }
.signup-form input[type="email"]:focus { outline: none; border-color: var(--accent-amber); }
.signup-form button {
    padding: 12px 24px; border-radius: 8px;
    border: none; background: var(--accent-amber);
    color: #0a0e1a; font-family: 'Inter', sans-serif;
    font-weight: 600; font-size: 0.95rem;
    cursor: pointer; transition: background 0.3s;
    white-space: nowrap;
}
.signup-form button:hover { background: var(--accent-amber-hover); }
.signup-success {
    display: none; color: var(--accent-amber);
    font-weight: 500; margin-top: 12px;
}

.cta-btn-outline {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 12px 32px; border-radius: 8px;
    font-weight: 600; transition: all 0.3s;
}
.cta-btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

/* ============ ARTICLE RESPONSIVE (extended) ============ */
@media (max-width: 640px) {
    .product-review .specs { grid-template-columns: 1fr; }
    .product-review .pros-cons { grid-template-columns: 1fr; }
    .comparison-table { font-size: 0.8rem; }
    .comparison-table th, .comparison-table td { padding: 8px 10px; }
    .spec-table { font-size: 0.8rem; }
    .spec-table th, .spec-table td { padding: 8px 10px; }
    .accordion-header { font-size: 1rem; padding: 16px 20px; }
    .accordion-content { padding: 0 20px 20px; }
}

@media (max-width: 480px) {
    .signup-form { flex-direction: column; }
}

/* ============ MISCELLANEOUS ============ */
::selection { background: rgba(139, 92, 246, 0.3); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
