/* NeoCronos — shell: tokens, reset, typography, utilities */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color tokens — graphite/chalk family */
  --graphite: #070710;
  --graphite-soft: #0e0e1a;
  --graphite-card: #13132400;
  --chalk: #eaeaf5;
  --chalk-dim: #9a9ab8;
  --rule: #232340;
  --highlight: #ff2ec4;
  --highlight-2: #1fe0e0;

  --magenta-glow: rgba(255, 46, 196, 0.55);
  --cyan-glow: rgba(31, 224, 224, 0.45);

  /* technical vars — free naming */
  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gut: clamp(18px, 5vw, 40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--graphite);
  color: var(--chalk);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .to-content,
  .pagehead {
    transition: none;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--highlight-2);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--chalk);
}

h1 {
  font-size: clamp(2.1rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
}
h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
}
h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}
li {
  margin-bottom: 0.5em;
}

strong {
  color: var(--chalk);
  font-weight: 600;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section {
  padding-block: clamp(48px, 9vw, 96px);
}
.section-tight {
  padding-block: clamp(36px, 6vw, 64px);
}

.eyebrow {
  display: inline-block;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--highlight-2);
  margin-bottom: 14px;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--chalk-dim);
  max-width: 62ch;
}

.text-glow {
  color: var(--highlight);
  text-shadow: 0 0 18px var(--magenta-glow);
}
.text-cyan {
  color: var(--highlight-2);
  text-shadow: 0 0 18px var(--cyan-glow);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--highlight);
  color: #16001a;
  box-shadow: 0 0 0 1px var(--highlight), 0 8px 30px var(--magenta-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 0 1px var(--highlight), 0 12px 40px var(--magenta-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--chalk);
  border-color: var(--rule);
}
.btn-ghost:hover {
  border-color: var(--highlight-2);
  box-shadow: 0 0 24px var(--cyan-glow);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--highlight-2);
  outline-offset: 3px;
}

.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;
}

.to-content {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 1200;
  background: var(--highlight);
  color: #16001a;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--ff-display);
  font-weight: 500;
  transition: top 0.2s var(--ease);
}
.to-content:focus {
  top: 14px;
  text-decoration: none;
}
