/* =============================================
   Meridian Logistics — Style 2: Light Minimal Clean
   ============================================= */

/* ---------- Custom Properties ---------- */
:root {
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #ADB5BD;
    --gray-500: #868E96;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;
    --green: #1B5E3B;
    --green-dark: #154D30;
    --green-light: #E8F5EE;
    --gold: #D4A853;
    --gold-light: #FDF6E8;

    --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow: 0 4px 16px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
    --transition: .25s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--gray-700); background: var(--white); line-height: 1.65; font-size: 16px; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; border-radius: var(--radius-sm); transition: var(--transition);
    font-size: .938rem; letter-spacing: .01em;
}
.btn-primary {
    background: var(--green); color: var(--white); padding: 12px 28px;
    box-shadow: 0 2px 8px rgba(27,94,59,.18);
}
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 4px 14px rgba(27,94,59,.28); }
.btn-outline {
    border: 1.5px solid var(--green); color: var(--green); padding: 11px 27px; background: transparent;
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 20px; font-size: .85rem; }

/* ---------- Section Helpers ---------- */
.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-label {
    font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
    color: var(--gold); margin-bottom: 12px;
}
.section-header h2 { font-size: 2.4rem; font-weight: 700; color: var(--gray-800); line-height: 1.2; margin-bottom: 16px; }
.section-sub { font-size: 1.1rem; color: var(--gray-500); line-height: 1.7; }

/* ---------- Fade-in Animation ---------- */
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.96); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-size: 1.1rem; font-weight: 700; letter-spacing: .12em; color: var(--green); }
.logo span { font-weight: 400; color: var(--gray-400); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { font-size: .9rem; font-weight: 500; color: var(--gray-600); transition: var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--gold); transition: var(--transition); }
.nav-links a:hover { color: var(--green); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 16px; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; width: 28px; }
.mobile-toggle span { display: block; height: 2px; background: var(--gray-700); border-radius: 2px; transition: var(--transition); }
.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(5px, -5px); }

/* ============================================
   HERO
   ============================================ */
