:root {
  --bg: #f4f0fe;
  --panel: #d9d8f7;
  --mid: #a6b0e3;
  --brand: #414875;

  --ink: #15172a;
  --muted: rgba(65, 72, 117, 0.78);
  --muted2: rgba(65, 72, 117, 0.62);

  --surface: rgba(255, 255, 255, 0.76);
  --surface2: rgba(255, 255, 255, 0.58);
  --stroke: rgba(65, 72, 117, 0.16);
  --stroke2: rgba(65, 72, 117, 0.10);

  --shadow: 0 22px 60px rgba(65, 72, 117, 0.16);
  --shadow2: 0 12px 30px rgba(65, 72, 117, 0.12);
  --radius: 20px;
  --radius2: 14px;
  --ring: 0 0 0 5px rgba(166, 176, 227, 0.35);

  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(900px 540px at 12% -5%, rgba(166, 176, 227, 0.75), transparent 60%),
    radial-gradient(820px 520px at 95% 0%, rgba(217, 216, 247, 0.95), transparent 58%),
    radial-gradient(900px 640px at 55% 110%, rgba(65, 72, 117, 0.10), transparent 60%),
    repeating-linear-gradient(135deg, rgba(65, 72, 117, 0.05) 0 1px, transparent 1px 14px),
    var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(166, 176, 227, 0.45);
}

.hidden {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 44px));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.w100 {
  width: 100%;
}

/* Header */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--stroke2);
  background: linear-gradient(180deg, rgba(244, 240, 254, 0.80), rgba(244, 240, 254, 0.55));
  backdrop-filter: blur(14px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}

.brandRow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brandRow__logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--stroke2);
  box-shadow: 0 10px 22px rgba(65, 72, 117, 0.10);
}

.brandRow__text {
  font-weight: 950;
  letter-spacing: -0.35px;
  color: var(--brand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__link {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: rgba(65, 72, 117, 0.92);
  font-weight: 800;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.nav__link:hover {
  border-color: var(--stroke2);
  background: rgba(255, 255, 255, 0.70);
  transform: translateY(-1px);
}

.nav__link:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Buttons */

.btn {
  appearance: none;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 11px 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.80);
  color: var(--brand);
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(65, 72, 117, 0.08);
  transition: transform 0.10s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow2);
  border-color: rgba(65, 72, 117, 0.20);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn--primary,
.btn--solid {
  background: linear-gradient(135deg, rgba(166, 176, 227, 0.96), rgba(217, 216, 247, 0.96));
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.0);
  box-shadow: none;
}

.btn--soft {
  background: rgba(255, 255, 255, 0.88);
}

/* Layout */

.page {
  padding: 26px 0 54px;
}

.pageTitle {
  margin: 0;
  font-size: clamp(28px, 3.3vw, 44px);
  letter-spacing: -0.75px;
  color: var(--brand);
  line-height: 1.06;
}

.pageLead {
  margin: 12px 0 0;
  max-width: 72ch;
  line-height: 1.7;
  color: rgba(21, 23, 42, 0.86);
}

.hero {
  padding: 28px 0 10px;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: start;
}

.heroCard {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(900px 420px at 30% 0%, rgba(166, 176, 227, 0.38), transparent 62%),
    linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.62));
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.heroCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(65, 72, 117, 0.18);
}

.heroCard__pad {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

.span12 {
  grid-column: span 12;
}

.span8 {
  grid-column: span 8;
}

.span6 {
  grid-column: span 6;
}

.span4 {
  grid-column: span 4;
}

.stack {
  display: grid;
  gap: 12px;
}

/* Cards */

.card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 70px rgba(65, 72, 117, 0.18);
}

.card--soft {
  background: var(--surface2);
}

.card__pad {
  padding: 16px;
}

.cardTitle {
  margin: 0;
  font-size: 16px;
  color: rgba(21, 23, 42, 0.92);
  letter-spacing: -0.25px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke2);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(65, 72, 117, 0.92);
  font-weight: 900;
  font-size: 12px;
}

/* Forms */

form {
  margin: 0;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-weight: 900;
  color: rgba(65, 72, 117, 0.92);
  font-size: 13px;
}

input,
textarea,
select {
  width: 100%;
  border-radius: var(--radius2);
  border: 1px solid rgba(65, 72, 117, 0.18);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
  color: rgba(21, 23, 42, 0.94);
  transition: box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(65, 72, 117, 0.55);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(65, 72, 117, 0.34);
  box-shadow: var(--ring);
}

.alert {
  padding: 12px 14px;
  border-radius: var(--radius2);
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.78);
  color: rgba(21, 23, 42, 0.92);
}

.alert--error {
  border-color: rgba(146, 60, 86, 0.30);
  background: rgba(244, 210, 224, 0.70);
}

.alert--ok {
  border-color: rgba(48, 120, 94, 0.28);
  background: rgba(200, 236, 222, 0.74);
}

/* Auth */

.authShell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 34px 0 54px;
  position: relative;
}

.authOrbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  filter: blur(22px);
  opacity: 0.85;
  border-radius: 999px;
  transform: translate3d(0, 0, 0);
  animation: floaty 10s ease-in-out infinite;
}

.orb.o1 {
  width: 420px;
  height: 420px;
  left: -120px;
  top: -140px;
  background: radial-gradient(circle at 30% 30%, rgba(166, 176, 227, 0.95), rgba(166, 176, 227, 0.10));
}

.orb.o2 {
  width: 460px;
  height: 460px;
  right: -180px;
  bottom: -180px;
  animation-duration: 12s;
  background: radial-gradient(circle at 30% 30%, rgba(217, 216, 247, 0.95), rgba(217, 216, 247, 0.10));
}

@keyframes floaty {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 14px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.authCard {
  width: min(540px, calc(100% - 44px));
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background:
    radial-gradient(900px 420px at 30% 0%, rgba(166, 176, 227, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
  box-shadow: var(--shadow);
  position: relative;
}

.authTitle {
  margin: 12px 0 0;
  font-size: 30px;
  letter-spacing: -0.55px;
  color: var(--brand);
  line-height: 1.1;
}

.authFooter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pillLink {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--stroke2);
  font-weight: 900;
  color: rgba(65, 72, 117, 0.92);
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.pillLink:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
  border-color: rgba(65, 72, 117, 0.18);
}

.pillLink:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

/* Problem rows */

.problemRow {
  display: grid;
  gap: 10px;
}

.problemRow__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.problemRow__title {
  font-weight: 950;
  color: rgba(21, 23, 42, 0.94);
  letter-spacing: -0.25px;
}

.problemRow__meta {
  color: var(--muted);
  font-size: 12px;
}

.problemRow__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Map */

.mapBox {
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 280px at 22% 20%, rgba(166, 176, 227, 0.55), transparent 70%),
    radial-gradient(520px 320px at 82% 70%, rgba(217, 216, 247, 0.95), transparent 65%),
    rgba(255, 255, 255, 0.48);
}

.mapBox__overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke2);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
  display: grid;
  gap: 8px;
}

/* Footer */

.foot {
  padding: 22px 0 44px;
}

.foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted2);
}

@media (max-width: 920px) {
  .heroGrid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .span12,
  .span8,
  .span6,
  .span4 {
    grid-column: span 6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none;
  }

  .btn,
  .nav__link,
  .pillLink,
  .card,
  .heroCard {
    transition: none;
  }
}