/* ==== ULTRA-PREMIUM LANDING & AUTH PAGE STYLES ==== */
:root {
    --bg-dark: #05060A; /* Deeper, richer black */
    --accent-primary: #00e5ff;
    --accent-secondary: #00ff88;
    --accent-tertiary: #ff3366;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body.landing-body {
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: auto; 
    height: auto;
    min-height: 100vh;
    background-color: var(--bg-dark);
    color: var(--text-main, #e2e8f0);
    font-family: var(--font-sans, 'Inter', sans-serif);
    scroll-behavior: smooth;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 229, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(0, 255, 136, 0.04) 0%, transparent 50%);
}

/* Ambient glow blobs */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
    animation: floatingGlow 15s infinite ease-in-out alternate;
}

@keyframes floatingGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.1); }
}

.glow-1 {
    width: 700px;
    height: 700px;
    background: var(--accent-primary);
    top: -250px;
    left: -200px;
}

.glow-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-tertiary);
    bottom: -150px;
    right: -100px;
    animation-direction: alternate-reverse;
}

/* ===== HEADER ===== */
.landing-header, .site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    background: rgba(5, 6, 10, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

@media (max-width: 768px) {
    .landing-header, .site-header {
        padding: 20px 24px;
    }
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-logo i {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.5));
}

.site-logo-tag {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}   

/* ===== HERO SECTION ===== */
.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    flex: 1;
    position: relative;
}

.hero-content {
    max-width: 900px;
    width: 100%;
    z-index: 2;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.landing-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    filter: drop-shadow(0 10px 30px rgba(255,255,255,0.1));
}

.landing-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #94a3b8;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Hero Chat Input Box */
.chat-input-wrapper {
    width: 100%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.chat-input-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 800px;
    padding: 12px 12px 12px 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 
                inset 0 0 0 1px rgba(255,255,255,0.05),
                0 0 40px rgba(0, 229, 255, 0.15);
    border-radius: 60px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-input-container:focus-within {
    border-color: rgba(0, 229, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 
                0 0 60px rgba(0, 229, 255, 0.25);
    transform: translateY(-2px);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    outline: none;
    font-family: inherit;
}

.chat-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.send-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), #00b3cc);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

.send-button:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(0, 229, 255, 0.6);
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 60px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    padding: 24px 36px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}

.stat-value {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -1px;
}

.stat-value i {
    color: var(--accent-secondary);
    filter: drop-shadow(0 0 8px rgba(0,255,136,0.6));
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    padding: 120px 24px;
    position: relative;
    z-index: 2;
}

.section-heading {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -1px;
    color: #fff;
}

.section-heading p {
    color: #94a3b8;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Premium Bento Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(180deg, rgba(30, 33, 48, 0.4) 0%, rgba(15, 17, 26, 0.8) 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 32px;
    padding: 48px 40px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    opacity: 0.3;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 40px rgba(0, 229, 255, 0.05);
}

.feat-icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 32px;
    transform: rotate(-5deg);
    transition: transform 0.4s;
    box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
}

.feature-card:hover .feat-icon-wrapper {
    transform: rotate(0deg) scale(1.1);
    background: rgba(0, 229, 255, 0.2);
}

.feat-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.6));
}

.feature-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.illustration {
    height: 180px;
    width: 100%;
    position: relative;
}

/* SVG Animations Enhancement */
.anim-bar-1 { animation: growBar 1.5s ease-out forwards 0.2s; transform-origin: bottom; opacity: 0;}
.anim-bar-2 { animation: growBar 1.5s ease-out forwards 0.4s; transform-origin: bottom; opacity: 0;}
.anim-bar-3 { animation: growBar 1.5s ease-out forwards 0.6s; transform-origin: bottom; opacity: 0;}
.anim-bar-4 { animation: growBar 1.5s ease-out forwards 0.8s; transform-origin: bottom; opacity: 0;}

@keyframes growBar {
    from { transform: scaleY(0); opacity: 0.3; }
    to { transform: scaleY(1); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; stroke-width: 2; }
    50% { transform: scale(1.15); opacity: 1; stroke-width: 4; filter: drop-shadow(0 0 15px var(--accent-secondary));}
    100% { transform: scale(1); opacity: 0.6; stroke-width: 2; }
}

.anim-pulse {
    animation: pulse 3s infinite ease-in-out;
    transform-origin: center;
}

/* ===== AUTH PAGE REFINEMENTS ===== */
.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: rgba(15, 17, 26, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px;
    border-radius: 32px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: fadeInUp 0.5s ease-out forwards;
}

.auth-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -1px;
    color: #fff;
}

.auth-input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0,0,0,0.5);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 0 3px rgba(0, 229, 255, 0.15);
}

.auth-submit {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    margin-top: 16px;
    background: linear-gradient(135deg, var(--accent-primary), #00b3cc);
    color: #000;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 20px rgba(0, 229, 255, 0.3);
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 229, 255, 0.4);
}

/* Custom dropdown */
.custom-dropdown {
    position: relative;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 60px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    user-select: none;
    transition: all 0.2s;
}

.dropdown-selected:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(20, 22, 33, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    min-width: 180px;
    display: none;
    flex-direction: column;
    padding: 8px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.custom-dropdown.open .dropdown-menu {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

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

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.08);
}
