/* ============================================================
   base.css — design tokens, reset, typography, layout utilities
   APEXMRKTNG. Dark-first identity: near-black ground, violet
   primary, mint used only for proof/affirmative signals.
   ============================================================ */

:root {
  /* ---- Ground ---- */
  --ink-900: #06070d; /* page background */
  --ink-850: #090b13; /* alternating band */
  --ink-800: #0d1018; /* raised band */
  --ink-700: #12151f; /* card */
  --ink-600: #191d29; /* card hover */

  /* ---- Lines ---- */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* ---- Text ---- */
  --text: #eef0f7;
  --text-muted: #98a0b8;
  --text-dim: #6b7490;

  /* ---- Accents ---- */
  --accent: #6d5cff; /* violet — primary action */
  --accent-bright: #8f82ff;
  --accent-deep: #4f3fe0;
  --accent-2: #2ee6c5; /* mint — proof, checks, metrics */
  --accent-2-deep: #17b89c;
  --accent-wash: rgba(109, 92, 255, 0.12);
  --accent-2-wash: rgba(46, 230, 197, 0.1);

  --grad: linear-gradient(120deg, var(--accent-bright), var(--accent-2));

  /* ---- Shape ---- */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  /* ---- Depth ---- */
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-accent: 0 14px 40px rgba(109, 92, 255, 0.28);

  /* ---- Rhythm ---- */
  --container: 1200px;
  --gutter: 24px;
  --section-y: 104px;

  /* ---- Motion ---- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================================
   Reset
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  color: var(--accent-2);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

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

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

/* ============================================================
   Typography
   ============================================================ */

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  letter-spacing: -0.02em;
}

h4 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1em;
  color: var(--text-muted);
}

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

/* The recurring section opener: small uppercase label above the headline. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-2);
  opacity: 0.7;
}

.eyebrow.is-centered {
  justify-content: center;
}

.display {
  text-transform: uppercase;
  letter-spacing: -0.035em;
  font-weight: 900;
}

.lead {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-mint {
  color: var(--accent-2);
}

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  max-width: 760px;
}

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-tight {
  padding: 68px 0;
}

.section-alt {
  background: var(--ink-850);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-raised {
  background: var(--ink-800);
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head.is-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stack > * + * {
  margin-top: 18px;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.cluster.is-centered {
  justify-content: center;
}

.is-hidden {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 var(--r-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* A soft violet glow used behind hero and CTA sections. */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow-violet {
  background: rgba(109, 92, 255, 0.28);
}

.glow-mint {
  background: rgba(46, 230, 197, 0.14);
}

.section > .container {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 980px) {
  :root {
    --section-y: 76px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  :root {
    --gutter: 18px;
    --section-y: 60px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head {
    margin-bottom: 36px;
  }
}
