/* ==========================================================================
   RenderFrost SMP — 02 Reset, base element styles, typography
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1.5rem);
}

body {
  margin: 0;
  background-color: var(--bg-0);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 400;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

#main,
.cta,
.footer {
  position: relative;
  z-index: 1;
}

/* Static ambient world light. Fixed + gradient only: no repaint cost while
   scrolling, and it stays put behind every page. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(100% 58% at 50% -10%, rgba(76, 47, 158, 0.22), transparent 66%),
    radial-gradient(72% 45% at 94% 12%, rgba(35, 66, 120, 0.14), transparent 62%),
    radial-gradient(80% 54% at 4% 92%, rgba(58, 40, 120, 0.12), transparent 68%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 55%, #04030a 100%);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

p {
  margin: 0 0 1.15em;
}

p:last-child {
  margin-bottom: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 2.5rem 0;
}

::selection {
  background: rgba(139, 92, 246, 0.36);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--violet-300);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ------------------------------------------------------------- Typography */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  text-wrap: balance;
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.015em; }
h4 { font-size: var(--fs-h4); letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet-300);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, transparent, var(--violet-400));
}

.eyebrow--center::after {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: linear-gradient(270deg, transparent, var(--violet-400));
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 62ch;
}

.section-intro { max-width: 58ch; }

.muted { color: var(--text-muted); }

.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

a {
  color: var(--violet-300);
  text-decoration-color: rgba(196, 181, 253, 0.35);
  text-underline-offset: 0.22em;
  transition: color var(--t-fast) var(--ease),
    text-decoration-color var(--t-fast) var(--ease);
}

a:hover {
  color: var(--frost-100);
  text-decoration-color: currentColor;
}

strong,
b {
  font-weight: 650;
  color: var(--frost-200);
}

/* --------------------------------------------------------- Accessibility */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  transform: translate(-50%, -200%);
  z-index: 300;
  padding: 0.7rem 1.15rem;
  background: var(--violet-600);
  color: #fff;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  transition: transform var(--t-base) var(--ease-out);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}
