:root {
    --bg-color: #121410; /* Slightly lighter, richer Olive tone */
    --surface-color: rgba(26, 28, 22, 0.8); /* Denser olive surface */
    --accent-primary: #d4af37; /* Metallic Gold */
    --accent-secondary: #fbbf24; /* Brighter, more vibrant Amber Gold */
    --accent-glow: rgba(251, 191, 36, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #ececec;
    --border-color: rgba(212, 175, 55, 0.3); 
    --gradient-primary: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Ensure no rogue glows from global styles */
    background-image: none !important;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Typography Scale */
.heading-xl { font-size: 4.5rem; margin-bottom: 1.5rem; }
.heading-lg { font-size: 3rem; margin-bottom: 1.5rem; }
.lead { font-size: 1.25rem; color: var(--text-secondary); max-width: 700px; margin-bottom: 2.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }

.btn-primary {
    background: var(--gradient-primary);
    color: #000000 !important; /* Force black text */
    box-shadow: 0 10px 20px -5px rgba(212, 175, 55, 0.4);
    text-shadow: none;
    font-weight: 800;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(212, 175, 55, 0.5);
}

.btn.submitting {
    pointer-events: none;
    opacity: 0.8;
    position: relative;
    color: transparent !important;
}

.btn.submitting::after {
    content: "Submitting...";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: 800;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover { border-color: white; background: rgba(255, 255, 255, 0.05); }

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(18, 20, 16, 0.85);
    border-bottom: 1px solid rgba(212, 175, 55, 0.4);
    padding: 1rem 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span { 
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-base);
}

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

/* Navigation Scrolled State */
.glass-nav.scrolled {
    padding: 0.75rem 0;
    background: rgba(18, 20, 16, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-links a.btn-primary {
    color: #000000 !important;
    background: var(--gradient-primary);
}

.nav-links a.btn-primary:hover { color: #000000 !important; opacity: 0.9; }

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: -2;
}

::selection {
    background: var(--accent-primary);
    color: #000;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, var(--bg-color) 80%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Glass Cards */
.glass {
    background: var(--surface-color);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition-base);
}

.glass:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Sections */
section {
    padding: 10rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 { margin-bottom: 1rem; }
.feature-card p { color: var(--text-secondary); }

/* Workflow */
.workflow-wrapper {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.workflow-image { flex: 1; position: relative; }
.workflow-image img {
    width: 100%;
    border-radius: 32px;
    box-shadow: 0 30px 60px -20px rgba(212, 175, 55, 0.2);
}

.workflow-content { flex: 1; }

.steps { margin-top: 3rem; }
.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-num {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.5;
}

.step h4 { margin-bottom: 0.5rem; font-size: 1.5rem; }
.step p { color: var(--text-secondary); }

/* Integrations */
.integrations-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem;
}

.integrations-content { flex: 1.2; }
.integrations-image { flex: 0.8; }
.integrations-image img { width: 100%; border-radius: 16px; }

.partners-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.partner {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-item h4 { margin-bottom: 1rem; color: white; }
.faq-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* Concurrency Section */
.concurrency-section {
    position: relative;
    padding: 10rem 0;
    background: linear-gradient(to bottom, transparent, rgba(212, 175, 55, 0.05));
}

.concurrency-wrapper {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.concurrency-content { flex: 1; }
.concurrency-visual { 
    flex: 1; 
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 32px;
    border: 1px solid var(--border-color);
}

.concurrency-list {
    list-style: none;
    margin-top: 2rem;
}

.concurrency-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.concurrency-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

.voice-wave-container {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100px;
}

.wave {
    width: 6px;
    height: 40px;
    background: var(--accent-primary);
    border-radius: 10px;
    animation: waveAnim 1.2s infinite ease-in-out;
}

.wave:nth-child(2) { animation-delay: 0.2s; height: 60px; }
.wave:nth-child(3) { animation-delay: 0.4s; height: 80px; }
.wave:nth-child(4) { animation-delay: 0.6s; height: 50px; }

@keyframes waveAnim {
    0%, 100% { transform: scaleY(1); opacity: 0.5; }
    50% { transform: scaleY(1.5); opacity: 1; filter: drop-shadow(0 0 10px var(--accent-glow)); }
}

/* Intake Form Section */
.get-started-section {
    padding: 10rem 0;
    background: linear-gradient(to top, transparent, rgba(18, 20, 16, 0.4));
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.pilot-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, 
.form-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    transition: var(--transition-base);
}

.form-group input:focus, 
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px var(--accent-glow);
}

.glass-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.form-consent {
    margin-bottom: 2.5rem;
}

.form-success-message {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
}

.form-success-message h3 {
    color: var(--accent-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-success-message p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.pilot-form.success .form-grid,
.pilot-form.success .form-consent,
.pilot-form.success .form-actions {
    display: none;
}

.pilot-form.success .form-success-message {
    display: block;
    animation: fadeIn 0.6s ease-out forwards;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.form-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .pilot-form .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .form-actions {
        flex-direction: column;
        width: 100%;
    }
    .form-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Footer */
.footer {
    padding-bottom: 4rem;
}

.footer-cta {
    text-align: center;
    margin-bottom: 6rem;
    background: linear-gradient(to right, rgba(212, 175, 55, 0.15), rgba(18, 20, 16, 0.2));
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-cta p { margin-bottom: 2.5rem; color: var(--text-secondary); font-size: 1.25rem; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
}

.footer-logo { font-size: 1.5rem; font-weight: 800; }
.footer-logo span { 
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-copyright { color: var(--text-secondary); font-size: 0.9rem; }

.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: var(--transition-base); }
.footer-links a:hover { color: white; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition-base);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .heading-xl { font-size: 3.5rem; }
    .workflow-wrapper { flex-direction: column; gap: 3rem; }
    .integrations-wrapper { flex-direction: column; padding: 2rem; gap: 3rem; }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        z-index: 999;
        padding: 2rem;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    .nav-links .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .mobile-toggle {
        display: flex !important;
        z-index: 1000;
    }

    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

    /* Hero Section */
    .hero {
        text-align: center;
        padding-top: 8rem;
    }

    .heading-xl { font-size: 2.5rem; margin-bottom: 2rem; }
    .heading-lg { font-size: 2rem; }
    .lead { font-size: 1.1rem; margin: 0 auto 2.5rem; }

    .hero-actions {
        display: flex !important;
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    /* Sections */
    section { padding: 6rem 0; }
    .concurrency-wrapper { flex-direction: column; text-align: center; gap: 3rem; }
    .concurrency-visual { height: 300px; width: 100%; }
    
    .faq-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
    
    .container { padding: 0 1.5rem; }
}
