.landing-page {
  color: var(--text-primary);
  background:
    radial-gradient(circle at 14% 12%, rgba(22, 152, 140, 0.18), transparent 34%),
    radial-gradient(circle at 88% 4%, rgba(25, 156, 255, 0.17), transparent 26%),
    linear-gradient(180deg, #081017 0%, #0b1215 56%, #0d161e 100%);
  overflow-x: hidden;
}

.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 92%);
}

.landing-page .site-header,
.landing-page .landing-main,
.landing-page .site-footer {
  position: relative;
  z-index: 1;
}

.landing-page .site-header {
  background: rgba(6, 10, 14, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.landing-page .header-login,
.landing-page .header-signup,
.landing-page button,
.landing-page input,
.landing-page h1,
.landing-page h2,
.landing-page h3 {
  font-family: var(--font-sans);
}

.landing-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 86px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.school-kicker,
.school-card-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(140, 204, 255, 0.35);
  background: rgba(15, 24, 34, 0.65);
  color: #9bd3ff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.school-kicker-muted {
  border-color: rgba(144, 232, 196, 0.35);
  color: #90e8c4;
}

.school-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 18% 24%, rgba(30, 176, 255, 0.22), transparent 42%),
    radial-gradient(circle at 84% 84%, rgba(53, 197, 169, 0.2), transparent 42%),
    linear-gradient(110deg, rgba(5, 10, 14, 0.92) 0%, rgba(5, 10, 14, 0.72) 44%, rgba(6, 11, 17, 0.9) 100%);
  pointer-events: none;
}

.school-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 48%;
  height: 100%;
  z-index: 0;
  background:
    linear-gradient(270deg, rgba(5, 10, 14, 0.1) 0%, rgba(5, 10, 14, 0.45) 62%, rgba(5, 10, 14, 0.95) 100%),
    url('/assets/heroimage.jpg') center right / cover no-repeat;
  pointer-events: none;
}

.school-hero-overlay {
  position: relative;
  z-index: 1;
    min-height: 520px;
    padding: clamp(24px, 3vw, 40px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
  max-width: 760px;
}

.school-hero h1 {
  margin: 18px 0;
  max-width: 12ch;
  font-size: clamp(2.7rem, 5.7vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: #f5f8fc;
}

.school-hero-lead,
.school-access-card p,
.school-note-box p {
  color: rgba(232, 243, 255, 0.8);
  line-height: 1.75;
}

.school-hero-lead {
  max-width: 64ch;
}

.school-hero-actions,
.school-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.school-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.school-btn:hover {
  transform: translateY(-1px);
}

.school-btn-primary,
.school-join-btn {
  background: linear-gradient(140deg, #24b9ff 0%, #0c88f3 100%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(12, 136, 243, 0.4);
}

.school-btn-primary:hover,
.school-join-btn.active:hover {
  background: linear-gradient(140deg, #3ec3ff 0%, #2295fb 100%);
}

.school-btn-secondary {
  border-color: rgba(227, 240, 255, 0.4);
  background: rgba(8, 16, 24, 0.52);
  color: #f2f8ff;
}

.school-btn-secondary:hover {
  border-color: rgba(227, 240, 255, 0.7);
  background: rgba(10, 20, 29, 0.78);
}

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

.school-pill-card,
.school-access-card {
  background: linear-gradient(160deg, rgba(13, 20, 29, 0.94) 0%, rgba(11, 18, 26, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.35);
}

.school-pill-card {
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.school-pill-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(155, 211, 255, 0.82);
}

.school-pill-card strong {
  color: #e8f4ff;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.52;
}

.school-floating-strip {
  max-width: 560px;
  padding: 15px 18px;
  border-radius: 16px;
  background: rgba(12, 19, 27, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(232, 243, 255, 0.92);
  line-height: 1.55;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.school-access-card h2 {
  margin: 16px 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #f4f9ff;
}

.school-access-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.school-access-card {
  border-radius: 30px;
  padding: 30px;
}

.school-teacher-card {
  background:
    radial-gradient(circle at 85% 14%, rgba(37, 184, 255, 0.2), transparent 40%),
    linear-gradient(165deg, rgba(10, 18, 26, 0.95) 0%, rgba(9, 16, 24, 0.9) 100%);
}

.school-student-card {
  background:
    radial-gradient(circle at 82% 14%, rgba(100, 222, 184, 0.2), transparent 40%),
    linear-gradient(165deg, rgba(11, 20, 29, 0.95) 0%, rgba(8, 16, 24, 0.9) 100%);
}

.school-bullet-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  gap: 12px;
}

.school-bullet-list li {
  position: relative;
  padding-left: 24px;
  color: rgba(233, 244, 255, 0.86);
  line-height: 1.68;
}

.school-bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #27bbff;
  transform: translateY(-50%);
}

.school-join-form {
  margin-top: 22px;
}

.school-join-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #b5daff;
  font-size: 0.92rem;
  font-weight: 600;
}

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

.school-join-input {
  min-height: 56px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 11, 16, 0.76);
  color: #eff8ff;
  padding: 0 18px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.school-join-input::placeholder {
  color: rgba(181, 218, 255, 0.9);
  letter-spacing: 0.1em;
}

.school-join-input:focus {
  border-color: rgba(77, 190, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(77, 190, 255, 0.24);
  background: rgba(6, 12, 18, 0.92);
}

.school-join-btn {
  width: 50%;
  min-width: 0;
  justify-self: center;
}

.school-join-btn:disabled {
  cursor: not-allowed;
  opacity: 0.54;
  background: linear-gradient(140deg, rgba(36, 185, 255, 0.42), rgba(12, 136, 243, 0.42));
  box-shadow: none;
}

.school-join-btn.active {
  opacity: 1;
}

.school-note-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(7, 14, 20, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.school-note-box strong {
  display: block;
  margin-bottom: 6px;
  color: #d2ebff;
  font-size: 0.92rem;
  font-weight: 600;
}

.landing-page .site-footer {
  margin-top: 28px;
}

@media (max-width: 1100px) {
  .school-access-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .landing-main {
    width: min(100% - 24px, 1240px);
    padding: 22px 0 68px;
    gap: 22px;
  }

  .school-hero-overlay {
    min-height: 600px;
    padding: 24px 18px;
    gap: 24px;
  }

  .school-hero::after {
    width: 100%;
    opacity: 0.34;
  }

  .school-hero h1 {
    max-width: none;
  }

  .school-pill-grid {
    grid-template-columns: 1fr;
  }

  .school-access-card {
    padding: 22px 18px;
  }

  .school-join-row {
    grid-template-columns: 1fr;
  }

  .school-join-btn {
    width: 50%;
    min-width: 0;
    justify-self: center;
  }
}

@media (max-width: 560px) {
  .school-access-card h2 {
    font-size: clamp(1.9rem, 9vw, 2.4rem);
  }
}
