/* 
=========================================
CSS VARIABLES & THEME (Earthy Greens & Browns)
=========================================
*/
:root {
    /* Color Palette */
    --clr-bg-primary: #FAF9F6;
    /* Off-white warm background */
    --clr-bg-secondary: #EBE5D9;
    /* Sand/Beige */
    --clr-bg-dark: #1C241B;
    /* Deep Forest Green for dark sections */

    --clr-primary: #3B5A3A;
    /* Earthy Green */
    --clr-primary-light: #5A8258;
    --clr-primary-dark: #2A4029;

    --clr-accent: #8E6E45;
    /* Warm earthy brown/terracotta */
    --clr-accent-light: #AD8C60;

    --clr-text-main: #2D332C;
    /* Dark gray/green */
    --clr-text-muted: #5C6659;
    --clr-text-light: #F4F5F2;
    /* Text on dark backgrounds */

    --clr-border: #D1CDC4;
    --clr-success: #2A7948;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-max: 1200px;
    --container-small: 800px;

    --shadow-sm: 0 4px 6px -1px rgba(28, 36, 27, 0.05), 0 2px 4px -1px rgba(28, 36, 27, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(28, 36, 27, 0.08), 0 4px 6px -2px rgba(28, 36, 27, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(28, 36, 27, 0.1), 0 10px 10px -5px rgba(28, 36, 27, 0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 
=========================================
RESET & BASE
=========================================
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-text-main);
    background-color: var(--clr-bg-primary);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--clr-text-main);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.center {
    text-align: center;
}

.highlight {
    color: var(--clr-primary);
}

.section-padding {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--clr-text-muted);
    font-size: 1.125rem;
}

/* 
=========================================
BUTTONS
=========================================
*/
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-text-light);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--clr-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid currentColor;
    color: currentColor;
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-text {
    background: none;
    color: var(--clr-text-main);
    font-weight: 500;
}

.btn-text:hover {
    color: var(--clr-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--radius-md);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--clr-primary);
    font-weight: 600;
    font-family: var(--font-heading);
}

.link-arrow:hover i {
    transform: translateX(4px);
}

.link-arrow i {
    transition: var(--transition-fast);
}

/* 
=========================================
NAVIGATION
=========================================
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 249, 246, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(209, 205, 196, 0.3);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(250, 249, 246, 0.95);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--clr-text-main);
}

.logo i {
    color: var(--clr-primary);
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: var(--clr-text-muted);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--clr-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 
=========================================
HERO SECTION
=========================================
*/
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/background2.jpg');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Earthy gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(250, 249, 246, 0.98) 0%,
            rgba(250, 249, 246, 0.9) 40%,
            rgba(250, 249, 246, 0.3) 100%);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(59, 90, 58, 0.1);
    color: var(--clr-primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.benefits-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(142, 110, 69, 0.15);
    /* Accent tint */
    color: var(--clr-accent);
    border-radius: 50%;
    font-size: 1.25rem;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.built-for {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

.hero-visual {
    position: relative;
    perspective: 1000px;
}

.mockup-stack {
    position: relative;
    width: 100%;
    /* Keep aspect ratio based but let it grow */
    padding-bottom: 75%;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: var(--transition-smooth);
    /* No perspective on the child container, only on the parent hero-visual */
}

.mockup-stack:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-front,
.mockup-back {
    position: absolute;
    width: 85%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: block;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.4, 1);
    /* Slower, ultra-smooth curve for elegant swapping */
}

.mockup-back {
    top: 15%;
    right: 0;
    z-index: 1;
    filter: brightness(0.65);
}

.mockup-front {
    top: 0;
    left: 0;
    z-index: 2;
}

/* The invisible hover trigger covering the right side */
.hover-trigger-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    z-index: 10;
    /* Always sits on top to catch the mouse */
    cursor: pointer;
}

/* INTERACTION: Hovering the right side triggers the swap */
.mockup-stack:has(.hover-trigger-right:hover) .mockup-back {
    z-index: 3;
    top: 0;
    right: 10%;
    filter: brightness(1);
    transform: scale(1.02);
}

/* INTERACTION: When right side hovered, push the front image back */
.mockup-stack:has(.hover-trigger-right:hover) .mockup-front {
    z-index: 1;
    top: 15%;
    left: -10%;
    filter: brightness(0.65);
}

