:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --ink: #050505;
  --muted: #223044;
  --line: #e9e1d8;
  --lime: #c9ff00;
  --blue: #0b72ff;
  --shadow: 0 20px 54px rgba(20, 18, 14, 0.12);
  --soft-shadow: 0 10px 28px rgba(20, 18, 14, 0.1);
  --display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 74% 10%, rgba(201, 255, 0, 0.08), transparent 26rem),
    radial-gradient(circle at 80% 56%, rgba(11, 114, 255, 0.07), transparent 28rem),
    linear-gradient(180deg, #fffdf9, var(--bg));
  font-family: var(--body);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; }

.page {
  width: min(100%, 1540px);
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(16px, 1.7vw, 24px) clamp(14px, 2.3vw, 32px) 34px;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 42px);
  min-height: 68px;
  padding: 8px clamp(4px, 1.2vw, 18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
}
.brand > span:last-child {
  font-family: var(--display);
  font-size: clamp(28px, 2.6vw, 42px);
}
.atom-logo {
  position: relative;
  width: 62px;
  height: 54px;
  display: inline-grid;
  place-items: center;
}
.atom-logo i {
  position: absolute;
  width: 54px;
  height: 19px;
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.atom-logo i:nth-child(1) { transform: rotate(0deg); }
.atom-logo i:nth-child(2) { transform: rotate(60deg); }
.atom-logo i:nth-child(3) { transform: rotate(-60deg); }
.atom-logo b {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
}

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  font-weight: 850;
  margin-left: auto;
}
.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
}
.nav a::after {
  position: absolute;
  left: 50%;
  bottom: -15px;
  width: 24px;
  height: 3px;
  content: "";
  transform: translateX(-50%) scaleX(0);
  background: var(--lime);
  border-radius: 20px;
  transition: transform 150ms ease;
}
.nav a:hover::after,
.nav a.is-active::after { transform: translateX(-50%) scaleX(1); }

.nav a.nav-pill {
  min-height: 50px;
  gap: 10px;
  padding: 7px 8px 7px 22px;
  background: var(--lime);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 950;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.nav a.nav-pill::after {
  display: none;
}
.nav a.nav-pill span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.access-status {
  display: grid;
  gap: 2px;
  min-height: 48px;
  padding: 8px 16px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  text-align: left;
}

.access-status[hidden] {
  display: none;
}

.access-status span {
  max-width: 180px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-status b {
  color: var(--lime);
  font-size: 12px;
  font-weight: 950;
}

.access-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 18px;
  background:
    linear-gradient(rgba(5, 5, 5, 0.42), rgba(5, 5, 5, 0.42)),
    radial-gradient(circle at 20% 18%, rgba(201, 255, 0, 0.28), transparent 26rem),
    radial-gradient(circle at 82% 70%, rgba(11, 114, 255, 0.25), transparent 28rem),
    rgba(5, 5, 5, 0.9);
}

.access-gate.is-open {
  display: grid;
}

body.access-locked {
  overflow: hidden;
}

.access-panel {
  width: min(560px, 100%);
  max-height: min(900px, calc(100svh - 36px));
  overflow: auto;
  padding: clamp(18px, 3vw, 30px);
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    #fffdfa;
  background-size: 20px 20px;
  border: 2px solid rgba(5, 5, 5, 0.9);
  border-radius: 26px;
  box-shadow: 0 26px 0 rgba(201, 255, 0, 0.2), 0 34px 90px rgba(0, 0, 0, 0.28);
}

.access-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.access-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 24px;
}

.access-mark .atom-logo,
.demo-mark .atom-logo,
.god-mark .atom-logo {
  width: 34px;
  height: 30px;
}

.access-mark .atom-logo i,
.demo-mark .atom-logo i,
.god-mark .atom-logo i {
  width: 32px;
  height: 11px;
  border-width: 2px;
}

.access-mark .atom-logo b,
.demo-mark .atom-logo b,
.god-mark .atom-logo b {
  width: 7px;
  height: 7px;
}

.access-head p,
.access-dashboard-head p {
  margin: 0 0 3px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.access-head h2,
.access-dashboard-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 6vw, 56px);
  line-height: 0.95;
  text-transform: uppercase;
}

.access-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.access-tabs[hidden] {
  display: none;
}

.access-tabs button,
.access-close,
.access-admin-foot button,
.access-member button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  font-weight: 950;
}

