:root {
    /* Brand Colors */
    --primary-orange: #FF5E00;
    --primary-orange-light: #FFF0E5;
    --primary-orange-hover: #E04F00;

    /* Neutrals & Accents */
    --dark-espresso: #2A1F1B;
    /* Replaces harsh black with deep brown/black */
    --text-body: #594D46;
    /* Softer dark grey/brown */
    --bg-white: #FFFFFF;
    --bg-sand: #FDFBF9;
    /* Very subtle warm off-white */
    --bg-surface: #F5F2F0;
    /* Secondary background */
    --accent-brown: #7b462c;
    --primary-brown: #7b462c;
    --primary-brown-light: #f4e8e4;

    /* UI Elements */
    --border-light: #EBE5E0;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(42, 31, 27, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(42, 31, 27, 0.05), 0 2px 4px -1px rgba(42, 31, 27, 0.03);
    --shadow-xl: 0 20px 25px -5px rgba(42, 31, 27, 0.05), 0 10px 10px -5px rgba(42, 31, 27, 0.02);
    --shadow-orange: 0 10px 30px -10px rgba(255, 94, 0, 0.4);

    /* Spacing */
    --header-height: 80px;
    --container-max: 1240px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Custom Selection Color */
::selection {
    background: var(--accent-brown);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: #d6c4bc;
    /* Light brown tint */
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-brown);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5 {
    color: var(--dark-espresso);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-weight: 800;
    font-size: 3.75rem;
}

h2 {
    font-weight: 700;
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

h3 {
    font-weight: 700;
    font-size: 1.75rem;
}

p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

strong {
    color: var(--accent-brown);
}

.text-orange {
    color: var(--primary-orange);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #d14900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-center {
    text-align: center;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-orange-light);
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--accent-brown) 100%);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: var(--shadow-orange);
    background-size: 200% auto;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(123, 70, 44, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-brown);
    color: var(--accent-brown);
}

.btn-outline:hover {
    border-color: var(--accent-brown);
    background: var(--accent-brown);
    color: white;
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header --- */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    /* Default desktop height */
    width: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-contact {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-body);
}

/* FIX: Ensure email is not default blue */
.nav-contact a {
    color: var(--text-body);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-contact a:hover {
    color: var(--primary-orange);
}

/* --- Hero Section --- */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    background: radial-gradient(circle at 10% 10%, #FFF8F2 0%, #FFFFFF 60%);
    overflow: hidden;
}

/* Abstract background shapes */
.blob {
    position: absolute;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.5;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #FFE0CC;
    border-radius: 50%;
    mix-blend-mode: multiply;
}

.blob-2 {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #E8DED9;
    /* Subtle brown tint */
    border-radius: 50%;
    mix-blend-mode: multiply;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 32px;
}

.trust-metrics {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.metric h5 {
    font-size: 1.5rem;
    color: var(--dark-espresso);
    margin-bottom: 0;
}

.metric span {
    font-size: 0.85rem;
    color: var(--accent-brown);
}

/* Glass Card Form */
.form-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-xl);
    position: relative;
}

/* Subtle orange top line */
.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-orange);
    border-radius: 0 0 10px 10px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #E0D8D4;
    border-radius: var(--border-radius-sm);
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: 0.3s;
    color: var(--dark-espresso);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-brown);
    box-shadow: 0 0 0 4px rgba(123, 70, 44, 0.1);
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-espresso);
    margin-bottom: 6px;
    display: block;
}

/* --- Social Proof --- */
.logo-strip {
    padding: 40px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
}

.logo-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.5;
}

.client-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-espresso);
    display: flex;
    align-items: center;
    gap: 8px;
    filter: grayscale(100%);
    transition: 0.3s;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    color: var(--primary-orange);
}

/* --- Feature Grid --- */
.features-section {
    background: var(--bg-sand);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--border-radius-lg);
    border: 1px solid transparent;
    box-shadow: var(--shadow-xs);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(123, 70, 44, 0.3);
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--primary-orange-light);
    color: var(--primary-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background: var(--primary-orange);
    color: white;
}

.feature-card h4 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--text-body);
}

/* --- Split Sections --- */
.split-section {
    background: var(--bg-white);
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.check-list {
    list-style: none;
    margin-top: 24px;
}

.check-list li {
    margin-bottom: 16px;
    padding-left: 32px;
    position: relative;
    font-weight: 500;
}

.check-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent-brown);
}

