:root {
  --bg: #050505;
  --panel: #0b0d0e;
  --panel-soft: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.14);
  --silver: #c7c7c7;
  --muted: #8a8a8a;
  --white: #f5f5f0;
  --purple: #7b2cff;
  --chrome: #e1e1dc;
  --black: #020202;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.055), transparent 28rem),
    linear-gradient(180deg, #070707 0%, var(--bg) 34%, #030303 100%);
  color: var(--silver);
  font-family: Arial, Helvetica, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(circle at center, black, transparent 70%);
}

.background-light {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 74% 24%, rgba(210, 210, 204, 0.12), transparent 24rem),
    radial-gradient(ellipse at 18% 72%, rgba(210, 210, 204, 0.07), transparent 22rem);
  filter: blur(8px);
}

.background-light::before,
.background-light::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.16;
  will-change: transform;
}

.background-light::before {
  width: 34rem;
  height: 24rem;
  top: 12%;
  left: 12%;
  background: rgba(210, 210, 204, 0.18);
  animation: ambientDriftOne 31s ease-in-out infinite alternate;
}

.background-light::after {
  width: 22rem;
  height: 18rem;
  right: 18%;
  bottom: 18%;
  background: rgba(123, 44, 255, 0.055);
  animation: ambientDriftTwo 27s ease-in-out infinite alternate;
}

@keyframes ambientDriftOne {
  to {
    transform: translate3d(9vw, 7vh, 0) scale(1.08);
  }
}

@keyframes ambientDriftTwo {
  to {
    transform: translate3d(-7vw, -5vh, 0) scale(1.12);
  }
}

a {
  color: inherit;
}

.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10000;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(199, 199, 199, 0.72), rgba(123, 44, 255, 0.38));
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.intro-pending body {
  overflow: hidden;
}

.intro-pending .site-header,
.intro-pending main {
  opacity: 0;
}

.intro-pending main {
  transform: translateY(12px);
}

.intro-revealing .site-header,
.intro-revealing main {
  opacity: 1;
}

.intro-revealing .site-header {
  transition: opacity 760ms cubic-bezier(0.22, 1, 0.36, 1) 700ms;
}

.intro-revealing main {
  transform: translateY(0);
  transition:
    opacity 820ms cubic-bezier(0.22, 1, 0.36, 1) 760ms,
    transform 820ms cubic-bezier(0.22, 1, 0.36, 1) 760ms;
}

.logo-intro {
  display: none;
}

.intro-pending .logo-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
  background:
    radial-gradient(circle at 50% 50%, rgba(245, 245, 240, 0.045), transparent 23rem),
    var(--bg);
  pointer-events: auto;
}

.intro-brand {
  --intro-x: 0px;
  --intro-y: 0px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(3.15);
  transform-origin: center;
  filter: blur(7px) drop-shadow(0 0 34px rgba(123, 44, 255, 0.28));
  opacity: 0.92;
  will-change: transform, filter, opacity;
}

