:root {
  color-scheme: light;
  --ink-strong: #13111f;
  --ink: #27223b;
  --muted: #66607a;
  --surface: #faf9fc;
  --brand: #5f46bf;
  --brand-strong: #4936a2;
  --brand-soft: #ede8fb;
  --border: #ddd4ef;
  --card: #ffffff;
  --shadow-soft: 0 16px 30px rgba(19, 17, 31, 0.08);
  --shadow-strong: 0 26px 60px rgba(35, 28, 74, 0.16);
  --radius-pill: 999px;
  --max-content: 1320px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Nunito Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8f6ff 0%, #efeaf9 32%, var(--surface) 60%);
}

h1,
h2,
h3,
h4,
.section-kicker {
  font-family: "Nunito Sans", "Avenir Next", sans-serif;
  color: var(--ink-strong);
}

.brand-word {
  font-family: "Dongle", "Nunito Sans", "Avenir Next", sans-serif;
  color: #563b80;
}

.page-shell {
  width: min(var(--max-content), calc(100vw - 24px));
  margin: 0 auto;
}

.topbar-wrap {
  position: sticky;
  top: 14px;
  z-index: 20;
  padding-top: 16px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(238, 227, 255, 0.78);
  box-shadow: 0 18px 36px rgba(48, 36, 105, 0.12);
  backdrop-filter: blur(8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(19, 17, 31, 0.2);
}

.brand-word {
  font-size: 36px;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1;
  transform: translateY(2px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 18px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink-strong);
  background: var(--brand-soft);
  outline: none;
}

.cta {
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(73, 54, 162, 0.34);
  white-space: nowrap;
}

.site-footer {
  margin-top: 34px;
  background: #211731;
  color: #cbc6de;
  border-radius: 30px 30px 0 0;
}

.footer-inner {
  width: min(var(--max-content), calc(100vw - 24px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.footer-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-logo-text {
  color: #eee3ff;
  font-family: "Dongle", "Nunito Sans", "Avenir Next", sans-serif;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
  transform: translateY(1px);
}

.footer-col h4 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0edff;
}

.footer-col a {
  display: block;
  margin: 0 0 8px;
  text-decoration: none;
  color: #cbc6de;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #ffffff;
  outline: none;
}

.footer-bottom {
  width: min(var(--max-content), calc(100vw - 24px));
  margin: 0 auto;
  border-top: 1px solid #2a2441;
  padding: 16px 0 26px;
  color: #9f98b8;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .topbar-wrap {
    position: static;
  }

  .topbar {
    border-radius: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-footer {
    border-radius: 24px 24px 0 0;
  }
}
