:root {
  color-scheme: dark;
  --blue: #0d49ff;
  --blue-deep: #061444;
  --white: #f8fbff;
  --ice: #d9edff;
  --cyan: #67d8ff;
  --red: #ff2b2b;
  --amber: #ffc05c;
  --green: #5cffaa;
  --shadow: rgba(0, 0, 0, .7);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100svh;
  overflow-x: hidden;
  background: #02050b;
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

.stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #02050b;
}

.stage::before,
.stage::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.stage::before {
  z-index: 2;
  background:
    radial-gradient(circle at 70% 14%, rgba(255, 255, 255, .16), transparent 23%),
    linear-gradient(115deg, rgba(7, 12, 17, .12) 0%, rgba(255, 255, 255, .08) 42%, rgba(1, 5, 12, .28) 62%, rgba(0, 0, 0, .62) 100%);
  mix-blend-mode: screen;
}

.stage::after {
  z-index: 16;
  opacity: .16;
  background:
    repeating-linear-gradient(to bottom, rgba(255, 255, 255, .12) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 50% 50%, transparent 0 58%, rgba(0, 0, 0, .55) 100%);
}

.video-backdrop {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #02050b;
}

/* Background is either a looping video or a still image (afi-site-config.json). */
.video-backdrop video,
.video-backdrop img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.015);
  filter: brightness(.73) contrast(1.1) saturate(1.08);
}

.video-backdrop::before,
.video-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-backdrop::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .24) 0%, rgba(0, 0, 0, .06) 32%, rgba(0, 0, 0, .36) 70%, rgba(0, 0, 0, .8) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, transparent 22%, transparent 62%, rgba(0, 0, 0, .42) 100%);
}

.video-backdrop::after {
  background:
    radial-gradient(ellipse at 58% 58%, rgba(20, 91, 255, .26), transparent 28%),
    radial-gradient(ellipse at 86% 48%, rgba(255, 255, 255, .16), transparent 26%);
  mix-blend-mode: screen;
}

.audio-button {
  position: fixed;
  z-index: 24;
  right: clamp(22px, 3.4vw, 58px);
  bottom: clamp(24px, 4.4vh, 48px);
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03)),
    rgba(0, 0, 0, .42);
  color: var(--white);
  cursor: pointer;
  pointer-events: auto;
  opacity: .3;
  box-shadow: 0 0 18px rgba(16, 76, 255, .28), inset 0 0 18px rgba(255, 255, 255, .07);
}

.audio-button:hover,
.audio-button:focus-visible {
  outline: none;
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(103, 216, 255, .24), 0 0 22px rgba(103, 216, 255, .45), inset 0 0 18px rgba(255, 255, 255, .1);
}

.audio-button[aria-pressed="true"] {
  opacity: .3;
  border-color: rgba(92, 255, 170, .9);
  box-shadow: 0 0 24px rgba(92, 255, 170, .34), inset 0 0 18px rgba(92, 255, 170, .12);
}

.audio-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  overflow: visible;
}

.audio-speaker {
  fill: currentColor;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, .45));
}

.audio-wave {
  fill: none;
  stroke: currentColor;
  stroke-width: 5.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .38));
}

.audio-slash {
  fill: none;
  stroke-linecap: round;
  opacity: 1;
  transition: opacity .16s ease;
}

.audio-slash {
  stroke: #ff1515;
  stroke-width: 7.5;
  filter: drop-shadow(0 0 8px rgba(255, 21, 21, .95));
}

.audio-button[aria-pressed="true"] .audio-slash {
  opacity: 0;
}

/* Fixed, frosted primary navigation over the video hero. */
.site-nav {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: linear-gradient(180deg, rgba(3, 7, 13, .58) 0%, rgba(3, 7, 13, .30) 62%, rgba(3, 7, 13, .06) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  backdrop-filter: blur(13px) saturate(1.1);
  -webkit-backdrop-filter: blur(13px) saturate(1.1);
}

.site-nav-brand {
  flex: 0 0 auto;
  color: rgba(248, 251, 255, .9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
  transition: color .14s ease, text-shadow .14s ease;
}

.site-nav-brand .brand-ai {
  color: var(--cyan);
}

.site-nav-brand .brand-com {
  color: rgba(217, 237, 255, .62);
  font-size: .82em;
}

.site-nav-brand:hover,
.site-nav-brand:focus-visible {
  color: #fff;
  text-shadow: 0 0 14px rgba(103, 216, 255, .6);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.9vw, 26px);
}

.site-nav-links a {
  position: relative;
  color: rgba(233, 244, 255, .82);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(.9rem, 1.05vw, 1rem);
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .62);
  transition: color .14s ease, background-color .14s ease, border-color .14s ease;
}

.site-nav-links a:not(.site-nav-cta) {
  padding: 8px 2px;
}

