:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #06d6a0;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #0f172a;
    --dark-lighter: #1e293b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--gray-800);
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    overflow-x: hidden;
}

body.waitlist-open {
    overflow: hidden;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 140px;
    height: 140px;
    bottom: 10%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
}

.logo a::before {
    content: none;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    display: block;
}

.logo i {
    color: var(--gray-600);
    font-size: 1.8rem;
}

.accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    position: relative;
}

.waitlist-nav-trigger {
    border: none;
    background: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.95rem;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.waitlist-nav-trigger:hover,
.waitlist-nav-trigger:focus-visible {
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary-dark);
    outline: none;
}

.nav-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    padding: 0.15rem;
    border-radius: 999px;
    margin-left: 0.5rem;
    transition: var(--transition);
}

.nav-auth-button:hover,
.nav-auth-button:focus-visible {
    color: var(--primary-dark);
    outline: none;
}

.nav-auth-button.is-authenticated {
    color: var(--primary);
}

.nav-auth-button[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-auth-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.08);
    transition: var(--transition);
}

.nav-auth-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.nav-auth-button:hover .nav-auth-icon,
.nav-auth-button:focus-visible .nav-auth-icon {
    background: rgba(99, 102, 241, 0.16);
}

.nav-auth-button.is-authenticated .nav-auth-icon {
    background: rgba(79, 70, 229, 0.16);
}

.nav-auth-icon svg circle,
.nav-auth-icon svg path {
    stroke: currentColor;
}

