:root {
  --bg: #070816;
  --bg-soft: #10132a;
  --panel: rgba(14, 19, 44, 0.78);
  --panel-strong: rgba(14, 19, 44, 0.95);
  --text: #f7f8fc;
  --muted: #adb3c9;
  --line: rgba(255, 255, 255, 0.12);
  --blue: #7c68ff;
  --cyan: #7de2ff;
  --violet: #b45cff;
  --green: #70ffb8;
  --red: #ff6b7c;
  --orange: #ffae54;
  --glow: 0 0 40px rgba(151, 92, 255, 0.32);
  --max: 1180px;
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(180, 92, 255, 0.18), transparent 30%),
    radial-gradient(circle at 75% 65%, rgba(112, 255, 184, 0.12), transparent 20%),
    radial-gradient(circle at 70% 25%, rgba(255, 107, 124, 0.1), transparent 18%),
    linear-gradient(180deg, #080915 0%, #06070f 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 92%);
  pointer-events: none;
  opacity: 0.42;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  position: relative;
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 22, 0.66);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.brand-mark {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(7, 8, 22, 0.16), rgba(7, 8, 22, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(145, 224, 255, 0.1),
    0 0 26px rgba(104, 194, 255, 0.35),
    0 0 52px rgba(180, 92, 255, 0.18);
  overflow: hidden;
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter:
    brightness(1.08)
    saturate(1.08)
    drop-shadow(0 0 14px rgba(125, 226, 255, 0.18));
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle at 50% 40%, rgba(125, 226, 255, 0.26), transparent 56%);
  pointer-events: none;
}

.brand-word {
  display: inline-block;
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(124, 104, 255, 0.14);
}

