/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
    --bg-darkest: #020604;
    --bg-dark: #050d0a;
    --bg-card: #0f1c16;
    --bg-problem: #0a0505;
    
    --primary: #4ADE80;
    --secondary: #22C55E;
    --accent: #FBBF24;
    --danger: #F87171;
    
    --text-white: #F0FDF4;
    --text-gray: #9CA3AF;
    
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-darkest);
    color: var(--text-white);
    line-height: 1.6;
    width: 100%;
}

h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }

/* --- 2. CUSTOM CURSOR (DESKTOP ONLY) --- */
.cursor-dot, .cursor-outline {
    position: fixed; top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%; z-index: 9999;
    pointer-events: none;
    display: none;
}
@media (min-width: 1024px) {
    * { cursor: none; }
    .cursor-dot, .cursor-outline { display: block; }
}
.cursor-dot { width: 8px; height: 8px; background-color: var(--primary); }
.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid var(--primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}
body.hovering .cursor-outline {
    width: 60px; height: 60px;
    background-color: rgba(74, 222, 128, 0.1);
    border-color: transparent;
}

/* --- 3. LAYOUT UTILITIES --- */
.section-spacing {
    padding: 100px 8%;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.full-bleed {
    padding-left: 5% !important; padding-right: 5% !important; width: 100%;
}

/* --- 4. NAVIGATION --- */
nav {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 6%;
    background: rgba(2, 6, 4, 0.95);
    backdrop-filter: blur(15px);
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    height: 80px;
}
.logo-container { height: 100%; width: 200px; position: relative; }
.nav-logo {
    position: absolute; height: 140px; width: auto;
    top: -30px; left: 0; transition: transform 0.3s;
}
.nav-logo:hover { transform: scale(1.05); }

.nav-links { display: flex; list-style: none; gap: 40px; }
.nav-links a {
    color: var(--text-gray); font-weight: 500; transition: 0.3s;
}
.nav-links a:hover, .active-link {
    color: var(--primary); text-shadow: 0 0 10px var(--primary);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary); color: #000;
    padding: 12px 30px; border-radius: 50px;
    font-weight: 700; border: none; transition: all 0.3s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    white-space: nowrap; /* PREVENTS TEXT WRAPPING */
}
.btn-primary:hover {
    background: #34d399; transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.4);
}
.btn-secondary {
    background: #000; color: var(--text-white);
    padding: 12px 30px; border-radius: 50px;
    border: 1px solid var(--glass-border); font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px; transition: all 0.3s ease;
    white-space: nowrap; /* PREVENTS TEXT WRAPPING */
}
.btn-secondary:hover {
    border-color: var(--primary); color: var(--primary);
    background: rgba(74, 222, 128, 0.05); transform: translateY(-3px);
}
.mobile-menu-icon {
    display: none; color: white; font-size: 1.5rem; cursor: pointer; z-index: 1001;
}

/* --- 5. HERO SECTION --- */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, #0a1f16, var(--bg-darkest));
    padding: 100px 5% 80px 5%;
    overflow: hidden;
}
.ambient-light {
    position: absolute; top: -20%; right: -10%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.1), transparent 70%);
    pointer-events: none; animation: pulseLight 5s ease-in-out infinite alternate;
}
.hero-content { flex: 1; z-index: 2; padding-right: 20px; }

/* FIX: Badge Alignment */
.badge-pill {
    display: inline-flex; gap: 8px; background: rgba(74, 222, 128, 0.1);
    color: var(--primary); padding: 8px 16px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 700;
    border: 1px solid rgba(74, 222, 128, 0.2); margin-bottom: 25px;
    align-items: center; /* VERTICAL ALIGNMENT FIX */
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.0; margin-bottom: 20px;
}
.gradient-text {
    background: linear-gradient(90deg, var(--primary), #22d3ee);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    color: var(--primary);
}
.hero p {
    font-size: 1.25rem; color: var(--text-gray);
    margin-bottom: 40px; max-width: 600px;
}
.cta-group { display: flex; gap: 20px; margin-bottom: 50px; flex-wrap: wrap; }
.hero-stats {
    display: flex; gap: 40px; border-top: 1px solid var(--glass-border);
    padding-top: 25px; flex-wrap: wrap;
}
.stat .num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--text-white); }
.stat .label { font-size: 0.8rem; color: var(--text-gray); text-transform: uppercase; margin-top: 5px; }

