/* ============================================
   FreightVision - Static Landing Page
   High-End Visual Design
   ============================================ */

/* CSS Variables */
:root {
    /* Brand Colors - extracted from logo */
    --primary: #1a3a7c;
    --primary-dark: #0f2654;
    --secondary: #4a7cc9;
    --secondary-light: #6b9fe0;
    --accent: #e8dcc8;
    --accent-dark: #d4c4a8;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    /* WhatsApp */
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.header-cta:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: calc(72px + var(--space-4xl)) 0 var(--space-4xl);
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(74, 124, 201, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 500;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xl);
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    background: rgba(26, 58, 124, 0.08);
    border-radius: var(--radius-2xl);
}

/* ============================================
   Portals Section
   ============================================ */
.portals {
    padding: var(--space-4xl) 0;
    background: var(--white);
}

.section-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 700;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-500);
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.portal-card {
    display: flex;
    flex-direction: column;
    padding: var(--space-2xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
    cursor: pointer;
}

.portal-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.portal-card.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: transparent;
}

.portal-card.featured .portal-icon,
.portal-card.featured .portal-title,
.portal-card.featured .portal-description {
    color: var(--white);
}

.portal-card.featured .portal-icon {
    background: rgba(255, 255, 255, 0.15);
}

.portal-card.featured .portal-link {
    color: var(--accent);
}

.portal-card.featured:hover {
    box-shadow: var(--shadow-2xl);
}

.portal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-lg);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    color: var(--primary);
    transition: all var(--transition-base);
}

.portal-card:hover .portal-icon {
    background: rgba(74, 124, 201, 0.1);
}

.portal-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
}

.portal-description {
    flex-grow: 1;
    font-size: 0.9375rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.portal-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap var(--transition-base);
}

.portal-card:hover .portal-link {
    gap: var(--space-md);
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--gray-50);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.contact-card:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.contact-card.whatsapp:hover {
    border-color: var(--whatsapp);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.05) 0%, var(--white) 100%);
}

.contact-card.whatsapp .contact-icon {
    color: var(--whatsapp);
    background: rgba(37, 211, 102, 0.1);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    color: var(--primary);
}

.contact-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.contact-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-2xl) 0;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.footer-logo {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .header-content {
        height: 64px;
    }

    .logo-img {
        height: 40px;
    }

    .hero {
        padding: calc(64px + var(--space-2xl)) 0 var(--space-2xl);
    }

    .hero-features {
        gap: var(--space-xs);
    }

    .feature-tag {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }

    .portals,
    .contact {
        padding: var(--space-2xl) 0;
    }

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

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

    .footer-content {
        gap: var(--space-md);
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }

    .portal-card {
        padding: var(--space-lg);
    }

    .portal-icon {
        width: 64px;
        height: 64px;
    }

    .portal-icon svg {
        width: 32px;
        height: 32px;
    }
}

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

.hero-content {
    animation: fadeInUp 0.6s ease-out;
}

.portal-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.portal-card:nth-child(1) { animation-delay: 0.1s; }
.portal-card:nth-child(2) { animation-delay: 0.2s; }
.portal-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   Focus States (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