.access-tabs button {
  color: var(--muted);
  background: transparent;
}

.access-tabs button.is-active {
  color: #fff;
  background: var(--ink);
}

.access-form {
  display: grid;
  gap: 14px;
}

.access-form[hidden],
.access-dashboard[hidden] {
  display: none;
}

.access-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.access-form label,
.access-admin-tools label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.access-form input,
.access-form select,
.access-admin-tools input,
.access-admin-tools select {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 750 16px var(--body);
  letter-spacing: 0;
  outline: none;
  text-transform: none;
}

.access-form input:focus,
.access-form select:focus,
.access-admin-tools input:focus,
.access-admin-tools select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 114, 255, 0.12);
}

.access-submit {
  min-height: 56px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 950;
}

.access-message {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.access-message[data-tone="error"] {
  color: #c62222;
}

.access-message[data-tone="success"] {
  color: #087235;
}

.access-gate.is-loading .access-submit,
.access-gate.is-loading .access-member button,
.access-gate.is-loading .access-admin-foot button {
  opacity: 0.65;
}

.access-dashboard {
  display: grid;
  gap: 16px;
}

.access-dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.access-close,
.access-admin-foot button {
  padding: 0 16px;
  color: #fff;
  background: var(--ink);
}

.access-admin-tools {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
}

.access-member-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.access-member {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.access-member strong {
  display: block;
  margin-bottom: 4px;
}

.access-member span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.access-member button {
  padding: 0 14px;
  color: var(--ink);
  background: var(--lime);
}

.access-empty {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  font-weight: 800;
}

.access-admin-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.access-admin-foot button:last-child {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.demo-page {
  min-height: 100svh;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    radial-gradient(circle at 18% 18%, rgba(201, 255, 0, 0.24), transparent 25rem),
    radial-gradient(circle at 86% 72%, rgba(11, 114, 255, 0.2), transparent 30rem),
    var(--bg);
}

.demo-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  width: min(100% - 28px, 720px);
  margin: 0 auto;
  padding: 28px 0;
}

.demo-card {
  width: min(560px, 100%);
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    #fffdfa;
  background-size: 20px 20px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 26px 0 rgba(201, 255, 0, 0.22), var(--shadow);
}

.demo-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 24px;
}

.demo-card > p {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.demo-card h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 72px);
  line-height: 0.92;
  text-transform: uppercase;
}

.demo-login {
  display: grid;
  gap: 14px;
}

.demo-login label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.demo-login input {
  width: 100%;
  min-height: 54px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 750 16px var(--body);
  letter-spacing: 0;
  outline: none;
  text-transform: none;
}

.demo-login input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 114, 255, 0.12);
}

.demo-login button,
.demo-active button {
  min-height: 52px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 950;
}

.demo-active {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.demo-active[hidden] {
  display: none;
}

.demo-active div {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-weight: 800;
}

.demo-active b {
  color: var(--ink);
  font-size: 18px;
}

.demo-message {
  min-height: 20px;
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.demo-message[data-tone="error"] {
  color: #c62222;
}

.demo-message[data-tone="success"] {
  color: #087235;
}

.demo-loading button {
  opacity: 0.65;
}

.god-page {
  min-height: 100svh;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 15% 12%, rgba(201, 255, 0, 0.2), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(11, 114, 255, 0.18), transparent 28rem),
    var(--bg);
}

.god-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px) 0;
}

.god-gate {
  width: min(520px, 100%);
  margin: 12svh auto 0;
  padding: clamp(24px, 4vw, 34px);
  background: #fffdfa;
  border: 2px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 24px 0 rgba(201, 255, 0, 0.22), var(--shadow);
}

.god-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 24px;
}

.god-gate p,
.god-header p,
.god-school header p {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.god-gate h1,
.god-header h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(44px, 7vw, 74px);
  line-height: 0.92;
  text-transform: uppercase;
}

.god-login {
  display: grid;
  gap: 14px;
}

.god-login label,
.god-search {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.god-login input,
.god-search input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: 750 16px var(--body);
  letter-spacing: 0;
  outline: none;
  text-transform: none;
}

.god-login input:focus,
.god-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 114, 255, 0.12);
}

.god-login button,
.god-actions button {
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-weight: 950;
}