.hero { padding: 160px 0 100px; background: var(--white); }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin-bottom: 16px; }
.hero h1 { font-size: 3.6rem; font-weight: 700; line-height: 1.1; color: var(--gray-800); margin-bottom: 24px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero-sub { font-size: 1.15rem; color: var(--gray-500); line-height: 1.75; margin-bottom: 40px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero illustration */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-illustration { position: relative; width: 420px; height: 420px; }
.il-globe { position: relative; width: 100%; height: 100%; }
.il-ring {
    position: absolute; border-radius: 50%; border: 1.5px solid var(--gray-200);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.il-ring-1 { width: 200px; height: 200px; }
.il-ring-2 { width: 300px; height: 300px; border-color: var(--gray-100); }
.il-ring-3 { width: 400px; height: 400px; border-color: var(--gray-100); }
.il-dot {
    position: absolute; width: 10px; height: 10px; background: var(--green); border-radius: 50%;
    animation: pulse-dot 3s ease-in-out infinite;
}
.il-dot-1 { top: 20%; left: 55%; }
.il-dot-2 { top: 45%; left: 85%; animation-delay: .6s; }
.il-dot-3 { top: 75%; left: 60%; animation-delay: 1.2s; }
.il-dot-4 { top: 55%; left: 15%; animation-delay: 1.8s; background: var(--gold); }
.il-dot-5 { top: 25%; left: 30%; animation-delay: 2.4s; background: var(--gold); }
@keyframes pulse-dot {
    0%, 100% { transform: scale(1); opacity: .8; }
    50% { transform: scale(1.6); opacity: .4; }
}
.il-line {
    position: absolute; height: 1px; background: linear-gradient(90deg, var(--green), transparent);
    transform-origin: left center; opacity: .3;
}
.il-line-1 { top: 23%; left: 35%; width: 120px; transform: rotate(10deg); }
.il-line-2 { top: 50%; left: 20%; width: 200px; transform: rotate(-5deg); }
.il-line-3 { top: 70%; left: 45%; width: 140px; transform: rotate(25deg); }
.il-box {
    position: absolute; padding: 8px 16px; background: var(--white); border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm); font-size: .75rem; font-weight: 600; color: var(--green);
    box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.il-box-1 { top: 12%; left: 60%; }
.il-box-2 { top: 42%; left: 78%; animation-delay: 2s; }
.il-box-3 { top: 70%; left: 18%; animation-delay: 4s; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============================================
   AI SHOWCASE
   ============================================ */
.ai-showcase { padding: 120px 0; background: var(--gray-50); }
.ai-demo { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; align-items: start; }

/* Chat Panel */
.chat-panel {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    overflow: hidden; border: 1px solid var(--gray-200);
}
.chat-header {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px; border-bottom: 1px solid var(--gray-100);
    font-size: .85rem; font-weight: 600; color: var(--gray-600);
}
.chat-status { width: 8px; height: 8px; border-radius: 50%; background: #34D399; }
.chat-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.chat-msg { padding: 14px 18px; border-radius: var(--radius); font-size: .9rem; line-height: 1.6; max-width: 92%; }
.chat-msg-user { background: var(--green-light); color: var(--green-dark); align-self: flex-end; border-bottom-right-radius: 4px; }
.chat-msg-ai { background: var(--gray-50); color: var(--gray-700); border-bottom-left-radius: 4px; }
.chat-typing { display: flex; gap: 4px; padding: 8px 0 4px 4px; }
.chat-typing span {
    width: 7px; height: 7px; background: var(--gray-300); border-radius: 50%;
    animation: typing .9s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
    0%, 100% { opacity: .3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
}

/* Generative UI Panel */
.gen-ui-panel {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    overflow: hidden; border: 1px solid var(--gray-200);
}
.gen-ui-header { padding: 24px 28px 16px; }
.gen-ui-badge {
    display: inline-block; font-size: .7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; background: var(--gold-light); color: var(--gold);
    padding: 4px 10px; border-radius: 4px; margin-bottom: 10px;
}
.gen-ui-header h3 { font-size: 1.25rem; font-weight: 700; color: var(--gray-800); margin-bottom: 4px; }
.gen-ui-header p { font-size: .85rem; color: var(--gray-400); }

/* Rate Table */
.rate-table { padding: 0 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.rate-card {
    position: relative; padding: 20px 22px; border: 1px solid var(--gray-200);
    border-radius: var(--radius); transition: var(--transition);
}
.rate-card:hover { border-color: var(--green); box-shadow: 0 4px 16px rgba(27,94,59,.08); }
.rate-card-best { border-color: var(--green); background: var(--green-light); }
.rate-tag {
    position: absolute; top: -1px; right: 20px;
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: var(--green); color: var(--white); padding: 4px 10px; border-radius: 0 0 6px 6px;
}
.tag-fast { background: var(--gold); }
.rate-carrier { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 2px; }
.rate-mode { font-size: .8rem; color: var(--gray-400); margin-bottom: 14px; }
.rate-details { display: flex; gap: 32px; margin-bottom: 14px; }
.rate-detail { display: flex; flex-direction: column; gap: 2px; }
.rate-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gray-400); font-weight: 600; }
.rate-value { font-size: .95rem; font-weight: 600; color: var(--gray-700); }
.rate-price { color: var(--green); }
.rate-co2 { color: var(--gray-500); }

/* ============================================
   SERVICES
   ============================================ */
.services { padding: 120px 0; background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
    padding: 36px 32px; border-radius: var(--radius); border: 1px solid var(--gray-200);
    transition: var(--transition); background: var(--white);
}
.service-card:hover { border-color: var(--green); box-shadow: var(--shadow); transform: translateY(-4px); }
.service-icon { width: 48px; height: 48px; color: var(--green); margin-bottom: 20px; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; }
.service-card p { font-size: .92rem; color: var(--gray-500); line-height: 1.65; }

/* ============================================
   PROCESS
   ============================================ */
.process { padding: 120px 0; background: var(--gray-50); }
.process-steps { display: flex; align-items: flex-start; justify-content: center; gap: 0; }
.process-step { text-align: center; max-width: 220px; }
.step-number {
    width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; font-weight: 700; margin: 0 auto 18px;
    background: var(--green); color: var(--white);
}
.process-step h3 { font-size: 1rem; font-weight: 700; color: var(--gray-800); margin-bottom: 8px; }
.process-step p { font-size: .88rem; color: var(--gray-500); line-height: 1.6; }
.process-connector {
    flex-shrink: 0; width: 64px; height: 2px; margin-top: 28px;
    background: repeating-linear-gradient(90deg, var(--gray-300) 0, var(--gray-300) 6px, transparent 6px, transparent 12px);
}

/* ============================================
   BENEFITS
   ============================================ */
.benefits { padding: 100px 0; background: var(--white); }
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.benefit-card { text-align: center; }
.benefit-icon { width: 56px; height: 56px; margin: 0 auto 20px; color: var(--green); }
.benefit-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--gray-800); margin-bottom: 10px; }
.benefit-card p { font-size: .92rem; color: var(--gray-500); line-height: 1.65; max-width: 340px; margin: 0 auto; }

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar { padding: 72px 0; background: var(--green); }
.stats-grid { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 32px; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.stat-label { display: block; font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }

/* ============================================
   CASE STUDIES
   ============================================ */
.case-studies { padding: 120px 0; background: var(--gray-50); }
.cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.case-card {
    background: var(--white); padding: 40px 36px; border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200); transition: var(--transition);
}
.case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.case-tag {
    display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .08em; color: var(--gold); background: var(--gold-light);
    padding: 4px 12px; border-radius: 4px; margin-bottom: 16px;
}
.case-card h3 { font-size: 1.3rem; font-weight: 700; color: var(--gray-800); margin-bottom: 12px; }
.case-card p { font-size: .92rem; color: var(--gray-500); line-height: 1.7; margin-bottom: 24px; }
.case-metrics { display: flex; gap: 40px; margin-bottom: 24px; }
.case-metric { display: flex; flex-direction: column; }
.cm-value { font-size: 1.6rem; font-weight: 700; color: var(--green); }
.cm-label { font-size: .78rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.case-link { font-size: .9rem; font-weight: 600; color: var(--green); transition: var(--transition); }
.case-link:hover { color: var(--gold); }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter { padding: 120px 0; background: var(--white); }
.newsletter-inner { text-align: center; max-width: 580px; margin: 0 auto; }
.newsletter-inner h2 { font-size: 2rem; font-weight: 700; color: var(--gray-800); margin-bottom: 12px; }
.newsletter-inner > p { font-size: 1rem; color: var(--gray-500); margin-bottom: 32px; }
.newsletter-form .nf-row { display: flex; gap: 12px; justify-content: center; }
.newsletter-form input[type="email"] {
    flex: 1; max-width: 340px; padding: 14px 20px; font-size: .95rem;
    border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm);
    outline: none; transition: var(--transition); background: var(--gray-50);
}
.newsletter-form input[type="email"]:focus { border-color: var(--green); background: var(--white); }
.nf-note { font-size: .8rem; color: var(--gray-400); margin-top: 14px; }
.nf-note a { color: var(--green); text-decoration: underline; }
.nf-success { color: var(--green); font-size: .9rem; margin-top: 14px; font-weight: 500; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { padding: 80px 0 40px; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.footer-brand p { font-size: .9rem; color: var(--gray-500); margin-top: 12px; line-height: 1.65; max-width: 280px; }
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--gray-500); transition: var(--transition); border-radius: 50%; background: var(--gray-100); }
.footer-social a:hover { color: var(--green); background: var(--green-light); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-800); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .9rem; color: var(--gray-500); transition: var(--transition); }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid var(--gray-200); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-certs { display: flex; gap: 20px; }
.footer-certs span { font-size: .75rem; font-weight: 600; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; padding: 4px 12px; border: 1px solid var(--gray-200); border-radius: 4px; }
.footer-bottom > p { font-size: .82rem; color: var(--gray-400); }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
    background: var(--white); border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 24px rgba(0,0,0,.08);
    transform: translateY(100%); transition: transform .4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner { max-width: 1200px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-text p { font-size: .88rem; color: var(--gray-600); line-height: 1.55; }
.cookie-text a { color: var(--green); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .ai-demo { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-cta { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
        box-shadow: var(--shadow); padding: 16px 24px;
    }
    .nav-links.open a { padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
    .mobile-toggle { display: flex; }

    .hero { padding: 120px 0 80px; }
    .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
    .hero h1 { font-size: 2.2rem; }
    .hero-sub { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-illustration { width: 300px; height: 300px; }
    .il-ring-3 { width: 280px; height: 280px; }
    .il-ring-2 { width: 220px; height: 220px; }

    .section-header h2 { font-size: 1.8rem; }
    .services-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; gap: 48px; }
    .cases-grid { grid-template-columns: 1fr; }

    .process-steps { flex-direction: column; align-items: center; }
    .process-connector { width: 2px; height: 40px; margin: 0; background: repeating-linear-gradient(180deg, var(--gray-300) 0, var(--gray-300) 6px, transparent 6px, transparent 12px); }

    .stats-grid { flex-direction: column; align-items: center; gap: 28px; }

    .newsletter-form .nf-row { flex-direction: column; align-items: center; }
    .newsletter-form input[type="email"] { max-width: 100%; width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    .cookie-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .rate-details { flex-wrap: wrap; gap: 14px; }
    .case-metrics { flex-direction: column; gap: 12px; }
    .hero-illustration { width: 240px; height: 240px; }
}
