/* ==========================================================================
   BASE: colours, reset, typography and pieces shared by the whole site
   ========================================================================== */

/* ---------- design tokens: change the site's colours here ---------- */
/* Zerix Digital brand: navy #0A0F1C, blue #3355FF, deep blue #1E34B0, grey #C9CED6,
   lifted with an electric cyan and a violet accent so the page stays lively.
   --cyan / --purple / --pink keep their old names: cyan, brand blue, violet. */
:root {
  --bg: #070b16;
  --navy: #0a0f1c;
  --card: rgba(255, 255, 255, .035);
  --line: rgba(255, 255, 255, .08);
  --text: #eef1f8;
  --muted: #8f97aa;
  --grey: #c9ced6;
  --cyan: #38d6ff;
  --purple: #3355ff;
  --pink: #8b5cf6;
  --deep: #1e34b0;
  /* fills with white text on top */
  --gradient: linear-gradient(120deg, #1d9bf0, var(--purple) 45%, #6d3dff);
  /* brighter, for coloured words on the dark page */
  --gradient-text: linear-gradient(120deg, #4fdcff, #6b8bff 45%, #b48cff);
  --radius: 20px;
}

/* ---------- reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* js/site/smooth-scroll.js does the easing itself */
html.has-smooth-scroll {
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', Inter, sans-serif;
  line-height: 1.1;
  letter-spacing: -.02em;
}

main, footer {
  position: relative;
  z-index: 2;
}

/* visible keyboard focus */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- helpers ---------- */
.wrap {
  width: min(1200px, 92%);
  margin: 0 auto;
}

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

.noscript-note {
  text-align: center;
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: .25s;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(51, 85, 255, .7);
}

.btn-primary:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .35) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}

.btn-primary:hover:after {
  transform: translateX(120%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(51, 85, 255, .9);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, .3);
}

.btn-center {
  justify-content: center;
}

/* ---------- section shell ---------- */
section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(34px, 4.6vw, 58px);
}

.section-sub {
  color: var(--muted);
  margin-top: 16px;
  font-size: 18px;
}

/* ---------- reveal on scroll (only hidden when JS runs) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(40px) rotateX(8deg);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}
