/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --green: #2E7D32;
    --green-bright: #4CAF50;
    --green-light: #8BC34A;
    --charcoal: #1c211c;
    --gray: #5b635b;
    --cream: #fafaf7;
    --white: #ffffff;
    --border-light: #e2e5e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: var(--white);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-logo h1 {
    color: var(--charcoal);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.navbar.scrolled .nav-links a {
    color: var(--charcoal);
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-links a.nav-cta {
    padding: 12px 28px;
    background: var(--white);
    color: var(--charcoal);
    transition: background 0.3s ease, color 0.3s ease;
}

.navbar.scrolled .nav-links a.nav-cta {
    background: var(--green);
    color: var(--white);
}

.nav-links a.nav-cta:hover {
    opacity: 0.85;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1100;
}

.nav-mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-mobile-toggle span {
    background: var(--charcoal);
}

/* Full-Viewport Panels */
.panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Per-panel backgrounds: generated image on top, bright gradient placeholder beneath */
.panel-hero {
    background-image: url('assets/images/hero-abstract.png'),
        linear-gradient(160deg, #8BC34A 0%, #2E7D32 55%, #1B5E20 100%);
}

.panel-idea {
    background-image: url('assets/images/idea-abstract.png'),
        linear-gradient(135deg, #AED581 0%, #558B2F 100%);
}

.panel-rover {
    background-image: url('assets/images/rows-abstract.png'),
        linear-gradient(180deg, #9CCC65 0%, #33691E 100%);
}

.panel-simple {
    background-image: url('assets/images/texture-abstract.png'),
        linear-gradient(135deg, #6D4C41 0%, #6D4C41 45%, #7CB342 55%, #7CB342 100%);
}

.panel-horizon {
    background-image: url('assets/images/horizon-abstract.png'),
        linear-gradient(180deg, #81D4FA 0%, #AED581 55%, #33691E 100%);
}

.panel-contact {
    background-image: url('assets/images/contact-abstract.png'),
        linear-gradient(120deg, #FFD54F 0%, #8BC34A 65%, #558B2F 100%);
}

/* Readability scrim over the imagery */
.panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 25, 10, 0.55) 0%, rgba(10, 25, 10, 0.15) 45%, rgba(10, 25, 10, 0.25) 100%);
}

.panel-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1420px;
    padding: 120px 70px 80px;
    color: var(--white);
}

.panel-content.center {
    text-align: center;
    max-width: 1100px;
}

.panel-content.bottom-left {
    align-self: flex-end;
}

.panel-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.panel-title {
    font-size: clamp(40px, 6vw, 84px);
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.05;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.panel-text {
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 400;
    line-height: 1.6;
    max-width: 640px;
    margin-bottom: 32px;
}

.panel-content.center .panel-text {
    margin-left: auto;
    margin-right: auto;
}

/* Hero */
.hero-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(17px, 2.2vw, 24px);
    font-weight: 400;
    margin-bottom: 48px;
    line-height: 1.5;
}

/* Voice Briefing Animation */
.voice-waveform {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    height: 40px;
    margin-bottom: 24px;
}

.voice-waveform span {
    width: 5px;
    height: 12px;
    background: var(--white);
    border-radius: 3px;
    opacity: 0.9;
}

.voice-waveform.listening span {
    animation: wave 0.9s ease-in-out infinite;
}

.voice-waveform.listening span:nth-child(2) { animation-delay: 0.15s; }
.voice-waveform.listening span:nth-child(3) { animation-delay: 0.3s; }
.voice-waveform.listening span:nth-child(4) { animation-delay: 0.45s; }
.voice-waveform.listening span:nth-child(5) { animation-delay: 0.6s; }

@keyframes wave {
    0%, 100% { height: 10px; }
    50% { height: 34px; }
}

.voice-title {
    font-size: clamp(17px, 4.5vw, 52px);
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-bottom: 16px;
}

.voice-cursor {
    display: inline-block;
    width: 4px;
    height: 1em;
    background: var(--white);
    margin-left: 6px;
    animation: blink 0.8s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    50% { opacity: 0; }
}

.voice-done {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.voice-done.show {
    opacity: 1;
    transform: translateY(0);
}

.voice-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4em;
    height: 1.4em;
    border-radius: 50%;
    background: var(--green-bright);
    color: var(--white);
    font-size: 0.8em;
    margin-right: 8px;
}

/* Capability Chips */
.capability-group {
    margin-top: 28px;
}

.capability-heading {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 14px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip {
    padding: 10px 22px;
    background: var(--white);
    border: 2px solid var(--green-bright);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal);
    white-space: nowrap;
}

.chip-muted {
    background: rgba(255, 255, 255, 0.15);
    border: 2px dashed rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-weight: 400;
}

/* CTA Buttons */
.cta-button {
    display: inline-block;
    padding: 18px 52px;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background: var(--green-bright);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Contact Form */
.contact-form-wrapper {
    max-width: 560px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 6px;
    padding: 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    text-align: left;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid var(--border-light);
    border-radius: 4px;
    color: var(--charcoal);
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--green-bright);
}

.form-input::placeholder {
    color: var(--gray);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.contact-form .cta-button {
    width: 100%;
}

.form-message {
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    font-size: 15px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: var(--green);
}

.form-message.error {
    display: block;
    background: rgba(244, 67, 54, 0.08);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #c62828;
}

/* Footer */
.footer {
    background: var(--white);
    border-top: 1px solid var(--border-light);
    padding: 70px 0 36px;
}

.footer-container {
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 70px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h3 {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
    color: var(--charcoal);
}

.footer-section h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    color: var(--gray);
}

.footer-section p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.footer-bottom {
    max-width: 1420px;
    margin: 0 auto;
    padding: 32px 70px 0;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--gray);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 100px 40px 40px;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links a {
        color: var(--charcoal);
        font-size: 18px;
    }

    .nav-links a.nav-cta {
        background: var(--green);
        color: var(--white);
        text-align: center;
    }

    .nav-mobile-toggle.active span {
        background: var(--charcoal);
    }

    .nav-mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

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

/* Responsive */
@media (max-width: 1024px) {
    .nav-container {
        padding: 20px 40px;
    }

    .panel-content {
        padding: 110px 40px 70px;
    }

    .footer-container {
        padding: 0 40px;
    }

    .footer-bottom {
        padding: 32px 40px 0;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 16px 20px;
    }

    .nav-logo h1 {
        font-size: 12px;
    }

    .panel-content {
        padding: 100px 20px 60px;
    }

    .chip {
        font-size: 13px;
        padding: 8px 16px;
    }

    .contact-form-wrapper {
        padding: 28px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .footer-bottom {
        padding: 32px 20px 0;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--green-bright);
    color: var(--white);
}
