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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-width: 350px;
}

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

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #FF002B;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}
.mobile-menu { display: flex; align-items: center; gap: 30px; }

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #FF002B;
}

.nav-links a.active {
    color: #FF002B;
}

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

.btn-login {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.btn-login:hover {
    color: #FF002B;
}

.btn-primary {
    background: #FF002B;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #FF002B;
}

.hero {
    text-align: center;
    padding: 80px 0;
    background: linear-gradient(135deg, #FF002B 0%, #FF002B 100%);
    color: white;
}

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

.hero-text {
    text-align: left;
}

.hero-media { display: flex; justify-content: flex-end; }

.hero-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-img { height: 22px; }
    .hero-split { grid-template-columns: 1fr; }
    .hero-text { text-align: center; }
    .hero-img { max-width: 220px; margin: 20px auto 0; }
    .header { padding: 12px 0; }
    .nav { width: 100%; position: relative; }
    .menu-toggle { display: block; margin-left: auto; }
    .mobile-menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; box-shadow: 0 12px 28px rgba(0,0,0,0.12); padding: 12px; z-index: 1001; }
    .nav.open .mobile-menu { display: block; }
    .mobile-menu .language-selector { margin-bottom: 10px; }
    .nav-links { display: none; }
    .mobile-menu .nav-links { display: flex; flex-direction: column; gap: 8px; }
    .mobile-menu .nav-links a { padding: 10px 12px; border-radius: 6px; background: #f8f9fa; }
    .mobile-menu .nav-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
    .btn-login { display: block; width: 100%; text-align: center; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 6px; background: #ffffff; }
    .btn-primary { display: block; width: 100%; text-align: center; padding: 12px 16px; }
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-media { justify-content: center; }
}

@media (max-width: 480px) {
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 1.9rem; line-height: 1.25; }
    .hero p { font-size: 0.95rem; }
    .hero-img { max-width: 200px; }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.features-section {
    padding: 80px 0;
}

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

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    margin-bottom: 20px;
}

.feature-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

.stats-section {
    background: #f9fafb;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: #FF002B;
    margin-bottom: 10px;
}

.stat-item p {
    color: #666;
    font-size: 1.1rem;
}

.cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #FF002B 0%, #FF002B 100%);
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-cta {
    background: white;
    color: #FF002B;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

.footer {
    background: #1f2937;
    color: #ffffff;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    color: #FF002B;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

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

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #FF002B;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 30px;
    text-align: center;
    color: #9ca3af;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.language-selector:hover {
    border-color: #FF002B;
}

.language-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #333;
    font-weight: 500;
}

.flag-icon {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
}

.language-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    padding: 6px;
    display: none;
    min-width: 120px;
    z-index: 1001;
}

.language-selector.open .language-menu {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 4px;
}

.language-option:hover {
    background: #f3f4f6;
}

.language-option.selected {
    background: #ffe4e6;
    outline: 1px solid #FF002B;
}

@property --num {
    syntax: '<integer>';
    initial-value: 0;
    inherits: false;
}

.stat {
    counter-reset: num var(--num);
    display: inline-block;
}

.stat::before {
    content: counter(num);
}

.stat-k::after {
    content: 'K+';
}

.stat-m::after {
    content: 'M+';
}

.stat-n::after {
    content: '+';
}

.stat-percent::after {
    content: '.9%';
}

.stat-k {
    animation: count-k 1.5s ease-out forwards;
}

.stat-m {
    animation: count-m 1.2s ease-out forwards;
}

.stat-n {
    animation: count-n 1.8s ease-out forwards;
}

.stat-percent {
    animation: count-p 1.6s ease-out forwards;
}

@keyframes count-k {
    from {
        --num: 0;
    }

    to {
        --num: 50;
    }
}

@keyframes count-m {
    from {
        --num: 0;
    }

    to {
        --num: 2;
    }
}

@keyframes count-n {
    from {
        --num: 0;
    }

    to {
        --num: 500;
    }
}

@keyframes count-p {
    from {
        --num: 0;
    }

    to {
        --num: 99;
    }
}

#flagIcon {
    font-size: 18px;
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.auth-content {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e1e5e9;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    color: #666;
    font-weight: 600;
}

.auth-tab.active {
    color: #FF002B;
    border-bottom-color: #FF002B;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #FF002B;
}

.btn-shorten {
    background: #FF002B;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-shorten:hover {
    background: #FF002B;
}

.hidden {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

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