*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1A2B3C;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ── HEADER ── */
.app-header {
    background: #fff;
    border-bottom: 3px solid #009ADE;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#header {
    width: 100%;
    background-color: #fff;
    padding: 10px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo — left */
#logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

#logo img {
    height: 50px;
    vertical-align: middle;
    margin-right: 10px;
}

/* Desktop nav — right */
#right-header {
    background-color: #fff;
    padding: 10px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

#nav-menu {
    display: flex;
    align-items: center;
}

#nav-menu a {
    color: rgb(73, 72, 75);
    text-decoration: none;
    margin: 0 7px;
    font-size: 12px;
    transition: color .15s;
}

#nav-menu a:hover { color: rgb(44, 125, 192); }

/* Datasets dropdown */
.nav-dropdown { position: relative; display: inline-block; }

.nav-dropdown-btn {
    background: transparent;
    border: none;
    color: rgb(73, 72, 75);
    font-size: 12px;
    margin: 0 7px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-btn .chevron-icon {
    display: inline-flex;
    transition: transform .25s;
}

.nav-dropdown-btn.open .chevron-icon { transform: rotate(180deg); }

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    min-width: 150px;
    z-index: 1001;
}

.nav-dropdown-menu.open { display: block; }

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    margin: 0;
    font-size: 13px;
    color: rgb(73, 72, 75);
    text-decoration: none;
    border-radius: 0;
    transition: background .15s;
}

.nav-dropdown-menu a:hover { background: #E8F6FD; color: rgb(44, 125, 192); }

.badge-progress {
    background: #ffc107;
    color: #333;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

#auth-buttons { display: flex; gap: 10px; }

#auth-buttons a {
    color: rgb(73, 72, 75);
    text-decoration: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 5px;
    border: 2px solid rgb(73, 72, 75);
    transition: background .18s, color .18s;
}

#auth-buttons a:hover { background-color: rgb(44, 125, 192); color: white; }

#auth-buttons #signup-btn {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

/* ── HAMBURGER (hidden on desktop) ── */
.hamburger-btn {
    display: none;
    background: transparent;
    border: 1px solid rgb(73, 72, 75);
    border-radius: 5px;
    padding: 6px 8px;
    cursor: pointer;
    color: rgb(73, 72, 75);
    line-height: 0;
    align-items: center;
    justify-content: center;
}

/* ── MOBILE DROPDOWN PANEL ── */
.mobile-nav-panel {
    display: none;
    background: #fff;
    border-top: 1px solid #eee;
    padding-bottom: 12px;
}

.mobile-nav-panel.open { display: block; }

/* shared row style */
.mobile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 13px;
    color: rgb(73, 72, 75);
    text-decoration: none;
    transition: background .15s;
}

