:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface2: #fcfdff;
  --text: #0f172a;
  --muted: #526072;
  --muted2: #6b7a90;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 24px 56px rgba(15, 23, 42, 0.08);
  --shadow2: 0 12px 28px rgba(15, 23, 42, 0.06);
  --brand: #6d28d9;
  --brand2: #8b5cf6;
  --brand3: #ede9fe;
  --ink: #4c1d95;
  --radius: 20px;
  --radius2: 24px;
  --radius3: 14px;
  --container: 1180px;
  --anchor-offset: 104px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(
      1200px 700px at 50% -5%,
      rgba(139, 92, 246, 0.07),
      transparent 60%
    ),
    linear-gradient(180deg, #fbfcfe 0%, var(--bg) 100%);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html {
  scroll-padding-top: var(--anchor-offset);
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 40, 217, 0.42) rgba(15, 23, 42, 0.06);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(109, 40, 217, 0.42) rgba(15, 23, 42, 0.06);
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(139, 92, 246, 0.7),
    rgba(109, 40, 217, 0.78)
  );
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(139, 92, 246, 0.82),
    rgba(109, 40, 217, 0.9)
  );
}

section[id],
div[id] {
  scroll-margin-top: var(--anchor-offset);
}

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

.wrap {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

/* ===== Topbar ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 0 24px;
  width: 100%;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  letter-spacing: 0.2px;
  padding: 6px 8px;
  border-radius: 999px;
}

.brand-logo {
  display: block;
  width: clamp(96px, 10vw, 140px);
  max-width: 140px;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  margin-top: -10px;
  margin-bottom: -10px;
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(91, 33, 182, 0.95),
    rgba(168, 85, 247, 0.92)
  );
  box-shadow: 0 10px 20px rgba(91, 33, 182, 0.22);
  position: relative;
}

.logo:before,
.logo:after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  inset: 8px;
}

.logo:after {
  inset: 14px;
  border-color: rgba(255, 255, 255, 0.55);
}

nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.navlink {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.15px;
}

.navlink:hover {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.navlink.active {
  background: rgba(109, 40, 217, 0.1);
  border-color: rgba(109, 40, 217, 0.22);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.04);
}

.navlink.active:hover {
  background: rgba(109, 40, 217, 0.13);
  border-color: rgba(109, 40, 217, 0.28);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.96);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.btn.primary {
  border-color: rgba(109, 40, 217, 0.24);
  background: linear-gradient(
    135deg,
    rgba(109, 40, 217, 0.98),
    rgba(139, 92, 246, 0.98)
  );
  color: white;
  box-shadow: 0 14px 26px rgba(109, 40, 217, 0.2);
}

.btn.primary:hover {
  box-shadow: 0 18px 34px rgba(109, 40, 217, 0.28);
}

/* ===== Bands ===== */
.band {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: var(--shadow2);
  overflow: hidden;
}

.band + .band {
  margin-top: 24px;
}

.band .inner {
  padding: 36px;
  position: relative;
  z-index: 1;
}

.band:after {
  content: "";
  position: absolute;
  inset: -120px;
  pointer-events: none;
  opacity: 0.24;
  background:
    radial-gradient(
      560px 360px at 18% 22%,
      rgba(139, 92, 246, 0.18),
      transparent 62%
    ),
    radial-gradient(
      620px 420px at 88% 16%,
      rgba(109, 40, 217, 0.1),
      transparent 65%
    ),
    radial-gradient(
      520px 360px at 60% 95%,
      rgba(237, 233, 254, 0.65),
      transparent 62%
    );
  filter: blur(6px);
  z-index: 0;
}

.band:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,\
    <svg xmlns="http://www.w3.org/2000/svg" width="180" height="180">\
      <filter id="n">\
        <feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="3" stitchTiles="stitch"/>\
      </filter>\
      <rect width="180" height="180" filter="url(%23n)" opacity="0.55"/>\
    </svg>');
  background-size: 180px 180px;
  mix-blend-mode: multiply;
}

.band-a {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(255, 255, 255, 0.94)
  );
}

.band-b {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(252, 252, 255, 0.94)
  );
}

.k {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  width: max-content;
}

.h2 {
  font-size: 30px;
  letter-spacing: -0.45px;
  margin-top: 10px;
  max-width: 36ch;
}

.lead {
  color: var(--muted);
  max-width: 84ch;
  font-size: 17px;
  margin-top: 12px;
  line-height: 1.65;
  margin-bottom: 12px;
}

.micro {
  color: var(--muted2);
  font-size: 13px;
  margin-top: 16px;
  font-weight: 650;
}

.row {
  margin-top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.card {
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  padding: 18px;
  min-height: 160px;
}

.card .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.98);
  font-size: 12px;
  font-weight: 900;
  color: #334155;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(109, 40, 217, 0.96),
    rgba(139, 92, 246, 0.95)
  );
  box-shadow: 0 8px 16px rgba(109, 40, 217, 0.16);
}

