:root {
    /* Color System */
    --bg-dark: #070913;
    --bg-light: #f8fafc;
    --card-dark: rgba(255, 255, 255, 0.03);
    --card-light: rgba(0, 0, 0, 0.02);
    --border-dark: rgba(255, 255, 255, 0.08);
    --border-light: rgba(0, 0, 0, 0.08);
    
    --text-dark: rgba(255, 255, 255, 0.92);
    --text-light: #1e293b;
    --text-muted-dark: rgba(255, 255, 255, 0.75);
    --text-muted-light: #475569;
    
    --primary: #1A73E8;
    --primary-hover: #1557b0;
    --accent-glow: rgba(26, 115, 232, 0.15);
    
    /* Theme mapping */
    --bg: var(--bg-dark);
    --card-bg: var(--card-dark);
    --border-color: var(--border-dark);
    --text: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    --shadow: rgba(0, 0, 0, 0.5);
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    
    color-scheme: dark light;
}

/* Light Mode Overrides */
@media (prefers-color-scheme: light) {
    :root {
        --bg: var(--bg-light);
        --card-bg: var(--card-light);
        --border-color: var(--border-light);
        --text: var(--text-light);
        --text-muted: var(--text-muted-light);
        --shadow: rgba(0, 0, 0, 0.05);
        --accent-glow: rgba(26, 115, 232, 0.08);
    }
}

/* Language Visibility Rules */
html:not(.lang-de) .lang-de {
    display: none !important;
}
html.lang-de .lang-en {
    display: none !important;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

/* Background Blobs */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.blob-1 {
    position: absolute;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(26, 115, 232, 0.08) 0%, rgba(26, 115, 232, 0.02) 40%, transparent 70%);
    top: -20%;
    left: -20%;
    border-radius: 50%;
}

.blob-2 {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(99, 102, 241, 0.01) 40%, transparent 70%);
    bottom: -10%;
    right: -10%;
    border-radius: 50%;
}

/* Layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 24px 80px;
    position: relative;
}

/* Language Dropdown Switcher */
.lang-switcher {
    position: absolute;
    top: 24px;
    right: 24px;
}

.lang-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--card-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1px solid var(--border-color);
    color: var(--text);
    padding: 12px 36px 12px 16px;
    min-height: 48px;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px var(--shadow);
}

.lang-select:hover {
    border-color: var(--primary);
}

.lang-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.lang-select option {
    background-color: var(--bg);
    color: var(--text);
}

