/* =========================
   Design Tokens / Theme
   ========================= */
:root{
  --bg: #0b1220;
  --panel: #111827;
  --muted: #9ca3af;

  --text: #e5e7eb;
  --text-strong: #ffffff;

  --primary: #6d28d9;
  --primary-600: #7c3aed;
  --primary-700: #5b21b6;
  --accent: #06b6d4;

  --success: #22c55e;
  --warning: #f59e0b;
  --danger:  #ef4444;

  --radius: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,.22);
}

/* Base */
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0b1220 0%, #0e1627 100%);
}
a { color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Layout */
.container{ max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.mt-8{ margin-top: 8px; } .mt-12{ margin-top: 12px; }
.align-end{ display:flex; align-items:end; }
.stack > * + *{ margin-top: 12px; }
.grid-2{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.grid-3{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
@media (max-width: 860px){ .grid-2,.grid-3{ grid-template-columns: 1fr; } }

/* Hero */
.hero{
  background: radial-gradient(1200px 500px at 20% -10%, rgba(124,58,237,.25), transparent 60%),
              radial-gradient(1000px 600px at 90% -20%, rgba(6,182,212,.20), transparent 60%),
              var(--bg);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero-inner{ padding: 48px 0 24px; }
.hero h1{ font-size: 40px; font-weight: 800; color: var(--text-strong); margin: 0 0 8px; letter-spacing: .2px; }
.hero h1 span{ color: var(--accent); }
.subhead{ color: var(--muted); margin: 0; }

/* Cards */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 20px 0;
}
.section-head h2{ margin: 0 0 6px; }
.section-head p{ margin: 0; color: var(--muted); }

/* Forms / Inputs / Buttons */
label{ display:block; font-size: 14px; color: var(--muted); }
input, select{
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline: none;
}
input:focus, select:focus{ border-color: var(--accent); box-shadow: 0 0 0 4px rgba(6,182,212,.15); }
button{ font-size: 14px; }

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 16px; cursor:pointer;
}
.btn:hover{ background: rgba(255,255,255,.07); }
.btn-primary{
  background: linear-gradient(90deg, var(--primary-600), var(--accent));
  border: none; color: white; font-weight: 600;
}
.btn-primary:hover{ filter: brightness(1.05); }
.btn-outline{ border: 1px solid rgba(255,255,255,.35); background: transparent; }

/* Pills */
.pill-links{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 8px; }
.pill{
  display:inline-flex; padding: 8px 14px; border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.16);
  color: white; text-decoration:none; background: rgba(255,255,255,.04);
}
.pill:hover{ background: rgba(255,255,255,.08); }
.pill-primary{ background: linear-gradient(90deg, var(--primary-600), var(--accent)); border:none; }

/* Results */
.results-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 12px; }
.report-card{
  background: linear-gradient(160deg, rgba(109,40,217,.15), rgba(6,182,212,.10));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 16px;
}
.report-card h3{ margin: 0 0 8px; }

/* Deadlines */
.deadline-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.deadline-card{
  background: linear-gradient(160deg, rgba(6,182,212,.12), rgba(109,40,217,.10));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 14px;
}
.deadline-card h4{ margin: 0 0 6px; }
.deadline-meta{ font-size: 13px; color: var(--muted); }

/* Footer */
.footer{
  margin-top: 28px; padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  background: radial-gradient(900px 300px at 80% 120%, rgba(124,58,237,.15), transparent 60%);
}
/* Make browser controls prefer dark styling */
:root { color-scheme: dark; }

/* Inputs & selects: explicit colors for contrast */
select, input, textarea{
  background-color: #111827 !important; /* dark panel */
  color: #e5e7eb !important;            /* bright text */
  border-color: rgba(255,255,255,.18);
}

/* Dropdown list items (most browsers honor this) */
select option{
  background-color: #0f172a; /* darker list */
  color: #e5e7eb;
}

/* Placeholder text in inputs */
input::placeholder, textarea::placeholder{
  color: #9ca3af; opacity: .9;
}

/* Nicer select arrow + padding */
select{
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='white'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
}

/* When using a placeholder option like <option value='' disabled selected hidden>Choose...</option> */
select:invalid { color: #9ca3af; }

/* ---------- Top Bar / Global Nav ---------- */
.topbar{
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 24, 39, .82); /* #111827 with blur */
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0;
}
.brand-link{ display:flex; align-items:center; gap:12px; text-decoration:none; color: white; }
.logo{ height:28px; width:auto; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
.brand-text{ font-weight: 700; letter-spacing: .2px; }
.topnav{ display:flex; align-items:center; gap:8px; }
.navlink{
  color: #e5e7eb; text-decoration:none; padding: 6px 12px; border-radius: 999px;
}
.navlink:hover{ background: rgba(255,255,255,.08); }
/* Topbar brand fixes */
.topbar .brand-link { color: var(--text-strong) !important; text-decoration: none; }
.topbar .brand-text { color: var(--text-strong); }
.topbar .logo { height: 28px; width: auto; display: block; }
.topbar .navlink { color: var(--text); }

/* Logo size helpers */
.logo { height: 28px; width: auto; display: block; }
.logo.lg { height: 38px; }           /* slightly bigger */
.logo.xl { height: 48px; }           /* use if you ever want it larger */
@media (max-width: 640px){ .logo.lg{ height: 32px; } }  /* keep it tidy o

/* Heading left, logo right (same row) */
.hero-brand-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Slightly larger logo */
.right-logo{
  height: 52px;           /* tweak this up/down to taste (e.g., 52px) */
  width: auto;
}

/* Keep it tidy on smaller screens */
@media (max-width: 768px){
  .right-logo{ height: 42px; }
}
@media (max-width: 560px){
  .hero-brand-row{
    flex-direction: column;        /* stack on very small screens */
    align-items: flex-start;
  }
  .right-logo{ height: 34px; margin-top: 8px; }
}

