/* =========================================================
   AVENIX SUITE — design tokens & base styles
   Theme kept from V2.3: black / emerald, Arial typography.
   ========================================================= */

:root {
  /* Colours */
  --bg: #020b08;
  --bg-2: #04140f;
  --mint: #00edbd;          /* primary accent */
  --aqua: #58e6cf;          /* hero / logo accent */
  --mint-soft: rgba(0, 237, 189, .12);
  --emerald: #0b7654;       /* borders on cards */
  --emerald-deep: #00321f;
  --text: #f5f7f7;
  --muted: #a6b5b1;
  --muted-2: #8b9b96;
  --line: rgba(255, 255, 255, .12);
  --line-mint: rgba(14, 155, 112, .38);

  /* Typography */
  --font: Arial, Helvetica, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* Layout */
  --container: 1410px;
  --gutter: max(4%, 16px);
  --radius: 13px;
  --header-h: 75px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 55% 43% at 51% 22%, #001a1248, transparent 75%),
    radial-gradient(ellipse 35% 36% at 9% 62%, #01241740, transparent 75%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--mint); color: #001a12; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 30px;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, transform .25s, box-shadow .25s;
}

.btn-primary {
  background: var(--mint);
  color: #00170f;
  font-weight: 700;
  box-shadow: 0 0 0 rgba(0, 237, 189, 0);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 237, 189, .28);
}

.btn-ghost { border-color: #55635d; color: var(--text); }
.btn-ghost:hover { border-color: var(--mint); color: var(--mint); }

.btn-light { background: #fff; color: #101a17; }
.btn-light:hover { background: var(--mint); }

.btn-sm { padding: 10px 16px; font-size: 12px; }

/* Shared section layout */
.section {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--container);
  margin: 0 auto;
  padding: 110px 0 0;
}

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.2px;
  color: #c7d1ce;
}
.section-head h2 span { color: var(--mint); }

.section-head p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.section-head.center p { margin-inline: auto; max-width: 560px; }

.kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* Scroll reveal (enabled by JS only) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .section { padding-top: 80px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { letter-spacing: -.6px; }
}
