:root {
  --bg: #070b14;
  --text: #e8edf5;
  --muted: #94a3b8;
  --card-bg: rgba(15, 23, 42, 0.72);
  --card-border: rgba(148, 163, 184, 0.14);
  --blue: #3b82f6;
  --green: #22c55e;
  --gold: #d4a017;
  --orange: #f97316;
  --cyan: #38bdf8;
  --purple: #a855f7;
  --pink: #ec4899;
  --yellow: #eab308;
  --teal: #14b8a6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, Segoe UI, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--left {
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

.bg-glow--right {
  bottom: -140px;
  right: -100px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%);
}

.site-header,
main,
.site-footer,
.ad-banner {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand__text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.tagline {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.tagline strong {
  color: #60a5fa;
  font-weight: 700;
}

.ad-banner {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 0 24px;
}

.ad-banner[hidden] {
  display: none;
}

.ad-banner__frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.25);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.ad-banner__label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  pointer-events: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.ad-banner__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 5;
  min-height: 120px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
}

.ad-banner__video,
.ad-banner__embed-slot,
.ad-banner__embed-slot iframe,
.ad-banner__embed-slot .fb-video,
.ad-banner__embed-slot .fb-video span,
.ad-banner__embed-slot .fb-video iframe,
.ad-banner__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.ad-banner__embed-slot {
  overflow: hidden;
  background: #000;
}

.ad-banner__embed-slot[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.ad-banner__video[hidden],
.ad-banner__poster[hidden] {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}

.ad-banner__poster {
  object-fit: cover;
  background: #000;
  z-index: 2;
}

.ad-banner__media--youtube,
.ad-banner__media--facebook,
.ad-banner__media--image {
  aspect-ratio: 16 / 9;
}

.ad-banner__media--image {
  background: #000;
}

.ad-banner__media--youtube {
  background: #000;
}

.ad-banner__media--facebook {
  background: #000;
}

.ad-banner__media--youtube .ad-banner__embed-slot {
  overflow: hidden;
  background: #000;
}

.ad-banner__media--youtube iframe.ad-banner__yt-host {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  display: block !important;
  border: 0;
  background: #000;
}

.ad-banner__media--facebook .ad-banner__embed-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-banner__media--facebook .ad-banner__fb-fit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.ad-banner__media--facebook .ad-banner__fb-fit,
.ad-banner__media--facebook .ad-banner__fb-video,
.ad-banner__media--facebook .fb-video,
.ad-banner__media--facebook .fb-video > span {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
}

.ad-banner__media--facebook .ad-banner__embed-slot iframe {
  position: static !important;
  inset: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  display: block !important;
  border: 0;
  background: #000;
  transform-origin: center center;
}

.ad-banner__media--facebook.ad-banner__media--waiting .ad-banner__fb-fit {
  pointer-events: none;
  opacity: 0.55;
}

.ad-banner__media--facebook.ad-banner__media--waiting .ad-banner__play-btn {
  z-index: 6;
}

.ad-banner__media--image .ad-banner__poster {
  object-fit: contain;
  object-position: center;
}

.ad-banner__embed-slot iframe,
.ad-banner__embed-slot .fb-video,
.ad-banner__embed-slot .fb-video span,
.ad-banner__embed-slot .fb-video iframe,
.ad-banner__yt-host,
.ad-banner__yt-host iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.ad-banner__yt-host {
  overflow: hidden;
  background: #000;
}

.ad-banner__volume {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.ad-banner__volume[hidden] {
  display: none !important;
}

.ad-banner__volume-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.ad-banner__volume-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.ad-banner__volume-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.ad-banner__volume-icon[hidden] {
  display: none !important;
}

.ad-banner__volume-slider {
  width: 88px;
  height: 4px;
  margin: 0;
  accent-color: #60a5fa;
  cursor: pointer;
}

.ad-banner__volume-slider:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.ad-banner__media--youtube .ad-banner__embed-slot::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(260px, 62%);
  height: 52px;
  background: linear-gradient(90deg, #0f0f0f 0%, #0f0f0f 78%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.ad-banner__play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(220px, 70%);
  height: 52px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #2563eb, #6366f1);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.ad-banner__media--waiting::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(7, 11, 20, 0.35);
  pointer-events: none;
}

.ad-banner__play-btn:hover {
  filter: brightness(1.08);
}

.ad-banner__stop-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  min-width: 72px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(248, 113, 113, 0.45);
}

.ad-banner__stop-btn:hover {
  background: rgba(127, 29, 29, 0.88);
}

.ad-banner__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.ad-banner__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(148, 163, 184, 0.55);
  pointer-events: auto;
  cursor: pointer;
}