.nav-auth-label {
    display: inline-flex;
    align-items: center;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 999px;
    transition: var(--transition);
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.nav-link {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.lang-switch-icon {
    font-size: 1.1rem;
}

.lang-toggle .fa-globe {
    font-size: 1.1rem;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    min-width: 150px;
    background: var(--white);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-200);
    box-shadow: 0 12px 24px -12px rgba(15, 23, 42, 0.25);
    padding: 0.35rem 0;
    display: none;
    z-index: 1100;
}

.lang-menu.open {
    display: block;
}

.lang-option {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--gray-700);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.lang-option:hover,
.lang-option:focus-visible {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

.lang-option.is-active {
    color: var(--primary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--success);
    font-weight: 600;
    font-size: 0.9rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    scroll-margin-top: 110px;
}

.hero--compact {
    min-height: auto;
    padding: 102px 2rem 3rem;
    gap: 3.5rem;
}

.hero--compact .hero-title {
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero--compact .hero-title-desktop {
    white-space: normal;
}

.hero--compact .hero-title-prefix,
.hero--compact .hero-title-brand {
    display: block;
}

.hero--compact .hero-title-brand {
    margin-top: 0.35rem;
}

.hero--compact .hero-subtitle {
    margin-bottom: 2.25rem;
}

.hero--compact .hero-actions {
    margin-top: 3.5rem;
}

@media (max-width: 768px) {
    .hero--compact {
        padding: 92px 1.5rem 2.25rem;
        gap: 2.75rem;
    }

    .hero--compact .hero-subtitle {
        margin-bottom: 1.75rem;
    }

    .hero--compact .hero-actions {
        display: flex;
        width: 100%;
        justify-content: center;
        margin-top: 2rem;
        gap: 0.75rem;
    }

    .hero--compact .hero-actions .hero-cta {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .hero--compact .hero-actions .hero-cta:first-child {
        display: none;
    }
}

.hero-content {
    flex: 1;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out;
    color: var(--primary);
    background: transparent;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.4rem;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero-title-desktop,
.hero-title-mobile {
    display: block;
}

.hero-title-desktop {
    display: none;
}

@media (min-width: 769px) {
    .hero-title-desktop {
        display: block;
    }

    .hero-title-mobile {
        display: none;
    }

    .hero--compact .hero-subtitle {
        display: none;
    }
}

.hero.hero-detail {
    min-height: auto;
    padding: 120px 2rem 4rem;
    gap: 3rem;
}

.hero-detail-stats {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
}

.hero-detail-stats .stat {
    min-width: 140px;
    text-align: left;
}

.hero-detail-stats .stat-number {
    font-size: 2.2rem;
}

/* Temporarily hide stale stock-only stats until live data is wired up */
.stock-detail-page:not(.portfolio-detail-page) .hero-detail-stats,
.stock-detail-page:not(.portfolio-detail-page) #performance {
    display: none !important;
}

.portfolio-detail-page .hero-detail-stats {
    display: none !important;
}

.hero-footnote {
    margin-top: 1.75rem;
    font-size: 0.9rem;
    color: var(--gray-500);
    max-width: 540px;
}

.gradient-text {
    color: var(--primary);
}

.inline-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.35);
    transition: var(--transition);
}

.inline-link:hover,
.inline-link:focus-visible {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.ticker-link {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 102, 241, 0.35);
    transition: var(--transition);
}

.ticker-link:hover,
.ticker-link:focus-visible {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    line-height: 1.6;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.hero-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    animation: slideInUp 0.8s ease-out 0.5s both;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.12);
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.hero-tag:hover,
.hero-tag:focus-visible {
    background: rgba(99, 102, 241, 0.2);
    color: var(--secondary);
}

.hero-tag i {
    font-size: 0.9rem;
}

body[data-auth-state="signed-in"] [data-auth-open] {
    display: none !important;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 999px;
    background: var(--primary);
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font: inherit;
}

.hero-share-group {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-share-group--desktop {
    display: inline-flex;
}

.hero-share-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.1);
    color: var(--gray-600);
    text-decoration: none;
    font-size: 1.15rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .hero-share-group--desktop {
        display: none;
    }
}

.hero-share-icon svg {
    width: 20px;
    height: 20px;
}

.hero-share-icon:hover,
.hero-share-icon:focus-visible {
    color: var(--dark);
    background: rgba(15, 23, 42, 0.18);
    transform: translateY(-2px);
}

.hero-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-cta i {
    font-size: 1rem;
}

.hero-cta--pink {
    background: #ec4899;
}

.hero-cta--pink:hover {
    background: #db2777;
}

.hero-cta--desktop {
    display: none;
}

@media (min-width: 769px) {
    .hero-cta--desktop {
        display: inline-flex;
    }

    .hero-cta--mobile {
        display: none;
    }
}

.cta-secondary {
    background: #64748b;
}

.cta-secondary:hover {
    background: #475569;
}

.movers-actions {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
}

.news-actions {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
    margin-top: 0.5rem;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chart-container {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    animation: slideInUp 0.8s ease-out 0.8s both;
}

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

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    margin-bottom: 6rem;
    scroll-margin-top: 110px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.section-title__link {
    color: inherit;
    text-decoration: none;
}

.section-title__link:hover,
.section-title__link:focus-visible {
    color: var(--secondary);
}

.section-title i {
    color: var(--primary);
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.section-link:hover,
.section-link:focus-visible {
    color: var(--secondary);
}

@media (max-width: 640px) {
    .main-content {
        padding: 0 1.25rem;
    }

    .section {
        margin-bottom: 3.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        gap: 0.75rem;
    }
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    margin-top: 6rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    color: var(--gray-400);
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    text-decoration: none;
    font-size: 1.25rem;
    transition: var(--transition);
}

.footer-social .social-link:hover,
.footer-social .social-link:focus-visible {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.16);
}

.footer-social .social-link svg {
    width: 20px;
    height: 20px;
}

.link-group h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.link-group a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding: 2rem;
    text-align: center;
    color: var(--gray-400);
}

.footer-bottom a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.footer-bottom a:hover,
.footer-bottom a:focus-visible {
    color: var(--secondary);
    text-decoration: underline;
}

/* Waitlist Modal */
.waitlist-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1100;
}

.waitlist-modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.waitlist-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
}

.waitlist-modal__dialog {
    position: relative;
    width: min(640px, 100%);
    background: var(--white);
    border-radius: 20px;
    padding: 3rem 3.25rem;
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

.waitlist-modal.is-visible .waitlist-modal__dialog {
    transform: translateY(0);
}

.waitlist-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(99, 102, 241, 0.08);
    border: none;
    color: var(--gray-500);
    width: 40px;
    height: 40px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.waitlist-modal__close:hover,
.waitlist-modal__close:focus-visible {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.15);
}

.waitlist-modal__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-dark);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.waitlist-modal__title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.waitlist-modal__subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    margin-bottom: 1.1rem;
}

.waitlist-modal__features {
    margin-bottom: 2.25rem;
    display: grid;
    gap: 0.85rem;
    padding-left: 1.5rem;
    color: var(--gray-700);
    font-size: 1.05rem;
}

