:root {
    --color-bg: #ECE5D8;
    --color-text: #321B15;
    --color-text-muted: #6b5b57;
    --color-primary: #321B15;
    --color-accent: #F58634;
    --color-white: #FEFEFE;
    --radius-full: 9999px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    color: var(--color-text-muted);
}

/* Buttons */
.btn-primary-small, .btn-primary-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: #fff;
    text-decoration: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary-small {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
}

.btn-primary-large {
    padding: 1rem 2rem;
    font-size: 1.2rem;
}

.btn-primary-small:hover, .btn-primary-large:hover {
    transform: translateY(-2px);
    background-color: var(--color-primary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(236, 229, 216, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

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

.nav-links a:not(.btn-primary-small) {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.nav-links a:not(.btn-primary-small):hover {
    opacity: 0.7;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text);
    cursor: pointer;
    z-index: 101;
}

/* Mobile Nav Overlay */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 99;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.mobile-nav a:hover {
    color: var(--color-accent);
}

/* Sections Base */
section {
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

/* Background Utilities */
.section-wrapper {
    width: 100%;
}

.bg-white {
    background-color: var(--color-white);
}

.bg-dark {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.bg-dark h2, 
.bg-dark h3, 
.bg-dark p {
    color: var(--color-white);
    opacity: 0.9;
}

.bg-dark .feature-tag {
    color: var(--color-accent);
}

.bg-dark .slider-header p {
    color: var(--color-white);
    opacity: 0.8;
}

.bg-dark .slider-dots .dot {
    background-color: rgba(254, 254, 254, 0.3);
}

.bg-dark .slider-dots .dot.active {
    background-color: var(--color-accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px; /* Offset for nav */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(236, 229, 216, 0.6), rgba(236, 229, 216, 0.95)); /* Light beige gradient overlay */
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    margin-bottom: var(--spacing-lg);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
}

/* Stats Section */
.stats-section {
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--color-accent);
    max-width: 100%; /* Full width wrapper */
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-number {
    margin-bottom: 0.5rem;
}

/* Vision Banner */
.vision-banner {
    padding: var(--spacing-xl) var(--spacing-md);
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.vision-card {
    background: #FEFEFE;
    border: 1px solid rgba(50, 27, 21, 0.1);
    padding: var(--spacing-lg);
    border-radius: 20px;
}

.badge {
    display: inline-block;
    background: var(--color-accent);
    color: #FEFEFE;
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* Features Split */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-md);
}

.feature-split.reverse {
    direction: rtl;
}

.feature-split.reverse > * {
    direction: ltr; /* Reset content direction */
}

.feature-tag {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.feature-text {
    max-width: 500px;
}

.feature-visual {
    background: #FEFEFE;
    border-radius: 30px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(50, 27, 21, 0.05);
}

.mockup-image-box {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mockup-image-box i {
    display: none;
}

.mockup-image-box p {
    display: none;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.zoom-in.is-visible {
    opacity: 1;
    transform: scale(1);
}

.pop-in {
    opacity: 0;
    transform: scale(0.5) translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pop-in.is-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Add slight delays for stagger effect */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Slider Section */
.slider-section {
    text-align: center;
    padding: var(--spacing-xl) 0; /* Full width for the track overflow */
    overflow: hidden;
}

.slider-header {
    margin-bottom: var(--spacing-lg);
    padding: 0 var(--spacing-md);
}

.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.slider-track {
    display: flex;
    width: 320px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    min-height: 650px;
    align-items: center;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    border-radius: 40px;
    box-shadow: var(--shadow-xl, 0 20px 50px rgba(50, 27, 21, 0.15));
}
.slider-track::-webkit-scrollbar {
    display: none; /* Hide scrollbar Webkit */
}

.slide {
    flex: 0 0 100%;
    height: 650px;
    background-color: #FEFEFE;
    scroll-snap-align: center;
    background-size: cover;
    background-position: center;
    border: 8px solid #321B15; /* Simulating phone casing */
    border-radius: 40px;
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(50, 27, 21, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--color-accent);
    transform: scale(1.3);
}

.slider-btn {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid rgba(50, 27, 21, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

@media (max-width: 768px) {
    .slider-btn {
        display: none; /* Rely on swiping on mobile */
    }
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--color-primary);
    color: var(--color-white);
    max-width: 100%;
}

.final-cta h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
}

.final-cta .btn-primary-large {
    background: var(--color-accent);
    color: var(--color-white);
}

/* Footer */
.footer {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(50, 27, 21, 0.1);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

.footer-logo {
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-socials {
    display: flex;
    gap: 1.5rem;
    font-size: 1.8rem;
}

.footer-socials a {
    color: var(--color-primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.footer-socials a:hover {
    transform: translateY(-3px);
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

.footer-links a:hover {
    color: #000;
}

.footer-copyright {
    color: #999;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        display: flex;
    }
    
    .vision-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .feature-text {
        margin: 0 auto;
    }
    
    .feature-visual {
        height: 350px;
        margin-top: var(--spacing-md);
    }
    
    .feature-tag {
        margin-bottom: 0.5rem;
    }
}
