:root {
    --primary: #b8b8b8;
    --primary-dark: #8f8f8f;
    --accent: #d0d0d0;
    --button-primary: #4a9eff;
    --button-primary-dark: #2d7dd2;
    --bg: #262626;
    --bg-dark: #262626;
    --card: #323232;
    --card-alt: #404040;
    --page-bg: #262626;
    --nav-bg: rgba(38, 38, 38, 0.95);
    --section-bg: #262626;
    --section-alt: #303030;
    --field-bg: rgba(255,255,255,0.04);
    --field-border: rgba(255,255,255,0.12);
    --subtle-bg: rgba(255,255,255,0.04);
    --subtle-bg-hover: rgba(255,255,255,0.08);
    --subtle-border: #5a5a5a;
    --text: #eeeeee;
    --muted: #a8a8a8;
    --border: #5a5a5a;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--page-bg);
    color: var(--text);
    line-height: 1.65;
}

a { 
    color: var(--primary); 
    text-decoration: none; 
}

a:hover { 
    color: var(--accent); 
}

.navbar { 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    background: var(--nav-bg); 
    border-bottom: 1px solid var(--border); 
    backdrop-filter: blur(12px); 
}

.nav-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 1rem 2rem; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 1rem; 
}

.logo { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    font-size: 1.35rem; 
    font-weight: 700; 
}

.logo-icon {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
    flex: 0 0 auto;
}

.nav-links { 
    display: flex; 
    gap: 1.75rem; 
    list-style: none; 
    flex-wrap: wrap; 
}

.nav-links a { 
    font-weight: 500; 
    color: var(--muted); 
}

.nav-links a:hover { 
    color: var(--text); 
}

.hero { 
    min-height: 100vh; 
    display: grid; 
    place-items: center; 
    padding: 3rem 2rem 4rem; 
    background:
        radial-gradient(ellipse at top, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
        #303030;
}

.hero-inner { 
    max-width: 1120px; 
    width: 100%; 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    align-items: center; 
    justify-items: center; 
}

.hero-frontpage { 
    width: 80%; 
    max-width: 1040px; 
    height: auto; 
    margin: 0 auto; 
    border: none; 
    padding: 0; 
    background: transparent; 
    border-radius: 0; 
    box-shadow: none; 
}

.hero-copy, .hero-panel { 
    width: min(100%, 1040px); 
}

.hero-copy { 
    margin-top: 1.5rem; 
    text-align: center; 
}

.hero-panel { 
    margin-top: 1.5rem; 
}

.hero-copy h1 { 
    font-size: clamp(2rem, 3vw, 3rem); 
    line-height: 1.2; 
    margin-bottom: 1rem; 
}

.hero-copy p { 
    max-width: 720px; 
    color: var(--muted); 
    margin: 0 auto 2rem; 
    font-size: 1.05rem; 
}

.hero-cta { 
    display: flex; 
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn-primary { 
    background: linear-gradient(135deg, var(--button-primary), var(--button-primary-dark));
    color: white; 
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
}

.btn-secondary { 
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(74, 158, 255, 0.4);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    color: var(--primary);
}

.hero-panel { 
    position: relative; 
    padding: 2rem; 
    border-radius: 32px; 
    background: linear-gradient(180deg, var(--subtle-bg), rgba(255,255,255,0.02)); 
    border: 1px solid var(--subtle-border); 
    box-shadow: var(--shadow); 
}

.hero-panel::before { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    border-radius: 32px; 
    background: radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 25%);
    pointer-events: none; 
}

.hero-panel-content { 
    position: relative; 
    z-index: 1; 
    display: grid; 
    gap: 1.25rem; 
}

.hero-panel-title { 
    font-size: 1.35rem; 
    font-weight: 700;
    text-align: center;
}

.hero-panel-meta { 
    color: var(--muted); 
    font-size: 0.95rem;
    text-align: center;
}

.hero-panel-badge { 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    padding: 0.85rem 1rem; 
    background: rgba(184, 184, 184, 0.12); 
    border-radius: 999px; 
    color: var(--primary); 
    font-weight: 700; 
    width: fit-content; 
}

.nav-right { 
    display: flex; 
    align-items: center; 
}

.theme-toggle { 
    background: transparent; 
    border: none; 
    color: var(--text); 
    cursor: pointer; 
    padding: 0.7rem; 
    border-radius: 999px; 
    transition: background-color 0.25s ease; 
}

.theme-toggle:hover { 
    background: var(--subtle-bg-hover); 
}

.theme-toggle i { 
    width: 20px; 
    text-align: center; 
}

body.light { 
    --primary: #505050; 
    --primary-dark: #404040; 
    --accent: #606060; 
    --bg: #f5f5f5; 
    --bg-dark: #e8e8e8;
    --card: #ffffff; 
    --card-alt: #f7f7f7; 
    --page-bg: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
    --nav-bg: rgba(232, 232, 232, 0.95);
    --section-bg: #f5f5f5;
    --section-alt: #e8e8e8;
    --field-bg: #e8e8e8;
    --field-border: #c0c0c0;
    --subtle-bg: rgba(0,0,0,0.03);
    --subtle-bg-hover: rgba(0,0,0,0.06);
    --subtle-border: #d6d6d6;
    --text: #111827; 
    --muted: #5a5a5a; 
    --border: #d6d6d6; 
}

body.light { 
    background: var(--page-bg); 
}

body.light .navbar { 
    background: var(--nav-bg);
    border-bottom-color: var(--border); 
}

body.light .hero { 
    background: var(--bg); 
}

body.light .card, body.light .hero-panel { 
    background: var(--card); 
    border-color: var(--border); 
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09); 
}

