/* ==========================================================================
   The Circuit — home
   ========================================================================== */

.hero {
  position: relative;
  min-height: min(86dvh, 780px);
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(10,6,24,0.94) 0%, rgba(10,6,24,0.72) 42%, rgba(10,6,24,0.28) 100%),
    linear-gradient(180deg, transparent 50%, rgba(10,6,24,0.85));
}
.hero__scrim::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 34%; height: 22%;
  background: linear-gradient(to top left, var(--void) 20%, transparent);
}
.hero__in {
  padding: 96px 0 56px;
  max-width: 640px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(26px, 5.4vw, 62px);
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  display: block;
}
.hero__sub {
  margin: 0 0 26px;
  color: var(--fog);
  font-size: 18px;
  max-width: 46ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hero__micro { margin: 0; font-size: 12px; color: var(--fog); font-family: var(--mono); }

@media (max-width: 640px) {
  .hero__in { padding: 72px 0 40px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__sub, .hero__micro { overflow-wrap: anywhere; }
  .sect__head { flex-direction: column; align-items: flex-start; }
}

/* month ladder */
.ladder {
  background: var(--indigo);
  border-block: 1px solid var(--line);
  padding: 28px 0;
}
.ladder__row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.rung {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 6, 24, 0.45);
  position: relative;
}
.rung::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: 0;
  height: 2px;
  background: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
}
.rung.is-live {
  border-color: var(--gold);
}
.rung.is-live::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.rung__w {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}
.rung__v {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 700;
  margin-top: 4px;
  color: var(--white);
}

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

.sect { padding: 72px 0; }
.sect__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}
.sect__head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  max-width: 18ch;
}
.sect__note { margin: 0; color: var(--fog); max-width: 30ch; font-size: 15px; }

/* device-frame gallery */
.devices {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.device {
  display: block;
  text-decoration: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(230,60,255,0.08);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.device:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}
.device__screen {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
  position: relative;
}
.device__screen img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.device__bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0d0820;
  border-top: 1px solid var(--line);
}
.device__bar i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--magenta);
  display: block;
}
.device__body { padding: 18px 20px 20px; }
.device__body h3 {
  margin: 4px 0 6px;
  font-size: 22px;
}
.device__body p { margin: 0; color: var(--fog); font-size: 14px; }
.device--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; }
.device--wide .device__screen { aspect-ratio: auto; min-height: 240px; }
.device--wide .device__bar { display: none; }

@media (max-width: 800px) {
  .devices, .device--wide { grid-template-columns: 1fr; }
}

/* screens steps */
.screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.screen {
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.screen h3 { margin: 8px 0; font-size: 22px; }
.screen p { margin: 0; color: var(--fog); font-size: 15px; }

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

.sect__cta {
  margin-top: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sect__cta p { margin: 0; color: var(--fog); }

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  background: none;
  border: 0;
  color: var(--white);
  padding: 18px 0;
  min-height: 56px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}
.faq__ic {
  width: 18px; height: 18px; position: relative; flex-shrink: 0; margin-top: 4px;
}
.faq__ic::before, .faq__ic::after {
  content: "";
  position: absolute;
  background: var(--gold);
  top: 50%; left: 50%;
}
.faq__ic::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq__ic::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq__item.open .faq__ic::after { opacity: 0; }
.faq__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--ease); }
.faq__item.open .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__a { margin: 0 0 20px; color: var(--fog); max-width: 62ch; }
.faq__a a { color: var(--gold); }


/* 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;
  }
}