.site-nav-links a:not(.site-nav-cta)::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  opacity: .85;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease;
}

.site-nav-links a:not(.site-nav-cta):hover,
.site-nav-links a:not(.site-nav-cta):focus-visible {
  color: #fff;
}

.site-nav-links a:not(.site-nav-cta):hover::after,
.site-nav-links a:not(.site-nav-cta):focus-visible::after {
  transform: scaleX(1);
}

/* "Sign in" reads as the entry action, but stays subtle and translucent. */
.site-nav-cta {
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #eef6ff;
}

.site-nav-cta:hover,
.site-nav-cta:focus-visible {
  border-color: rgba(103, 216, 255, .62);
  background: rgba(103, 216, 255, .16);
  color: #fff;
}

.site-nav-links a:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .85);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-nav-cta:focus-visible {
  border-radius: 999px;
}

.signup-zone {
  position: absolute;
  z-index: 22;
  left: clamp(42px, 4.6vw, 92px);
  bottom: clamp(66px, 6.9vh, 88px);
  display: grid;
  grid-template-columns: clamp(430px, 38vw, 700px) minmax(400px, 560px);
  gap: clamp(6px, .9vw, 14px);
  align-items: center;
}

.signup-title {
  margin: 0;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.55rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1.12;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, .8),
    0 0 12px rgba(255, 255, 255, .65);
}

.signup-title span {
  display: block;
}

.signup-art {
  display: block;
  width: 100%;
  height: auto;
  opacity: .94;
  pointer-events: none;
  user-select: none;
}

.signup-shell {
  position: relative;
  min-width: 0;
  transform: translateY(10px);
}

.signup-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  height: 66px;
  overflow: visible;
  border: 3px solid rgba(255, 255, 255, .8);
  border-radius: 8px;
  background: rgba(2, 5, 9, .54);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .52),
    0 0 24px rgba(255, 255, 255, .16),
    inset 0 0 26px rgba(0, 0, 0, .58);
  backdrop-filter: blur(5px);
}

.signup-form input[type="email"] {
  min-width: 0;
  width: 100%;
  border: 0;
  padding: 0 22px;
  background: transparent;
  color: var(--white);
  font-family: "Courier New", Courier, monospace;
  font-size: 1.25rem;
  font-weight: 700;
  outline: none;
  text-shadow: 0 0 7px rgba(255, 255, 255, .25);
}

.signup-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, .62);
  opacity: 1;
}

.signup-form:focus-within {
  border-color: var(--cyan);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .52),
    0 0 24px rgba(103, 216, 255, .38),
    inset 0 0 26px rgba(0, 0, 0, .58);
}

.submit-button {
  position: relative;
  z-index: 1;
  margin: 6px 5px 7px 0;
  border: 1px solid #8b806d;
  border-radius: 5px;
  background:
    linear-gradient(180deg, #fff5dc 0%, #eee1c3 45%, #cdbb95 100%);
  color: #252016;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .86),
    inset 0 -5px 0 rgba(90, 76, 50, .2),
    0 3px 0 #5b5344,
    0 7px 12px rgba(0, 0, 0, .5);
  transform: translateY(-1px);
  transition: filter .14s ease, transform .14s ease, box-shadow .14s ease;
}

.submit-button::before {
  content: "";
  position: absolute;
  inset: 5px 7px 9px;
  border-top: 1px solid rgba(255, 255, 255, .72);
  border-left: 1px solid rgba(255, 255, 255, .48);
  border-right: 1px solid rgba(84, 72, 52, .18);
  border-radius: 3px;
  pointer-events: none;
}

.submit-button:hover,
.submit-button:focus-visible {
  outline: none;
  filter: brightness(1.06);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .9),
    inset 0 -5px 0 rgba(90, 76, 50, .18),
    0 3px 0 #5b5344,
    0 0 0 3px rgba(255, 245, 220, .22),
    0 7px 14px rgba(0, 0, 0, .55);
}

.submit-button:active {
  transform: translateY(2px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, .72),
    inset 0 -2px 0 rgba(90, 76, 50, .22),
    0 1px 0 #5b5344,
    0 3px 8px rgba(0, 0, 0, .48);
}

.submit-button:disabled {
  cursor: wait;
  opacity: .58;
}

.keycap-label {
  position: relative;
  z-index: 1;
  display: grid;
  height: 100%;
  place-items: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .66);
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.signup-message {
  min-height: 20px;
  margin-top: 9px;
  color: var(--ice);
  font-family: "Courier New", Courier, monospace;
  font-size: .95rem;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 0, 0, .82);
  opacity: 1;
  transition: opacity .55s ease;
}

.signup-message.error {
  color: #ff8a8a;
}

.signup-message.success {
  color: var(--green);
}

.signup-message.is-fading {
  opacity: 0;
}