.dashboard-img {
    width: 100%;
    height: auto;
    display: block;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(90, 130, 88, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* 
=========================================
PILOT STRIP
=========================================
*/
.pilot-strip {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    padding: 1.5rem 0;
}

.pilot-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pilot-text {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.badge {
    background-color: var(--clr-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* 
=========================================
AUDIENCE CARDS
=========================================
*/
.audience-section {
    background-color: var(--clr-bg-primary);
}

.audience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.audience-card {
    background-color: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--clr-border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--clr-primary);
}

.audience-card.enterprise::before {
    background-color: var(--clr-accent);
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 3rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
}

.audience-card.enterprise .card-icon {
    color: var(--clr-accent);
}

.audience-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.audience-card p {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
}

.feature-list i {
    color: var(--clr-primary);
    margin-top: 4px;
}

.audience-card.enterprise .feature-list i {
    color: var(--clr-accent);
}


/* 
=========================================
HOW IT WORKS (STEPPER)
=========================================
*/
.split-bg {
    background: linear-gradient(to bottom, var(--clr-bg-primary) 50%, var(--clr-bg-secondary) 50%);
}

.stepper-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.step-number {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--clr-border);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-icon {
    width: 64px;
    height: 64px;
    background-color: var(--clr-bg-secondary);
    color: var(--clr-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.step:hover .step-icon {
    background-color: var(--clr-primary);
    color: white;
    transform: scale(1.1);
}

.step h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--clr-text-muted);
}

.step-connector {
    flex: 0 0 40px;
    height: 2px;
    background-color: var(--clr-border);
    margin-top: 80px;
    /* Align with center of icons */
    z-index: 1;
}

/* 
=========================================
WAITLIST FORM SECTION
=========================================
*/
.waitlist-section {
    background-color: var(--clr-bg-secondary);
}

.waitlist-container {
    max-width: 800px;
}

.waitlist-content {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    padding: 4rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.waitlist-content h2 {
    color: white;
    font-size: 2.5rem;
}

.waitlist-content>p {
    color: #A0AA9F;
    margin-bottom: 3rem;
}

.waitlist-form {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.half {
    flex: 1;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--clr-text-light);
}

.required {
    color: var(--clr-accent);
}

input,
select {
    width: 100%;
    margin: 0;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--clr-primary-light);
    background-color: rgba(255, 255, 255, 0.1);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-with-select {
    display: flex;
    flex-wrap: nowrap;
    /* CRITICAL: Prevent wrapping to a new line */
    align-items: stretch;
    width: 100%;
}

.input-with-select input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1 1 50%;
    /* Start at 50% split */
    width: 50%;
    min-width: 0;
    /* Prevent flex blowout */
}

.input-with-select .unit-select {
    flex: 1 1 50%;
    /* Start at 50% split */
    width: 50%;
    min-width: 0;
}

.input-with-select .unit-select select {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    background-color: rgba(255, 255, 255, 0.08);
    width: 100%;
    /* Important to override the global width on the select itself inside the flex child */
}

.select-wrapper {
    position: relative;
    width: 100%;
}


.select-wrapper i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.5);
}

select {
    appearance: none;
    cursor: pointer;
}

select option {
    background-color: var(--clr-bg-dark);
    color: white;
}

.privacy-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.success-message {
    background-color: rgba(42, 121, 72, 0.1);
    border: 1px solid var(--clr-success);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    animation: fadeIn 0.5s ease;
}

.success-message.hidden {
    display: none;
}

.icon-circle {
    width: 64px;
    height: 64px;
    background-color: var(--clr-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem auto;
}

/* 
=========================================
FAQ SECTION
=========================================
*/
.faq-container {
    max-width: 800px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: white;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--clr-primary-light);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--clr-text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    color: var(--clr-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-item.active {
    border-color: var(--clr-primary);
    box-shadow: var(--shadow-sm);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem 1.5rem;
    color: var(--clr-text-muted);
}

/* 
=========================================
FOOTER
=========================================
*/
.footer {
    background-color: var(--clr-bg-dark);
    color: var(--clr-text-light);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #A0AA9F;
    margin-top: 1rem;
    font-size: 0.875rem;
    max-width: 300px;
}

.footer h4 {
    color: white;
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #A0AA9F;
    font-size: 0.875rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.trust-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trust-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #A0AA9F;
    font-size: 0.875rem;
}

.trust-list i {
    color: var(--clr-primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* ... Animation classes continued in CSS file ... */

/* 
=========================================
ANIMATIONS & RESPONSIVE
=========================================
*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* Scroll reveal classes handled by JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: 3rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero {
        padding-top: 10rem;
        background-position: left center;
    }

    .hero::before {
        background: rgba(250, 249, 246, 0.92);
        /* Solidify background for readability */
    }

    .hero-cta-group {
        align-items: center;
    }

    .benefits-row {
        justify-content: center;
    }

    .stepper-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin: -1rem auto;
    }

    .pilot-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .audience-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Hide for mobile simplicity on landing page */

    h1 {
        font-size: 2.25rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
    }

    .waitlist-content {
        padding: 2.5rem 1.5rem;
    }
}