.god-message {
  min-height: 22px;
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.god-message[data-tone="error"] {
  color: #c62222;
}

.god-dashboard {
  display: grid;
  gap: 22px;
}

.god-dashboard[hidden],
.god-gate[hidden] {
  display: none;
}

.god-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.god-header h1 {
  margin-bottom: 0;
}

.god-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.god-actions button:last-child {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.god-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.god-stats article {
  min-height: 96px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--soft-shadow);
}

.god-stats span,
.god-school-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.god-stats strong {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 0.95;
}

.god-search {
  max-width: 520px;
}

.god-schools {
  display: grid;
  gap: 16px;
}

.god-demos {
  display: grid;
  gap: 16px;
}

.god-section-head {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}

.god-section-head p {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.god-section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.92;
  text-transform: uppercase;
}

.god-school {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 24px);
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
}

.god-school header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.god-school h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.94;
  text-transform: uppercase;
}

.god-status,
.god-code-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.god-status[data-status="active"] {
  color: var(--ink);
  background: var(--lime);
}

.god-status[data-status="expired"],
.god-status[data-status="disabled"] {
  color: #fff;
  background: #c62222;
}

.god-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.god-code-row b {
  margin-left: 5px;
  color: var(--lime);
  text-transform: none;
}

.god-school-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.god-school-metrics span {
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.god-school-metrics b {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}

.god-member-table {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.god-member-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) 110px 110px minmax(170px, 1fr) minmax(170px, 1fr);
  gap: 12px;
  min-width: 820px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.god-member-row:first-child {
  border-top: 0;
}

.god-member-row--head {
  color: var(--ink);
  background: rgba(201, 255, 0, 0.3);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.god-empty {
  margin: 0;
  padding: 20px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 850;
  text-align: center;
}

.god-empty--small {
  border: 0;
}

.god-loading button,
.god-loading input {
  opacity: 0.7;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 8px 9px 8px 26px;
  background: var(--lime);
  border-radius: 999px;
  font-weight: 950;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.primary-action span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}
.hero {
  min-height: calc(100svh - 96px);
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: clamp(22px, 3vw, 50px);
  padding: clamp(34px, 5.6vw, 78px) clamp(8px, 1vw, 16px) 20px;
}
.hero-copy {
  max-width: 570px;
  padding-left: clamp(8px, 1.8vw, 28px);
}
.hero-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(70px, 8.2vw, 138px);
  line-height: 0.91;
  text-transform: uppercase;
}
.scribble {
  width: min(215px, 48vw);
  height: 28px;
  margin: 7px 0 22px;
}
.scribble path {
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}
.hero-copy p {
  max-width: 450px;
  margin: 0 0 25px;
  color: var(--muted);
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.35;
  font-weight: 500;
}
.class-tag {
  display: inline-block;
  margin-bottom: 38px;
  padding: 0 10px 2px;
  background: linear-gradient(transparent 15%, var(--lime) 15% 85%, transparent 85%);
  font-size: clamp(20px, 1.8vw, 29px);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}
.primary-action {
  color: #fff;
  background: var(--ink);
  padding-left: 34px;
  font-size: 20px;
}
.primary-action span {
  color: var(--ink);
  background: var(--lime);
}
.text-action {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--ink);
  font-weight: 900;
}

