:root {
    --primary-blue: #3152fb;
    --accent-blue: #5b76ff;
    --accent-green: #34d399; 
    --dark-bg: #0f0f32;
    --text-primary: #0f0f32;
    --text-secondary: #555570;
    --page-bg: #e8eeff;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --surface-shadow: 0 20px 40px -10px rgba(49, 82, 251, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Container for the Invisible Middle Column --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

/* Background Mesh Fix for Mobile */
.mesh-background {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); 
}
.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.orb-1 { width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(49, 82, 251, 0.18), rgba(0,0,0,0) 70%); top: -20%; right: -10%; }
.orb-2 { width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(138, 43, 226, 0.12), rgba(0,0,0,0) 70%); bottom: -10%; left: -10%; }
.orb-3 { width: 45vw; height: 45vw; background: radial-gradient(circle, rgba(16, 185, 129, 0.12), rgba(0,0,0,0) 70%); bottom: 10%; right: 20%; }

/* --- Navbar (Fully Fixed) --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    transition: all 0.4s ease;
    background: transparent;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    transition: padding 0.4s ease;
}

.navbar.scrolled .nav-container {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}
.logo-img { height: 65px; width: auto; }
.logo-text { font-weight: 800; font-size: 1.6rem; color: var(--text-primary); letter-spacing: -1px; }

.nav-links { display: flex; align-items: center; gap: 3rem; }
.nav-item { text-decoration: none; color: var(--text-primary); font-weight: 500; transition: opacity 0.3s; }
.nav-item:hover { opacity: 0.6; }

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}
.btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(49, 82, 251, 0.2); }

/* --- Hero Section --- */
.hero { 
    padding: 6rem 0 4rem 0; 
    display: flex; 
    align-items: center; 
}
.hero-container-stacked { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center;
}

.hero-text-centered { 
    max-width: 900px; 
    margin-bottom: 4rem; 
}

.hero-title {
    font-size: 6.5rem; 
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -3px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue), #93a5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-subtitle { 
    font-size: 1.4rem; 
    color: var(--text-secondary); 
    max-width: 650px; 
    line-height: 1.5; 
    margin: 0 auto; 
}

/* --- Phone Frame Styling --- */
.hero-visual-centered {
    display: flex;
    justify-content: center;
    width: 100%;
}

.phone-frame {
    width: 380px; 
    height: 780px; 
    background: var(--dark-bg);
    border: 12px solid var(--dark-bg);
    border-radius: 50px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.dynamic-island {
    position: absolute;
    top: 12px;
    width: 120px;
    height: 32px;
    background: var(--dark-bg);
    border-radius: 20px;
    z-index: 10;
}

/* --- App Mockup inside the Phone --- */
.app-mockup-light {
    width: 100%; 
    height: 100%;
    background: transparent; 
    border-radius: 0; 
    padding: 0; 
    overflow: hidden; 
}

/* --- Section Headers --- */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 3rem; margin-bottom: 0.5rem; letter-spacing: -1.5px; }
.section-header p { color: var(--text-secondary); font-size: 1.2rem; }

/* --- Bento Grid Fixes (Equal Heights) --- */
.bento-section { padding: 4rem 0; }
.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem; 
    align-items: stretch; /* Forces equal height across rows */
}
.bento-card {
    height: 100%; /* Fill the grid area */
    border-radius: 24px; padding: 2.5rem; position: relative; overflow: hidden;
    transition: transform 0.4s ease; display: flex; flex-direction: column; justify-content: space-between;
}
.bento-card:hover { transform: translateY(-8px); }

.glass-panel { background: var(--glass-bg); border: 1px solid var(--glass-border); backdrop-filter: blur(20px); box-shadow: var(--surface-shadow); }
.dark-panel { background: var(--dark-bg); color: white; }
.dark-panel h3 { color: white !important; }
.dark-panel p { color: rgba(255,255,255,0.7) !important; }
.dark-panel .bento-icon { color: var(--accent-blue); }