.brand-word span {
  color: var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.header-social {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 18px rgba(124, 104, 255, 0.14);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.header-social svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.header-social:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

.header-social-youtube:hover {
  color: #ff6b7c;
  border-color: rgba(255, 107, 124, 0.6);
  box-shadow: 0 0 22px rgba(255, 107, 124, 0.3);
}

.header-social-instagram:hover {
  color: #d487ff;
  border-color: rgba(180, 92, 255, 0.64);
  box-shadow: 0 0 22px rgba(180, 92, 255, 0.3);
}

.header-social-tiktok:hover {
  color: #7de2ff;
  border-color: rgba(125, 226, 255, 0.64);
  box-shadow: 0 0 22px rgba(125, 226, 255, 0.3);
}

.card-locked {
  position: relative;
  border-color: rgba(255, 174, 84, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(255, 174, 84, 0.12),
    0 0 28px rgba(255, 174, 84, 0.08);
}

.card-locked::after {
  content: "Temporarily Unavailable";
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd9a8;
  background: rgba(255, 174, 84, 0.16);
  border: 1px solid rgba(255, 174, 84, 0.24);
}

.learn-link-disabled {
  opacity: 0.66;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.auth-google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.auth-google-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 2px;
}

.nav a {
  color: var(--muted);
  transition: color 180ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

.nav-login-link {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  font: inherit;
}

.nav-login-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-signout-button {
  cursor: pointer;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--text);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  padding: 4rem 0 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #c8bfff;
  background: rgba(180, 92, 255, 0.1);
  border: 1px solid rgba(180, 92, 255, 0.18);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
}

.hero h1,
.page-hero h1 {
  margin: 1rem 0 1rem;
  font-size: clamp(3.2rem, 8vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero h1 span,
.page-hero h1 span,
.section-title span {
  color: var(--blue);
}

.lede {
  max-width: 640px;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.65;
  color: var(--muted);
}

.article-updated {
  margin: 1rem 0 0;
  color: #d6dbeb;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 60px;
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: #ffffff;
  color: #090b18;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.admin-lock,
.admin-panel,
.admin-toolbar {
  padding: 1.5rem;
}

.admin-login-form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

.admin-google-button {
  width: fit-content;
}

.admin-login-actions,
.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.admin-field {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-field input {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 8, 22, 0.72);
  color: var(--text);
  padding: 0 1rem;
  font: inherit;
}

.admin-field input::placeholder {
  color: #7d839d;
}

.admin-message {
  margin: 0;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-shell {
  display: grid;
  gap: 1.5rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.auth-card,
.student-top-card,
.student-card {
  padding: 1.5rem;
}

.auth-wide {
  width: 100%;
}

.auth-email-form {
  padding-top: 0.5rem;
}

.student-shell {
  display: grid;
  gap: 1.25rem;
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.student-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.whiteboard {
  width: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 27, 0.88);
  min-height: 320px;
  touch-action: none;
}

.student-video-list {
  display: grid;
  gap: 0.9rem;
}

.student-video-item {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.student-video-item h4 {
  margin: 0;
}

.student-update-form {
  padding: 0;
}

@media (max-width: 760px) {
  .admin-toolbar,
  .admin-header {
    flex-direction: column;
  }

  .student-grid {
    grid-template-columns: 1fr;
  }
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 430px;
  display: grid;
  place-items: center;
  filter: saturate(1.2);
}

.orbital {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(191, 169, 255, 0.13);
  box-shadow: inset 0 0 24px rgba(169, 105, 255, 0.08);
}

.orbital.one {
  width: 78%;
  height: 78%;
}

.orbital.two {
  width: 52%;
  height: 52%;
  border-style: dashed;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.outer-ring {
  animation: orbit-outer 18s linear infinite;
}

.inner-ring {
  animation: orbit-inner 9s linear infinite;
}

.axis-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  background: linear-gradient(180deg, rgba(180, 92, 255, 0.06), rgba(112, 255, 184, 0.3), rgba(180, 92, 255, 0.06));
  opacity: 0.55;
}

.axis-link.outer {
  height: 78%;
}

.axis-link.inner {
  height: 52%;
  background: linear-gradient(180deg, rgba(255, 174, 84, 0.04), rgba(125, 226, 255, 0.22), rgba(255, 107, 124, 0.04));
}

.core {
  position: relative;
  width: 170px;
  height: 170px;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(112, 255, 184, 0.86), rgba(123, 104, 255, 0.88) 48%, rgba(255, 107, 124, 0.82));
  box-shadow:
    0 0 36px rgba(146, 90, 255, 0.65),
    0 0 70px rgba(112, 255, 184, 0.22);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  overflow: hidden;
}

.core::before,
.core::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.core::before {
  inset: -18px;
  background: radial-gradient(circle, rgba(180, 92, 255, 0.4), transparent 72%);
  z-index: -1;
}

.core-image {
  width: 74%;
  height: 74%;
  object-fit: contain;
  filter:
    brightness(1.1)
    contrast(1.12)
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.24))
    drop-shadow(0 0 26px rgba(112, 255, 184, 0.18));
  padding: 0;
}

.satellite {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: rgba(18, 25, 54, 0.9);
  border: 1px solid rgba(195, 143, 255, 0.26);
  box-shadow:
    0 0 32px rgba(180, 92, 255, 0.28),
    inset 0 0 18px rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
}

.satellite::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(187, 212, 255, 0.22);
  border-radius: 16px;
}

.satellite.top {
  top: 11%;
  left: 50%;
  transform: translateX(-50%) rotate(18deg);
}

.satellite.right {
  right: 24%;
  top: 50%;
  transform: translateY(-50%);
}

.satellite.bottom {
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
}

.glow-node {
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(112, 255, 184, 0.95), rgba(112, 255, 184, 0.18) 52%, rgba(18, 25, 54, 0.15) 70%),
    rgba(18, 25, 54, 0.3);
  box-shadow:
    0 0 30px rgba(112, 255, 184, 0.52),
    0 0 55px rgba(180, 92, 255, 0.22);
}

.glow-node::before {
  inset: 12px;
  border-radius: 50%;
  border-color: rgba(255, 255, 255, 0.26);
}

.circuit-node {
  background:
    linear-gradient(145deg, rgba(180, 92, 255, 0.26), rgba(255, 174, 84, 0.12)),
    rgba(18, 25, 54, 0.92);
}

.bot-node {
  background:
    linear-gradient(145deg, rgba(124, 104, 255, 0.22), rgba(112, 255, 184, 0.14)),
    rgba(18, 25, 54, 0.92);
  transform: translateY(-50%) rotate(42deg);
}

.circuit-glyph,
.bot-glyph {
  position: relative;
  width: 34px;
  height: 34px;
}

.circuit-glyph::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 4px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.circuit-glyph span {
  position: absolute;
  display: block;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.circuit-glyph span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 16px rgba(255, 174, 84, 0.75);
  transform: translateY(-50%);
}

.circuit-glyph span:nth-child(1) {
  top: 7px;
  left: 12px;
  width: 18px;
}

.circuit-glyph span:nth-child(2) {
  top: 15px;
  left: 4px;
  width: 26px;
}

.circuit-glyph span:nth-child(3) {
  top: 23px;
  left: 12px;
  width: 18px;
}

.bot-glyph::before,
.bot-glyph::after {
  content: "";
  position: absolute;
  border: 3px solid rgba(255, 255, 255, 0.96);
}

.bot-glyph::before {
  inset: 6px 5px 6px;
  border-radius: 10px;
}

.bot-glyph::after {
  width: 13px;
  height: 13px;
  border-left: 0;
  border-bottom: 0;
  top: -1px;
  left: 10px;
  transform: rotate(-45deg);
  border-radius: 2px;
}

.bot-glyph .bot-eye,
.bot-glyph .bot-mouth {
  position: absolute;
  display: block;
}

.bot-glyph .bot-eye {
  top: 14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(112, 255, 184, 0.8);
}

.bot-glyph .left-eye {
  left: 10px;
}

.bot-glyph .right-eye {
  right: 10px;
}

.bot-glyph .bot-mouth {
  left: 50%;
  bottom: 8px;
  width: 14px;
  height: 3px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  transform: translateX(-50%);
}

.circuit-node::after,
.bot-node::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.circuit-node::after {
  background: var(--orange);
  top: 9px;
  right: 9px;
  box-shadow: 0 0 18px rgba(255, 174, 84, 0.55);
}

.bot-node::after {
  background: var(--green);
  bottom: 9px;
  right: 9px;
  box-shadow: 0 0 18px rgba(112, 255, 184, 0.55);
}

.section {
  padding: 3.5rem 0;
}

.surface {
  background: linear-gradient(180deg, rgba(14, 19, 44, 0.82), rgba(10, 13, 29, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}

.section-title {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-copy {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.about-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  padding: 2rem;
}

.founders {
  display: grid;
  gap: 1rem;
}

.founder {
  padding: 1.35rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.founder h3,
.founder h4 {
  margin: 0 0 0.4rem;
}

.founder p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.code-card {
  min-height: 100%;
  padding: 1.5rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(7, 9, 23, 0.95), rgba(14, 18, 36, 0.9));
  border: 1px solid rgba(104, 170, 255, 0.16);
}

.code-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ff6f81; }
.dot.yellow { background: #ffc768; }
.dot.green { background: #68f0b2; }

pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #b4d5ff;
  line-height: 1.8;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.97rem;
}

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

.feature,
.card {
  position: relative;
  padding: 1.35rem;
  min-height: 240px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(23, 29, 58, 0.9), rgba(12, 15, 31, 0.96));
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.feature::before,
.card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(107, 165, 255, 0.22), transparent 70%);
}

.feature h3,
.card h3 {
  margin: 0.9rem 0 0.5rem;
  font-size: 1.2rem;
}

.feature p,
.card p,
.muted {
  color: var(--muted);
  line-height: 1.7;
}

.card p {
  color: #d6dbeb;
  font-size: 1rem;
}

.card strong {
  color: #ffffff;
}

.icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(107, 165, 255, 0.3), rgba(125, 226, 255, 0.14));
  display: grid;
  place-items: center;
  font-size: 1.15rem;
}

.cta {
  padding: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.page-hero {
  padding: 4rem 0 2rem;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--cyan);
  background: rgba(125, 226, 255, 0.08);
  border: 1px solid rgba(125, 226, 255, 0.12);
}

.learn-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #0b1020;
  font-weight: 700;
  background: linear-gradient(135deg, var(--green), #9dc3ff);
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  box-shadow: 0 0 28px rgba(112, 255, 184, 0.18);
}

.learn-link-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.resources-grid .resource-card {
  min-height: 290px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.resources-grid .resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 104, 255, 0.28);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-height: 100%;
}

.form-wrap {
  display: grid;
  gap: 2rem;
  grid-template-columns: 0.9fr 1.1fr;
  padding: 2rem;
}

.info-panel,
.form-panel {
  padding: 1.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stack {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(5, 7, 19, 0.82);
  color: var(--text);
  padding: 1rem 1.05rem;
  font: inherit;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(107, 165, 255, 0.35);
  border-color: rgba(107, 165, 255, 0.4);
}

footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 6, 16, 0.78);
}

.footer-grid {
  padding: 2.25rem 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 1.8rem;
}

.footer-list {
  display: grid;
  gap: 0.65rem;
}

.footer-list a,
.footer-list p {
  color: var(--muted);
}

.footer-note {
  padding-bottom: 2rem;
  color: rgba(173, 179, 201, 0.82);
  font-size: 0.95rem;
}

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-stat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.7rem 1.8rem;
  background:
    linear-gradient(135deg, rgba(124, 104, 255, 0.2), rgba(112, 255, 184, 0.12)),
    linear-gradient(180deg, rgba(14, 19, 44, 0.82), rgba(10, 13, 29, 0.9));
}