/* --- Dark Section (Testimonial) --- */
.dark-section {
    background: var(--dark-espresso);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.dark-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 94, 0, 0.15) 0%, transparent 70%);
}

.testimonial-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote-mark {
    font-size: 4rem;
    color: var(--primary-orange);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.4;
    color: #F0EAE6;
    margin-bottom: 40px;
}

.author-info h5 {
    color: white;
    margin-bottom: 5px;
}

.author-info span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* --- Integrations Grid --- */
/* REFINED STYLES for better display */
.integrations-wrapper {
    display: flex;
    flex-wrap: wrap;
    /* Prevent stretching */
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.integration-card {
    flex: 0 0 160px;
    /* Fixed width base */
    width: 160px;
    height: 100px;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.integration-card:hover {
    border-color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.integration-logo-img {
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: 0.3s;
}

.integration-card:hover .integration-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Zig-Zag Section Styles */
.zig-zag-row {
    margin-bottom: 120px;
    align-items: center;
}

.zig-zag-row.reverse {
    direction: rtl;
    /* Simple way to flip columns */
}

.zig-zag-row.reverse>* {
    direction: ltr;
    /* Reset text direction for children */
}

/* Feature Image Box (Zig Zag) */
.feature-img-box img {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    display: block;
    transition: transform 0.4s ease;
}

.feature-img-box:hover img {
    transform: scale(1.02);
}

/* Industries Grid */
.industry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.pill {
    padding: 10px 24px;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    background: white;
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
    cursor: default;
    display: flex;
    align-items: center;
}

.pill i {
    color: var(--accent-brown);
    /* Muted icon color */
    margin-right: 8px;
    font-size: 0.85rem;
    transition: 0.2s;
}

.pill:hover {
    border-color: var(--primary-orange);
    color: white;
    background: var(--primary-orange);
}

.pill:hover i {
    color: white;
    /* Icon turns white on hover */
}

/* Success Stories (Dark Card) Styles */
.dark-card {
    background: rgba(255, 255, 255, 0.03);
    /* Subtle glass effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.dark-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-orange);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-orange);
    margin-bottom: 20px;
}

.dark-card p {
    font-size: 1.05rem;
    font-style: italic;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 24px;
}

.dark-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    margin-top: auto;
}

.dark-card-footer h5 {
    color: white;
    font-size: 1rem;
    margin-bottom: 4px;
}

.dark-card-footer span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* FAQ Accordion Styles */
.faq-container {
    padding: 0 20px;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 16px;
}

.faq-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-espresso);
    padding: 24px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--primary-orange);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-right: 20px;
}

.faq-answer p {
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Approximate height for transition */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-orange);
}

/* --- Footer --- */
footer {
    background: #FAF9F8;
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
}

.footer-cta {
    background: var(--primary-orange);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    text-align: center;
    color: white;
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.footer-cta h2 {
    color: white;
    margin-bottom: 16px;
}

.footer-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.footer-cta .btn {
    background: white;
    color: var(--primary-orange);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-cta .btn:hover {
    background: #f0f0f0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-body);
}

@media (max-width: 1024px) {
    :root {
        --container-max: 960px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-layout,
    .split-grid,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Zig Zag Resets for Mobile */
    .zig-zag-row {
        gap: 20px;
        margin-bottom: 80px;
    }

    .zig-zag-row.reverse {
        direction: ltr;
    }

    /* Stack normally on mobile */
    .zig-zag-row .reveal:nth-child(2) {
        order: -1;
    }

    /* Image always on top for mobile */

    .hero {
        text-align: center;
    }

    .hero-layout {
        gap: 50px;
    }

    .trust-metrics {
        justify-content: center;
    }

    .nav-contact {
        display: none;
    }

    .testimonial-text {
        font-size: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.25rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .form-card {
        padding: 24px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .nav-container .btn {
        display: none;
    }

    /* Hide 'Free Trial' in header on small screens */

    .logo img {
        height: 40px;
        /* Smaller logo on mobile */
    }

    .integration-card {
        width: 45%;
        flex: 0 0 45%;
    }

    /* 2 cols for integrations */

    .industry-grid .pill {
        width: 100%;
        justify-content: center;
    }
}