/* --- CORE VARIABLES & RESET --- */
:root {
    --bg-app: #e0e5ec;
    --text-main: #64748b;
    --text-dark: #334155;
    --primary-glow: #ff6d00;
    --shadow-out: 10px 10px 20px #c1c9d2, -10px -10px 20px #ffffff;
    --shadow-out-sm: 5px 5px 10px #c1c9d2, -5px -5px 10px #ffffff;
    --shadow-in: inset 5px 5px 10px #c1c9d2, inset -5px -5px 10px #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }
body { background-color: var(--bg-app); color: var(--text-main); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }

/* --- TYPOGRAPHY --- */
h1, h2, h3 { color: var(--text-dark); font-weight: 900; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 20px; }
h1 span { color: var(--primary-glow); }
p { font-size: 1.1rem; font-weight: 600; margin-bottom: 30px; opacity: 0.9; }

/* --- NAVIGATION --- */
header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 25px 5%; 
    max-width: 1400px; 
    margin: 0 auto; 
}

.logo-container img { 
    height: 65px; /* The "FedEx" sweet spot for visibility */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.logo-container img:hover {
    transform: scale(1.05);
}

.nav-links { display: flex; gap: 30px; align-items: center; font-weight: 800; font-size: 0.9rem; }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--primary-glow); }
.btn-login { background: var(--bg-app); padding: 12px 24px; border-radius: 12px; box-shadow: var(--shadow-out-sm); color: var(--primary-glow); font-weight: 900; transition: all 0.2s; }
.btn-login:hover { box-shadow: var(--shadow-in); transform: translateY(2px); }

/* --- HERO SECTION (SPLIT SCREEN) --- */
.hero { display: flex; align-items: center; justify-content: space-between; padding: 80px 5%; max-width: 1400px; margin: 0 auto; min-height: 70vh; gap: 50px; }
.hero-content { flex: 1; max-width: 600px; }
.hero-visual { flex: 1; position: relative; height: 500px; display: flex; justify-content: center; align-items: center; }

.btn-primary { display: inline-block; background: var(--primary-glow); color: white; padding: 18px 40px; border-radius: 16px; font-weight: 900; font-size: 1.1rem; box-shadow: var(--shadow-out); transition: all 0.3s; border: none; cursor: pointer; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(255, 109, 0, 0.3), var(--shadow-out); }

/* Floating App Mockups */
.hero-visual { flex: 1; position: relative; width: 100%; max-width: 600px; margin: 0 auto; }

/* Slim Dark Desktop Browser Frame */
.mockup-desktop { 
    position: relative; 
    width: 100%; 
    border-radius: 10px; 
    box-shadow: var(--shadow-out); 
    background: #1e293b; 
    border: 4px solid #1e293b; /* Reduced from 8px */
    z-index: 1; 
    animation: float 6s ease-in-out infinite; 
    padding-top: 22px; /* Slimmer browser bar */
    overflow: hidden;
}

/* Slimmer Mac-style dots */
.mockup-desktop::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 22px;
    background: #1e293b;
    background-image: 
        radial-gradient(circle, #ff5f56 50%, transparent 55%), 
        radial-gradient(circle, #ffbd2e 50%, transparent 55%), 
        radial-gradient(circle, #27c93f 50%, transparent 55%);
    background-size: 9px 9px;
    background-position: 12px center, 28px center, 44px center;
    background-repeat: no-repeat;
    z-index: 10;
}

.mockup-desktop img { width: 100%; height: auto; display: block; border-radius: 0 0 4px 4px; }

/* Slim Dark Mobile Phone Frame */
.mockup-mobile { 
    position: absolute; 
    width: 170px; 
    height: 350px; 
    right: -20px; 
    bottom: -30px; 
    z-index: 2; 
    border-radius: 28px; /* Slightly tighter radius */
    background: #0f172a; 
    border: 4px solid #1e293b; /* Reduced from 8px */
    box-shadow: var(--shadow-out), inset 0 0 0 1px rgba(255,255,255,0.05);
    overflow: hidden; 
    animation: float 6s ease-in-out infinite 1s; 
}

/* Slimmer Notch */
.mockup-mobile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 38%;
    height: 14px; /* Reduced from 18px */
    background: #0f172a;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 10;
}
/* Subtle Glass Reflection over the screen (Optional Polish) */
.mockup-mobile::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%);
    pointer-events: none;
    z-index: 5;
}

/* Adding the Home Indicator Bar at the bottom */
.mockup-mobile::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    z-index: 10;
}

.mockup-mobile img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 18px; /* Clips the screenshot to fit inside the bezel */
}

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* --- MANITOBA TRUST BANNER --- */
.trust-banner { background: var(--bg-app); padding: 40px 20px; text-align: center; box-shadow: var(--shadow-in); margin: 0 5%; border-radius: 24px; max-width: 1300px; margin: 40px auto 100px auto; }
.trust-banner h3 { font-size: 1.5rem; color: var(--text-dark); margin-bottom: 10px; }
.trust-banner p { margin: 0; font-size: 1rem; color: var(--primary-glow); }

/* --- BENTO BOX FEATURES --- */
.features { padding: 0 5%; max-width: 1400px; margin: 0 auto 100px auto; }
.section-header { text-align: center; margin-bottom: 60px; max-width: 700px; margin-left: auto; margin-right: auto; }

