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

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.logo h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    margin-bottom: 20px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.lang-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
    user-select: none;
    -webkit-user-select: none;
    min-width: 85px;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lang-btn:active {
    transform: translateY(0);
}

.lang-btn.active {
    background: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.lang-btn.active:hover {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Main Content */
main {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 60px;
}

.hero h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* CTA Section */
.cta {
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 40px;
    border-radius: 15px;
    color: white;
    margin-top: 60px;
}

.cta h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta > p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.notify-form {
    display: flex;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.notify-form input {
    flex: 1;
    min-width: 250px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.notify-form button {
    padding: 15px 35px;
    background: var(--dark-bg);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notify-form button:hover:not(:disabled) {
    background: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.notify-form button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.note {
    font-size: 0.9rem;
    opacity: 0.8;
    font-style: italic;
}

.note.error {
    color: #ff6b6b;
    opacity: 1;
    font-weight: 600;
}

.note.success {
    color: #51cf66;
    opacity: 1;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    color: white;
    padding: 30px 20px;
}

footer p {
    margin: 5px 0;
}

.status {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-content h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.otp-input-container {
    margin-bottom: 25px;
}

.otp-input-container input {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    letter-spacing: 8px;
    font-weight: 600;
    outline: none;
    transition: border-color 0.3s ease;
}

.otp-input-container input:focus {
    border-color: var(--primary-color);
}

.otp-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.otp-buttons button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.otp-buttons button:first-child {
    background: var(--primary-color);
    color: white;
}

.otp-buttons button:first-child:hover:not(:disabled) {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.otp-buttons button.secondary {
    background: #e0e0e0;
    color: var(--text-dark);
}

.otp-buttons button.secondary:hover {
    background: #d0d0d0;
}

.otp-buttons button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.otp-message {
    margin-top: 15px;
    font-size: 0.9rem;
    min-height: 20px;
}

.otp-message.error {
    color: #ff6b6b;
    font-weight: 600;
}

/* Success Modal */
.modal-content.success {
    text-align: center;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: successBounce 0.5s ease;
}

@keyframes successBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.modal-content.success h3 {
    color: #51cf66;
    margin-bottom: 20px;
}

.modal-content.success p {
    margin-bottom: 15px;
}

.modal-content.success button {
    padding: 12px 40px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.modal-content.success button:hover {
    background: #4f46e5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    main {
        padding: 40px 25px;
    }

    .cta {
        padding: 40px 25px;
    }

    .notify-form {
        flex-direction: column;
    }

    .notify-form input {
        width: 100%;
    }

    .notify-form button {
        width: 100%;
    }

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

    .language-switcher {
        margin-top: 15px;
        gap: 8px;
    }

    .lang-btn {
        min-width: 80px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .otp-buttons {
        flex-direction: column;
    }

    .otp-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 15px;
    }

    .logo h1 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    main {
        padding: 30px 20px;
    }

    .language-switcher {
        gap: 8px;
    }

    .lang-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
        min-width: 75px;
    }
}
