:root {
    --background: hsl(40, 33%, 96%);
    --foreground: hsl(200, 35%, 15%);

    --card: hsl(40, 25%, 98%);
    --card-foreground: hsl(200, 35%, 15%);

    --popover: hsl(40, 25%, 98%);
    --popover-foreground: hsl(200, 35%, 15%);

    --primary: hsl(197, 70%, 22%);
    --primary-foreground: hsl(40, 33%, 96%);

    --secondary: hsl(40, 45%, 88%);
    --secondary-foreground: hsl(200, 35%, 15%);

    --muted: hsl(40, 20%, 92%);
    --muted-foreground: hsl(200, 15%, 45%);

    --accent: hsl(140, 45%, 30%);
    --accent-foreground: hsl(40, 33%, 96%);

    --destructive: hsl(0, 84.2%, 60.2%);
    --destructive-foreground: hsl(210, 40%, 98%);

    --border: hsl(40, 20%, 85%);
    --input: hsl(40, 20%, 85%);
    --ring: hsl(197, 70%, 22%);

    --radius: 0.75rem;

    --sand: hsl(36, 70%, 60%);
    --sand-light: hsl(40, 50%, 92%);
    --sand-dark: hsl(36, 50%, 40%);
    --teal: hsl(197, 70%, 22%);
    --teal-light: hsl(197, 50%, 40%);
    --green: hsl(140, 45%, 30%);
    --green-light: hsl(140, 35%, 50%);

    --font-display: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-color: var(--border);
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Gradients & Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--teal), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-sand-gradient {
    background: linear-gradient(180deg, var(--sand-light), var(--background));
}

.bg-hero-overlay {
    background: linear-gradient(180deg, hsla(197, 70%, 22%, 0.75) 0%, hsla(200, 35%, 15%, 0.6) 100%);
}

.section-padding {
    padding: 5rem 0;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-display);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

/* Light text on transparent background */
.navbar.navbar-transparent-light:not(.scrolled) .nav-link,
.navbar.navbar-transparent-light:not(.scrolled) .brand-name,
.navbar.navbar-transparent-light:not(.scrolled) .mobile-menu-toggle {
    color: white;
}

.navbar.navbar-transparent-light:not(.scrolled) .nav-logo img {
    filter: brightness(0) invert(1);
}

.navbar.navbar-transparent-light:not(.scrolled) .btn-outline {
    border-color: white;
    color: white;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    height: 60px;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.05em;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--foreground);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 700;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--foreground);
    z-index: 1001;
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, hsla(197, 70%, 22%, 0.75) 0%, hsla(200, 35%, 15%, 0.6) 100%);
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Cards & Sections */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: hsla(197, 70%, 22%, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
}

/* App Showcase */
.app-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.app-image-wrapper {
    position: relative;
}

.app-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -1rem;
    background: var(--primary);
    opacity: 0.05;
    border-radius: 2rem;
    filter: blur(40px);
}

.app-image {
    position: relative;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease;
}

.app-image:hover {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

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

.footer-links ul li a:hover {
    opacity: 0.7;
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.6;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 2rem;
    }

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

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

    .navbar-transparent-light:not(.scrolled) .mobile-menu-toggle {
        color: white;
    }

    .nav-link {
        font-size: 1.25rem;
        color: var(--foreground) !important; /* Force dark even on transparent navbar */
    }

    .nav-links .btn-outline {
        border-color: var(--primary) !important;
        color: var(--primary) !important;
        width: 100%;
        margin-left: 0 !important;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr !important;
    }
    
    .app-showcase {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-image-wrapper {
        order: -1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 1.5rem;
    }

    .section-padding {
        padding: 3rem 0;
    }
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0);
}