.home-stat-card {
  padding: 1.4rem 1.35rem;
  background:
    linear-gradient(135deg, rgba(157, 92, 255, 0.16), rgba(112, 255, 184, 0.08)),
    rgba(10, 13, 29, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 38px rgba(4, 8, 22, 0.28);
}

.home-stat-summary {
  margin-top: 1rem;
}

.home-stat-label {
  margin: 0 0 0.55rem;
  color: #ddd2ff;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-stat-number {
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.08em;
  color: #ffffff;
  text-shadow:
    0 0 28px rgba(157, 92, 255, 0.52),
    0 0 52px rgba(112, 255, 184, 0.2);
}

.home-stat-copy {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.tracker-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.4rem;
}

.tracker-panel,
.tracker-sidebar {
  padding: 1.5rem;
}

.tracker-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.tracker-count-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(157, 92, 255, 0.18), rgba(112, 255, 184, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.tracker-count-label {
  margin: 0;
  color: #e3d7ff;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tracker-count {
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  line-height: 0.9;
  font-weight: 700;
  letter-spacing: -0.07em;
  color: #ffffff;
  text-shadow:
    0 0 24px rgba(157, 92, 255, 0.48),
    0 0 46px rgba(112, 255, 184, 0.22);
}

.tracker-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: #d6dbeb;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.5rem;
  box-shadow: 0 0 14px currentColor;
}

.legend-dot.purple {
  background: #9d5cff;
  color: #9d5cff;
}

.legend-dot.yellow {
  background: #ffd84d;
  color: #ffd84d;
}

.legend-dot.green {
  background: #63f59b;
  color: #63f59b;
}

#student-map {
  min-height: 540px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.student-list {
  display: grid;
  gap: 1rem;
}

.tracker-summary-list {
  margin-top: 1.2rem;
}

.admin-lock,
.admin-panel {
  padding: 1.8rem;
}

.admin-lock {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.4rem;
  align-items: center;
}

.google-auth-slot {
  min-height: 48px;
}

.admin-shell {
  display: grid;
  gap: 1rem;
}

.admin-section {
  padding-bottom: 0;
}

.admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.admin-student-list {
  display: grid;
  gap: 1rem;
}

.admin-applicant-group {
  gap: 1.2rem;
}

.admin-application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-application-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-student-item {
  display: grid;
  gap: 1rem;
}

.admin-student-copy {
  display: grid;
  gap: 0.5rem;
}

.admin-message-field {
  font-weight: 600;
}

.admin-message-field textarea {
  min-height: 118px;
}

.admin-link-panel {
  display: grid;
  gap: 0.75rem;
}

.admin-link-field {
  display: grid;
  gap: 0.45rem;
}

.admin-link-field p {
  margin: 0;
  color: #dfe4f6;
}

.admin-link-field input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(4, 8, 22, 0.72);
  color: var(--text);
  padding: 0 1rem;
  font: inherit;
}