/* --- 6. HERO VISUAL --- */
.hero-visual {
    flex: 1.2; position: relative; height: 100%;
    display: flex; justify-content: center; align-items: center; perspective: 1000px;
}
.portal-wrapper { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; }
.video-container-circle {
    width: clamp(300px, 40vw, 600px); height: clamp(300px, 40vw, 600px);
    aspect-ratio: 1 / 1; border-radius: 50%; overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    position: relative; z-index: 5; background: #000;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(74, 222, 128, 0.1);
    border: 2px solid rgba(74, 222, 128, 0.1);
}
.pet-video { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 38%; transform: scale(1.05); }

.orbit-path {
    position: absolute; width: 120%; height: 120%; border-radius: 50%;
    border: 1px dashed rgba(74, 222, 128, 0.3); z-index: 3;
    pointer-events: none; animation: rotateOrbit 30s linear infinite;
}
.orbiting-icon {
    position: absolute; width: 50px; height: 50px; background: var(--bg-card);
    border: 1px solid var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
    left: 50%; transform: translateX(-50%);
}
.orbiting-icon.water { top: -25px; color: var(--primary); animation: counterRotate 30s linear infinite; }
.orbiting-icon.heart { bottom: -25px; color: #F87171; border-color: #F87171; animation: counterRotate 30s linear infinite; }
.capsule-glow {
    position: absolute; width: 100%; height: 100%; border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.15), transparent 70%);
    filter: blur(80px); z-index: 1;
}
.floating-card {
    position: absolute; background: rgba(10, 20, 15, 0.85);
    padding: 12px 20px; border-radius: 16px;
    border: 1px solid rgba(74, 222, 128, 0.2); backdrop-filter: blur(12px);
    z-index: 10; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); min-width: 160px; white-space: nowrap;
}
.card-left { top: 25%; left: -80px; animation: floatCardLeft 6s ease-in-out infinite; }
.card-right { bottom: 25%; right: -80px; animation: floatCardRight 6s ease-in-out infinite 0.5s; }
.icon-circle {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(74, 222, 128, 0.2); display: flex; align-items: center;
    justify-content: center; color: var(--primary); font-size: 0.9rem;
}
.icon-happy { background: rgba(251, 191, 36, 0.2); color: var(--accent); }
.card-label { display: block; font-size: 0.75rem; color: var(--text-gray); text-transform: uppercase; font-weight: 600; }
.card-value { display: block; font-size: 1rem; font-weight: 700; color: var(--text-white); }

/* --- 7. PROBLEM SECTION --- */
.problem-section { background-color: var(--bg-problem); text-align: center; }
.badge-pill-red {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(248, 113, 113, 0.1); color: var(--danger);
    padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700;
    border: 1px solid rgba(248, 113, 113, 0.3); margin-bottom: 25px;
}
.highlight-danger { color: var(--danger); }
.problem-lead {
    font-size: 1.1rem; color: var(--text-gray); margin-top: 20px;
    max-width: 700px; margin-left: auto; margin-right: auto;
}
.problem-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin-top: 60px;
}
.problem-card {
    background: #0f0a0a; padding: 40px 30px; border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05); transition: 0.3s;
    text-align: center; display: flex; flex-direction: column; align-items: center;
}
.problem-card:hover { transform: translateY(-5px); border-color: var(--danger); }
.problem-icon {
    width: 60px; height: 60px; background: rgba(248, 113, 113, 0.1);
    color: var(--danger); font-size: 1.5rem; border-radius: 15px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 25px;
}
.problem-stat { font-size: 2.5rem; font-weight: 800; color: var(--text-white); margin-bottom: 10px; }
.problem-card h4 { color: var(--danger); font-size: 1.1rem; margin-bottom: 15px; }
.problem-card p { color: var(--text-gray); font-size: 0.95rem; }

