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

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: #0b1120;
  color: #0f172a;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.j9-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.j9-shell__rail {
  border-right: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at top, #020617 0, #020617 50%, #020617);
}

.j9-rail {
  height: 100%;
  padding: 18px 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.j9-rail__brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.j9-rail__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: conic-gradient(
    from 120deg,
    #22c55e,
    #0ea5e9,
    #f97316,
    #22c55e
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #020617;
  font-size: 1.05rem;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.7);
}

.j9-rail__brand-text {
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.j9-rail__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.j9-rail__link {
  text-decoration: none;
  font-size: 0.9rem;
  color: #9ca3af;
  padding: 6px 0;
  position: relative;
}

.j9-rail__link::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #22c55e);
  opacity: 0;
  transform: scaleY(0.4);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.j9-rail__link:hover {
  color: #e5e7eb;
}

.j9-rail__link:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.j9-rail__meta {
  margin-top: auto;
}

.j9-rail__meta-text {
  margin: 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.j9-shell__main {
  background: radial-gradient(circle at top left, #020617 0, #020617 45%, #020617);
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
}

.j9-hero {
  padding: 36px 26px 34px;
  border-bottom: 1px solid rgba(30, 64, 175, 0.7);
}

.j9-hero__head {
  max-width: 760px;
  margin-bottom: 18px;
}

.j9-hero__kicker {
  margin: 0 0 6px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.j9-hero__title {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.3rem);
  line-height: 1.4;
}

.j9-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: flex-start;
}

.j9-hero__copy p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.9;
  color: #e5e7eb;
}

.j9-hero__copy strong {
  color: #f97316;
  font-weight: 600;
}

.j9-hero__actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.j9-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease,
    box-shadow 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}

.j9-pill--primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #020617;
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.4);
}

.j9-pill--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(56, 189, 248, 0.5);
}

.j9-pill--ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.8);
}

.j9-pill--ghost:hover {
  background: rgba(15, 23, 42, 0.96);
}

.j9-hero__panel {
  display: grid;
  gap: 14px;
}

.j9-hero-card {
  margin: 0;
  padding: 12px 12px 14px;
  border-radius: 16px;
  background: radial-gradient(circle at top, #1d4ed8 0, #020617 55%);
  border: 1px solid rgba(148, 163, 184, 0.75);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.95);
}

.j9-hero-card__image {
  border-radius: 14px;
  border: 1px solid rgba(129, 140, 248, 0.9);
}

.j9-hero-card__caption {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #e5e7eb;
  line-height: 1.7;
}

.j9-hero-note {
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px dashed rgba(148, 163, 184, 0.7);
}

.j9-hero-note__title {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.j9-hero-note__list {
  margin: 0;
  padding-left: 16px;
  font-size: 0.86rem;
  color: #cbd5f5;
  display: grid;
  gap: 4px;
}

.j9-band {
  padding: 26px 26px 30px;
}

.j9-band__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.j9-band__head {
  max-width: 720px;
  margin-bottom: 18px;
}

.j9-band__title {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.j9-band__subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #cbd5f5;
  line-height: 1.8;
}

.j9-band__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.j9-linkcard {
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.j9-linkcard__title {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.j9-linkcard__title a {
  text-decoration: none;
  color: #e5e7eb;
}

.j9-linkcard__title a:hover {
  color: #38bdf8;
}

.j9-linkcard__text {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5f5;
  line-height: 1.8;
}

.j9-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.j9-page-main {
  flex: 1 0 auto;
}

.j9-page-hero {
  padding: 32px 26px 20px;
  border-bottom: 1px solid rgba(30, 64, 175, 0.7);
}

.j9-page-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.j9-page-hero__title {
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: #e5e7eb;
}

.j9-page-hero__subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: #cbd5f5;
  max-width: 760px;
  line-height: 1.8;
}

.j9-page-body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 26px 38px;
}

.j9-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.j9-page-list {
  display: grid;
  gap: 12px;
}

.j9-page-card {
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.j9-page-card__title {
  margin: 0 0 4px;
  font-size: 0.96rem;
  color: #e5e7eb;
}

.j9-page-card__title a {
  text-decoration: none;
  color: inherit;
}

.j9-page-card__title a:hover {
  color: #38bdf8;
}

.j9-page-card__text {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5f5;
  line-height: 1.8;
}

.j9-article {
  max-width: 780px;
}

.j9-article__image {
  border-radius: 14px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  margin-bottom: 14px;
}

.j9-article__p {
  margin: 0 0 12px;
  font-size: 0.93rem;
  color: #cbd5f5;
  line-height: 1.9;
}

.j9-article__p strong {
  color: #fbbf24;
}

.j9-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 18px;
}

.j9-two-col__block {
  font-size: 0.93rem;
  color: #cbd5f5;
  line-height: 1.9;
}

.j9-note {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.9);
  font-size: 0.84rem;
  color: #bfdbfe;
}

.j9-footer {
  border-top: 1px solid rgba(30, 64, 175, 0.7);
  background: #020617;
}

.j9-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 26px 16px;
}

.j9-footer__line {
  margin: 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.j9-footer__line + .j9-footer__line {
  margin-top: 4px;
}

.j9-footer__line--muted {
  color: #6b7280;
}

@media (max-width: 960px) {
  .j9-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .j9-shell__rail {
    border-right: none;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  }

  .j9-rail {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  .j9-rail__nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .j9-rail__meta {
    display: none;
  }

  .j9-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .j9-band__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .j9-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .j9-two-col {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .j9-rail {
    padding-inline: 16px;
  }

  .j9-hero {
    padding-inline: 16px;
  }

  .j9-band {
    padding-inline: 16px;
  }

  .j9-band__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .j9-page-body {
    padding-inline: 16px;
  }

  .j9-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

