:root {
    --bg: #0a0a0f;
    --accent: #7c3aed;
    --accent-2: #06b6d4;
    --text: #e2e8f0;
    --text-muted: #64748b;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(10, 10, 15, 0.8);
    --radius: 16px;
    --radius-pill: 999px;
    --font: 'Inter', sans-serif;
}

[data-theme="light"] {
    --bg: #f8f8fc;
    --accent: #7c3aed;
    --accent-2: #0891b2;
    --text: #0f0f1a;
    --text-muted: #6b7280;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(248, 248, 252, 0.85);
}

[data-theme="light"] .hero::after {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
}

[data-theme="light"] .hero-title {
    background: linear-gradient(135deg, #1e0a3c 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .btn-ghost {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.12);
    color: var(--text);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(0,0,0,0.08);
}

[data-theme="light"] .kb-sidebar-link:hover,
[data-theme="light"] .kb-sidebar-link.active {
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent);
}

[data-theme="light"] .lang-option:hover {
    background: rgba(0,0,0,0.06);
}

[data-theme="light"] .nav-logo-img {
    content: url('/logo/setify-logo-zwart-klein.webp');
}

[data-theme="light"] .theme-toggle-btn {
    color: #f59e0b;
}

[data-theme="dark"] .theme-toggle-btn,
:root .theme-toggle-btn {
    color: #a78bfa;
}

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

html {
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 32px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.logo-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lang-dropdown {
    position: relative;
}

.lang-flag-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    transition: opacity 0.15s;
    color: var(--text);
}

.lang-flag-btn:hover { opacity: 0.75; }

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 6px;
    flex-direction: column;
    min-width: 90px;
    backdrop-filter: blur(12px);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.lang-dropdown-menu.open { display: flex; }

.lang-option {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    padding: 7px 10px;
    border-radius: 6px;
    text-align: left;
    white-space: nowrap;
    transition: background 0.15s;
}

.lang-option:hover { background: rgba(255,255,255,0.08); }

[data-theme="light"] .lang-option:hover { background: rgba(0,0,0,0.06); }

.nav-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}

.lang-btn:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.lang-btn.active {
    color: var(--text);
}

[data-theme="light"] .lang-btn:hover {
    background: rgba(0,0,0,0.06);
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 6px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}

.theme-toggle-btn:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(0,0,0,0.06);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 4px 0;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.lang-btn.active {
    color: var(--accent);
}

.divider {
    color: var(--card-border);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 24px;
    right: 24px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-install-btn { display: none !important; }
    .glass-nav { width: 100%; left: 0; right: 0; }
    .nav-container { padding: 12px 16px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    main.container { padding-left: 20px; padding-right: 20px; }
    .section { padding: 64px 20px; }
    .hero { padding: 120px 20px 64px; }
    .glass-card { padding: 24px 20px; }
    .legal-body { padding: 32px 24px; }
    .kb-block h3 { font-size: 1.1rem; }
    .hero-sub { font-size: 1.05rem; }
    .hero-ctas { flex-direction: column; align-items: center; gap: 12px; }
    .hero-ctas .btn { width: 100%; max-width: 280px; text-align: center; }
    .changelog-container { padding: 0 4px; }
    .support-hero h1 { font-size: 2rem; }
    .features-section h2 { font-size: 1.8rem; }
}

.mobile-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--card-border);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
    cursor: pointer;
}

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

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    color: var(--text);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    padding: 160px 24px 100px;
    text-align: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Hero Video */
.hero-video-wrap {
    position: relative;
    max-width: 860px;
    margin: 0 auto 48px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    aspect-ratio: 16 / 9;
    backdrop-filter: blur(12px);
}

.hero-video,
.hero-video-wrap video {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 14px;
}

.hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.4rem;
    color: rgba(255,255,255,0.95);
    background: rgba(0,0,0,0.5);
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background 0.2s, transform 0.2s;
    padding-left: 6px;
    backdrop-filter: blur(4px);
}

.hero-play-btn:hover {
    background: rgba(0,0,0,0.7);
    transform: translate(-50%, -50%) scale(1.08);
}

.hero-video-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.hero-video-icon {
    font-size: 3rem;
    color: var(--accent);
    opacity: 0.7;
}

.hero-video-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .hero-video-wrap { border-radius: 12px; margin-bottom: 32px; }
}

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

.hero-langs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    font-size: 0.82rem;
    opacity: 0.85;
    letter-spacing: 0.02em;
}

.hero-langs img {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: opacity 0.15s, transform 0.15s;
}

.hero-langs img:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
}

/* USP Cards */
.usp-card {
    text-align: center;
}

.usp-card h3 {
    margin-bottom: 12px;
}

.usp-card p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Steps */
.steps-container {
    margin-top: 100px;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 80px;
}

.step-item:nth-child(even) {
    flex-direction: row-reverse;
}

.step-content {
    flex: 1;
}

.step-number {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

.step-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

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

@media (max-width: 768px) {
    .step-item, .step-item:nth-child(even) { flex-direction: column; gap: 24px; }
}

/* Pricing */
.pricing-grid {
    margin-top: 60px;
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.05);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 99px;
}

.price-box {
    margin: 24px 0;
}

.price {
    font-size: 3rem;
    font-weight: 800;
}