.hero-art {
  position: relative;
  min-height: 670px;
  display: grid;
  place-items: center;
}
.connector-map {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: min(1050px, 118%);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
}
.guide-lines path {
  fill: none;
  stroke: #1e2a36;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7 8;
  opacity: 0.76;
}
.guide-lines path:nth-child(1),
.guide-lines path:nth-child(2) {
  stroke: rgba(30, 42, 54, 0.24);
  stroke-dasharray: none;
  stroke-width: 1.4;
}
.connector-map marker path {
  fill: #050505;
}
.connector-nodes circle {
  fill: #050505;
}
.hub-wrap {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
}
.subject-hub {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hub-hotspot {
  position: absolute;
  background: transparent;
  border: 0;
  border-radius: 34px;
}
.hub-hotspot:focus-visible {
  outline: 0;
}
.hotspot--physics { left: 17%; top: 11%; width: 31%; height: 33%; }
.hotspot--chemistry { left: 52%; top: 11%; width: 31%; height: 33%; }
.hotspot--biology { left: 17%; top: 53%; width: 31%; height: 33%; }
.hotspot--math { left: 52%; top: 53%; width: 31%; height: 33%; }

.sticky-note {
  position: absolute;
  left: -1%;
  top: 12%;
  z-index: 4;
  width: clamp(92px, 9vw, 132px);
  transform: rotate(-6deg);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.13));
}
.paper-note {
  position: absolute;
  right: -1%;
  bottom: 3%;
  z-index: 4;
  width: clamp(130px, 14vw, 210px);
  transform: rotate(-3deg);
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.13));
}
.spark {
  position: absolute;
  right: 17%;
  top: 8%;
  font-size: 54px;
  color: #2a3441;
}
.burst {
  position: absolute;
  right: 2%;
  top: 12%;
  width: 76px;
  height: 76px;
  background: var(--blue);
  clip-path: polygon(43% 0,57% 0,58% 34%,88% 11%,97% 21%,69% 46%,100% 48%,100% 63%,66% 61%,91% 91%,80% 100%,55% 70%,53% 100%,38% 100%,41% 66%,11% 91%,1% 80%,32% 55%,0 54%,0 39%,34% 41%,8% 12%,20% 3%,44% 32%);
}
.chip {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--soft-shadow);
  font-weight: 850;
  line-height: 1.15;
}
.chip span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink);
  background: var(--lime);
  border-radius: 50%;
  font-weight: 950;
}
.chip--clarity,
.chip--hub {
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
}
.chip--clarity { top: 3%; left: 48%; }
.chip--sim { left: -2%; bottom: 30%; }
.chip--tests { right: 0; top: 28%; }
.chip--analytics { right: -1%; bottom: 25%; }
.chip--hub { left: 50%; bottom: 8%; transform: translateX(-50%); }
.chip--sim span,
.chip--tests span { color: #fff; background: var(--blue); }

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 10px;
  padding: 30px 34px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: 0 12px 44px rgba(20, 18, 14, 0.06);
}
.feature-strip article {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.feature-strip article:last-child { border-right: 0; }
.feature-strip img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
}
.feature-strip h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 9px;
  font-size: 17px;
}
.feature-note {
  color: var(--muted);
  font-size: 0.82em;
  font-weight: 800;
}
.feature-strip p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.simulations-page {
  min-height: 100svh;
  overflow-x: hidden;
}

.sim-hero {
  padding: clamp(36px, 4.8vw, 66px) clamp(8px, 1vw, 16px) clamp(22px, 3vw, 36px);
  text-align: center;
}

.sim-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sim-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 8vw, 118px);
  line-height: 0.9;
  text-transform: uppercase;
}

html[lang="hi"] .sim-hero h1 {
  font-family: var(--body);
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 950;
  line-height: 1.08;
  text-transform: none;
}

.sim-hero > p:not(.sim-kicker) {
  max-width: 670px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.45;
  font-weight: 550;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 24px auto 0;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(20, 18, 14, 0.07);
}

.language-toggle legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.language-toggle label {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-toggle input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.language-toggle span {
  min-width: 92px;
  padding: 10px 15px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  text-align: center;
  transition: background 140ms ease, color 140ms ease;
}

.language-toggle input:checked + span {
  color: #fff;
  background: var(--ink);
}

.language-toggle input:focus-visible + span {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.subject-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 2.4vw, 38px);
  width: min(1680px, calc(100vw - 88px));
  margin: 0 auto;
  padding: 0 0 clamp(34px, 5vw, 70px);
}

