:root {
    /* Palette */
    --color-primary: #B1E530;
    /* Vibrant Lime */
    --color-secondary: #2A5C40;
    /* Emerald Green */
    --color-bg: #071510;
    /* Deep Forest Charcoal */
    --color-surface: #0F291E;
    /* Card Backgrounds */
    --color-surface-variant: #1A3529;
    /* Elevated Elements */

    --color-text: #FFFFFF;
    --color-text-on-primary: #031209;
    --color-text-body: rgba(255, 255, 255, 0.85);
    --color-text-detail: rgba(255, 255, 255, 0.65);

    --color-border: #39665A;
    --color-error: #FF6B6B;

    /* Gradients */
    --gradient-main: linear-gradient(180deg, #0A2619 10%, #071D13 60%, #031209 100%);
    --gradient-mosaic-fade: linear-gradient(180deg, rgba(7, 21, 16, 0.6) 0%, rgba(7, 21, 16, 0.85) 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 48px;
    --spacing-xl: 80px;
    --spacing-xxl: 120px;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Font Sizes */
    --font-size-h1: 32px;
    --font-size-h2: 24px;
    --font-size-body: 16px;
    --font-size-detail: 14px;

    /* UI */
    --radius-pill: 25px;
    --radius-card: 20px;
    --radius-sm: 8px;

    --container-width: 1100px;
}

html {
    scroll-behavior: smooth;
    background-color: transparent;
}

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

body {
    font-family: var(--font-main);
    background: var(--gradient-main);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

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

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-body);
    font-size: var(--font-size-body);
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: var(--font-size-body);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: none;
    text-transform: none;
}

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

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(177, 229, 48, 0.3);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-text-on-primary);
}

.btn-secondary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(177, 229, 48, 0.3);
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-card);
}

/* Header / Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mosaic-fade);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    max-width: var(--container-width);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    /* Large impact title */
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.03em;
    color: #FFFFFF;
}

.hero-content .subheadline {
    font-size: 1.25rem;
    max-width: 640px;
    margin: 0 auto var(--spacing-lg);
    color: var(--color-text-body);
}

.download-badges {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.store-badge {
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge img {
    height: 44px;
    width: auto;
}

.download-badges-large .store-badge img {
    height: 60px;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.hero-ctas {
    margin-bottom: 20px;
    /* Precise adjustment based on feedback */
}

.hero-content .supporting-line {
    font-size: 0.95rem;
    color: #FFFFFF;
    /* Changed to white for better contrast */
    max-width: 450px;
    margin: 0 auto;
    opacity: 1;
    /* Full opacity for better legibility */
    font-weight: 500;
}

/* Download Section */
.section-download {
    background-color: var(--color-surface);
    text-align: center;
}

.section-download h2 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-sm);
}

.section-download>.container>p {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-lg);
}

.download-badges-large {
    margin-bottom: var(--spacing-lg);
}



.download-note {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.download-note a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Sections General */
section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-header h2 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.1rem;
}

/* Section 1: What it does */
.section-what-it-does {
    background-color: var(--color-surface);
}

/* Features Carousel */
.features-carousel {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.carousel-track-container {
    flex: 1;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-out;
}

.carousel-track .feature-item {
    min-width: 100%;
    padding: var(--spacing-lg);
    text-align: center;
    background: var(--color-surface-variant);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
}

.feature-item .icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.feature-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
    color: var(--color-text-body);
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-md);
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 5px;
}

/* Showcase Section */
.section-showcase {
    background: var(--gradient-main);
    padding: var(--spacing-xxl) 0;
}

.showcase-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.showcase-text {
    flex: 1;
}

.showcase-text h2 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.showcase-list {
    margin-top: var(--spacing-lg);
}

.showcase-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    color: var(--color-text-body);
}

.showcase-list span {
    font-size: 1.5rem;
}