.admin-warning {
  color: #ffd58d;
}

.consent-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
  color: var(--text);
}

.consent-check input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
}

.button-danger,
.nav-delete-button {
  border-color: rgba(255, 120, 120, 0.34);
  color: #ffd4d4;
  background: rgba(94, 19, 24, 0.38);
}

.button-danger:hover,
.nav-delete-button:hover {
  border-color: rgba(255, 120, 120, 0.52);
  background: rgba(118, 23, 31, 0.5);
}

.legal-wrap {
  padding: 2rem;
}

.legal-callout {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.legal-callout p {
  margin: 0;
}

.legal-stack {
  gap: 1.4rem;
}

.legal-section {
  padding: 1.2rem 1.25rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-section h2,
.legal-section p {
  margin: 0;
}

.legal-section h2 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.legal-section p + p {
  margin-top: 0.75rem;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.student-item {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.student-item h3,
.student-item p {
  margin: 0;
}

.student-item p {
  color: var(--muted);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes orbit-outer {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbit-inner {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .about-card,
  .form-wrap,
  .footer-grid,
  .feature-grid,
  .card-grid,
  .tracker-layout,
  .admin-lock,
  .admin-application-grid,
  .home-stats,
  .home-stat,
  .tracker-stats {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 360px;
    order: -1;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(10, 12, 27, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.09);
  }

  .nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: inline-block;
  }

  .header-socials {
    margin-left: 0;
    order: 2;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--max));
  }

  .hero,
  .page-hero,
  .section {
    padding-top: 2.6rem;
    padding-bottom: 2.6rem;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 280px;
  }

  .core {
    width: 132px;
    height: 132px;
    border-radius: 26px;
  }

  .satellite {
    width: 54px;
    height: 54px;
  }

  .core-image {
    width: 76%;
    height: 76%;
  }
}