/* RTL Layout Support (Arabic) */
html[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .lang-switcher {
    right: auto;
    left: 24px;
}

html[dir="rtl"] .lang-select {
    background-position: left 12px center;
    padding: 12px 16px 12px 36px;
}

html[dir="rtl"] .step-number {
    margin-right: 0;
}

html[dir="rtl"] .faq-item summary {
    text-align: right;
}

html[dir="rtl"] .faq-answer {
    text-align: right;
}

html[dir="rtl"] details.legal-accordion summary {
    text-align: right;
}

html[dir="rtl"] .legal-content {
    text-align: right;
}

/* Hero Header */
header {
    text-align: center;
    margin-bottom: 48px;
    animation: fadeIn 0.8s ease-out;
}

.logo-container {
    display: inline-block;
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 24px var(--shadow);
    border: 1px solid var(--border-color);
}

.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: light) {
    h1 {
        background: linear-gradient(135deg, #0f172a 30%, var(--primary) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }
}

.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    font-weight: 500;
}

/* Trust Signals */
.trust-signals {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
    flex-wrap: wrap;
}

.trust-badge-1 {
    background: rgba(16, 185, 129, 0.12);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trust-badge-2 {
    background: rgba(99, 102, 241, 0.12);
    color: #818CF8;
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trust-badge-3 {
    background: rgba(245, 158, 11, 0.12);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Uneed, Smol Hunt, Looking For Tools & CodeTrendy Award Badges */
.uneed-badge-container {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.uneed-badge-container a {
    display: inline-block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.uneed-badge-container a:hover {
    transform: translateY(-2px);
}

.award-badge-img {
    height: 36px;
    width: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

/* TL;DR Summary Card */
.tldr-card {
    margin-top: 20px;
    text-align: left;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.tldr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 6px;
}

.tldr-text {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text);
    margin: 0;
}

/* Banner Card */
.banner-card {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 48px;
    box-shadow: 0 20px 40px var(--shadow);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out;
}

.cta-group-top {
    margin-top: 8px;
    margin-bottom: 40px;
}

.cta-group-bottom {
    margin-top: 48px;
    margin-bottom: 48px;
}

@media (min-width: 600px) {
    .cta-group {
        flex-direction: row;
        gap: 24px;
    }
}

.play-store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

.play-store-badge:hover {
    transform: translateY(-2px);
}

.play-store-badge img {
    height: 80px;
    display: block;
}

.github-apk-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 10px 16px;
    transition: color 0.2s ease;
}

.github-apk-link:hover {
    color: var(--text);
    text-decoration: underline;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(26, 115, 232, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-badge {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 99px;
    margin-left: 8px;
}

/* Features / Info Card */
.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 56px;
    box-shadow: 0 10px 30px var(--shadow);
    animation: fadeIn 1s ease-out;
}

.info-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Comparison Card */
.comparison-card {
    margin-top: 32px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.comparison-box-before {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--radius-md);
    padding: 18px;
}

.comparison-box-after {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 18px;
}

.comparison-title-before {
    font-weight: 700;
    color: #EF4444;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-title-after {
    font-weight: 700;
    color: #10B981;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comparison-desc-before {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.comparison-desc-after {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

/* Section Spacing */
.section-features {
    margin-top: 32px;
}

.step-icon-privacy {
    background: rgba(99, 102, 241, 0.15);
    color: #6366F1;
    border-color: rgba(99, 102, 241, 0.3);
    font-size: 1.1rem;
}

.step-icon-routing {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border-color: rgba(16, 185, 129, 0.3);
    font-size: 1.1rem;
}

.step-icon-instant {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
    border-color: rgba(245, 158, 11, 0.3);
    font-size: 1.1rem;
}

/* Testimonial / Review Section */
.testimonial-card {
    margin-top: 32px;
}

.review-header-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--primary);
    margin-bottom: 14px;
}

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

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.author-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
}

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

.review-stars {
    color: #F59E0B;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.review-text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary);
    padding: 14px 18px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* FAQ Section */
.faq-card {
    margin-top: 32px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, background-color 0.2s ease;
    overflow: hidden;
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(26, 115, 232, 0.35);
}

.faq-question {
    padding: 16px 20px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--primary);
    transition: transform 0.2s ease;
    margin-left: 12px;
    flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
    content: "−";
    transform: rotate(0deg);
}

.faq-answer {
    padding: 0 20px 16px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 12px;
}

.faq-answer p {
    margin: 0;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--accent-glow);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    border: 1px solid rgba(26, 115, 232, 0.2);
}

.step-title {
    font-weight: 600;
    font-size: 1.05rem;
}

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

/* Collapsible Legal Notice & Privacy */
.legal-section {
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
    margin-top: 64px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

details {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

details[open] {
    border-color: rgba(26, 115, 232, 0.4);
    box-shadow: 0 8px 24px var(--shadow);
}

summary {
    padding: 16px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    outline: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
    color: var(--primary);
}

.legal-content {
    padding: 0 24px 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}

.legal-content h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin-top: 16px;
    margin-bottom: 6px;
    font-weight: 600;
}

.legal-content h3:first-of-type {
    margin-top: 0;
}

.legal-content p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.legal-content li {
    margin-bottom: 4px;
}

/* Footer Copyright */
footer {
    text-align: center;
    margin-top: 48px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: underline;
}

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