.subject-card {
  position: relative;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  padding: 26px;
  color: var(--ink);
  text-align: left;
  border: 2px solid rgba(5, 5, 5, 0.82);
  border-radius: 26px;
  box-shadow: 0 18px 0 rgba(5, 5, 5, 0.08), var(--shadow);
  isolation: isolate;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.subject-card::before,
.subject-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.subject-card::before {
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(0, 0, 0, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.38;
}

.subject-card::after {
  right: -34px;
  top: -28px;
  z-index: -1;
  width: 150px;
  height: 150px;
  border: 3px solid currentColor;
  border-radius: 50%;
  opacity: 0.16;
}

.subject-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 0 rgba(5, 5, 5, 0.08), 0 28px 70px rgba(20, 18, 14, 0.16);
}

.subject-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.subject-card.is-current .issue::after {
  content: "Selected";
  margin-left: 8px;
  padding: 3px 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(5, 5, 5, 0.14);
  border-radius: 999px;
}

.subject-card .issue {
  position: absolute;
  left: 24px;
  top: 20px;
  z-index: 2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.subject-card strong {
  max-width: 100%;
  font-family: var(--display);
  font-size: clamp(50px, 5.3vw, 82px);
  line-height: 0.86;
  text-transform: uppercase;
}

.subject-card em {
  max-width: 100%;
  font-family: var(--display);
  font-size: clamp(24px, 2vw, 34px);
  font-style: normal;
  line-height: 0.9;
  text-transform: uppercase;
}

.subject-card small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 12px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.subject-card--physics {
  background:
    radial-gradient(circle at 74% 30%, rgba(255, 255, 255, 0.45), transparent 24%),
    linear-gradient(135deg, #d3ff00, #aeea00);
}

.subject-card--chemistry {
  background:
    radial-gradient(circle at 77% 30%, rgba(11, 114, 255, 0.35), transparent 26%),
    linear-gradient(135deg, #f7ffd0, #dffb76);
}

.subject-card--biology {
  color: #fff;
  background:
    radial-gradient(circle at 82% 28%, rgba(201, 255, 0, 0.34), transparent 25%),
    linear-gradient(135deg, #0b72ff, #0750c7);
}

.subject-card--biology small {
  color: var(--ink);
  background: #fff;
}

.subject-card--math {
  color: #fff;
  background:
    radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.18), transparent 24%),
    linear-gradient(135deg, #161918, #050505);
}

.subject-card--image {
  min-height: 0;
  aspect-ratio: 16 / 9;
  display: block;
  padding: 0;
  background: #fff;
  border-radius: 30px;
}

.subject-card--image::before,
.subject-card--image::after {
  display: none;
}

.subject-card--image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: inherit;
}

.simulation-browser {
  margin: 0 10px 26px;
  padding: clamp(22px, 3vw, 38px);
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    rgba(255, 255, 255, 0.86);
  background-size: 22px 22px;
  border: 2px solid rgba(5, 5, 5, 0.82);
  border-radius: 32px;
  box-shadow: 0 22px 0 rgba(5, 5, 5, 0.07), 0 26px 74px rgba(20, 18, 14, 0.13);
}

.simulation-browser[hidden],
.subject-picker[hidden] {
  display: none;
}

.simulation-browser--physics {
  background-color: rgba(211, 255, 0, 0.18);
}

.simulation-browser--chemistry {
  background-color: rgba(223, 251, 118, 0.2);
}

.simulation-browser--biology {
  background-color: rgba(11, 114, 255, 0.1);
}

.simulation-browser--math {
  background-color: rgba(5, 5, 5, 0.04);
}

.browser-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.browser-head .language-toggle {
  margin: 0;
  flex: 0 0 auto;
}

.language-toggle--compact span {
  min-width: 82px;
  padding: 9px 12px;
  font-size: 13px;
}

.back-to-subjects {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 18px;
  padding: 0 16px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
}

.browser-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 76px);
  line-height: 0.92;
  text-transform: uppercase;
}

.simulation-browser[data-language="hi"] .browser-head h2 {
  font-family: var(--body);
  font-weight: 950;
  line-height: 1.08;
  text-transform: none;
}

.simulation-browser[data-language="hi"] .sim-search,
.simulation-browser[data-language="hi"] .simulation-card h3,
.simulation-browser[data-language="hi"] .simulation-card p,
.simulation-browser[data-language="hi"] .simulation-card a,
.simulation-browser[data-language="hi"] .language-note {
  letter-spacing: 0;
}

.sim-search {
  width: min(360px, 100%);
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sim-search input {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 650 16px var(--body);
  outline: none;
}

.sim-search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 114, 255, 0.12);
}

.simulation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.simulation-card {
  position: relative;
  min-height: 218px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  padding: 20px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    #fffdfa;
  background-size: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(20, 18, 14, 0.07);
}

.sim-number {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 950;
}

.sim-mark {
  position: absolute;
  right: 16px;
  top: 14px;
  padding: 5px 8px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.simulation-card h3 {
  margin: 8px 0 0;
  font-size: 21px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.simulation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.simulation-card a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin-top: auto;
  padding: 12px 14px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
}

.simulation-card a span {
  color: var(--lime);
  font-size: 18px;
}

.simulation-card .language-note {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.simulation-card--empty {
  grid-column: 1 / -1;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 1180px) {
  .topbar { gap: 18px; }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 52px;
  }
  .hero-copy {
    max-width: 760px;
    padding-left: 0;
    text-align: center;
    justify-self: center;
  }
  .hero-copy p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 660px; }
  .hub-wrap { width: min(920px, 100%); }
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 0;
  }
  .feature-strip article:nth-child(2) { border-right: 0; }
  .subject-picker { grid-template-columns: repeat(2, 1fr); }
  .simulation-grid { grid-template-columns: repeat(3, 1fr); }
  .browser-head { align-items: start; flex-direction: column; }
}

