:root {
    --primary-color: #28a745;
    --primary-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --primary-dark: #1e7e34;
    --secondary-color: #1e1e1e;
    --background-color: #121212;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-light: #a0a0a0;
    --border-color: #333333;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Global Focus & Hover States for Accessibility */
a:focus, button:focus, .btn:focus, input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Code Snippet Styling */
.code-snippet-container {
    background: #000000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    margin: 20px 0;
    overflow: hidden;
}

.code-snippet-container pre {
    margin: 0;
    overflow-x: auto;
}

.code-snippet-container code {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #d4d4d4;
    font-size: 0.9rem;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Breadcrumbs */
.breadcrumb {
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: #fff;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.logo img {
    height: 40px;
}

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

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

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

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

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

.lang-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--surface-color);
    min-width: 180px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    z-index: 1001;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 10px;
    margin-top: 10px;
}

/* Invisible bridge to prevent menu from disappearing when moving cursor across the gap */
.lang-content::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: transparent;
}

.lang-dropdown:hover .lang-content {
    display: block;
    animation: fadeInDropdown 0.2s ease;
}

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

/* Hero Section */
.hero {
    padding: 40px 0; /* Reduced padding to maximize vertical space */
    background: radial-gradient(circle at top right, rgba(40, 167, 69, 0.1), transparent 40%);
    overflow: hidden; /* Prevent horizontal scroll from large image */
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px; /* Reduced gap to give more space to content */
}

.hero-text {
    flex: 1 1 40%; /* Text takes 40% width */
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.hero-image {
    flex: 1 1 60%; /* Image takes 60% width - dominant size */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 130%; /* Force image to overflow slightly and look massive */
    max-width: none;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
    border-radius: 10px;
    margin-right: -10%; /* Pull to the right edge */
}

.tech-info {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 40px;
    background: var(--background-color);
    padding: 40px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.1);
}

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

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.feature-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 2rem; /* Larger title */
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 800; /* Bolder */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); /* Highlight */
}

.feature-content p {
    font-size: 1.15rem;
    color: #e0e0e0; /* Better readability */
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.05); /* Subtle background for readability */
    padding: 15px;
    border-radius: 8px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works (Steps) */
.how-it-works {
    padding: 80px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step {
    background: var(--surface-color);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

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

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 auto 25px;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.step h3 {
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.4rem;
}

.step p {
    color: var(--text-light);
}

/* Download Section */
.download-section {
    padding: 80px 0;
    text-align: center;
}

.download-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface-color);
    padding: 60px 40px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.download-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
}

.os-icon {
    height: 60px;
    margin-bottom: 20px;
}

.version-info {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 30px;
    font-weight: 500;
}

.small-text {
    margin-top: 15px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.trust-item {
    text-align: center;
    color: var(--text-light);
}

/* FAQ Section */
.faq {
    padding: 80px 0;
    background-color: var(--surface-color);
}

.faq-container {
    max-width: 1000px; /* Wider */
    margin: 0 auto;
}

.faq-item {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.2s ease;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    font-size: 1.1rem;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-question[aria-expanded="true"] {
    background-color: rgba(40, 167, 69, 0.1);
    border-bottom: 1px solid var(--border-color);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-light);
    line-height: 1.6;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
    margin-left: 15px;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* Reviews Marquee */
.reviews {
    padding: 80px 0;
    overflow: hidden;
    background: var(--background-color); /* Ensure dark */
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    background: var(--surface-color);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.trust-badges img {
    height: 60px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.trust-badges img:hover {
    opacity: 1;
}

/* Language Dropdown Spacing - Internal links */
.lang-content a {
    color: var(--text-color);
    display: block;
    padding: 10px 15px; /* Increased padding */
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 5px; /* Spacing between languages */
    border-radius: 6px;
    transition: all 0.2s;
}

.lang-content a:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.lang-content a:hover {
    color: #fff;
    background: var(--primary-color);
    padding-left: 15px; /* Reset padding shift, just bg change */
    border-color: transparent;
}

/* Translation Section (Grid Layout) */
.languages {
    background-color: var(--background-color);
    border-top: 1px solid var(--border-color);
}

.languages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 40px;
}

.language-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-color);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    text-decoration: none;
}

.language-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    background: rgba(40, 167, 69, 0.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.language-item .flag {
    font-size: 1.5rem;
    line-height: 1;
}

.language-item .lang-name {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.language-item:hover .lang-name {
    color: #fff;
}

/* Footer */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-light);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-links {
        display: none; /* Simple hide for now, would need JS toggle */
    }
    
    .steps {
        flex-direction: column;
    }
}