.icon {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(109, 40, 217, 0.14);
  background: rgba(109, 40, 217, 0.08);
  color: rgba(109, 40, 217, 0.96);
  font-weight: 950;
  box-shadow: none;
  user-select: none;
  flex: 0 0 auto;
}

.u-min-140 {
  min-height: 140px;
}

.u-min-150 {
  min-height: 150px;
}

/* ===== Footer ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.site-footer {
  margin-top: 24px;
  padding: 48px 0 40px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(
      820px 460px at 10% 0%,
      rgba(139, 92, 246, 0.11),
      transparent 60%
    ),
    radial-gradient(
      860px 520px at 92% 10%,
      rgba(237, 233, 254, 0.8),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.48));
}

.footer-card {
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.96),
    rgba(255, 255, 255, 0.9)
  );
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

.footer-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.18),
    rgba(237, 233, 254, 0.1),
    rgba(255, 255, 255, 0)
  );
  opacity: 0.55;
  filter: blur(20px);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  padding: 18px 18px 20px;
  align-items: stretch;
}

.brand-panel,
.link-panel {
  height: 100%;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(252, 252, 255, 0.94)
  );
  box-shadow: var(--shadow2);
  padding: 16px 16px 14px;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.98),
    rgba(168, 85, 247, 0.92)
  );
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.18);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: -45% -55%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.55),
    transparent 58%
  );
  transform: rotate(12deg);
}

.brand-title {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-size: 30px;
  font-weight: 980;
  color: var(--text);
}

.brand-tagline {
  margin: 4px 0 0;
  font-size: 12.8px;
  color: rgba(51, 65, 85, 0.86);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52ch;
}

.brand-sub {
  margin: 12px 0 0;
  color: rgba(51, 65, 85, 0.92);
  font-size: 13.2px;
  line-height: 1.7;
  max-width: 62ch;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.panel-title {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 980;
  color: rgba(124, 58, 237, 0.86);
}

.panel-meta {
  font-size: 12px;
  color: rgba(51, 65, 85, 0.78);
  white-space: nowrap;
}

.link-list {
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.link-list li {
  margin: 0;
}

.link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.88);
  font-size: 13.2px;
  font-weight: 900;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
  border-radius: 14px;
}

.link:hover {
  background: rgba(124, 58, 237, 0.05);
  transform: translateY(-1px);
}

.link .hint {
  font-size: 11.5px;
  font-weight: 850;
  color: rgba(51, 65, 85, 0.62);
  margin-left: 10px;
  white-space: nowrap;
}

.link .go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: linear-gradient(
    135deg,
    rgba(124, 58, 237, 0.12),
    rgba(240, 171, 252, 0.1)
  );
  color: rgba(15, 23, 42, 0.7);
  font-weight: 950;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}

.link:hover .go {
  transform: translateX(1px);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.55);
  color: rgba(51, 65, 85, 0.95);
  font-size: 12.5px;
}

.footer-bottom--center {
  justify-content: center;
  text-align: center;
}

.footer-strong {
  color: var(--text);
}

.footer-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.74);
  color: rgba(15, 23, 42, 0.88);
  font-size: 12px;
  font-weight: 950;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.chip:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 171, 252, 0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand-title {
    font-size: 28px;
  }

  .brand-tagline {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .brand-title {
    font-size: 26px;
  }

  .panel-meta {
    display: none;
  }
}

/* ===== Utilities ===== */
.u-row-tight {
  margin-top: 0;
}

.u-row-center {
  justify-content: center;
}

.u-row-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.u-text-center {
  text-align: center;
}

.u-mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.u-max-68ch {
  max-width: 68ch;
}

.u-max-60ch {
  max-width: 60ch;
}

.u-max-72ch {
  max-width: 72ch;
}

.u-max-46ch {
  max-width: 46ch;
}

.u-max-760 {
  max-width: 760px;
}

.u-w-100 {
  width: 100%;
}

.u-mt-14 {
  margin-top: 14px;
}

.u-mt-16 {
  margin-top: 16px;
}

.u-mt-18 {
  margin-top: 18px;
}

.u-mt-22 {
  margin-top: 22px;
}

.u-mt-24 {
  margin-top: 24px;
}

.u-mt-0 {
  margin-top: 0;
}

.u-rel {
  position: relative;
}

.u-spacer-10 {
  height: 10px;
}

.u-spacer-8 {
  height: 8px;
}

.u-text-12 {
  font-size: 12px;
}

.u-micro-center {
  position: relative;
  text-align: center;
  margin-top: 18px;
}

.u-micro-center-sm {
  position: relative;
  text-align: center;
  margin-top: 16px;
}

.u-centered-copy {
  margin-left: auto;
  margin-right: auto;
  max-width: 68ch;
}

.u-centered-block {
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 1100px) {
  :root {
    --anchor-offset: 120px;
  }

  .wrap {
    width: 92vw;
  }

  nav {
    display: none;
  }

  .topbar {
    border-radius: 18px;
  }

  .band .inner {
    padding: 26px;
  }
}

@media (max-width: 520px) {
  :root {
    --anchor-offset: 136px;
  }
}
