:root {
    --bg-color: #050505;
    --text-color: #e2e8f0;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #1e293b;
    --secondary-hover: #334155;
    --accent: #8b5cf6;
    --card-bg: rgba(30, 41, 59, 0.7);
    --nav-bg: rgba(5, 5, 5, 0.85);
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-bg: radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 35%),
                   radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.15) 0%, transparent 35%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: var(--gradient-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem max(5%, calc((100% - 1440px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 8px;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 1.5rem;
}

.dropbtn {
    background: none;
    border: none;
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    transition: color 0.3s ease;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 1.5rem);
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    min-width: 220px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 20px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(16px);
    z-index: 10;
    overflow: hidden;
}

.dropdown-content a {
    color: var(--text);
    padding: 1rem 1.5rem;
    text-decoration: none;
    display: block;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    padding-left: 2rem;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* User Menu */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-menu-btn {
    background: transparent;
    border: none;
    padding: 0.375rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-color);
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: linear-gradient(to top right, #a855f7, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.user-info span {
    font-size: 0.875rem;
    font-weight: 500;
    color: #e5e7eb;
}

.chevron {
    color: #6b7280;
    transition: transform 0.2s ease;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    width: 16rem;
    background: rgba(10, 13, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-radius: 0.5rem;
    padding: 0.25rem;
    z-index: 50;
    backdrop-filter: blur(16px);
    transform-origin: top right;
}

.user-dropdown.show {
    display: block;
    animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-dropdown-header {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.25rem;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.1rem;
}

.user-email {
    font-size: 0.75rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.25rem 0.5rem;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #d1d5db;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.user-dropdown-item svg {
    color: #6b7280;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--text-color);
}

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

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    gap: 24rem;
    position: relative;
    text-align: left;
}

.hero-content {
    flex: 0 1 auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight {
    color: #FF8B47;
    background: linear-gradient(
        to right,
        #FF8B47 20%,
        #FFE0B2 50%,
        #FF8B47 80%
    );
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero p {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

/* Glass Panel Graphic */
.hero-graphic {
    flex: 0 1 auto;
    display: flex;
    justify-content: center;
}

.float-wrapper {
    animation: float 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
}

.app-mockup {
    max-width: 280px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.6));
    -webkit-box-reflect: below -10px linear-gradient(to bottom, transparent 75%, rgba(255,255,255,0.4) 100%);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.app-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

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

/* Features Section */
.features {
    padding: 5rem 5%;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(12px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.visible:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.15);
}

.icon-placeholder {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 16px;
    margin: 0 auto 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #94a3b8;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem;
    border-top: 1px solid var(--border-color);
    color: #64748b;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding-top: 8rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .cta-group {
        justify-content: center;
    }
    
    .glass-panel {
        transform: none;
    }
    
    nav {
        display: flex;
        gap: 0.75rem;
    }

    nav > a[href="#features"],
    nav > a[href="#about"] {
        display: none;
    }
    
    .btn-outline {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .logo img {
        height: 32px !important;
    }
}

/* Waitlist Form */
.waitlist-container {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 450px;
}

.waitlist-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.waitlist-inputs {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .waitlist-inputs {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    #wl-fname, #wl-lname {
        flex: 1;
        min-width: 120px;
    }
    
    #wl-email {
        flex: 2;
        min-width: 200px;
    }
    
    .waitlist-btn {
        flex: 1 1 100%;
    }
}

.waitlist-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 0.25rem;
    cursor: pointer;
    position: relative;
    user-select: none;
}

.waitlist-consent input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    top: 2px;
    height: 18px;
    width: 18px;
    min-width: 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.waitlist-consent:hover input ~ .checkmark {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.8);
}

.waitlist-consent input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.waitlist-consent input:checked ~ .checkmark:after {
    display: block;
}

.waitlist-consent .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-text {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

.waitlist-consent:hover .consent-text {
    color: #cbd5e1;
}

.waitlist-input {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.waitlist-input::placeholder {
    color: #64748b;
}

.waitlist-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

.waitlist-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.waitlist-message {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: 1.5rem;
}

.waitlist-message.success {
    color: #10b981; /* Emerald 500 */
}

.waitlist-message.error {
    color: #ef4444; /* Red 500 */
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px);
}

.modal-overlay.show .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: #fff;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}
