/* Revnex — NFC table ordering. Shared styles for every page. */
/* Inter (variable weight), bundled locally. SIL Open Font License. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
:root {
  --ink: #0a0c10;
  --ink-2: #1a1e25;
  --night: #06080b;
  --paper: #ffffff;
  --mist: #f3f6f8;
  --mist-2: #e9eef2;
  --line: #e2e8ed;
  --line-dark: rgba(255, 255, 255, 0.1);
  --text-2: #4a535e;
  --muted: #7b8591;
  --cyan: #00b8f5;
  --cyan-deep: #008cc0;
  --cyan-soft: #e3f7fe;
  --ok: #19a463;
  --warn: #f2a516;
  --hot: #ee4a3a;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --wide: normal;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
::selection {
  background: var(--cyan);
  color: var(--ink);
}

/* ---------- Type ---------- */
h1,
h2,
h3,
h4 {
  margin: 0;
  font-variation-settings: var(--wide);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h1 {
  font-size: clamp(42px, 7.2vw, 96px);
}
h2 {
  font-size: clamp(32px, 4.6vw, 60px);
}
h3 {
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
p {
  margin: 0;
}
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 56ch;
}
.on-dark .lead,
.dark .lead {
  color: rgba(255, 255, 255, 0.7);
}
.cyan {
  color: var(--cyan);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan-deep);
}
.dark .kicker {
  color: var(--cyan);
}
.kicker::before {
  content: '';
  width: 16px;
  height: 10px;
  background: var(--cyan);
  clip-path: polygon(0 0, 40% 0, 100% 100%, 60% 100%);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
section {
  position: relative;
}
.section {
  padding-block: clamp(72px, 10vw, 140px);
}
.section-head {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.dark {
  background: var(--night);
  color: #fff;
}
.mist {
  background: var(--mist);
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15.5px;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.25s var(--ease),
    background 0.25s,
    color 0.25s,
    border-color 0.25s;
}
.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg {
  transform: translateX(3px);
}
.btn:active {
  transform: scale(0.97);
}
.btn-cyan {
  background: var(--cyan);
  color: var(--ink);
}
.btn-cyan::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn-cyan:hover::after {
  transform: translateX(120%);
}
.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover {
  background: var(--ink-2);
}
.btn-ghost {
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.dark .btn-ghost,
.on-dark .btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.dark .btn-ghost:hover,
.on-dark .btn-ghost:hover {
  border-color: #fff;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition:
    background 0.3s,
    box-shadow 0.3s,
    transform 0.35s var(--ease);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.brand img {
  height: 22px;
  width: auto;
}
.brand .logo-dark {
  display: none;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.site-nav a {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}
.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: #fff;
}
.site-nav a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 3px;
  border-radius: 3px;
  background: var(--cyan);
  transform: translateX(-50%);
}
.site-head .btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 14.5px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: transparent;
  color: #fff;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.25s;
}
.site-head.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-head.scrolled .logo-light {
  display: none;
}
.site-head.scrolled .logo-dark {
  display: block;
}
.site-head.scrolled .site-nav a {
  color: var(--text-2);
}
.site-head.scrolled .site-nav a:hover,
.site-head.scrolled .site-nav a[aria-current='page'] {
  color: var(--ink);
}
.site-head.scrolled .menu-toggle {
  color: var(--ink);
  border-color: var(--line);
}

/* ---------- Hero shell (dark, used on every page) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(76px + clamp(40px, 6vw, 80px)) 0 clamp(64px, 8vw, 110px);
  background: var(--night);
  color: #fff;
}
.hero::before {
  /* fine grid, fading out at the edges */
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -180px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 245, 0.28), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
  animation: glow 9s ease-in-out infinite alternate;
}
@keyframes glow {
  to {
    transform: translate(-80px, 60px) scale(1.12);
  }
}
.hero .wrap {
  position: relative;
}
.slashes {
  position: absolute;
  pointer-events: none;
}
.slashes i {
  position: absolute;
  width: 34px;
  height: 120px;
  background: var(--cyan);
  clip-path: polygon(0 0, 42% 0, 100% 100%, 58% 100%);
  opacity: 0.9;
}

