/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Apple-inspired Color Palette */
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --accent-hover: #0077ed;
    --border-color: #d2d2d7;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
}

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

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

.interest-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.interest-btn:hover {
    background-color: var(--accent-hover);
}

.interest-btn:active {
    transform: scale(0.98);
}

/* ===== Navigation Actions ===== */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lang-switcher {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.3s ease;
    color: var(--text-primary);
}

.lang-switcher:hover {
    background-color: var(--bg-primary);
}

.lang-switcher:active {
    transform: scale(0.95);
}

.lang-switcher svg {
    display: block;
    width: 20px;
    height: 20px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    text-align: center;
}

.hero-content {
    // max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.015em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3125rem);
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    font-size: 1.0625rem;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

.cta-button:active {
    transform: scale(0.98);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--bg-primary);
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

.copyright {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===== Modal ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    animation: fadeIn 0.2s ease-out;
}

.modal.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    margin: 15vh auto 0;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease-out;
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notify-modal {
    max-width: 440px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.modal-message {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ===== Email Form ===== */
.email-form {
    margin-top: 1.5rem;
}

.email-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}

.email-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.email-input::placeholder {
    color: var(--text-secondary);
}

.submit-button {
    width: 100%;
    padding: 0.65rem 2rem;
    font-size: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 400;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.submit-button:hover {
    background-color: var(--accent-hover);
    box-shadow: var(--shadow-md);
}

.submit-button:hover {
    background-color: var(--accent-hover);
}

.submit-button:active {
    transform: scale(0.98);
}

.form-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 500;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    /* Header & Nav */
    .nav {
        padding: 0.75rem 1rem;
    }

    .logo-icon {
        width: 20px;
        height: 20px;
    }

    .logo-text {
        font-size: 14px;
    }

    .interest-btn {
        padding: 0.25rem 0.75rem;
        font-size: 12px;
    }

    /* Hero Section */
    .hero {
        padding: 7.5rem 1rem 2rem;
    }

    .hero-title {
        font-size: 40px;
        letter-spacing: -0.015em;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 28px;
        letter-spacing: -0.01em;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.5;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 15px;
    }

    /* Footer */
    .footer {
        padding: 2rem 0;
    }

    .copyright {
        font-size: 11px;
    }

    /* Modal */
    .modal-content {
        margin: 10vh 1rem 0;
        max-width: calc(100vw - 2rem);
        padding: 1.5rem;
    }

    .notify-modal {
        max-width: calc(100vw - 2rem);
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .modal-message {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    /* Additional small screen optimizations */
    .hero {
        padding: 6rem 1rem 2rem;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-description {
        font-size: 15px;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}
