:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --primary-color: #3b82f6;
    --secondary-color: #1e293b;
    --accent-color: #8b5cf6;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

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

.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

nav {
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 5%;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 5%;
    min-height: 80vh;
    justify-content: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(to right, #3b82f6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

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

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

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

.btn:hover {
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    justify-content: center;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat .number {
    font-size: 2rem;
    font-weight: 800;
}

.stat .label {
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.browser-mockup {
    background: var(--secondary-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.browser-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.tabs {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
}

.tab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.tab.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #eab308;
}

.green {
    background: #22c55e;
}

.browser-body {
    padding: 2rem;
    font-family: 'Courier New', monospace;
    text-align: left;
}

.code-block {
    background: #000;
    padding: 1.5rem;
    border-radius: 8px;
    color: #e2e8f0;
    line-height: 1.8;
    font-size: 0.95rem;
    display: none;
    /* Hidden by default */
    border: 1px solid #334155;
}

.code-block.visible {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tag {
    color: #60a5fa;
}

.highlight {
    color: #facc15;
    font-weight: bold;
    background: rgba(250, 204, 21, 0.1);
    padding: 0 4px;
    border-radius: 2px;
}

.arrow {
    text-align: center;
    margin: 1rem 0;
    color: #94a3b8;
}

.translated {
    color: #86efac;
}

.ltx_cite {
    color: #94a3b8;
    font-size: 0.9em;
}

.features {
    padding: 5rem 5%;
    background: rgba(0, 0, 0, 0.2);
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.how-it-works {
    padding: 5rem 5%;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.step {
    text-align: center;
    max-width: 300px;
}

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

footer {
    padding: 3rem 5%;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 1.5rem;
}

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

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}