.mobile-row:hover { background: #E8F6FD; color: rgb(44, 125, 192); }

.mobile-row svg { flex-shrink: 0; }

/* Datasets accordion */
.mobile-datasets-btn {
    width: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.mobile-datasets-btn .ds-chevron {
    margin-left: auto;
    display: inline-flex;
    transition: transform .2s;
}

.mobile-datasets-btn.open .ds-chevron { transform: rotate(180deg); }

.mobile-sub-panel {
    display: none;
    background: #f8fafb;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.mobile-sub-panel.open { display: block; }

.mobile-sub-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px 10px 54px;
    color: rgb(73, 72, 75);
    text-decoration: none;
    font-size: 13px;
    transition: background .15s;
}

.mobile-sub-panel a:hover { background: #E8F6FD; color: rgb(44, 125, 192); }

.mobile-auth {
    display: flex;
    gap: 10px;
    padding: 12px 20px 4px;
    border-top: 1px solid #eee;
    margin-top: 4px;
}

.mobile-auth a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 5px;
    transition: background .18s, color .18s;
}

.mobile-auth .m-login  { color: rgb(73, 72, 75); border: 2px solid rgb(73, 72, 75); }
.mobile-auth .m-signup { background: #007bff; color: #fff; border: 2px solid #007bff; }
.mobile-auth .m-login:hover  { background: rgb(44, 125, 192); color: #fff; border-color: rgb(44, 125, 192); }
.mobile-auth .m-signup:hover { background: #0056b3; border-color: #0056b3; }

/* ── HERO ── */
.hero {
    flex: 1;
    background: linear-gradient(135deg, #003F7B 0%, #0078A8 55%, #009ADE 100%);
    color: #fff;
    padding: 100px 24px 96px;
    text-align: center;
}

.hero-inner { max-width: 820px; margin: 0 auto; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 24px;
    padding: 5px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-eyebrow .dot { width: 7px; height: 7px; background: #5EFFC1; border-radius: 50%; }

.hero h1 {
    font-size: clamp(28px, 3.8vw, 52px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 span { color: #7DDBFF; }

.hero p {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    max-width: 620px;
    margin: 0 auto 44px;
}

.hero-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

.hero-select-label {
font-size: 13px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
color: rgba(255,255,255,0.6);
margin: 0 0 20px;
}

.dataset-cards {
display: flex;
gap: 14px;
flex-wrap: wrap;
justify-content: center;
}

.dataset-card {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 7px;
padding: 20px 20px 16px;
border-radius: 12px;
text-decoration: none;
color: #fff;
min-width: 120px;
flex: 1;
max-width: 150px;
transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}

.dataset-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 28px rgba(0,0,0,0.32);
filter: brightness(1.08);
color: #fff;
}

.dataset-card svg { opacity: 0.9; }

.ds-name {
font-size: 18px;
font-weight: 800;
letter-spacing: -0.01em;
}

.ds-region {
font-size: 10px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.09em;
opacity: 0.8;
}

.ds-eccas { background: linear-gradient(140deg, #0f766e 0%, #14b8a6 100%); }
.ds-waho  { background: linear-gradient(140deg, #6d28d9 0%, #a78bfa 100%); }
.ds-ebola { background: linear-gradient(140deg, #b91c1c 0%, #f87171 100%); }

.hero-btn-primary {
    background: #fff;
    color: #003F7B;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: transform .18s, box-shadow .18s;
}

.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.hero-btn-secondary {
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 32px;
    border-radius: 8px;
    text-decoration: none;
    border: 2px solid rgba(255,255,255,0.55);
    transition: background .18s, border-color .18s;
}

.hero-btn-secondary:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.85); }

/* ── FOOTER ── */
.site-footer { background: #1A2B3C; color: rgba(255,255,255,0.7); padding: 48px 24px 24px; }

.footer-inner { max-width: 1280px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px 32px;
    margin-bottom: 40px;
}

.footer-brand img { height: 44px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.85; display: block; }

.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }

.footer-col h4 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; transition: color .15s; }
.footer-col ul li a:hover { color: #009ADE; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.4); text-decoration: none; transition: color .15s; }
.footer-bottom-links a:hover { color: #009ADE; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    #right-header   { display: none !important; }
    .hamburger-btn  { display: flex; }
    #header         { padding: 10px; }
    #logo img       { height: 40px; }
    .hero           { padding: 64px 20px 56px; }
}

@media (max-width: 480px) {
    #header         { padding: 8px 12px; }
    #logo img       { height: 35px; }
    .hero           { padding: 52px 16px 48px; }
    .hero-actions   { flex-direction: column; width: 100%; }
    .hero-btn-primary,
    .hero-btn-secondary { width: 100%; text-align: center; padding: 14px 20px; }
    .dataset-cards  { flex-direction: column; align-items: center; width: 100%; }
    .dataset-card   { max-width: 100%; width: 100%; flex-direction: row; justify-content: center; gap: 12px; padding: 14px 20px; }
    .ds-name        { font-size: 16px; }
}

@media (max-width: 640px) and (orientation: landscape) {
    #header { padding: 5px 10px; }
    #logo img { height: 30px; }
    .hero { padding: 48px 20px 44px; }
}
