*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--q-font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--q-text);
  background: var(--q-bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(244, 63, 94, 0.12), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 20%, rgba(245, 158, 11, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(251, 191, 36, 0.07), transparent 45%),
    linear-gradient(180deg, #0c0a09 0%, #141110 40%, #0c0a09 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-opacity='0.08' d='M0 0h160v160H0z'/%3E%3Cpath fill='none' stroke='%2394a3b8' stroke-opacity='0.06' d='M0 40h160M0 80h160M0 120h160M40 0v160M80 0v160M120 0v160'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--q-cyan);
  text-decoration: none;
  transition: color var(--q-dur-fast) var(--q-ease-out), opacity var(--q-dur-fast);
}

a:hover {
  color: #fda4af;
}

:focus-visible {
  outline: 2px solid var(--q-cyan);
  outline-offset: 3px;
}

.q-container {
  width: min(100% - 2rem, var(--q-max));
  margin-inline: auto;
}

.q-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--q-cyan);
  font-weight: 600;
  margin: 0 0 var(--q-space-sm);
}

.q-section-title {
  font-family: var(--q-font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 var(--q-space-md);
  background: linear-gradient(135deg, #fff 0%, #e7e5e4 48%, var(--q-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.q-section-lead {
  margin: 0;
  max-width: 58ch;
  color: var(--q-text-muted);
  font-size: 1.05rem;
}

.q-section-lead a {
  color: var(--q-cyan);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.q-section-lead a:hover {
  color: #fda4af;
}

.q-skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  padding: 0.5rem 1rem;
  background: var(--q-cyan);
  color: #0c0a09;
  font-weight: 700;
  border-radius: var(--q-radius-sm);
  z-index: 9999;
  transition: top var(--q-dur-fast);
}

.q-skip:focus {
  top: 1rem;
}

@media (max-width: 480px) {
  .q-container {
    width: min(100% - 1.25rem, var(--q-max));
  }

  .q-section-title {
    font-size: clamp(1.45rem, 5.5vw, 2rem);
  }

  .q-section-lead {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .q-eyebrow {
    font-size: 0.76rem;
  }
}

@media (max-width: 380px) {
  .q-container {
    width: min(100% - 1rem, var(--q-max));
  }
}
