/* shared.css — loaded on all pages including homepage */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --blue: #0067f0;
  --blue-dark: #0052c2;
  --navy: #001b45;
  --navy-mid: #06245f;
  --chrome: #151f30;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: rgba(203, 213, 225, 0.78);
  --soft: #f8fbff;
  --bg: #f1f5f9;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 18px 55px rgba(0, 27, 69, 0.14);
}
html {
  scroll-behavior: smooth;
}
body {
  padding-top: 76px;
  font-family:
    "DM Sans",
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #071833 0%, #eef4fb 42%, #f8fafc 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1680px, calc(100% - 4rem));
  margin-inline: auto;
}
h1,
h2,
h3 {
  font-family: "Montserrat", "DM Sans", sans-serif;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* ── Topbar / Nav ── */
.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: var(--chrome);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16);
}
.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  transition: transform 0.2s ease;
}
.brand:hover {
  transform: translateY(-1px);
}
.brand-emblem {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, #1a7fff, #0052c2);
  box-shadow:
    0 8px 24px rgba(0, 103, 240, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.brand img,
.brand-mark {
  width: 26px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand-name,
.brand-text {
  font-family: "Montserrat", sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.brand-name span,
.brand-text span {
  color: var(--blue);
}
.brand-kicker {
  display: block;
  margin-top: 0.2rem;
  color: rgba(219, 234, 254, 0.58);
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 28px rgba(0, 0, 0, 0.12);
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: rgba(219, 234, 254, 0.82);
  font-size: 0.86rem;
  font-weight: 800;
}
.nav-icon {
  display: none;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(96, 165, 250, 0.32);
  border-radius: 10px;
  color: #93c5fd;
  background:
    linear-gradient(135deg, rgba(0, 103, 240, 0.22), rgba(14, 165, 233, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    0 10px 24px rgba(0, 103, 240, 0.14);
}

.nav-icon svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav-links a:hover {
  background: rgba(0, 103, 240, 0.18);
  color: #fff;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.portal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.portal-link:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.48);
  background: rgba(0, 103, 240, 0.22);
  color: #fff;
}
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 10px 24px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: currentColor;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  box-shadow: 0 14px 30px rgba(0, 103, 240, 0.27);
}

/* ── Platform features (used on homepage) ── */
.platform-features {
  padding: 6rem 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.feature-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  transition: 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}
.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.feature-card h3 {
  margin: 0 0 0.8rem;
  font-family: "Montserrat", sans-serif;
  font-size: 1.3rem;
  color: var(--navy);
}
.feature-card p {
  margin: 0;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.7;
}

/* ── Footer ── */
footer {
  padding: 2.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--chrome);
  color: rgba(255, 255, 255, 0.68);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 2rem;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-brand-mark {
  width: 48px;
  height: auto;
  margin-top: 2px;
}
.footer-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(5px);
}
.footer-brand-name {
  font-family: "Montserrat", sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 0.9;
  color: #fff;
}
.footer-brand-name span {
  color: var(--blue);
}
.footer-brand-tagline {
  color: rgba(219, 234, 254, 0.55);
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 0.38rem;
}
.footer-col {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}
.footer-col strong {
  color: #fff;
  font-family: "Montserrat", sans-serif;
}
footer p,
footer a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}
footer a {
  font-weight: 700;
}
footer a:hover {
  color: #fff;
}
.copyright {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(219, 234, 254, 0.55);
  font-size: 0.85rem;
}
.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-legal a {
  color: rgba(219, 234, 254, 0.55);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-legal a:hover {
  color: #ffffff;
}
.footer-legal span {
  opacity: 0.35;
}

/* ── Responsive ── */
@media (prefers-reduced-motion: reduce) {
  .hero::before {
    animation: none;
  }
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: block;
  }

  .nav-links.open {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1rem;
    left: 1rem;
    display: grid;
    gap: 0.45rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    padding: 0.75rem;
    background: rgba(12, 22, 38, 0.98);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 24px 70px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px) saturate(1.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.2);
  }

  .nav-links.open a {
    min-height: 3.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 0.82rem 0.9rem;
    border-radius: 12px;
    color: rgba(219, 234, 254, 0.86);
  }

  .nav-links.open a:hover {
    background: rgba(0, 103, 240, 0.18);
    color: #fff;
  }

  .nav-links.open .nav-icon {
    display: inline-grid;
  }

  .nav-links.open a:hover .nav-icon {
    color: #fff;
    border-color: rgba(147, 197, 253, 0.5);
    background:
      linear-gradient(
        135deg,
        rgba(0, 103, 240, 0.45),
        rgba(56, 189, 248, 0.16)
      ),
      rgba(255, 255, 255, 0.08);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  body {
    padding-top: 68px;
  }

  .container {
    width: min(100% - 1.4rem, 1680px);
  }

  .nav {
    min-height: 68px;
  }

  .nav-actions .btn {
    display: none;
  }

  .portal-link {
    min-height: 40px;
    padding: 0.65rem 0.82rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand-emblem {
    width: 40px;
    height: 40px;
  }

  .brand img,
  .brand-mark {
    width: 24px;
  }

  .brand-name,
  .brand-text {
    font-size: 1rem;
  }

  .footer-grid {
    gap: 1.4rem;
  }
}

@media (max-width: 460px) {
  .brand-kicker {
    display: none;
  }
}