.period {
    color: var(--text-muted);
}

.features-list {
    margin-bottom: 32px;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-list li::before {
    content: '✓';
    color: var(--accent);
}

/* Features Page */
.features-section {
    margin-bottom: 100px;
}

.features-section h2 {
    text-align: center;
    margin-bottom: 48px;
    font-size: 2.5rem;
}

.feature-item h3 {
    margin-bottom: 8px;
    color: var(--accent-2);
}

/* Knowledge Base */
.kb-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: start;
    min-height: 600px;
}

.kb-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    align-self: start;
}

.kb-content {
    flex: 1;
}

.kb-sidebar-link {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.kb-sidebar-link:hover, .kb-sidebar-link.active {
    background: rgba(255,255,255,0.05);
    color: var(--text);
}

.kb-section {
    display: none;
}

.kb-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 12px;
}

.kb-block {
    margin-bottom: 40px;
}

.kb-block h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.kb-block p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.kb-list {
    padding-left: 20px;
}

.kb-list li {
    margin-bottom: 8px;
    color: var(--text-muted);
    list-style: disc;
}

@media (max-width: 900px) {
    .kb-container { flex-direction: column; }
    .kb-sidebar { width: 100%; position: static; }
}

/* KB Video */
.kb-video-wrap {
    margin-bottom: 36px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    max-width: 100%;
}

.kb-video-wrap video {
    width: 100%;
    height: auto;
    display: block;
}

/* KB Table */
.kb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 12px;
}

.kb-table thead th {
    text-align: left;
    padding: 10px 14px;
    background: var(--glass-bg);
    border-bottom: 2px solid var(--glass-border);
    color: var(--text-primary);
    font-weight: 600;
}

.kb-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--glass-border);
    vertical-align: top;
    color: var(--text-muted);
}

.kb-table tbody td:first-child {
    white-space: nowrap;
}

.kb-table tbody tr:last-child td {
    border-bottom: none;
}

.kb-table code {
    background: rgba(99,102,241,.12);
    color: #818cf8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
}

.kb-type {
    background: rgba(16,185,129,.12);
    color: #34d399;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.8em;
    white-space: nowrap;
}

/* KB Code block */
.kb-code {
    background: rgba(0,0,0,.35);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 16px 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #a5f3fc;
    white-space: pre;
    overflow-x: auto;
    margin-top: 16px;
}

/* KB FAQ */
.kb-faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.kb-faq-item:last-child {
    border-bottom: none;
}

.kb-faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 14px 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.kb-faq-q::after {
    content: '+';
    font-size: 1.2rem;
    color: var(--accent);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.kb-faq-item.open .kb-faq-q::after {
    transform: rotate(45deg);
}

.kb-faq-a {
    display: none;
    padding-bottom: 14px;
}

.kb-faq-item.open .kb-faq-a {
    display: block;
}

.kb-faq-a p {
    color: var(--text-muted);
    margin: 0;
}

[data-theme="light"] .kb-table code {
    background: rgba(99,102,241,.1);
    color: #4f46e5;
}

[data-theme="light"] .kb-type {
    background: rgba(16,185,129,.1);
    color: #059669;
}

[data-theme="light"] .kb-code {
    background: #f3f4f6;
    color: #0369a1;
    border-color: #d1d5db;
}

/* Changelog */
.changelog-container {
    max-width: 800px;
    margin: 60px auto 0;
}

.changelog-card {
    margin-bottom: 40px;
}

.changelog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.version-badge {
    background: var(--accent);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 14px;
}

[data-theme="light"] .version-badge {
    background: #F3EFFD;
    color: #000000;
}


.release-date {
    color: var(--text-muted);
    font-size: 14px;
}

.release-summary {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.changelog-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.type-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    height: fit-content;
}

.badge-new { background: #22c55e; color: #000; }
.badge-improved { background: #06b6d4; color: #000; }
.badge-fixed { background: #f97316; color: #000; }

[data-theme="light"] .badge-new { background: #dcfce7; color: #166534; }
[data-theme="light"] .badge-improved { background: #cffafe; color: #155e75; }
[data-theme="light"] .badge-fixed { background: #ffedd5; color: #9a3412; }

/* Support */
.support-hero {
    text-align: center;
    margin-bottom: 60px;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 80px;
}

.elfsight-placeholder {
    text-align: center;
    padding: 40px;
    border: 2px dashed var(--card-border);
    border-radius: var(--radius);
}

.email-box {
    text-align: center;
}

.email-box h3 { margin-bottom: 16px; }

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--card-border);
}

.faq-question {
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: 0.3s ease-out;
    color: var(--text-muted);
    font-size: 14px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    transition: 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

@media (max-width: 768px) {
    .support-grid { grid-template-columns: 1fr; }
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--card-border);
    text-align: center;
}

.footer-links {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Legal pages (Privacy & Terms) */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0 80px;
}

.legal-header {
    text-align: center;
    margin-bottom: 48px;
}

.legal-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.legal-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.legal-body {
    padding: 48px 56px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.legal-section p {
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-list {
    list-style: disc;
    padding-left: 24px;
    color: var(--text-muted);
    line-height: 1.75;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 768px) {
    .legal-body { padding: 28px 24px; }
    .legal-header h1 { font-size: 2rem; }
}