/* --- 8. HOW IT WORKS --- */
.steps-section { background-color: var(--bg-dark); text-align: center; }
.section-header { margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 3rem; margin-bottom: 15px; }
.steps-container {
    display: flex; justify-content: center; align-items: flex-start;
    gap: 20px; flex-wrap: wrap;
}
.step-box {
    background: var(--bg-card); padding: 40px 30px; border-radius: 20px;
    border: 1px solid var(--glass-border); max-width: 300px;
    flex: 1; min-width: 250px; transition: 0.3s;
}
.step-box:hover { border-color: var(--primary); transform: translateY(-10px); }
.step-number {
    background: var(--primary); color: #000; width: 50px; height: 50px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; margin: 0 auto 25px auto; font-size: 1.3rem;
}
.step-box h3 { margin-bottom: 15px; color: var(--text-white); font-size: 1.4rem; }
.step-box p { color: var(--text-gray); font-size: 0.95rem; }

/* FIX: Connectors */
.step-connector { display: none; }
@media (min-width: 900px) {
    .step-connector {
        display: block; height: 2px; width: 50px;
        background: var(--glass-border); margin-top: 65px;
    }
}

.manual-mode-banner {
    margin-top: 50px; background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3); color: var(--accent);
    padding: 15px 30px; border-radius: 50px; display: inline-flex;
    align-items: center; gap: 15px; font-size: 1rem;
}

/* --- 9. FEATURES SECTION --- */
.tech-section { background-color: var(--bg-darkest); text-align: center; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.tech-card {
    background: var(--bg-card); padding: 40px 30px; border-radius: 20px;
    border: 1px solid var(--glass-border); transition: 0.3s; text-align: left;
}
.tech-card:hover { border-color: var(--primary); transform: translateY(-10px); }
.icon-box {
    width: 60px; height: 60px; background: rgba(74, 222, 128, 0.1);
    border-radius: 12px; display: flex; align-items: center;
    justify-content: center; font-size: 1.5rem; color: var(--primary); margin-bottom: 25px;
}
.tech-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--text-white); }
.manual-card .icon-box { background: rgba(251, 191, 36, 0.1); color: var(--accent); }