body.light .btn-secondary { 
    border-color: var(--border);
    color: var(--text); 
}

body.light .btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

body.light .contact-form {
    background: var(--bg);
    border-color: var(--border);
}

body.light .form-group input,
body.light .form-group textarea {
    background: var(--field-bg);
    border-color: var(--field-border);
    color: var(--text);
}

body.light .contact-email {
    color: var(--muted);
}

section { 
    padding: 5rem 2rem; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 3rem; 
}

.section-header h2 { 
    font-size: 2.75rem; 
    margin-bottom: 0.75rem; 
}

.section-header p { 
    color: var(--muted); 
    max-width: 700px; 
    margin: 0 auto; 
}

section#features {
    display: flex;
    justify-content: center;
    background: var(--section-bg);
}

body.light section#features {

    padding-top: 1rem;
}


section#features .hero-panel {
    margin: 0 auto;
}

.features-grid, .formats-grid { 
    display: grid; 
    gap: 1.75rem; 
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
}

.card { 
    background: var(--card); 
    border: 1px solid var(--border); 
    border-radius: 24px; 
    padding: 2rem; 
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); 
}

.feature-card .icon, .format-card .icon { 
    width: 52px; 
    height: 52px; 
    display: grid; 
    place-items: center; 
    border-radius: 18px; 
    background: rgba(184,184,184,0.12); 
    color: var(--primary); 
    font-size: 1.3rem; 
    margin-bottom: 1.2rem; 
}

.feature-card h3, .format-card h3 { 
    margin-bottom: 0.85rem; 
}

.feature-card p, .format-card p { 
    color: var(--muted); 
}

section#action { 
    background: var(--section-alt); 
}

.screenshots {
    padding: 6rem 2rem;
    background: var(--card-alt);
}

.screenshots-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.screenshot-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--card);
    cursor: pointer;
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-panel { 
    display: grid; 
    gap: 1rem; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
}

.highlight-card { 
    background: var(--subtle-bg); 
    border: 1px solid var(--subtle-border); 
    border-radius: 20px; 
    padding: 1.6rem; 
}

.highlight-card strong { 
    display: block; 
    margin-bottom: 0.5rem; 
}

section#download { 
    background: var(--section-bg); 
}

.download-section { 
    display: grid; 
    place-items: center; 
    text-align: center; 
}

.download-section p { 
    max-width: 620px; 
    margin: 0 auto 1.5rem; 
    color: var(--muted); 
}