.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(250px, auto); gap: 30px; }
.bento-card { background: var(--bg-app); border-radius: 24px; padding: 40px; box-shadow: var(--shadow-out); transition: all 0.3s ease; display: flex; flex-direction: column; justify-content: center; }
.bento-card:hover { transform: translateY(-5px); }
.bento-icon { font-size: 2.5rem; margin-bottom: 20px; color: var(--primary-glow); }

.bento-wide { grid-column: span 2; }
.bento-tall { grid-row: span 2; }

/* --- CONTACT SECTION --- */
.contact { padding: 80px 5%; max-width: 800px; margin: 0 auto 100px auto; text-align: center; }
.contact-form { background: var(--bg-app); padding: 50px; border-radius: 30px; box-shadow: var(--shadow-out); text-align: left; margin-top: 40px; }
.input-group { margin-bottom: 25px; }
.input-group label { display: block; font-weight: 900; font-size: 0.8rem; color: var(--text-main); margin-bottom: 10px; letter-spacing: 1px; }
.input-group input, .input-group textarea { width: 100%; padding: 18px; border-radius: 16px; border: none; background: var(--bg-app); box-shadow: var(--shadow-in); color: var(--text-dark); font-weight: 800; font-size: 1rem; outline: none; transition: 0.3s; }
.input-group input:focus, .input-group textarea:focus { box-shadow: inset 8px 8px 15px #c1c9d2, inset -8px -8px 15px #ffffff; }

/* --- FOOTER --- */
footer { text-align: center; padding: 40px 20px; font-weight: 800; font-size: 0.9rem; box-shadow: var(--shadow-in); }

/* --- SCROLL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger the bento boxes so they pop in one after another */
.bento-card:nth-child(1) { transition-delay: 0.0s; }
.bento-card:nth-child(2) { transition-delay: 0.1s; }
.bento-card:nth-child(3) { transition-delay: 0.2s; }
.bento-card:nth-child(4) { transition-delay: 0.3s; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1150px) {
    header { padding: 20px 5%; }
    .logo-container img { height: 30px; } /* Scales logo down slightly */
    
    /* Hides text links on mobile, but keeps the Login button visible! */
    .nav-links a:not(.btn-login) { display: none; } 
    .btn-login { padding: 10px 16px; font-size: 0.8rem; }

.hero { flex-direction: column; text-align: center; padding: 40px 5%; gap: 40px; }
    .hero-content { margin-bottom: 20px; max-width: 100%; }
    
    .hero-visual { width: 95%; max-width: 500px; margin-bottom: 30px; height: 280px; }
    .mockup-desktop { border-width: 3px; padding-top: 18px; }
    .mockup-mobile { width: 130px; height: 270px; right: -10px; bottom: -20px; border-width: 3px; }

    .contact-form { padding: 30px 20px; }
}
/* --- MISSION SECTION: CENTERED & IMPACTFUL --- */
.mission-container {
    padding: 120px 5%;
    background: var(--bg-app);
    display: flex;
    justify-content: center;
}

.mission-box {
    max-width: 1100px;
    width: 100%;
    text-align: center;
    padding: 80px 40px;
    border-radius: 40px;
    /* Soft Neumorphic Trench */
    box-shadow: var(--shadow-in); 
    border: 1px solid rgba(255,255,255,0.6);
}

.tag-line {
    color: var(--primary-glow); /* Safety Orange */
    font-weight: 900;
    letter-spacing: 3px;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: block;
}

.mission-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 25px;
}

.mission-text {
    max-width: 850px;
    margin: 0 auto 60px;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-main);
    opacity: 0.9;
}

/* --- THE VALUES GRID: FILLING THE SPACE --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Forces side-by-side */
    gap: 30px;
}

.value-item {
    background: var(--bg-app);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: var(--shadow-out); /* Raised Neumorphic Card */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.8);
    text-align: center;
}

.value-item:hover {
    transform: translateY(-12px);
    box-shadow: 15px 15px 30px #c1c9d2, -15px -15px 30px #ffffff;
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

.value-item h4 {
    color: var(--text-dark);
    font-weight: 900;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.value-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

/* Responsive Fix for Mobile */
@media (max-width: 900px) {
    .values-grid { grid-template-columns: 1fr; }
    .mission-box { padding: 40px 20px; }
}
/* --- SYSTEM ACCESS PORTAL --- */
.login-portal {
    padding: 60px 5% 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.portal-title {
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    opacity: 0.7;
}

.portal-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.portal-card {
    background: var(--bg-app);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-out);
    flex: 1;
    max-width: 350px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.portal-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-glow);
    box-shadow: 0 15px 30px rgba(255, 109, 0, 0.15);
}

.portal-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.portal-card h4 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.portal-card p {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}

/* Responsive Fix for Mobile Viewers */
@media (max-width: 768px) {
    .portal-grid { flex-direction: column; align-items: center; }
    .portal-card { width: 100%; }
}
/* --- FIX: STACK BENTO CARDS ON MOBILE --- */
@media (max-width: 768px) {
    .bento-grid {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Force a single column */
        gap: 20px !important;
        width: 100% !important;
    }

    .bento-card, .bento-card.bento-wide {
        grid-column: span 1 !important; /* Make every card full-width */
        width: 100% !important;
        min-height: auto !important;
        box-sizing: border-box; /* Ensures padding doesn't push card off-screen */
    }
}