/* --- 10. TEAM SECTION --- */
.team-section { background-color: var(--bg-dark); text-align: center; }
.team-section h2 {
    font-size: 3rem; margin-bottom: 60px;
    background: linear-gradient(90deg, #ffffff, var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.carousel-container { display: flex; align-items: center; justify-content: center; gap: 20px; position: relative; }
.team-carousel {
    display: flex; gap: 25px; overflow-x: auto; padding: 30px 10px;
    width: 100%; max-width: 1200px;
    scrollbar-width: none; scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}
.team-carousel::-webkit-scrollbar { display: none; }
.team-card {
    min-width: 250px; background: var(--bg-card); padding: 35px 20px;
    border-radius: 20px; border: 1px solid var(--glass-border);
    transition: 0.4s; opacity: 0.9; display: flex; flex-direction: column;
    align-items: center; scroll-snap-align: center;
}
.team-card:hover {
    opacity: 1; transform: translateY(-5px); border-color: var(--primary); background: #10241b;
}
.photo-frame {
    width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
    margin: 0 auto 15px; border: 3px solid rgba(255, 255, 255, 0.1);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-card h3 { margin-bottom: 5px; font-size: 1.2rem; color: var(--text-white); }
.team-card .role { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 15px; }
.team-socials { display: flex; gap: 15px; width: 100%; justify-content: center; }
.team-socials a { color: var(--text-gray); font-size: 1.2rem; transition: 0.3s; }
.team-socials a:hover { color: var(--primary); transform: scale(1.1); }
.nav-btn {
    background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border);
    color: var(--primary); width: 50px; height: 50px; border-radius: 50%;
    transition: 0.3s; cursor: pointer;
}
.nav-btn:hover { background: var(--primary); color: black; }

/* --- 11. CTA SECTION --- */
.cta-section {
    position: relative; background: linear-gradient(180deg, #020604 0%, #050d0a 100%);
    padding: 90px 8% 80px; display: flex; justify-content: center;
}
.cta-card {
    background: radial-gradient(circle at top right, #0f2e22, #050d0a);
    width: 100%; max-width: 900px; border-radius: 32px; padding: 55px 45px;
    text-align: center; border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.cta-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(74, 222, 128, 0.1); border: 1px solid rgba(74, 222, 128, 0.4);
    color: var(--primary); padding: 8px 22px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 700; margin-bottom: 30px;
}
.cta-card h2 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 18px; }
.highlight-text { color: var(--primary); }
.cta-desc {
    color: var(--text-gray); font-size: 1.15rem; max-width: 650px; margin: 0 auto 45px;
}
.cta-buttons { display: flex; justify-content: center; gap: 25px; margin-bottom: 45px; flex-wrap: wrap; }
.btn-large { padding: 16px 40px; font-size: 1.1rem; }
.cta-features {
    display: flex; justify-content: center; gap: 35px; color: var(--text-gray);
    font-size: 0.95rem; flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 30px;
}

/* --- 12. FOOTER --- */
footer { padding: 60px 8% 20px; background: #000; }
.footer-content {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; margin-bottom: 40px; gap: 30px;
}
.footer-links { display: flex; list-style: none; gap: 30px; }
.footer-links a { color: var(--text-gray); font-size: 0.9rem; transition: 0.3s; }
.socials { display: flex; gap: 20px; }
.socials a { color: var(--text-white); font-size: 1.2rem; transition: 0.3s; }
.copyright {
    text-align: center; font-size: 0.85rem; color: #555;
    border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 20px;
}

/* --- 13. ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(50px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
@keyframes rotateOrbit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes counterRotate { from { transform: translateX(-50%) rotate(0deg); } to { transform: translateX(-50%) rotate(-360deg); } }
@keyframes floatCardLeft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatCardRight { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulseLight { 0% { opacity: 0.5; transform: scale(1); } 100% { opacity: 0.8; transform: scale(1.1); } }

/* =======================================================
   RESPONSIVE LOGIC
   ======================================================= */

/* TABLETS & SMALL LAPTOPS (Max 1024px) */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding-top: 120px; }
    .hero-content { padding-right: 0; margin-bottom: 50px; }
    .hero h1 { font-size: 3.5rem; }
    .hero p { margin: 0 auto 40px auto; }
    .cta-group { justify-content: center; }
    .hero-stats { justify-content: center; }
    
    .hero-visual { width: 100%; height: 500px; }
    .video-container-circle { width: 400px; height: 400px; }
    .orbit-path { width: 500px; height: 500px; }
    .capsule-glow { width: 500px; height: 500px; }
    .card-left { left: 0; top: 10%; }
    .card-right { right: 0; bottom: 10%; }
}

/* MOBILE DEVICES (Max 768px) */
@media (max-width: 768px) {
    /* NAVIGATION: Mobile Drawer Logic */
    nav .btn-primary { display: none; } /* Hide the big button */
    .mobile-menu-icon { display: block; z-index: 1001; }
    
    .nav-links {
        position: fixed; top: 0; right: 0;
        height: 100vh; width: 70%;
        background: #0a0f0c;
        flex-direction: column; justify-content: center;
        align-items: center; gap: 40px;
        transform: translateX(100%); /* Hidden by default */
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
        border-left: 1px solid var(--primary);
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 1.4rem; }

    /* HERO */
    .hero { padding-top: 100px; }
    .hero-visual { height: 400px; margin-top: -20px; }
    .video-container-circle { width: 280px; height: 280px; }
    .orbit-path { width: 340px; height: 340px; }
    .capsule-glow { width: 340px; height: 340px; }
    .floating-card { padding: 8px 12px; min-width: auto; }
    .card-label { display: none; }

    /* CAROUSEL FIX */
    .carousel-container { display: block; }
    .nav-btn { display: none; }
    .team-carousel { padding: 40px 20px; }
    .team-card { min-width: 85vw; margin-right: 15px; }

    /* FOOTER */
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
}

/* SMALL PHONES (Max 480px) */
@media (max-width: 480px) {
    .section-spacing { padding: 60px 5%; }
    .cta-card { padding: 40px 20px; }
    .cta-buttons { width: 100%; flex-direction: column; }
    .btn-large { width: 100%; }
}