/* Page heroes (inner pages) */
.page-hero h1 {
  max-width: 14ch;
}
.page-hero .lead {
  margin-top: 24px;
}
.page-hero .btn-row {
  margin-top: 36px;
}

/* ---------- Reveal on scroll (only where it helps) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.split-words .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
}
.split-words .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i) * 0.06s + 0.1s);
}
.split-words.in .w > span {
  transform: none;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  padding-block: 22px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  font-variation-settings: var(--wide);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.marquee span::after {
  content: '';
  width: 14px;
  height: 22px;
  background: var(--cyan);
  clip-path: polygon(0 0, 42% 0, 100% 100%, 58% 100%);
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.g2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.g3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.g4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.dark .card {
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.03);
}
.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--cyan-soft);
  color: var(--cyan-deep);
}
.icon svg {
  width: 24px;
  height: 24px;
}
.dark .icon {
  background: rgba(0, 184, 245, 0.12);
  color: var(--cyan);
}

/* ---------- Spotlight card (cursor-follow light) ---------- */
.spot {
  overflow: hidden;
}
.spot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 184, 245, 0.12),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.spot:hover::before {
  opacity: 1;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px);
  border-radius: 32px;
  background: var(--ink);
  color: #fff;
  isolation: isolate;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 245, 0.35), transparent 65%);
  z-index: -1;
}
.cta-band h2 {
  max-width: 16ch;
}
.cta-band .lead {
  margin-top: 20px;
}
.cta-band .btn-row {
  margin-top: 36px;
}
.cta-band .slashes {
  right: clamp(24px, 8vw, 120px);
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 200px;
}
.cta-band .slashes i:nth-child(1) {
  left: 0;
  top: 40px;
  height: 160px;
  width: 46px;
}
.cta-band .slashes i:nth-child(2) {
  left: 70px;
  top: 0;
  height: 160px;
  width: 46px;
  opacity: 0.35;
}

/* ---------- Footer ---------- */
.site-foot {
  padding: 80px 0 32px;
  background: var(--night);
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
.foot-top img {
  height: 46px;
  width: auto;
}
.foot-top p {
  max-width: 34ch;
  margin-top: 18px;
}
.foot-top h4 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0;
  font-variation-settings: normal;
}
.foot-top ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-top a:hover {
  color: var(--cyan);
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.45);
}
.foot-word {
  margin-top: 48px;
  font-variation-settings: var(--wide);
  font-size: clamp(64px, 17vw, 240px);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  user-select: none;
  white-space: nowrap;
}

/* ---------- Form ---------- */
.field {
  display: grid;
  gap: 8px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 184, 245, 0.16);
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .g4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .g3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .site-nav {
    position: fixed;
    inset: 76px 12px auto;
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition:
      opacity 0.25s,
      transform 0.25s var(--ease);
  }
  .site-nav a,
  .site-head.scrolled .site-nav a {
    padding: 14px 16px;
    color: var(--ink);
    font-size: 17px;
  }
  .site-nav a[aria-current='page']::after {
    left: auto;
    right: 16px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .site-nav .btn {
    margin-top: 6px;
    min-height: 52px;
  }
  .nav-open .site-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-open .menu-toggle span:first-child {
    transform: translateY(3px) rotate(45deg);
  }
  .nav-open .menu-toggle span:last-child {
    transform: translateY(-3px) rotate(-45deg);
  }
  .menu-toggle {
    display: block;
  }
  .head-cta {
    display: none;
  }
  .g2,
  .g3,
  .g4,
  .foot-top {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .cta-band .slashes {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .split-words .w > span {
    opacity: 1;
    transform: none;
  }
}
.site-nav .nav-cta {
  display: none;
}
@media (max-width: 860px) {
  .site-nav .nav-cta {
    display: inline-flex;
    color: var(--ink) !important;
  }
}
.hero .lead {
  color: rgba(255, 255, 255, 0.68);
}
.cta-band .lead {
  color: rgba(255, 255, 255, 0.7);
}
.cta-band .slashes i:nth-child(1),
.cta-band .slashes i:nth-child(2) {
  width: 70px;
  height: 120px;
}