.ad-banner__dot.is-active {
  background: #60a5fa;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.35);
}

.ad-banner__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
}

.ad-banner__placeholder-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #cbd5e1;
}

.ad-banner__placeholder-text {
  margin: 0;
  max-width: 520px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.ad-banner__placeholder code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.15);
  color: #93c5fd;
  font-size: 0.78rem;
}

.ad-banner__media--clickable {
  cursor: pointer;
}

.hero {
  text-align: center;
  max-width: 760px;
  margin: 28px auto 36px;
  padding: 0 24px;
}

.hero__eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: #a78bfa;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero__title-main {
  color: #fff;
}

.hero__title-accent {
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero__divider {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.hero__divider span {
  width: 180px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, transparent);
  position: relative;
}

.hero__divider span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #818cf8;
  box-shadow: 0 0 12px #818cf8;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.portal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 240px;
  padding: 28px 20px 24px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  cursor: pointer;
}

.portal-card:hover,
.portal-card:focus-visible {
  transform: translateY(-6px);
  outline: none;
}

.portal-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
}

.portal-card__icon svg,
.portal-card__icon img {
  width: 56px;
  height: 56px;
  display: block;
}

.portal-card__icon--gfast {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.portal-card__icon--gfast img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(212, 160, 23, 0.35));
}

.portal-card__icon--jftech {
  width: 72px;
  height: 72px;
  margin-bottom: 8px;
}

.portal-card__icon--jftech img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 4px 14px rgba(37, 99, 235, 0.35));
}

.portal-card__title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.portal-card__desc {
  margin: 0;
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.portal-card__cta {
  width: 38px;
  height: 38px;
  margin-top: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.2s ease;
}

.portal-card:hover .portal-card__cta,
.portal-card:focus-visible .portal-card__cta {
  transform: scale(1.08);
}

.portal-card__cta svg {
  width: 20px;
  height: 20px;
}

.portal-card--blue {
  --accent: var(--blue);
}

.portal-card--green {
  --accent: var(--green);
}

.portal-card--gold {
  --accent: var(--gold);
}

.portal-card--orange {
  --accent: var(--orange);
}

.portal-card--cyan {
  --accent: var(--cyan);
}

.portal-card--purple {
  --accent: var(--purple);
}

.portal-card--pink {
  --accent: var(--pink);
}

.portal-card--yellow {
  --accent: var(--yellow);
}

.portal-card--teal {
  --accent: var(--teal);
}

.portal-card {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--card-border));
}

.portal-card:hover,
.portal-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 18px 40px color-mix(in srgb, var(--accent) 18%, transparent);
}

.portal-card__icon {
  color: var(--accent);
}

.portal-card__cta {
  background: var(--accent);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}

.portal-card[data-live="true"]::after {
  content: "LIVE";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent);
}

.site-footer {
  text-align: center;
  padding: 0 24px 36px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0 0 14px;
}

.site-footer strong {
  color: #cbd5e1;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(148, 163, 184, 0.12);
  transition: color 0.2s ease, background 0.2s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: #fff;
  background: rgba(96, 165, 250, 0.25);
  outline: none;
}

.social-links svg {
  width: 16px;
  height: 16px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.modal__box {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px 24px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #0f172a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal__eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #a78bfa;
}

.modal__title {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.modal__text {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

.modal__btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(90deg, #2563eb, #6366f1);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 20px;
  }

  .ad-banner__media {
    aspect-ratio: 16 / 9;
  }

  .hero {
    margin-top: 20px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portal-card {
    min-height: 0;
  }
}