.download-notes { 
    color: var(--muted); 
    margin-top: 1rem; 
}

section#contact { 
    background: var(--section-alt);
}

.contact { 
    padding: 6rem 2rem; 
}

.contact-form { 
    max-width: 600px; 
    margin: 0 auto; 
    background: var(--card); 
    padding: 2.5rem; 
    border-radius: 16px; 
    border: 1px solid var(--border); 
}

.form-group { 
    margin-bottom: 1.5rem; 
}

.form-group label { 
    display: block; 
    margin-bottom: 0.5rem; 
    font-weight: 500; 
    color: var(--text); 
}

.form-group input,
.form-group textarea { 
    width: 100%; 
    padding: 1rem; 
    background: var(--field-bg); 
    border: 1px solid var(--field-border); 
    border-radius: 8px; 
    color: var(--text); 
    font-size: 1rem; 
    font-family: inherit; 
    transition: border-color 0.3s ease; 
}

.form-group input:focus,
.form-group textarea:focus { 
    outline: none; 
    border-color: var(--primary); 
}

.form-group textarea { 
    min-height: 150px; 
    resize: vertical; 
}

.form-honeypot { 
    display: none; 
}

.form-status { 
    display: none; 
    margin-top: 1rem; 
    padding: 0.85rem 1rem; 
    border-radius: 8px; 
    font-weight: 600; 
    text-align: center; 
}

.form-status.visible { 
    display: block; 
}

.form-status.success { 
    color: #1f6f35; 
    background: rgba(50, 150, 80, 0.2); 
    border: 1px solid rgba(90, 190, 110, 0.45); 
}

.form-status.error { 
    color: #8f1f1f; 
    background: rgba(180, 70, 70, 0.2); 
    border: 1px solid rgba(220, 100, 100, 0.45); 
}

.contact-email { 
    text-align: center; 
    margin-top: 2rem; 
    color: var(--muted); 
}

.contact-email a { 
    font-weight: 600; 
}

.footer { 
    padding: 2rem; 
    text-align: center; 
    border-top: 1px solid var(--border); 
    color: var(--muted);
    background: var(--section-bg);
}

.footer-links { 
    display: inline-flex; 
    flex-wrap: wrap; 
    gap: 1rem; 
    justify-content: center; 
    list-style: none; 
    margin-bottom: 1rem; 
}

.footer-links a { 
    color: var(--muted); 
}

.footer-links a:hover { 
    color: var(--text); 
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

body.light .lightbox {
    background: rgba(255, 255, 255, 0.98);
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    font-size: 1.35rem;
    cursor: pointer;
    opacity: 0.8;
    display: grid;
    place-items: center;
}

.lightbox-nav:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.55);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

body.light .lightbox-close,
body.light .lightbox-nav {
    color: var(--text);
}

body.light .lightbox-nav {
    border-color: rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.75);
}

@media (max-width: 900px) {
    .hero-inner { 
        grid-template-columns: 1fr; 
    }
    .nav-container { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    .nav-links { 
        gap: 1rem; 
    }
}

@media (max-width: 640px) {
    .hero { 
        padding-top: 6rem; 
    }
    .hero-copy h1 { 
        font-size: 2.7rem; 
    }
    .section-header h2 { 
        font-size: 2.2rem; 
    }
}

.policy-page {
    min-height: 100vh;
    padding: 0;
}

.policy-section {
    min-height: calc(100vh - 137px);
    padding: 5rem 2rem;
    background: var(--section-bg);
}

.policy-section .section-header h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.policy-document {
    max-width: 900px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.8;
    white-space: normal;
}

.policy-document h1 {
    color: var(--text);
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.policy-document h3 {
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 2rem 0 0.75rem;
}

.policy-document p {
    color: var(--muted);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.policy-document .policy-bullet {
    margin: 0.25rem 0 0.25rem 1.25rem;
}

@media (max-width: 768px) {
    .policy-section {
        padding: 4rem 1.5rem;
    }

    .policy-section .section-header h1 {
        font-size: 2.2rem;
    }
}
