/* ==========================================================================
   Lavrado Express Landing Page - Modern Styling
   ========================================================================== */

:root {
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Palette */
    --primary: #f7931e;
    --primary-hover: #d57a12;
    --dark-bg: #090d16;
    --panel-bg: rgba(22, 30, 49, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Accessibility Focus Ring */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
    border: 2px solid var(--dark-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
}

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

/* ==========================================================================
   Background & Gradient Elements
   ========================================================================== */
.bg-gradient-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(247, 147, 30, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 90% 10%, rgba(2, 132, 199, 0.12) 0%, transparent 45%),
                radial-gradient(circle at 50% 80%, rgba(15, 23, 42, 0.95) 0%, var(--dark-bg) 100%);
    background-size: cover;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(9, 13, 22, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 800;
}

.logo .accent {
    color: var(--primary);
}

.logo-icon {
    font-size: 1.8rem;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.header-cta {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.header-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(247, 147, 30, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 30px;
    border: 1px solid rgba(247, 147, 30, 0.2);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #25d366 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
}

.primary-cta {
    background: var(--primary);
    color: #fff;
}

.primary-cta:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 20px rgba(247, 147, 30, 0.4);
    transform: translateY(-2px);
}

.secondary-cta {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

/* WhatsApp Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.chat-mockup-container {
    width: 330px;
    height: 500px;
    background: #0b141a; /* WhatsApp Dark Mode Background */
    border-radius: 24px;
    border: 4px solid #313d45;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-mockup-header {
    background: #1f2c34;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-mockup-avatar {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

.chat-mockup-info h3 {
    font-size: 0.85rem;
    color: var(--text-main);
}

.chat-mockup-info span {
    font-size: 0.65rem;
    color: #00a884;
    font-weight: 600;
}

.chat-mockup-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background-image: radial-gradient(rgba(255,255,255,0.02) 1px, transparent 0);
    background-size: 16px 16px;
}

.mock-msg {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.mock-msg.incoming {
    align-self: flex-start;
}

.mock-msg.outgoing {
    align-self: flex-end;
}

.sender-tag {
    font-size: 0.6rem;
    color: var(--text-muted);
    margin-bottom: 2px;
    padding-left: 4px;
}

.mock-msg.outgoing .sender-tag {
    text-align: right;
    padding-right: 4px;
}

.bubble {
    background: #202c33;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #e9edef;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.15);
}

.mock-msg.incoming .bubble {
    border-top-left-radius: 0;
}

.mock-msg.outgoing .bubble {
    background: #005c4b; /* WhatsApp Sent bubble */
    border-top-right-radius: 0;
}

.location-bubble {
    color: #53bdeb !important;
    font-weight: 600;
}

.location-bubble .coords {
    color: #e9edef;
    font-size: 0.7rem;
    font-weight: 400;
}

.order-card {
    background: #202c33 !important;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem auto;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(247, 147, 30, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Steps Section (Timeline)
   ========================================================================== */
.steps {
    padding: 100px 0;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(247, 147, 30, 0.4);
    z-index: 5;
}

.step-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.step-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Tech Details
   ========================================================================== */
.tech-section {
    padding: 100px 0;
}

.tech-card {
    background: radial-gradient(circle at 100% 0%, rgba(247, 147, 30, 0.1) 0%, transparent 60%),
                var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3.5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.tech-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tech-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.tech-tags {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tech-tags span {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 30px;
}

/* ==========================================================================
   Final CTA & Footer
   ========================================================================== */
.final-cta {
    padding: 80px 0 100px 0;
}

.cta-card {
    background: linear-gradient(135deg, rgba(22, 30, 49, 0.9) 0%, rgba(9, 13, 22, 0.9) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 147, 30, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.cta-card h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.cta-card p {
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.cta-card .cta-button {
    position: relative;
    z-index: 2;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    background: #060910;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom strong {
    color: var(--text-main);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
/* Logo wrapper in header */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
}

.back-link:hover {
    color: var(--primary);
    background: rgba(247, 147, 30, 0.05);
    border-color: rgba(247, 147, 30, 0.2);
}

.footer-brand-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.footer-brand-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Header Action Area */
.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mobile Menu Toggle button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(6, 9, 16, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--border-color);
    padding: 100px 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 99;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: var(--font-display);
    font-weight: 600;
    transition: color 0.2s ease;
}

.mobile-menu a:hover {
    color: var(--primary);
}

.mobile-menu .mobile-cta {
    margin-top: 1rem;
    background: var(--primary);
    color: #fff;
    width: 100%;
    text-align: center;
}

.mobile-menu .mobile-cta:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px rgba(247, 147, 30, 0.3);
}

.mobile-menu .mobile-back-link {
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

/* Chat Simulator Animations & States */
.animate-msg {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Typing indicator */
.typing-bubble .typing-container {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0.8rem;
    min-height: 26px;
    justify-content: center;
}

.typing-bubble .dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-muted);
    border-radius: 50%;
    opacity: 0.4;
    animation: typing-dot 1.4s infinite ease-in-out both;
}

.typing-bubble .dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-bubble .dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-bubble .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-dot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
        background-color: var(--text-main);
    }
}

.hidden {
    display: none !important;
}

/* Responsive Media Queries */
@media (max-width: 968px) {
    .header-container .nav {
        display: none;
    }

    .header-container .header-cta {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-ctas {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
