/* Base Variables */
:root {
    --bg-color: #0b0f19;
    --bg-secondary: #111827;
    --primary: #00d2b4;
    --primary-glow: rgba(0, 210, 180, 0.4);
    --secondary: #3b82f6;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --card-bg: rgba(30, 41, 59, 0.7);
    --nav-bg: rgba(11, 15, 25, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --transition: all 0.3s ease;
}

/* Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography styles */
h1, h2, h3, h4 {
    color: #fff;
    line-height: 1.2;
}

/* Utility Classes */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.glass-heavy {
    background: linear-gradient(135deg, rgba(30,41,59,0.9) 0%, rgba(15,23,42,0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(to right, var(--primary), #00e5c5);
    color: #000;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 180, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Custom icon colors */
i { color: var(--primary); }
.btn-primary i { color: #000; }
.btn-secondary i { color: var(--text-main); }
.footer-links i { color: var(--text-muted); }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

.logo-icon i {
    color: #fff;
    font-size: 1rem;
}

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

.nav-links li a {
    font-weight: 500;
    color: var(--text-muted);
}

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

.nav-cta {
    background: rgba(0, 210, 180, 0.1);
    color: var(--primary) !important;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0, 210, 180, 0.2);
}

.nav-cta:hover {
    background: var(--primary);
    color: #000 !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* Header / Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 2rem 4rem;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* Hero Image & Mockup */
.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.device-mockup {
    background: #000;
    border: 8px solid #2a2a35;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
}

.device-mockup::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 25px;
    background: #2a2a35;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.main-mockup {
    width: 320px;
    height: 650px;
    transform: rotate(-5deg);
    transition: transform 0.5s ease;
}

.main-mockup:hover {
    transform: rotate(0deg) scale(1.02);
}

.device-mockup img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Elements */
.floating-card {
    position: absolute;
    padding: 16px 20px;
    z-index: 20;
}

.kcal-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.kcal-info .icon {
    background: rgba(255, 69, 58, 0.1);
    color: #ff453a;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
}

.kcal-info .details h4 { font-size: 1.2rem; }
.kcal-info .details p { margin:0; font-size: 0.8rem; color: var(--text-muted); }

/* Positioning the floating cards */
.hero-image .floating-card {
    bottom: 80px;
    left: -40px;
}

.chat-reply {
    top: 60px;
    right: -30px;
    font-size: 0.9rem;
    font-style: italic;
    max-width: 200px;
}


/* General Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Features */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 210, 180, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(0, 210, 180, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.feature-card p {
    color: var(--text-muted);
}

/* How It Works Layer */
.how-it-works {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 8rem;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.split-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.split-content > p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.benefit-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.benefit-list i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 4px;
}

.benefit-list h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-list p {
    color: var(--text-muted);
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.side-mockup {
    width: 280px;
    height: 580px;
}

/* Screenshots Gallery */
.screenshots {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.carousel-container {
    width: 100%;
    overflow-x: auto;
    padding: 2rem;
    scrollbar-width: none; /* Firefox */
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

.screen-track {
    display: flex;
    gap: 2rem;
    padding: 0 50vw;
    margin-left: -140px; /* Align first item to center roughly */
}

.screen-item {
    flex: 0 0 auto;
    width: 280px;
    height: 580px;
    border-radius: 30px;
    overflow: hidden;
    border: 6px solid #2a2a35;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.screen-item:hover {
    transform: scale(1.05);
}

.screen-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CTA Section */
.cta {
    padding: 8rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.cta-banner {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,210,180,0.1) 0%, rgba(0,0,0,0) 60%);
    z-index: -1;
}

.cta-banner h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-btn {
    margin-bottom: 1rem;
}

.small-note {
    font-size: 0.8rem !important;
    margin-bottom: 0 !important;
}

/* Footer */
footer {
    background: #06090f;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-column h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.link-column ul li {
    margin-bottom: 0.8rem;
}

.link-column ul li a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.link-column ul li a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

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

.float-anim {
    animation: float 4s ease-in-out infinite;
}

.float-anim-alt {
    animation: float-alt 5s ease-in-out infinite;
}

/* Scroll Animations CSS */
.fade-in-up, .fade-in-left, .fade-in-right, .slide-in-left, .slide-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up { transform: translateY(40px); }
.fade-in-left { transform: translateX(-40px); }
.fade-in-right { transform: translateX(40px); }
.slide-in-left { transform: translateX(-100px); }
.slide-in-right { transform: translateX(100px); }

.animate {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }
    
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { margin: 0 auto 2rem; }
    .hero-actions { justify-content: center; }
    .stats { justify-content: center; }
    
    .hero-image {
        margin-top: 4rem;
    }
    
    .split-section, .split-section.reverse {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .benefit-list li {
        text-align: left;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Would be toggled by JS in a real app */
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-content h1 { font-size: 2.2rem; }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .device-mockup, .screen-item {
        width: 250px;
        height: 520px;
    }
}

/* Legal Pages Styling */
.legal-page {
    padding-top: 120px;
    padding-bottom: 80px;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.legal-section p, .legal-section ul {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-section b, .legal-section strong {
    color: var(--text-main);
}

.legal-section ul {
    padding-left: 1.5rem;
}

.legal-section ul li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.back-home:hover {
    text-decoration: underline;
}


/* Custom Logo Image Styling */
.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}
