/* --- VARIABLES & RESET --- */
:root {
    --bg-dark: #0a0a0a;
    --card-bg: #111111;
    --card-border: #2a2a2a;
    --primary: #00FFAB;    /* Electric Teal */
    --accent: #FFB347;     /* Amber Haze */
    --text-main: #ffffff;
    --text-muted: #888888;
    --font-stack: 'Inter', sans-serif;
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    font-family: var(--font-stack);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- NAVIGATION --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.logo { font-weight: 900; font-size: 1.2rem; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px;}
.logo-icon { color: var(--primary); }

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; }
.nav-links a:hover { color: var(--primary); }

.btn-primary {
    background: var(--text-main);
    color: #000;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
}
.btn-primary:hover {
    transform: scale(1.05);
    background: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 171, 0.4);
}

/* --- BENTO GRID LAYOUT --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, minmax(280px, auto));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Base Card Style */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease-bounce), border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- SPECIFIC CARD STYLES --- */

/* 1. Hero Card */
.hero-card {
    grid-column: span 2; /* Takes up 2 columns */
    grid-row: span 2;    /* Takes up 2 rows (Tall) */
    justify-content: center;
    background: radial-gradient(circle at top right, #1a1a1a, #111);
}
.hero-card h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin: 20px 0;
    letter-spacing: -2px;

}
.text-gradient {
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;  /* For Chrome/Safari/Edge */
    background-clip: text;          /* The Standard Rule (Fixes warning) */
    -webkit-text-fill-color: transparent;
}
.badge {
    background: rgba(0, 255, 171, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-start;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hero-buttons { margin-top: 30px; display: flex; gap: 15px; }
.btn-secondary {
    padding: 10px 24px;
    border: 1px solid var(--card-border);
    border-radius: 100px;
    color: var(--text-main);
    font-weight: 600;
}
.btn-secondary:hover { background: #1a1a1a; border-color: #fff; }

/* 2. Tracking Card */
.tracking-card {
    grid-column: span 1;
    justify-content: space-between;
}
.card-icon { font-size: 1.5rem; color: var(--accent); margin-bottom: 20px; }
.input-group {
    display: flex;
    background: #000;
    padding: 5px;
    border-radius: 50px;
    margin-top: 20px;
    border: 1px solid var(--card-border);
}
.input-group input {
    background: transparent;
    border: none;
    padding: 10px 15px;
    color: #fff;
    width: 100%;
    outline: none;
}
.input-group button {
    background: var(--card-border);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}
.input-group button:hover { background: var(--primary); color: #000; }
.status-pill { font-size: 0.8rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; margin-top: 15px; }
.dot { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 10px var(--primary); }

/* 3. AI Card */
.ai-card {
    grid-column: span 1;
    grid-row: span 2; /* Tall narrow card */
    background: linear-gradient(180deg, #111, #0d0d0d);
}
.chat-interface {
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #222;
}
.chat-bubble { padding: 10px 15px; border-radius: 12px; font-size: 0.85rem; max-width: 90%; }
.user { background: #222; align-self: flex-end; color: #ddd; border-bottom-right-radius: 2px;}
.bot { background: rgba(0, 255, 171, 0.1); color: var(--primary); align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-chart-mockup { display: flex; gap: 5px; height: 60px; align-items: flex-end; margin-top: 20px; opacity: 0.7; }
.bar { flex: 1; background: var(--primary); border-radius: 4px; }
.micro-text { font-size: 0.8rem; color: var(--text-muted); text-align: center; }

/* 4. Stats Card */
.stats-card {
    grid-column: span 1;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.stats-card h2 { font-size: 3rem; color: var(--primary); font-weight: 900; letter-spacing: -2px; }
.graph-line svg { width: 100%; height: 50px; overflow: visible; margin-top: 10px;}

/* 5. Fleet Card */
.fleet-card {
    grid-column: span 1;
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
.fleet-card h3, .fleet-card p, .fleet-card a { color: #000; }
.fleet-card p { opacity: 0.8; margin-bottom: 20px; }
.link-arrow { font-weight: 700; display: flex; align-items: center; gap: 10px; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--card-border);
    margin-top: 40px;
}
.socials { margin-top: 15px; display: flex; justify-content: center; gap: 20px; font-size: 1.2rem; }
.socials a:hover { color: var(--primary); }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
    .hero-card { grid-column: span 2; }
    .ai-card { grid-row: span 1; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; }
    .nav-links { display: none; } /* Hidden for simplicity in v1 */
    
    .bento-grid {
        grid-template-columns: 1fr; /* 1 column on phone */
        grid-template-rows: auto;
    }
    
    .hero-card, .tracking-card, .ai-card, .stats-card, .fleet-card {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .hero-card h1 { font-size: 2.5rem; }
}