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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

/* Header */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-current {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    min-width: 120px;
}

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

.lang-current::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: auto;
    transition: transform 0.2s;
}

.lang-switcher.open .lang-current::after {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.2s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.lang-option:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 8px 8px;
}

.lang-option:hover {
    background: var(--bg-light);
}

.lang-option.active {
    background: var(--bg-light);
    color: var(--primary);
    font-weight: 600;
}

.lang-flag {
    font-size: 1.25rem;
    line-height: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--bg-light);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-white), var(--bg-light));
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.875rem;
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    display: inline-block;
    font-weight: 600;
}

/* File Type Icons */
.file-types {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-top: 2.5rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

.file-type-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.file-type-icon:hover .icon {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.15);
}

.file-type-icon .icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid rgba(37, 99, 235, 0.1);
}

.file-type-icon .label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: center;
}

.hero-image {
    background-image: url(bg.png);
    margin-top: 4rem;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-style: italic;
}

/* Trust Section */
.trust {
    background: var(--primary);
    color: white;
}

.trust h2,
.trust p {
    color: white;
}

.trust-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.trust-bullets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: left;
}

.trust-bullet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-bullet::before {
    content: "✓";
    font-size: 1.5rem;
    font-weight: bold;
}

/* Why Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.why-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.why-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.why-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

/* Comparison Section */
.comparison {
    background: var(--bg-light);
}

.comparison-table-wrapper {
    margin-top: 3rem;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.comparison-table th {
    padding: 1.5rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table th:first-child {
    width: 30%;
}

.comparison-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

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

.comparison-table tbody tr:hover {
    background: var(--bg-light);
}

.comparison-table .feature-label {
    font-weight: 600;
    color: var(--text-dark);
}

.comparison-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-icon-small {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.comparison-icon-small.check {
    color: #10b981;
}

.comparison-icon-small.cross {
    color: #ef4444;
}

.comparison-icon-small.neutral {
    color: #6b7280;
}

.comparison-table .winner-col {
    background: rgba(16, 185, 129, 0.05);
    font-weight: 500;
}

.comparison-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.comparison-badge::before {
    content: "🏆";
    font-size: 0.9rem;
}

/* How It Works */
.how-it-works {
    background: var(--bg-white);
}

.steps {
    display: grid;
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

/* Use Cases */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.use-case-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.use-case-card h3 {
    margin-bottom: 1rem;
}

/* Privacy */
.privacy {
    background: var(--bg-light);
}

.privacy-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.privacy-bullets {
    list-style: none;
    margin-top: 2rem;
    text-align: left;
}

.privacy-bullets li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.privacy-bullets li::before {
    content: "🔒";
    font-size: 1.5rem;
}

/* CTA Strip */
.cta-strip {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.cta-strip-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-strip h2,
.cta-strip p {
    color: white;
}

.cta-strip-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

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

.cta-strip .btn-primary:hover {
    background: var(--bg-light);
}

.cta-strip .btn-secondary {
    border-color: white;
    color: white;
}

.cta-strip .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1rem;
}

.faq-question {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.faq-answer {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
    
    .header-content > div {
        gap: 1rem !important;
    }
    
    nav {
        display: none; /* Simple mobile: hide nav, keep CTA */
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .comparison-badge {
        display: none;
    }
    
    .comparison-icon-small {
        font-size: 1rem;
    }
    
    .lang-current {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .lang-dropdown {
        min-width: 130px;
    }
    
    .lang-option {
        padding: 0.625rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
