:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --success: #10b981;
    --text: #1e293b;
    --text-muted: #64748b;
    --bg: #f1f5f9;
    --white: #fff;
    --border: #e2e8f0;
    --shadow: 0 4px 16px rgba(15,23,42,.08);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
a { text-decoration: none; color: inherit; transition: .2s; }
img { max-width: 100%; }

/* Navbar */
.navbar {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    box-shadow: 0 2px 12px rgba(0,0,0,.2);
    padding: .7rem 0;
}
.logo-icon {
    width: 40px; height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; color: #fff;
}
.brand-name { font-size: 1.4rem; font-weight: 800; color: #fff; line-height: 1.1; }
.brand-tagline { font-size: .68rem; color: rgba(255,255,255,.55); }
.text-accent { color: var(--accent) !important; }
.nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500; font-size: .93rem;
    padding: .45rem .9rem !important; border-radius: 8px;
}
.nav-link:hover, .nav-link.active { color: #fff !important; background: rgba(255,255,255,.1); }
.btn-accent {
    background: var(--accent); color: #fff !important;
    font-weight: 600; border: none; border-radius: 8px;
}
.btn-accent:hover { background: var(--accent-hover); color: #fff !important; }

/* Hero */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
    color: #fff; padding: 70px 0 80px; position: relative;
}
.hero-title { font-size: 2.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero-sub { font-size: 1.1rem; color: rgba(255,255,255,.7); max-width: 520px; margin-bottom: 1.8rem; }

.search-box {
    background: #fff; border-radius: 14px; padding: 8px;
    display: flex; gap: 8px; max-width: 640px;
    box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.search-box input {
    flex: 1; border: none; outline: none; padding: 12px 16px;
    font-size: 1rem; border-radius: 10px;
}
.search-box button {
    background: var(--accent); color: #fff; border: none;
    padding: 12px 24px; border-radius: 10px; font-weight: 600;
    white-space: nowrap;
}
.search-box button:hover { background: var(--accent-hover); }

/* Cards */
.section { padding: 60px 0; }
.section-title { font-size: 1.75rem; font-weight: 800; color: var(--primary); margin-bottom: .4rem; }
.section-sub { color: var(--text-muted); margin-bottom: 2rem; }

.card-type {
    background: var(--white); border-radius: var(--radius);
    padding: 1.5rem 1.2rem; text-align: center;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    transition: .25s; height: 100%;
}
.card-type:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(15,23,42,.12); }
.card-type .icon-wrap {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem; font-size: 1.5rem; color: #fff;
}
.card-type h5 { font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.card-type p { font-size: .85rem; color: var(--text-muted); margin: 0; }

.card-driver {
    background: var(--white); border-radius: var(--radius);
    padding: 1.3rem; box-shadow: var(--shadow);
    border: 1px solid var(--border); transition: .25s; height: 100%;
}
.card-driver:hover { border-color: var(--accent); box-shadow: 0 8px 24px rgba(59,130,246,.12); }
.driver-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .4rem; color: var(--primary); }
.driver-meta { font-size: .82rem; color: var(--text-muted); }
.badge-os {
    font-size: .72rem; font-weight: 600; padding: .25rem .6rem;
    border-radius: 6px; background: #eff6ff; color: #1d4ed8;
}

/* Manufacturer card */
.card-manuf {
    background: var(--white); border-radius: var(--radius);
    padding: 1.2rem; box-shadow: var(--shadow);
    border: 1px solid var(--border); transition: .2s;
}
.card-manuf:hover { border-color: var(--accent); }

/* Page header */
.page-header {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff; padding: 45px 0;
}
.page-header h1 { font-weight: 800; font-size: 2rem; }
.breadcrumb { background: transparent; padding: 0; margin-bottom: .4rem; }
.breadcrumb-item a { color: rgba(255,255,255,.7); }
.breadcrumb-item.active { color: var(--accent); }

/* Footer */
.footer { background: var(--primary); color: rgba(255,255,255,.75); margin-top: auto; }
.footer-brand .brand-name { font-size: 1.4rem; font-weight: 800; }
.footer-text { font-size: .9rem; color: rgba(255,255,255,.55); max-width: 280px; }
.footer-title { color: #fff; font-weight: 700; font-size: .95rem; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { font-size: .82rem; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.text-muted-light { color: rgba(255,255,255,.6); }

/* Forms */
.form-control, .form-select {
    border-radius: 10px; padding: .7rem 1rem; border: 1px solid var(--border);
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.2); }

/* Tables */
.table-drivers { background: #fff; border-radius: var(--radius); overflow: hidden; }
.table-drivers th { background: var(--primary); color: #fff; font-weight: 600; font-size: .85rem; }
.table-drivers td { vertical-align: middle; font-size: .9rem; }

/* HWID result */
.hwid-result {
    background: #fff; border-radius: var(--radius); padding: 1.5rem;
    border-left: 4px solid var(--accent); box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .hero-title { font-size: 1.9rem; }
    .section { padding: 40px 0; }
}