.showcase-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.app-mockup {
    max-width: 320px;
    height: auto;
    border-radius: 44px;
    /* Proper iPhone-style curve */
    box-shadow:
        0 0 0 12px #1c1c1c,
        /* Outer Bezel */
        0 0 0 14px #2c2c2c,
        /* Outer Edge highlight */
        0 30px 60px rgba(0, 0, 0, 0.8);
    /* Depth Shadow */
    background: #000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    /* Removed the previous manual border */
}

.app-mockup:hover {
    transform: translateY(-20px) rotateY(-5deg) rotateX(5deg);
    box-shadow:
        0 0 0 12px #1c1c1c,
        0 0 0 14px #2c2c2c,
        0 50px 80px rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
    .showcase-content {
        flex-direction: column;
        text-align: center;
    }

    .showcase-list li {
        justify-content: center;
    }
}

/* Section 2: Who it's for */
.section-who-its-for h2 {
    text-align: center;
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-xl);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 Grid as requested */
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .groups-grid {
        grid-template-columns: 1fr;
    }
}

.group-card {
    background: var(--color-surface);
    padding: var(--spacing-lg);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.group-card:hover {
    transform: translateY(-4px);
    background: var(--color-surface-variant);
    border-color: var(--color-primary);
}

.group-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

/* Section 3: How it helps */
.section-how-it-helps {
    background: var(--color-surface);
    color: white;
    text-align: center;
}

.section-how-it-helps h2 {
    color: white;
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-size-h1);
}

.narrative-content {
    max-width: 700px;
    margin: 0 auto;
}

.narrative-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
}

.highlight-quote {
    font-family: var(--font-heading);
    font-size: 1.5rem !important;
    font-weight: 500;
    margin-top: var(--spacing-lg);
    color: #E8E4D9 !important;
    /* Sand color for contrast */
}

/* Section 4: Why it matters */
.section-why-it-matters {
    text-align: center;
}

.section-why-it-matters h2 {
    font-size: var(--font-size-h1);
    margin-bottom: var(--spacing-xl);
    color: white;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
}

.impact-item h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
}

.closing-line {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--color-primary);
    max-width: 600px;
    margin: 0 auto;
}

/* Section 5: Join */
.section-join {
    background-color: var(--color-surface);
    text-align: center;
    padding: var(--spacing-xxl) 0;
    border-top: 1px solid var(--color-border);
}

.section-join h2 {
    font-size: var(--font-size-h1);
    max-width: 700px;
    margin: 0 auto var(--spacing-xl);
}

.section-join .cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.section-join .cta-desc {
    font-size: 1rem;
    margin-top: var(--spacing-sm);
    color: #FFFFFF;
    /* Better contrast */
}

/* Contact Section */
.section-contact {
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-xxl) var(--spacing-md);
}

.section-contact h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.contact-form {
    margin-top: var(--spacing-lg);
    display: grid;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text-main);
}

.form-group input,
.form-group textarea {
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-surface);
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-surface-variant);
}

/* Footer */
footer {
    background-color: var(--color-bg);
    color: white;
    padding: var(--spacing-xl) 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer-brand h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.footer-brand p {
    color: var(--color-text-body);
    margin-bottom: var(--spacing-lg);
}

.footer-legal p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    margin: 0 8px;
}

.footer-legal a:hover {
    color: white;
}

/* Animal Mosaic Background */
.animal-tile-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    opacity: 0.15;
    pointer-events: none;
}

.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    width: 120%;
    height: 200%;
}

.mosaic-tile {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface);
    border-radius: 12px;
    filter: grayscale(100%) opacity(0.3);
}

@keyframes scrollMosaic {
    0% {
        transform: rotate(-5deg) translateY(0);
    }

    100% {
        transform: rotate(-5deg) translateY(-50%);
    }
}

.mosaic-grid-scroll {
    transform: rotate(-5deg);
    animation: scrollMosaic 150s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content .cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section-header h2,
    .section-who-its-for h2,
    .section-how-it-helps h2,
    .section-why-it-matters h2,
    .section-join h2 {
        font-size: 2rem;
    }
}