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

:root {
    --primary: #16a34a;
    --primary-dark: #15803d;
    --primary-light: #22c55e;
    --primary-glow: rgba(34, 197, 94, 0.3);
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #e5e7eb;
    --gray-100: #f9fafb;
    --white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--gray-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Language Switcher - Floating */
.language-switcher {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--gray-300);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.language-switcher button {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--gray-500);
    transition: all 0.2s;
    font-size: 0.875rem;
}

.language-switcher button.active {
    color: var(--primary);
}

.language-switcher span {
    color: var(--gray-300);
}

/* Hero */
.hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.floating-icon {
    position: absolute;
    top: -20px;
    left: -20px;
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.tag {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(22, 163, 74, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 480px;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

.btn.primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.4);
}

.btn.secondary {
    background: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}

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

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

.btn.outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* Hero Image */
.hero-image .mockup {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
    border-radius: 32px;
    padding: 1.5rem;
    border: 1px solid var(--gray-300);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.queue-preview {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.queue-header {
    font-weight: 700;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-300);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.live-badge {
    font-size: 0.75rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.queue-item {
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-100);
}

.queue-number {
    font-weight: 700;
    color: var(--gray-500);
}

.queue-name {
    flex: 1;
    margin-left: 1rem;
    font-weight: 500;
}

.queue-time {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.queue-item.highlight {
    background: linear-gradient(90deg, rgba(22, 163, 74, 0.05) 0%, transparent 100%);
    border-radius: 8px;
    padding: 0.75rem;
    margin: 0 -0.75rem;
}

.queue-item.highlight .queue-name {
    color: var(--primary);
    font-weight: 700;
}

.queue-animation {
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Sections */
.section {
    padding: 5rem 0;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--white) 100%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 24px;
    transition: all 0.3s;
    border: 1px solid var(--gray-300);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--primary);
}

.feature h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--gray-500);
}

/* App Card */
.app-card {
    background: white;
    border-radius: 32px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    border: 1px solid var(--gray-300);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.app-icon-wrapper {
    position: relative;
}

.app-icon-wrapper img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.app-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-info p {
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-item p {
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-700);
    font-size: 1.25rem;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: var(--gray-900);
    color: white;
    padding: 3rem 2rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 28px;
    filter: brightness(0) invert(1);
}

.footer-logo span {
    font-weight: 600;
}

.copyright {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Content Toggle */
.content {
    display: none;
}

.content.active {
    display: block;
}

/* RTL */
html[dir="rtl"] .language-switcher {
    right: auto;
    left: 2rem;
}

html[dir="rtl"] .cta-group {
    direction: rtl;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 5rem 1.5rem 3rem;
        gap: 2rem;
    }

    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-group {
        justify-content: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .app-card {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .language-switcher {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.8rem;
    }

    html[dir="rtl"] .language-switcher {
        left: 1rem;
        right: auto;
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1rem 0;
}

.footer-link {
    color: var(--gray-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}