.logo-intro.is-animating .intro-brand {
  animation: surgeLogoIntro 1.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.logo-intro.is-done {
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

@keyframes surgeLogoIntro {
  0% {
    transform: translate(-50%, -50%) scale(3.15);
    filter: blur(7px) drop-shadow(0 0 34px rgba(123, 44, 255, 0.28));
    opacity: 0.9;
  }

  26% {
    filter: blur(2px) drop-shadow(0 0 24px rgba(123, 44, 255, 0.22));
    opacity: 1;
  }

  100% {
    transform: translate(calc(-50% + var(--intro-x)), calc(-50% + var(--intro-y))) scale(1);
    filter: blur(0) drop-shadow(0 0 0 rgba(123, 44, 255, 0));
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-intro {
    display: none !important;
  }

  .site-header,
  main {
    opacity: 1 !important;
    transition: none !important;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.8rem;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 1.65rem;
  height: 1.9rem;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  left: 0.12rem;
  width: 1.35rem;
  height: 0.62rem;
  content: "";
  border-radius: 999px 999px 999px 5px;
  background: var(--purple);
  transform: rotate(-28deg);
}

.brand-mark::before {
  top: 0.32rem;
}

.brand-mark::after {
  top: 0.98rem;
  transform: rotate(-28deg) scaleX(1.06);
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.nav-links a:hover {
  color: var(--white);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  min-height: calc(100vh - 4.8rem);
  padding: clamp(3.6rem, 8vw, 7rem) 0;
}

.hero-copy,
.contact-section,
.section-copy {
  text-align: center;
}

.hero-copy {
  max-width: 42rem;
  justify-self: center;
}

.label {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.2rem;
  color: var(--white);
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

h2 {
  margin-bottom: 1rem;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 4.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}

h1,
h2 {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.65),
    0 0 48px rgba(255, 255, 255, 0.035);
}

.aurora-text {
  display: inline-block;
  color: transparent;
  background:
    linear-gradient(100deg, var(--chrome) 0%, rgba(138, 138, 138, 0.92) 34%, rgba(123, 44, 255, 0.46) 54%, var(--white) 72%, var(--silver) 100%);
  background-size: 320% 100%;
  background-position: 0% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: restrainedAurora 7.5s ease-in-out infinite;
}

.aurora-text.aurora-active {
  color: transparent;
}

@keyframes restrainedAurora {
  0% {
    background-position: 0% 50%;
    filter: brightness(0.92);
  }

  45% {
    background-position: 82% 50%;
    filter: brightness(1.08);
  }

  100% {
    background-position: 100% 50%;
    filter: brightness(1);
  }
}

h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-text,
.section-copy p,
.steps p,
.contact-section p {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.primary-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  border: 1px solid rgba(123, 44, 255, 0.7);
  border-radius: 999px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero .primary-button {
  animation: subtleCtaPulse 4.8s ease-in-out infinite;
}

.primary-button:hover {
  box-shadow: 0 0 28px rgba(123, 44, 255, 0.22);
  transform: translateY(-1px);
}

@keyframes subtleCtaPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(123, 44, 255, 0);
  }

  50% {
    box-shadow: 0 0 18px rgba(123, 44, 255, 0.18);
  }
}

.chrome-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  border: 1px solid rgba(245, 245, 240, 0.26);
  border-radius: 999px;
  background: rgba(245, 245, 240, 0.045);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.chrome-button:hover {
  border-color: rgba(245, 245, 240, 0.42);
  background: rgba(245, 245, 240, 0.07);
  transform: translateY(-1px);
}

.text-link {
  color: var(--silver);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.text-link:hover {
  color: var(--white);
}

.operator-board,
.preview-frame,
.steps article,
.contact-section {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 34px 80px rgba(0, 0, 0, 0.38);
}

.operator-board {
  position: relative;
  min-height: 33rem;
  padding: 1rem;
  overflow: hidden;
  border-radius: 22px;
}

.operator-board::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 65% 24%, rgba(255, 255, 255, 0.12), transparent 17rem),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  pointer-events: none;
}

.board-header,
.preview-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
}

.board-header span,
.board-header b,
.signal-grid span,
.routing-panel p,
.preview-hero p,
.mobile-preview p,
.steps span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.board-header b {
  color: var(--chrome);
  font-weight: 400;
}

.signal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.signal-grid article {
  min-height: 7rem;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: var(--panel-soft);
}

.signal-grid strong {
  display: block;
  margin-top: 1.8rem;
  color: var(--white);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.routing-panel {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  height: 13rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(0, 0, 0, 0.28);
}

.route-line {
  position: absolute;
  top: 50%;
  right: 9%;
  left: 9%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 245, 240, 0.45), transparent);
}

.node {
  position: absolute;
  width: 0.46rem;
  height: 0.46rem;
  border: 1px solid rgba(245, 245, 240, 0.85);
  background: var(--chrome);
  transform: rotate(45deg);
}

.node-a {
  top: calc(50% - 0.23rem);
  left: 18%;
}

.node-b {
  top: calc(50% - 0.23rem);
  left: 50%;
}

.node-c {
  top: calc(50% - 0.23rem);
  right: 18%;
}

.routing-panel p {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  margin: 0;
}

.how-section,
.preview-section,
.contact-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.how-section {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.steps article {
  min-height: 12rem;
  padding: 1.25rem;
  border-radius: 18px;
  text-align: left;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.steps article:hover {
  border-color: rgba(245, 245, 240, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent),
    var(--panel);
  transform: translateY(-2px);
}

.steps h3 {
  margin: 2.4rem 0 0.65rem;
}

.steps p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.preview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(24rem, 1.3fr);
  gap: 2rem;
  align-items: center;
}

.section-copy {
  text-align: left;
}

.preview-frame {
  position: relative;
  min-height: 30rem;
  padding: 1rem;
  border-radius: 24px;
}

.desktop-preview {
  height: 100%;
  min-height: 28rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.12), transparent 17rem),
    linear-gradient(135deg, #020202, #0d0f10 62%, #050505);
}

.preview-nav span {
  width: 2rem;
  height: 0.65rem;
  border: 1px solid rgba(245, 245, 240, 0.42);
}

.preview-nav i {
  display: block;
  width: 3rem;
  height: 1px;
  background: rgba(245, 245, 240, 0.24);
}

.preview-hero {
  display: grid;
  min-height: 22rem;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.preview-hero h3 {
  max-width: 26rem;
  margin: 0.6rem auto 1.4rem;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.preview-button {
  width: 8rem;
  height: 2.4rem;
  border: 1px solid rgba(245, 245, 240, 0.32);
  border-radius: 999px;
  background: rgba(245, 245, 240, 0.08);
}

.mobile-preview {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 9.5rem;
  min-height: 12rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(6, 6, 6, 0.82);
  backdrop-filter: blur(14px);
}

.mobile-preview span {
  display: block;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 2.8rem;
  border: 1px solid rgba(245, 245, 240, 0.22);
  border-radius: 50%;
}

.mobile-preview strong {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 400;
}

.contact-section {
  position: relative;
  overflow: hidden;
  margin: 0 0 5rem;
  border-radius: 24px;
  text-align: center;
}

.contact-section::before {
  position: absolute;
  inset: 0;
  content: "";
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 54deg, rgba(245, 245, 240, 0.34) 74deg, transparent 96deg, transparent 360deg);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.32;
  pointer-events: none;
  animation: chromeBorderBeam 9s linear infinite;
}

@keyframes chromeBorderBeam {
  to {
    transform: rotate(360deg);
  }
}

.contact-section h2 {
  max-width: 44rem;
  margin-right: auto;
  margin-left: auto;
}

.contact-section .chrome-button {
  margin-top: 1rem;
}

.faq-loading .faq-list {
  min-height: 30rem;
}

.faq-page {
  min-height: calc(100vh - 4.8rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.faq-heading {
  max-width: 58rem;
  margin: 0 auto clamp(2.4rem, 5vw, 4.5rem);
  text-align: center;
}

.faq-heading h1 {
  margin-bottom: 0;
}

.faq-list {
  max-width: 62rem;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem 0;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.faq-question span {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -0.015em;
}

.faq-question i {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border-right: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
  opacity: 0.72;
  transform: rotate(45deg);
  transition: opacity 180ms ease, transform 220ms ease;
}

.faq-question:hover i {
  opacity: 1;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 260ms ease;
}

.faq-answer p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.75;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  padding-bottom: 1.45rem;
}

.faq-item.is-open .faq-question i {
  transform: rotate(225deg);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(18rem, 1.2fr) minmax(12rem, 0.8fr) minmax(16rem, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 34px 80px rgba(0, 0, 0, 0.34);
}

.diagnostic-shell {
  display: grid;
  min-height: calc(100vh - 4.8rem);
  place-items: center;
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.diagnostic-card {
  width: min(760px, 100%);
  min-height: 32rem;
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 34px 80px rgba(0, 0, 0, 0.38);
  transition: opacity 240ms ease, transform 240ms ease;
}

.diagnostic-intro,
.diagnostic-question {
  animation: diagnosticSettle 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.diagnostic-intro {
  display: grid;
  min-height: 26rem;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.diagnostic-intro h1,
.diagnostic-question h1 {
  max-width: 42rem;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
}

.diagnostic-intro p,
.diagnostic-question p:not(.label):not(.diagnostic-error) {
  max-width: 38rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.7;
}

.diagnostic-start {
  margin-top: 1.4rem;
}

.diagnostic-intro small {
  display: block;
  margin-top: 0.85rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
}

.diagnostic-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.diagnostic-progress {
  position: relative;
  width: 5rem;
  height: 5rem;
  flex: 0 0 auto;
}

.diagnostic-progress svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-track,
.progress-value {
  fill: none;
  stroke-width: 5;
}

.progress-track {
  stroke: rgba(245, 245, 240, 0.13);
}

.progress-value {
  stroke: var(--purple);
  stroke-linecap: round;
  transition: stroke-dashoffset 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.diagnostic-progress span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--silver);
  font-size: 0.76rem;
  font-weight: 700;
}

.diagnostic-input {
  width: 100%;
  min-height: 3.6rem;
  margin-top: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
  font: inherit;
  padding: 0 1rem;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

textarea.diagnostic-input {
  min-height: 10rem;
  padding: 1rem;
  resize: vertical;
}

select.diagnostic-input {
  appearance: none;
}

.diagnostic-input:focus {
  border-color: rgba(245, 245, 240, 0.32);
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(245, 245, 240, 0.055);
}

.diagnostic-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.diagnostic-actions button,
.diagnostic-start,
.diagnostic-submit,
.diagnostic-next,
.diagnostic-back {
  cursor: pointer;
}

.diagnostic-error {
  margin: 0.8rem 0 0;
  color: var(--silver);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.diagnostic-contact-panel {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.diagnostic-contact-panel h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  letter-spacing: -0.025em;
}

.diagnostic-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.diagnostic-contact-grid label {
  display: grid;
}

.diagnostic-contact-grid label span {
  color: var(--silver);
  font-size: 0.82rem;
  font-weight: 700;
}

.diagnostic-contact-grid .diagnostic-input {
  margin-top: 0.5rem;
}

@keyframes diagnosticSettle {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-brand .brand {
  margin-bottom: 1.8rem;
}

.footer-title,
.footer-links p,
.footer-connect p {
  margin: 0 0 1.15rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-brand p:not(.footer-title),
.footer-connect small {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.footer-email {
  display: inline-flex;
  margin-top: 1.2rem;
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--silver);
  text-decoration: none;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-email:hover {
  color: var(--white);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.footer-socials a {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: var(--silver);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.footer-socials a:hover {
  border-color: rgba(245, 245, 240, 0.3);
  background: rgba(255, 255, 255, 0.035);
  color: var(--white);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  main {
    width: min(100% - 1rem, 1180px);
  }

  .hero,
  .preview-section {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .section-copy {
    max-width: none;
    justify-self: stretch;
    text-align: center;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }

  .diagnostic-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-actions {
    align-items: center;
    flex-direction: column;
  }

  .operator-board,
  .preview-frame {
    border-radius: 18px;
  }

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

  .routing-panel {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 0.75rem;
  }

  .mobile-preview {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
  }

  .preview-frame {
    min-height: auto;
  }

  .faq-question {
    padding: 1.25rem 0;
  }
}

@media (max-width: 560px), (prefers-reduced-motion: reduce) {
  .hero .primary-button,
  .contact-section::before,
  .background-light::before,
  .background-light::after {
    animation: none;
  }

  .contact-section::before {
    opacity: 0.16;
  }

  .background-light::before,
  .background-light::after {
    opacity: 0.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-text,
  .aurora-text.aurora-active {
    color: var(--white);
    animation: none;
  }

  .diagnostic-intro,
  .diagnostic-question {
    animation: none;
  }

  .intro-pending main {
    transform: none;
  }

  .scroll-progress span {
    transition: none;
  }
}