@media (max-width: 760px) {
  .page { padding: 12px; }
  .topbar {
    gap: 10px;
    min-height: 58px;
    padding: 4px 0;
  }
  .brand { gap: 11px; }
  .brand > span:last-child { font-size: clamp(24px, 8vw, 32px); }
  .atom-logo { width: 46px; height: 42px; }
  .atom-logo i { width: 42px; height: 15px; border-width: 2px; }
  .atom-logo b { width: 9px; height: 9px; }
  .nav { gap: 12px; }
  .nav a { min-height: 42px; font-size: 14px; }
  .nav a.nav-pill {
    min-height: 40px;
    gap: 8px;
    padding: 5px 6px 5px 14px;
  }
  .nav a.nav-pill span {
    width: 30px;
    height: 30px;
    font-size: 19px;
  }
  .access-status {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 42px;
    padding: 8px 14px;
  }
  .access-status span {
    max-width: none;
  }
  .access-form-grid,
  .access-admin-tools,
  .access-member {
    grid-template-columns: 1fr;
  }
  .access-dashboard-head,
  .access-admin-foot {
    flex-direction: column;
  }
  .access-close,
  .access-admin-foot button,
  .access-member button {
    width: 100%;
  }
  .god-shell {
    width: min(100% - 20px, 1440px);
    padding: 18px 0 34px;
  }
  .god-header,
  .god-school header {
    align-items: stretch;
    flex-direction: column;
  }
  .god-actions,
  .god-actions button,
  .god-search {
    width: 100%;
  }
  .god-stats,
  .god-school-metrics {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 28px;
    padding-top: 38px;
  }
  .hero-copy h1 { font-size: clamp(58px, 17vw, 88px); }
  .hero-copy p { font-size: 17px; }
  .class-tag { margin-bottom: 28px; }
  .hero-actions { gap: 16px; }
  .primary-action,
  .text-action {
    width: 100%;
    justify-content: center;
  }
  .hero-art {
    min-height: auto;
    display: block;
  }
  .chip,
  .spark,
  .burst,
  .connector-map {
    display: none;
  }
  .sticky-note {
    position: relative;
    left: auto;
    top: auto;
    width: 116px;
    margin: 0 0 -28px 4px;
  }
  .hub-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
  }
  .subject-hub {
    width: 132%;
    max-width: none;
    transform: translateX(-12%);
  }
  .hub-hotspot {
    display: none;
  }
  .paper-note {
    position: relative;
    right: auto;
    bottom: auto;
    width: 156px;
    margin: -20px 8px 0 auto;
  }
  .feature-strip {
    grid-template-columns: 1fr;
    margin: 0;
    padding: 22px;
  }
  .feature-strip article,
  .feature-strip article:nth-child(2) {
    grid-template-columns: 74px 1fr;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .feature-strip article:last-child { border-bottom: 0; }
  .feature-strip img {
    width: 62px;
    height: 62px;
  }
  .sim-hero {
    padding: 40px 0 24px;
    text-align: left;
  }
  .sim-hero h1 {
    font-size: clamp(38px, 10vw, 46px);
  }
  .sim-hero h1 span {
    display: block;
  }
  .sim-hero > p:not(.sim-kicker) {
    max-width: min(340px, calc(100vw - 32px));
    margin-inline: 0;
  }
  .subject-picker {
    grid-template-columns: 1fr;
    padding: 0 0 34px;
  }
  .subject-card {
    min-height: 210px;
    padding: 22px;
    border-radius: 22px;
  }
  .subject-card--image {
    min-height: 0;
    padding: 0;
  }
  .simulation-browser {
    margin: 0 0 18px;
    padding: 20px;
    border-radius: 24px;
  }
  .simulation-grid {
    grid-template-columns: 1fr;
  }
  .simulation-card {
    min-height: 190px;
  }
}

@media (max-width: 430px) {
  .subject-hub {
    width: 155%;
    transform: translateX(-18%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