.waitlist-modal__form {
    margin-bottom: 1rem;
}

.waitlist-modal__privacy--disclaimer {
    margin-bottom: 0.75rem;
    color: var(--gray-500);
}

.waitlist-modal__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
    color: var(--gray-500);
}

.waitlist-modal__checkbox {
    margin-top: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
}

.waitlist-modal__checkbox:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.45);
    outline-offset: 2px;
}

.waitlist-modal__checkbox-label {
    line-height: 1.5;
}

.waitlist-modal__checkbox-label a {
    color: var(--primary);
    font-weight: 600;
}

.waitlist-modal__label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.85rem;
    font-size: 1rem;
}

.waitlist-modal__input-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.waitlist-modal__input {
    flex: 1;
    padding: 0.85rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--gray-200);
    font-size: 1rem;
    line-height: 1;
    transition: var(--transition);
}

.waitlist-modal__input::placeholder {
    color: var(--gray-400);
}

.waitlist-modal__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.waitlist-modal__submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.waitlist-modal__submit:hover,
.waitlist-modal__submit:focus-visible {
    opacity: 0.9;
}

.waitlist-modal__submit[disabled] {
    cursor: not-allowed;
    opacity: 0.7;
}

.waitlist-modal__confirmation {
    min-height: 1.25rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--success);
}

.waitlist-modal__privacy {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.5;
}

.waitlist-modal__error {
    min-height: 1.25rem;
    margin-top: -0.25rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--danger);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 1rem 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-detail-stats {
        justify-content: center;
    }

    .hero-detail-stats .stat {
        text-align: center;
    }

    .hero-footnote {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .nav-container {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    p {
        font-size: 0.9rem !important;
        line-height: 1.35;
    }

    .nav-container {
        position: relative;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
    }

    .nav-actions {
        margin-left: auto;
        margin-right: 0.5rem;
    }

    .logo {
        gap: 0;
    }

    .logo a {
        min-width: 40px;
        min-height: 40px;
        justify-content: center;
    }

    .logo img {
        display: none;
    }

    .logo a::before {
        content: '';
        display: inline-block;
        width: 36px;
        height: 36px;
        background-image: url('../img/logo_square.png');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 1rem;
        width: calc(100% - 2rem);
        display: none;
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--gray-200);
        border-radius: 1rem;
        box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        font-size: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-menu-btn.is-active {
        color: var(--primary);
    }
    
    .main-content {
        padding: 0 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
        justify-items: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero.hero-detail {
        padding: 120px 1rem 3rem;
    }

    .hero-detail-stats {
        gap: 1.5rem;
    }

    .hero-detail-stats .stat-number {
        font-size: 1.9rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .hero-cta {
        width: auto;
        min-width: 220px;
        justify-content: center;
    }

    .waitlist-modal__dialog {
        width: min(520px, 100%);
        padding: 2.5rem 2.25rem;
        max-height: calc(100vh - 2.5rem);
    }

    .waitlist-modal__input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .waitlist-modal__input,
    .waitlist-modal__submit {
        width: 100%;
        border-radius: 14px;
    }
}

@media (max-width: 640px) {
    .waitlist-modal {
        padding: 1.25rem;
    }

    .waitlist-modal__dialog {
        width: calc(100% - 1rem);
        max-width: 420px;
        border-radius: 18px;
        padding: 1.5rem 1.25rem 1.1rem;
        max-height: calc(100vh - 1.5rem);
    }

    .waitlist-modal__close {
        top: 0.75rem;
        right: 0.75rem;
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .waitlist-modal__badge {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .waitlist-modal__title {
        font-size: 0.95rem;
    }

    .waitlist-modal__subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.7rem;
    }

    .waitlist-modal__features {
        font-size: 0.9rem;
        gap: 0.5rem;
        padding-left: 1rem;
        margin-bottom: 1rem;
    }

    .waitlist-modal__label {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .waitlist-modal__input {
        font-size: 0.9rem;
        padding: 0.65rem 0.85rem;
        border-radius: 12px;
    }

    .waitlist-modal__submit {
        font-size: 0.9rem;
        padding: 0.65rem 0.9rem;
        border-radius: 12px;
    }

    .waitlist-modal__form {
        margin-bottom: 0.35rem;
    }

    .waitlist-modal__confirmation {
        font-size: 0.85rem;
    }

    .waitlist-modal__privacy {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }
}
