:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f97316;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #334155;
    background: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

.code-block {
    background: #1e293b;
    color: #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    font-family: monospace;
    overflow-x: auto;
    margin: 16px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--dark);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--light);
    border-color: #cbd5e1;
}

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

.btn-accent:hover {
    background: #ea580c;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background: #dbeafe;
    color: var(--primary);
    margin-bottom: 16px;
}

/* Navbar */
.navbar {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.2s;
}

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

.lang-switch button {
    background: none;
    border: 1px solid var(--border);
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--gray);
}

.lang-switch button.active {
    background: var(--dark);
    color: white;
    border-color: var(--dark);
}

/* Content Padding for Fixed Navbar */
.page-content {
    padding-top: 100px;
    flex: 1;
}

/* Page Headers (Privacy, Refund, etc) */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 60px;
}

.article-content h2 {
    color: var(--dark);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.article-content p, .article-content li {
    color: #475569;
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.article-content ul {
    padding-left: 20px;
    margin-bottom: 24px;
}

.highlight-box {
    background: #eff6ff;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background: #fff7ed;
    border-left: 4px solid var(--secondary);
    padding: 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
}

/* Demo Pages */
.demo-controls {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    background: radial-gradient(circle at top right, #f0f9ff, white);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
}

.browser-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.browser-mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.browser-header {
    background: #f1f5f9;
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.browser-body {
    padding: 24px;
    min-height: 300px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative; /* Context for absolute positioning */
}

.p-0 {
    padding: 0 !important;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    /* Optional: if the image has sharp corners, maybe round the bottom ones to match container? 
       But container clips overflow so it's fine. */
}

.floating-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 320px; /* Typical extension width */
    max-width: 50%; /* Prevent covering too much on small screens */
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    z-index: 10;
    animation: floatIn 0.8s ease-out forwards;
}

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

.fake-row {
    height: 12px;
    background: #e2e8f0;
    border-radius: 4px;
    width: 100%;
}

.fake-table {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.highlight-row {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 16px;
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 32px;
    border-radius: 16px;
    background: white;
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: #eff6ff;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    font-size: 0.95rem;
    flex-grow: 1;
}

.feature-link {
    margin-top: 20px;
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 350px));
    gap: 32px;
    justify-content: center;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
    margin: 24px 0;
}

.price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--gray);
}

.features-list {
    margin: 32px 0;
    list-style: none;
}

.features-list li {
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    color: var(--gray);
}

.check-icon {
    color: #22c55e;
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

.copyright {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav-links {
        display: none; /* Simplify for mobile for now */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.lang-section {
    display: none;
}
