:root {
  color-scheme: dark;
  --ink: #f3f6f9;
  --muted: #9baab8;
  --muted-strong: #c7d3dd;
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.22);
  --panel: rgba(21, 29, 38, 0.86);
  --panel-solid: #151d26;
  --panel-deep: #0b1117;
  --canvas: #090e13;
  --teal: #32e1bf;
  --teal-soft: rgba(50, 225, 191, 0.1);
  --teal-line: rgba(50, 225, 191, 0.3);
  --teal-dark: #0f8f7b;
  --amber: #f2bb5c;
  --blue: #73a7ff;
  --danger: #ff8f8f;
  --content-width: 1180px;
  --radius-control: 11px;
  --radius-panel: 20px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(
      circle at 75% -10%,
      rgba(50, 225, 191, 0.15),
      transparent 32rem
    ),
    radial-gradient(
      circle at -10% 30%,
      rgba(115, 167, 255, 0.09),
      transparent 30rem
    ),
    var(--canvas);
  color: var(--ink);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 14, 19, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(50, 225, 191, 0.45);
  border-radius: 10px;
  background: rgba(50, 225, 191, 0.1);
  color: var(--teal);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.topbar nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-underline-offset: 0.45rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

button,
.link-button {
  border: 0;
  border-radius: var(--radius-control);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.2rem;
}

.primary {
  background: var(--teal);
  color: #04120f;
  box-shadow: 0 12px 35px rgba(50, 225, 191, 0.14);
}

.primary:hover,
.primary:focus-visible {
  background: #79efd9;
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--ink);
}

.secondary:hover,
.secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    gap: 1rem;
    padding-block: 1rem;
  }

  .topbar nav {
    max-width: 62vw;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem 1rem;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar nav {
    width: 100%;
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0.15rem 0 0.35rem;
    scrollbar-width: thin;
  }

  .topbar nav a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
