:root {
  --jl-bg: #091426;
  --jl-panel: #101d32;
  --jl-panel-soft: #192d46;
  --jl-line: #344c66;
  --jl-text: #f4f8fc;
  --jl-muted: #aabbd0;
  --jl-teal: #12b8d0;
  --jl-teal-bright: #54d8eb;
  --jl-green: #31d49a;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--jl-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--jl-text);
  background:
    radial-gradient(ellipse at 50% 0%, #123b5555, transparent 42%),
    linear-gradient(155deg, #091426, #0d1722 55%, #091426);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body > header.site-header {
  position: relative;
  z-index: 5;
  width: min(1160px, calc(100% - 36px));
  max-width: 1160px;
  margin: 0 auto;
  padding: 21px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 0;
  border-bottom: 1px solid #ffffff12;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.site-brand {
  color: #f5fbff;
  font-size: 29px;
  font-weight: 950;
  letter-spacing: 4px;
}

.site-brand span {
  color: var(--jl-teal);
}

.site-tagline {
  margin-top: 5px;
  color: #91a5b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions a {
  min-height: 42px;
  padding: 11px 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #3b5265;
  border-radius: 10px;
  color: #eaf5fb;
  background: #132131;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .5px;
  text-decoration: none;
  transition: .2s ease;
}

.nav-actions a:not(.nav-register) {
  display: inline-flex;
}

.nav-actions a:hover {
  border-color: var(--jl-teal);
  color: white;
  transform: translateY(-2px);
}

.nav-actions .nav-register {
  border-color: var(--jl-teal);
  color: #041c20;
  background: var(--jl-teal);
}

.nav-actions .nav-register:hover {
  background: var(--jl-teal-bright);
}

main {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  text-align: left;
}

.hero {
  position: relative;
  isolation: isolate;
  width: min(1160px, calc(100% - 36px));
  min-height: 470px;
  margin: 26px auto 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  border: 1px solid #5c819055;
  border-radius: 25px;
  background:
    linear-gradient(90deg, rgba(9,20,38,.97) 0%, rgba(9,20,38,.91) 58%, rgba(9,20,38,.78) 100%),
    url('/assets/jalaga-banner.jpg') center/cover no-repeat;
  box-shadow: 0 26px 70px #0007;
}

.hero::after {
  position: absolute;
  z-index: -1;
  right: -100px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid #12b8d022;
  border-radius: 50%;
  box-shadow: 0 0 0 35px #12b8d008, 0 0 0 75px #12b8d006;
  content: "";
}

.hero-content {
  width: 100%;
  max-width: 720px;
  padding: 65px clamp(25px, 7vw, 78px);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid #12b8d066;
  border-radius: 30px;
  color: #79e7dc;
  background: #0c353b99;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.7px;
}

.hero h1 {
  margin: 23px 0 17px;
  color: white;
  font-size: clamp(37px, 6vw, 66px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2.4px;
}

.hero h1 span {
  color: var(--jl-teal-bright);
}

.hero p {
  max-width: 550px;
  margin: 0;
  color: #c2d0dc;
  font-size: 16px;
  line-height: 1.85;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-buttons a {
  min-width: 170px;
  min-height: 50px;
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #7890a2;
  border-radius: 10px;
  color: white;
  background: #101e2cbb;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .5px;
  text-decoration: none;
  transition: .2s ease;
}

.hero-buttons a:hover {
  border-color: var(--jl-teal);
  transform: translateY(-2px);
}

.hero-buttons .primary {
  border-color: var(--jl-teal);
  color: #062023;
  background: var(--jl-teal);
}

.hero-buttons .primary:hover {
  background: var(--jl-teal-bright);
}

.public-members {
  width: min(1100px, calc(100% - 36px));
  margin: 62px auto;
}

.public-monitor {
  width: min(1100px, calc(100% - 36px));
  margin: 62px auto;
  padding: clamp(23px, 4vw, 40px);
  border: 1px solid var(--jl-line);
  border-radius: 23px;
  background:
    radial-gradient(circle at 90% 0%, #12b8d017, transparent 38%),
    linear-gradient(145deg, #142333, #0d1723);
  box-shadow: 0 22px 60px #0005;
}

.channel-monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.monitor-label {
  color: var(--jl-teal-bright);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 2.2px;
}

.monitor-title {
  margin: 12px 0;
  color: #f5f9fc;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.2;
}

.monitor-description {
  max-width: 590px;
  margin: 0;
  color: var(--jl-muted);
  font-size: 14px;
  line-height: 1.8;
}

.channel-monitor-connection {
  min-width: 150px;
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  border: 1px solid #33495b;
  border-radius: 12px;
  color: #dbe8f0;
  background: #09131eaa;
  font-size: 12px;
  font-weight: 850;
}

.channel-monitor-connection small {
  color: #91a5b8;
  font-weight: 500;
}

.monitor-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8994a3;
}

.monitor-dot.online {
  background: var(--jl-green);
  box-shadow: 0 0 12px #31d49a99;
}

.monitor-dot.offline {
  background: #ef626c;
}

.channel-monitor-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.channel-monitor-summary > div {
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid #34495b;
  border-radius: 14px;
  background: #09172299;
}

.channel-monitor-summary strong {
  color: #f5fbff;
  font-size: 29px;
  line-height: 1.1;
}

.channel-monitor-summary span {
  color: #91a8b8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.channel-monitor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.channel-monitor-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid #34495b;
  border-radius: 14px;
  background: #0a1722;
}

.channel-monitor-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.channel-monitor-name {
  color: #f2f8fc;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .3px;
}

.channel-monitor-code {
  margin-top: 4px;
  color: #91a5b8;
  font-size: 11px;
}

.channel-monitor-badge {
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: #aebdca;
  background: #ffffff12;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.channel-monitor-badge.tx {
  color: #67e5ac;
  background: #22c55e20;
}

.channel-monitor-badge.emergency {
  color: #ff9da4;
  background: #ef444420;
}

.channel-monitor-badge.offline {
  color: #a5b0bd;
  background: #ffffff12;
}

.channel-monitor-speaker {
  min-height: 22px;
  color: #e6f0f6;
  font-size: 14px;
  font-weight: 800;
}

.channel-monitor-duration {
  margin-top: 7px;
  color: #8fa3b4;
  font-size: 12px;
}

.channel-monitor-empty {
  grid-column: 1 / -1;
  padding: 24px;
  color: #9fb0bf;
  text-align: center;
}

.channel-monitor-note {
  margin-top: 18px;
  color: #91a5b8;
  font-size: 11px;
  line-height: 1.7;
}

.features {
  width: min(1100px, calc(100% - 36px));
  margin: 70px auto;
}

.section-heading {
  margin-bottom: 28px;
  text-align: center;
}

.section-heading h2 {
  margin: 0 0 10px;
  color: #f4f8fc;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 900;
}

.section-heading p {
  color: var(--jl-muted);
  font-size: 14px;
}

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

.feature-card {
  min-width: 0;
  padding: 25px;
  border: 1px solid var(--jl-line);
  border-radius: 17px;
  background: linear-gradient(145deg, #142333, #0d1722);
  transition: transform .2s ease, border-color .2s ease;
}

.feature-card:hover {
  border-color: #12b8d088;
  transform: translateY(-3px);
}

.feature-icon {
  width: 49px;
  height: 49px;
  display: grid;
  place-items: center;
  border: 1px solid #12b8d044;
  border-radius: 13px;
  color: var(--jl-teal-bright);
  background: #12b8d016;
  font-size: 23px;
}

.feature-card h3 {
  margin: 18px 0 9px;
  color: #f2f8fc;
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  color: var(--jl-muted);
  font-size: 13px;
  line-height: 1.8;
}

.bottom-cta {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto 65px;
  padding: 40px 25px;
  border: 1px solid #286b70;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, #12b8d024, transparent 65%),
    #111e2b;
  text-align: center;
}

.bottom-cta h2 {
  margin: 0 0 10px;
  color: white;
  font-size: clamp(24px, 4vw, 32px);
}

.bottom-cta p {
  margin: 0 0 22px;
  color: var(--jl-muted);
  font-size: 14px;
  line-height: 1.7;
}

.bottom-cta a {
  min-height: 47px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jl-teal);
  border-radius: 10px;
  color: #062023;
  background: var(--jl-teal);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: .2s ease;
}

.bottom-cta a:hover {
  background: var(--jl-teal-bright);
  transform: translateY(-2px);
}

.site-footer {
  padding: 26px 16px;
  border-top: 1px solid #263949;
  color: #8295a7;
  font-size: 12px;
  text-align: center;
}

.public-members [hidden],
.public-monitor [hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  body > header.site-header {
    width: calc(100% - 32px);
    padding: 17px 0;
  }

  .site-brand {
    font-size: 25px;
  }

  .site-tagline {
    max-width: 180px;
    font-size: 9px;
    line-height: 1.45;
    letter-spacing: .9px;
  }

  .nav-actions {
    gap: 7px;
  }

  .nav-actions a {
    min-height: 39px;
    padding: 10px 12px;
    font-size: 10px;
  }

  .hero {
    width: calc(100% - 32px);
    min-height: 0;
    margin-top: 17px;
    border-radius: 19px;
    background:
      linear-gradient(105deg, rgba(9,20,38,.97), rgba(9,20,38,.93) 75%, rgba(9,20,38,.86)),
      url('/assets/jalaga-banner.jpg') center/cover no-repeat;
  }

  .hero-content {
    padding: 35px 23px;
  }

  .hero h1 {
    margin: 17px 0 12px;
    font-size: clamp(34px, 8vw, 46px);
    letter-spacing: -1.5px;
  }

  .hero p {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-buttons {
    gap: 9px;
    margin-top: 21px;
  }

  .hero-buttons a {
    min-width: 0;
    flex: 1 1 100%;
  }

  .public-members,
  .public-monitor,
  .features,
  .bottom-cta {
    width: calc(100% - 32px);
  }

  .public-members {
    margin: 38px auto;
  }

  .public-monitor {
    margin: 38px auto 48px;
    padding: 23px 19px;
  }

  .channel-monitor-connection {
    width: 100%;
    align-items: flex-start;
  }

  .channel-monitor-summary {
    gap: 8px;
    margin: 20px 0;
  }

  .channel-monitor-summary > div {
    padding: 12px 10px;
  }

  .channel-monitor-summary strong {
    font-size: 23px;
  }

  .channel-monitor-summary span {
    font-size: 9px;
    letter-spacing: .7px;
  }

  .channel-monitor-grid {
    grid-template-columns: 1fr;
  }

  .features {
    margin: 48px auto;
  }

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

  .feature-card {
    padding: 21px;
  }

  .bottom-cta {
    margin-bottom: 43px;
    padding: 30px 20px;
  }

  .bottom-cta a {
    width: 100%;
  }
}

@media (max-width: 390px) {
  body > header.site-header {
    align-items: flex-start;
    gap: 10px;
  }

  .site-brand {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .site-tagline {
    max-width: 145px;
    font-size: 8.5px;
    line-height: 1.45;
    letter-spacing: .8px;
  }

  .nav-actions a {
    padding: 9px 10px;
    font-size: 9px;
  }

  .hero-content {
    padding: 29px 19px;
  }

  .hero-label {
    font-size: 9px;
    letter-spacing: 1px;
  }

  .hero h1 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
