/* ==========================================================================
   The Circuit (theme-5)
   Magenta / gold / void. Device frames. Not felt, not cyan grid, not passs.
   ========================================================================== */

:root {
  --void: #0a0618;
  --indigo: #1a0b3a;
  --panel: #140c2a;
  --magenta: #e63cff;
  --magenta-dim: #9b1ad4;
  --gold: #f5c542;
  --ice: #9af0ff;
  --fog: #c9c4de;
  --white: #f6f3ff;
  --line: rgba(230, 60, 255, 0.22);
  --display: "Chakra Petch", system-ui, sans-serif;
  --ui: "Manrope", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
  --wrap: 1140px;
  --nav: 68px;
  --glow: 0 0 24px rgba(230, 60, 255, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(230, 60, 255, 0.16), transparent 50%),
    radial-gradient(800px 400px at 0% 100%, rgba(245, 197, 66, 0.08), transparent 45%),
    var(--void);
  color: var(--white);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip {
  position: absolute;
  left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px;
  background: var(--gold);
  color: var(--void);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

.kicker {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav);
  overflow: visible;
  background: rgba(10, 6, 24, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav.is-tight { --nav: 58px; }
.nav__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.brand__bezel {
  width: 28px; height: 34px;
  border: 1.5px solid var(--magenta);
  border-radius: 5px;
  box-shadow: var(--glow);
  position: relative;
}
.brand__bezel::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4px;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--gold);
}
.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav__menu {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.nav__links { display: flex; gap: 16px; }
.nav__links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--fog);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__act { display: flex; align-items: center; gap: 12px; }
.nav__login {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--magenta);
  background: rgba(230, 60, 255, 0.08);
  position: relative;
  border-radius: 8px;
  margin-left: auto;
  z-index: 2;
  flex-shrink: 0;
  box-shadow: var(--glow);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute; left: 12px;
  width: 18px; height: 2px;
  background: var(--white);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 480px) {
  .brand__name { font-size: 14px; letter-spacing: 0.02em; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav__menu { display: none; }
  .nav.is-open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--indigo);
    padding: 12px 20px 20px;
    gap: 6px;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__links { flex-direction: column; gap: 0; }
  .nav.is-open .nav__links a { min-height: 48px; border-bottom: 1px solid var(--line); }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
.btn--mag {
  background: linear-gradient(180deg, #f06aff, var(--magenta) 55%, var(--magenta-dim));
  color: var(--white);
  box-shadow: var(--glow);
}
.btn--gold {
  background: var(--gold);
  color: var(--void);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---------- footer ---------- */

.foot {
  padding: 48px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--fog);
  font-size: 14px;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
}
.foot h3 {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 400;
  text-transform: uppercase;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 0 0 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
}
.foot--slim { padding-top: 24px; }
.foot--slim .foot__legal { border: 0; padding-top: 0; }

@media (max-width: 800px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .foot__grid { grid-template-columns: 1fr; }
  .foot__legal { flex-direction: column; }
}

.tlink { color: var(--gold); }
:focus-visible { outline: 2px solid var(--magenta); outline-offset: 3px; }

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


/* generated footer/legal polish */
.domain-note {
  padding: clamp(28px, 5vw, 56px) 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.domain-note .wrap {
  max-width: min(1120px, calc(100% - 40px));
}
.domain-note .eyebrow {
  margin-bottom: 10px;
}
.domain-note h2 {
  max-width: 19ch;
  margin: 0 0 14px !important;
  font-size: clamp(1.45rem, 3vw, 2.6rem) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}
.domain-note .body-copy {
  max-width: 76ch;
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.legal-address {
  box-sizing: border-box;
  width: 100%;
  max-width: 76ch;
  margin-top: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  font-size: clamp(12px, 0.92vw, 14px);
  line-height: 1.55;
}
.legal-address p {
  max-width: none !important;
  margin: 0 !important;
}
.legal-address p + p {
  margin-top: 8px !important;
}
.legal-address strong {
  color: inherit;
  font-weight: 700;
}
.legal-address__note {
  opacity: 0.86;
}
.ftr__bot,
.foot__legal,
.footer-grid,
.footer-inner {
  flex-wrap: wrap;
}
.ftr__bot .legal-address,
.foot__legal .legal-address {
  flex: 1 1 100%;
}
.footer .legal-address {
  grid-column: 1 / -1;
}
.footer-inner .legal-address,
.footer-grid .legal-address {
  flex: 1 1 100%;
}
.legal-address--standalone {
  display: block;
  max-width: min(960px, calc(100% - 32px));
  margin: 24px auto;
}
@media (max-width: 560px) {
  .domain-note .wrap {
    max-width: calc(100% - 32px);
  }
  .legal-address {
    padding: 14px 15px;
  }
}
