/* jseds.com global styles */
:root {
  --canvas: #050a18;
  --glass: rgba(8, 14, 30, 0.65);
  --glass-border: rgba(148, 180, 255, 0.12);
  --glass-blur: 20px;
  --ink: #e8ecf4;
  --muted: #7a8ab5;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.15);
  --green: #34d399;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-heading: 'Outfit', system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -300px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), rgba(59, 130, 246, 0.12), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 60%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* ── Global Header ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 1.5rem 0.15rem;
  min-height: 3.9rem;
  margin-bottom: 0.8rem;
  background: rgba(3, 6, 18, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(148, 180, 255, 0.18);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
  padding: 0;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  transform: translateY(-2px);
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.16));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: translateY(0);
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.32));
}

/* Nav links */
.nav-links {
  margin-left: 1.5rem;
}

.header-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  align-items: flex-end;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  padding-bottom: 0.72rem;
  margin-bottom: -0.32rem;
  background: linear-gradient(90deg,
    rgba(120, 160, 230, 0) 0%,
    rgba(120, 160, 230, 0.45) 18%,
    rgba(120, 160, 230, 0.62) 50%,
    rgba(120, 160, 230, 0.45) 82%,
    rgba(120, 160, 230, 0) 100%) bottom / 100% 1px no-repeat;
}

.header-tabs::-webkit-scrollbar {
  display: none;
}

.header-tab {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0.48rem 0.85rem;
  border: 1px solid rgba(120, 160, 230, 0.2);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  background: rgba(5, 10, 24, 0.4);
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
  white-space: nowrap;
  text-align: center;
  margin-bottom: -1px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -8px 18px rgba(0, 0, 0, 0.45);
  position: relative;
}

.header-tab::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  height: 1px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0;
  transition: opacity 0.2s;
}

.header-tab:focus-visible {
  outline: none;
}

.header-tab:hover {
  color: #fff;
}

.header-tab.active {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(159, 229, 255, 0.92) 0%, rgba(73, 142, 255, 0.92) 55%, rgba(15, 37, 64, 0.95) 100%) padding-box,
    linear-gradient(180deg, rgba(150, 195, 255, 0.95) 0%, rgba(120, 160, 230, 0.08) 100%) border-box;
  border-color: rgba(255, 255, 255, 0.25) !important;
  box-shadow:
    0 -6px 20px rgba(59, 130, 246, 0.3),
    inset 0 -8px 18px rgba(0, 0, 0, 0.45);
}

.header-tab.active::after {
  opacity: 1;
}

/* ── Page Container ── */
.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2.35rem 1.5rem 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.35rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 720px) {
  .page { padding: 1.25rem 1rem 4rem; gap: 1.35rem; }
}

@media (max-width: 720px) {
  .site-nav { padding: 0.5rem 1rem 0.08rem; min-height: 3.55rem; margin-bottom: 0.55rem; }
  .nav-logo-img { height: 34px; }
  .nav-links { gap: 0.25rem; }
  .header-tabs { gap: 0.32rem; padding-bottom: 0.58rem; }
  .header-tab { padding: 0.42rem 0.68rem; min-height: 2.55rem; font-size: 0.76rem; }
}