.card-content h3 { font-size: 1.4rem; margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.card-content p { font-size: 1rem; color: var(--text-secondary); line-height: 1.4; margin-bottom: 1.5rem; }
.status-indicator { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: #10b981; margin-bottom: 1rem; }
.dot { width: 8px; height: 8px; background: #10b981; border-radius: 50%; box-shadow: 0 0 10px #10b981; }

.bento-icon { width: 32px; height: 32px; color: var(--primary-blue); opacity: 0.8; }

/* --- Deep Dive Visual Card Fixes (Identical Sizes) --- */
.deep-dive-section { padding: 4rem 0; }
.feature-row { display: flex; align-items: center; gap: 4rem; margin-bottom: 8rem; min-height: 40vh; }
.feature-row.reverse { flex-direction: row-reverse; }

.feature-text { flex: 1; }
.feature-label { text-transform: uppercase; color: var(--primary-blue); font-weight: 700; letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 1rem; display: block; }
.feature-text h2 { font-size: 3rem; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -1.5px; }
.feature-text p { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; }

.feature-visual { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
}

/* Locked Dimensions to guarantee they look identical */
.visual-card { 
    width: 100%; 
    max-width: 450px; 
    height: 350px; 
    border-radius: 30px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    position: relative; 
    overflow: hidden; 
    box-sizing: border-box;
}

.abstract-shape { position: absolute; width: 250px; height: 250px; border-radius: 50%; filter: blur(50px); z-index: 0; }
.shape-1 { background: radial-gradient(circle, #3152fb, transparent); }
.shape-2 { background: radial-gradient(circle, #10b981, transparent); }
.shape-3 { background: radial-gradient(circle, #f59e0b, transparent); }

.dynamic-layout-container { display: flex; flex-direction: column; gap: 10px; z-index: 2; width: 250px; height: 250px; }
.ui-block { background: rgba(255,255,255,0.9); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); font-weight: 600; font-size: 0.9rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.ui-a { height: 80px; } .ui-b { height: 80px; } .ui-c { height: 80px; }

.cv-demo-container { position: relative; width: 200px; height: 250px; z-index: 2; display: flex; align-items: center; justify-content: center; }
.silhouette { width: 120px; height: 120px; color: rgba(15, 15, 50, 0.2); }
.bounding-box { position: absolute; width: 180px; height: 220px; border: 2px solid rgba(49, 82, 251, 0.5); border-radius: 8px; display: flex; align-items: flex-start; justify-content: center; }
.bb-corner { position: absolute; width: 15px; height: 15px; border-color: rgba(49, 82, 251, 0.5); border-style: solid; }
.tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; } .tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; } .bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; } .br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; }
.cv-label { position: absolute; top: -30px; background: #10b981; color: white; font-size: 0.8rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; opacity: 0; }

.wave-container { display: flex; align-items: center; gap: 8px; z-index: 2; height: 120px; }
.wave { width: 16px; background: #f59e0b; border-radius: 10px; box-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }

/* 4. Dynamic Dashboard Animation */
.dash-anim-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    width: 220px;
}
.dash-anim-block {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-blue);
}

/* 5. Local Privacy Animation */
.local-anim-container {
    position: relative;
    width: 250px;
    height: 250px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}
.cloud-icon {
    width: 60px; height: 60px;
}
.shield-arc {
    position: absolute;
    top: 90px;
    width: 140px;
    height: 40px;
    border-top: 4px solid #10b981;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: 0.8;
    box-shadow: 0 -10px 20px rgba(16, 185, 129, 0.3);
}
.hub-box {
    background: var(--primary-blue);
    color: white;
    width: 80px; height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(49, 82, 251, 0.4);
    z-index: 3;
}
.data-dot {
    position: absolute;
    bottom: 65px;
    width: 12px; height: 12px;
    background: #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 10px #f59e0b;
}

/* --- Team Section --- */
.team-section { padding: 6rem 0; background: #fff; border-top: 1px solid rgba(0,0,0,0.05); }
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
.team-member { flex: 0 1 250px; text-align: center; padding: 1rem; border-radius: 12px; transition: background 0.3s; }
.team-member:hover { background: #f8faff; }
.team-member h3 { font-size: 1.2rem; margin-bottom: 0.25rem; color: var(--text-primary); }
.team-member p { color: var(--text-secondary); font-size: 0.95rem; }

/* --- Footer --- */
footer { padding: 4rem 0; background: #fff; border-top: 1px solid rgba(0,0,0,0.05); }

/* ============================= */
/* REAL APP MOCKUP STYLE */
/* ============================= */

.app-mockup-real {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #4fa3d1 0%, #3152fb 100%);
    border-radius: 0; 
    padding: 4.5rem 1.2rem 2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    color: white;
}

.app-top-bar { display: flex; justify-content: flex-start; margin-bottom: 0.5rem; }
.menu-search { background: rgba(255,255,255,0.2); padding: 10px 14px; border-radius: 14px; display: flex; flex-direction: column; gap: 3px; }
.menu-line { width: 16px; height: 2px; background: white; }

.section-title { font-size: 1.2rem; font-weight: 700; margin-top: 0.5rem; }
.device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.device-card { background: white; border-radius: 20px; padding: 1rem; text-align: center; color: #111; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.device-card p { margin-top: 0.5rem; font-weight: 600; }

.gauge { width: 70px; height: 70px; margin: 0 auto; border-radius: 50%; border: 6px solid #ddd; position: relative; }
.gauge.active { border: 6px solid #3152fb; }
.temp { position: absolute; font-weight: 700; font-size: 0.9rem; top: 20px; left: 50%; transform: translateX(-50%); }
.mode { position: absolute; font-size: 0.7rem; bottom: 12px; left: 50%; transform: translateX(-50%); color: #3152fb; }

.light-icon {
    width: 28px;
    height: 28px;
    color: #ddd; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: color 0.3s;
}
.gauge.active .light-icon { color: var(--primary-blue); }

.bottom-nav { margin-top: auto; display: flex; justify-content: space-around; padding-top: 1rem; }
.nav-dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); }
.nav-dot.active { background: white; }

/* ============================= */
/* RESPONSIVE DESIGN FOR MOBILE */
/* ============================= */

@media (max-width: 1100px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-title { font-size: 5rem; }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }

    /* Hide text links, keep button and logo */
    .nav-item { display: none; } 
    .nav-links { gap: 1rem; }
    .btn-primary { padding: 0.6rem 1rem; font-size: 0.9rem; }
    .logo-text { font-size: 1.3rem; }
    .logo-img { height: 45px; }

    /* Stack the Hero content */
    .hero { padding: 3rem 0; }
    .hero-title { font-size: 3.5rem; letter-spacing: -1.5px; }
    .hero-subtitle { font-size: 1.1rem; }
    .hero-text-centered { margin-bottom: 2rem; }

    /* Visually shrink phone without squishing the inside */
    .hero-visual-centered {
        transform: scale(0.85); 
        transform-origin: top center;
        margin-bottom: -20px; /* Reduced to prevent overlapping the next section */
    }

    /* Stack Bento Grid */
    .bento-section { padding: 2rem 0; }
    .bento-grid { grid-template-columns: 1fr; gap: 1rem; }
    .bento-card { height: auto; min-height: 250px; padding: 2rem; }

    /* Stack Deep Dive Features */
    .deep-dive-section { padding: 2rem 0; }
    .feature-row, .feature-row.reverse { 
        flex-direction: column !important; 
        gap: 2rem; 
        margin-bottom: 5rem; 
        text-align: center;
    }
    .feature-text h2 { font-size: 2.3rem; letter-spacing: -1px; }
    
    /* Ensure visual cards remain identical in height on mobile */
    .visual-card { 
        height: 320px; 
        max-width: 100%;
        border-radius: 24px; 
    }
    
    /* Scale inner GSAP animations proportionally */
    .dynamic-layout-container, 
    .cv-demo-container, 
    .wave-container {
        transform: scale(0.8);
    }

    /* Stack Team */
    .team-section { padding: 3rem 0; }
    .team-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
    .team-member { padding: 0.5rem; }
}

/* Extra small devices (iPhone SE) */
@media (max-width: 400px) {
    .logo-text { display: none; }
    .hero-title { font-size: 2.8rem; }
    
    .hero-visual-centered {
        transform: scale(0.75); 
        margin-bottom: -60px; /* Reduced to prevent overlapping */
    }
}


/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 15, 50, 0.4);
    backdrop-filter: blur(8px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    width: 90%;
    max-width: 450px;
    padding: 3rem 2rem;
    border-radius: 30px;
    position: relative;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: none; border: none;
    font-size: 2rem; cursor: pointer;
    color: var(--text-secondary);
}

.form-group { margin-bottom: 1.2rem; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.8);
    font-family: inherit;
    font-size: 1rem;
}

.full-width { width: 100%; margin-top: 1rem; cursor: pointer; }

/* Modal Active State */
.modal-overlay.active { display: flex; }


.hero-cta-row {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}