/* =========================
   RESET & GLOBAL
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  background: #0b1220;
  color: #e5e7eb;
  line-height: 1.7;
}

a {
  color: #60a5fa;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* =========================
   HEADER
========================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Utility bar */
.utility-bar {
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  font-size: 12px;
  color: #475569;
}
.utility-inner {
  max-width: 1280px;
  margin: auto;
  padding: 6px 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.utility-inner .dot {
  color: #94a3b8;
}

/* Main header */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.header-inner {
  max-width: 1280px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 38px;
}
.brand-text strong {
  display: block;
  font-size: 15px;
  color: #0f172a;
}
.brand-text span {
  font-size: 12px;
  color: #64748b;
}

/* Nav */
.primary-nav a {
  margin-left: 26px;
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
  position: relative;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #2563eb;
  transition: width .25s ease;
}
.primary-nav a:hover::after,
.primary-nav a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #0f172a;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}
.mobile-nav a {
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 15px;
  color: #0f172a;
}
.mobile-nav a:hover {
  background: #f1f5f9;
}

/* =========================
   PORTAL HEADER
========================= */
.portal-header {
  background:
    radial-gradient(1200px 400px at top left, rgba(37,99,235,.18), transparent),
    linear-gradient(180deg, #020617, #0f172a);
  border-bottom: 1px solid #1e293b;
}
.portal-inner {
  max-width: 1280px;
  margin: auto;
  padding: 56px 20px 60px;
}
.portal-context {
  font-size: 12px;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
}
.portal-inner h1 {
  margin: 0;
  font-size: 36px;
  letter-spacing: -.4px;
}
.portal-desc {
  margin-top: 12px;
  max-width: 820px;
  font-size: 16px;
  color: #c7d2fe;
}

/* Highlights */
.portal-highlights {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.highlight-item {
  background: rgba(2,6,23,.6);
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 20px;
}
.highlight-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.highlight-item span {
  font-size: 13px;
  color: #94a3b8;
}
.portal-trust {
  margin-top: 28px;
  font-size: 12px;
  color: #94a3b8;
}

/* =========================
   MAIN CONTENT
========================= */
main {
  max-width: 1280px;
  margin: auto;
  padding: 48px 20px 72px;
}

/* Directory */
.directory-section {
  margin-bottom: 64px;
}
.directory-title {
  font-size: 26px;
  margin-bottom: 10px;
}
.directory-intro {
  max-width: 820px;
  color: #cbd5f5;
  margin-bottom: 32px;
}
.directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}
.dir-card {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 26px;
  transition: .25s;
}
.dir-card:hover {
  border-color: #60a5fa;
  transform: translateY(-3px);
}
.dir-card h3 {
  margin-top: 0;
  font-size: 18px;
}
.dir-card p {
  font-size: 14px;
  color: #94a3b8;
}
.dir-meta {
  margin-top: 14px;
  font-size: 12px;
  color: #64748b;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 72px;
}
.info-box {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 18px;
  padding: 28px;
}
.info-box h3 {
  margin-top: 0;
  font-size: 18px;
}
.info-box p {
  font-size: 14px;
  color: #cbd5f5;
}

/* Deep Info */
.deep-info {
  max-width: 900px;
}
.deep-info h2 {
  font-size: 26px;
  margin-top: 42px;
}
.deep-info h3 {
  font-size: 20px;
  margin-top: 36px;
}
.deep-info p {
  color: #cbd5f5;
  margin-bottom: 18px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: #020617;
  border-top: 1px solid #1e293b;
  color: #94a3b8;
  font-size: 13px;
}
.footer-main {
  max-width: 1280px;
  margin: auto;
  padding: 40px 20px;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 32px;
}
.footer-brand strong {
  color: #e5e7eb;
  display: block;
  margin-bottom: 8px;
}
.footer-links span,
.footer-context span {
  font-size: 12px;
  color: #c7d2fe;
  text-transform: uppercase;
  letter-spacing: .3px;
  display: block;
  margin-bottom: 10px;
}
.footer-links a {
  display: block;
  margin-bottom: 6px;
  color: #94a3b8;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 14px 20px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

.breadcrumb-mini {
  max-width: 1280px;
  margin: 14px auto 0;
  padding: 0 20px;
  font-size: 12px;
  color: #94a3b8;
}
.breadcrumb-mini a {
  color: #60a5fa;
}

.hero-square {
  max-width: 750px;
  margin: 0 auto;
  padding: 40px 16px 10px;
}

.hero-square img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .primary-nav { display: none; }
  .hamburger { display: block; }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .portal-inner h1 {
    font-size: 28px;
  }
}

/* Mobile tuning */
@media (max-width: 768px) {
  .hero-square {
    padding-top: 24px;
  }
}