.view-count {
  position: fixed;
  z-index: 24;
  left: 7px;
  bottom: 6px;
  color: rgba(255, 255, 255, .18);
  font: 600 .68rem/1 "Courier New", Courier, monospace;
  user-select: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.seo-content {
  position: relative;
  z-index: 30;
  padding: clamp(24px, 5vw, 70px) clamp(16px, 5vw, 76px);
  background:
    radial-gradient(circle at 76% 0%, rgba(255, 43, 43, .12), transparent 28%),
    linear-gradient(180deg, rgba(2, 5, 11, .86), #02050b 28%, #030805 100%);
  color: var(--white);
}

.seo-link-row,
.seo-topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.seo-link-row {
  width: min(1120px, 100%);
  margin: 0 auto 18px;
}

.seo-link-row a,
.seo-topic-links a,
.seo-final-cta a {
  border: 1px solid rgba(92, 255, 170, .28);
  border-radius: 2px;
  background: rgba(0, 12, 5, .62);
  color: #dfffe7;
  padding: 9px 11px;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  text-decoration: none;
}

.seo-link-row a:hover,
.seo-topic-links a:hover,
.seo-final-cta a:hover,
.seo-link-row a:focus-visible,
.seo-topic-links a:focus-visible,
.seo-final-cta a:focus-visible {
  color: #fff;
  border-color: var(--green);
}

.seo-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 48px);
  border: 1px solid rgba(92, 255, 170, .28);
  border-radius: 2px;
  background:
    repeating-linear-gradient(180deg, rgba(92, 255, 170, .035) 0, rgba(92, 255, 170, .035) 1px, transparent 1px, transparent 5px),
    linear-gradient(180deg, rgba(0, 15, 7, .86), rgba(0, 7, 4, .78));
  box-shadow: inset 0 0 32px rgba(92, 255, 170, .07), 0 24px 90px rgba(0, 0, 0, .42);
}

.seo-eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-family: "Courier New", Courier, monospace;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.seo-panel h1 {
  max-width: 980px;
  margin: 0 0 16px;
  color: #f8fbff;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(2.15rem, 6vw, 4.8rem);
  line-height: .98;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(92, 255, 170, .28);
}

.seo-lede {
  max-width: 860px;
  margin: 0 0 24px;
  color: rgba(248, 251, 255, .88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.seo-grid section {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(92, 255, 170, .18);
  background: rgba(0, 0, 0, .18);
}

.seo-grid h2 {
  margin: 0 0 8px;
  color: var(--amber);
  font-family: "Courier New", Courier, monospace;
  font-size: 1rem;
  text-transform: uppercase;
}

.seo-grid p,
.seo-final-cta {
  margin: 0;
  color: rgba(248, 251, 255, .82);
  line-height: 1.6;
}

.seo-topic-links {
  margin-top: 24px;
}

.seo-final-cta {
  margin-top: 26px;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .signup-zone {
    left: 24px;
    right: auto;
    bottom: 70px;
    grid-template-columns: minmax(300px, 440px) minmax(300px, 440px);
    gap: 8px;
  }
}

@media (max-width: 860px) {
  .site-nav {
    padding: 11px clamp(14px, 4vw, 24px);
  }
}

@media (max-width: 430px) {
  .site-nav {
    justify-content: center;
  }

  .site-nav-brand {
    display: none;
  }
}

@media (max-width: 640px) {
  .audio-button {
    width: 50px;
    height: 50px;
    left: auto;
    right: 16px;
    top: auto;
    bottom: 16px;
    transform: none;
    border-color: rgba(255, 255, 255, .86);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .08)),
      rgba(0, 0, 0, .84);
    box-shadow: 0 0 22px rgba(16, 76, 255, .42), inset 0 0 18px rgba(255, 255, 255, .14);
  }

  .audio-icon {
    width: 39px;
    height: 39px;
  }

  .signup-zone {
    left: 16px;
    right: 16px;
    bottom: 74px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .signup-art {
    width: min(100%, 360px);
    margin-bottom: -2px;
  }

  .signup-form {
    grid-template-columns: minmax(0, 1fr) 74px;
    height: 54px;
    border-width: 2px;
  }

  .signup-form input[type="email"] {
    padding: 0 14px;
    font-size: 1rem;
  }

  .submit-button {
    margin: 5px 4px 6px 0;
    font-size: .9rem;
  }

  .signup-message {
    min-height: 16px;
    margin-top: 6px;
    font-size: .78rem;
  }

  .signup-shell {
    transform: none;
  }

  .seo-grid {
    grid-template-columns: 1fr;
  }

  .seo-link-row a,
  .seo-topic-links a {
    padding: 8px 9px;
    font-size: .88rem;
  }
}

@media (max-height: 720px) and (min-width: 760px) {
  .signup-zone {
    bottom: 24px;
  }

  .signup-title {
    font-size: 2.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
