/* 
   IMB Landing Page Styles
   A Premium, State-of-the-Art Design
*/

:root {
    --primary-color: #4050b5; /* Custom Indigo */
    --secondary-color: #5c6bc0; /* Lighter Indigo */
    --accent-color: #ffff00; /* Vibrant Yellow */
    --background-color: #000000; /* True Black */
    --surface-color: #111111; /* Very Dark Gray */
    --text-color: #f8fafc;
    --text-color-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
    --easing: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --background-color: #f1f5f9;
    --surface-color: #ffffff;
    --text-color: #1e293b;
    --text-color-muted: #64748b;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .download-btn {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(64, 80, 181, 0.3);
}

[data-theme="light"] .download-btn:hover {
    box-shadow: 0 8px 30px rgba(64, 80, 181, 0.5);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s var(--easing), color 0.4s var(--easing);
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Typography Utility */
.gradient-text {
    color: var(--primary-color);
    display: inline-block;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 0;
    backdrop-filter: blur(12px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s var(--easing);
}

.glass-header.scrolled {
    padding: 0.75rem 0;
}

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

.logo {
    font-size: 1.75rem;
    letter-spacing: -0.025em;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color-muted);
    font-weight: 500;
    transition: color 0.3s;
}

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

.nav-links .back-link {
    color: var(--text-color);
    opacity: 0.8;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s var(--easing);
}

.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.icon-btn:hover {
    background: var(--glass-bg);
}

.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

.theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .moon { display: inline-block; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, filter 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(64, 80, 181, 0.4);
}

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

.download-btn {
    background: #ffff00 !important;
    color: #000000 !important;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 255, 0, 0.3);
}

.btn:hover, .download-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.download-btn:hover {
    box-shadow: 0 8px 30px rgba(255, 255, 0, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    text-align: center;
    padding: 2rem 0; /* Fallback padding */
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-color-muted);
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

/* Video/Image wrapper styles removed */

/* Features */
.features {
    padding: 8rem 0;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-color-muted);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 1.25rem;
    transition: transform 0.3s var(--easing), border-color 0.3s;
}

.feature-card {
    padding: 2.5rem;
    text-align: left;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.alert-pills {
    display: flex;
    gap: 0.5rem;
}

.pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pill-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.pill-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

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

/* Steps Section */
.how-it-works {
    padding: 6rem 0;
    background: var(--surface-color);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step {
    position: relative;
    padding-left: 4rem;
}

.step-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2.5rem;
    font-weight: 800;
    opacity: 0.1;
    color: var(--primary-color);
}

/* Waitlist Card */
.waitlist {
    padding: 8rem 0;
}

.waitlist-card {
    padding: 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.waitlist-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: var(--primary-color);
    border-radius: 1.3rem;
    z-index: -1;
    opacity: 0.5;
}

.waitlist-form {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.waitlist-form input {
    flex: 1;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-color);
    outline: none;
}

.waitlist-form input:focus {
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    color: var(--text-color-muted);
    margin-top: 1rem;
}

.footer-links-group h3, .footer-social h3 {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links-group ul {
    list-style: none;
}

.footer-links-group ul li {
    margin-bottom: 0.75rem;
}

.footer-links-group a {
    text-decoration: none;
    color: var(--text-color-muted);
    transition: color 0.3s;
}

.footer-links-group a:hover {
    color: var(--primary-color);
}

.social-icons {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-color-muted);
    font-size: 0.875rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--easing);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 { font-size: 3rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero p { margin-left: auto; margin-right: auto; }
    .cta-group { justify-content: center; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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

    .mobile-only {
        display: block;
    }
    
    .hamburger { display: flex; }
    
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--surface-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: right 0.4s var(--easing);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 { font-size: 2.5rem; }
    .section-title h2 { font-size: 2rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-social .social-icons { justify-content: center; }
    .waitlist-form { flex-direction: column; }
    
    .floating-card-1, .floating-card-2 {
        display: none;
    }

    .cta-group {
        flex-direction: column;
        gap: 1.25rem;
        align-items: center;
    }

    .cta-group .btn {
        width: 100%;
        max-width: 320px;
    }
}
