/** VarleyLabs global design system — shared across all public pages. */
:root {
  --ink: #171827;
  --muted: #6B6F82;
  --paper: #F5F7FC;
  --white: #FFFFFF;
  --blue: #1F64F9;
  --violet: #7650E8;
  --pink: #EB4785;
  --orange: #F47A68;
  /* light text used across the dark panels */
  --on-dark: 235, 238, 252;
  /* restrained VarleyLabs logo-inspired brand ring */
  --rainbow: conic-gradient(from 40deg, #1858E8, #7650E8, #EA4F8B, #1F64F9, #7650E8, #1858E8);
  --radius-xl: 34px;
  --shadow-soft: 0 24px 70px rgba(23, 24, 39, 0.16);
  --shadow-card: 0 18px 48px rgba(13, 16, 32, 0.24);
  --max: 1180px;
  --section-y: 112px;        /* vertical rhythm for every standard content section */

  /* VarleyLabs type scale — calmer, more consistent and easier to tune */
  --font-ui: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --text-xs: clamp(0.78rem, 0.72rem + 0.16vw, 0.86rem);
  --text-sm: clamp(0.88rem, 0.82rem + 0.18vw, 0.96rem);
  --text-base: clamp(0.98rem, 0.92rem + 0.22vw, 1.05rem);
  --text-lg: clamp(1.05rem, 0.98rem + 0.34vw, 1.18rem);
  --h1: clamp(2.65rem, 5vw, 4.85rem);
  --h2: clamp(2rem, 3.6vw, 3.35rem);
  --h3: clamp(1.28rem, 1.35vw, 1.62rem);
  --tight: -0.055em;
  --tighter: -0.07em;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.55;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-shell {
  position: relative;
  min-height: 100vh;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

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

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

.section-head .eyebrow { margin-bottom: 18px; }

.nav-wrap {
  position: fixed;
  z-index: 50;
  top: 22px;
  left: 0;
  right: 0;
  pointer-events: none;
}

.nav.container { width: min(1060px, calc(100% - 40px)); }

.nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
  padding: 10px 10px 10px 22px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(23, 24, 39, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: clamp(1.06rem, 1.18vw, 1.28rem);
  color: var(--ink);
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 46px);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--text-sm);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 14px;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(23, 24, 39, 0.10);
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  border: 0;
  font-weight: 800;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-position 400ms ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: white;
  background: linear-gradient(120deg, #1858E8, #7650E8, #8B4DE8);
  background-size: 220%;
  box-shadow: 0 14px 34px rgba(118, 80, 232, 0.28);
}

.btn-primary:hover { background-position: right; }

.btn-ghost {
  color: white;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}

.menu-btn { display: none; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
  font-size: var(--text-xs);
  letter-spacing: .005em;
  margin-bottom: 28px;
  box-shadow: inset 0 0 38px rgba(255,255,255,.03);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rainbow);
  display: inline-block;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: var(--tighter);
  text-wrap: balance;
}

h1 {
  font-size: var(--h1);
  line-height: .98;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(100deg, #4DA3FF, #7650E8 48%, #1858E8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

section { position: relative; }

.section-head h2 {
  font-size: var(--h2);
  line-height: 1.04;
  margin-bottom: 18px;
}

.section-head p {
  font-size: var(--text-base);
  line-height: 1.72;
  color: var(--muted);
}

.site-form {
  padding: clamp(24px, 3vw, 42px);
  display: grid;
  gap: 16px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { display: grid; gap: 8px; color: #4E5264; font-weight: 700; font-size: var(--text-sm); }

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(23,24,39,.13);
  border-radius: 14px;
  padding: 14px 15px;
  font-size: var(--text-sm);
  background: #FAFBFF;
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

textarea { min-height: 132px; resize: vertical; }

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(118,80,232,.72);
  box-shadow: 0 0 0 4px rgba(118,80,232,.12);
}

.hidden { display: none; }

footer {
  color: rgba(255,255,255,.72);
  background: #0D1020;
  padding: 46px 0;
}

.footer-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }

.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 920px) {
.nav { border-radius: 18px; }
.nav-links,
.nav-actions { display: none; }
.menu-btn { display: grid; }
}

@media (max-width: 640px) {
.container { width: min(100% - 24px, var(--max)); }
.nav.container { width: min(100% - 24px, var(--max)); }
.nav-wrap { top: 12px; }
.nav { min-height: 58px; padding-left: 14px; }
.brand { font-size: 1rem; letter-spacing: -0.035em; }
.brand-mark { width: 30px; height: 30px; }
h1 { font-size: clamp(2.55rem, 13.5vw, 3.7rem); letter-spacing: -0.062em; }
.section-head h2 { letter-spacing: -0.06em; }
:root { --section-y: 84px; }
.form-row { grid-template-columns: 1fr; }
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem 1.4rem;
}

.footer-credit {
  flex-basis: 100%;
  margin: 0;
  text-align: right;
  opacity: 0.65;
  font-size: 0.9rem;
}

html { scroll-padding-top: 108px; }

.js { scroll-behavior: auto; }

.scroll-progress {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
  background: rgba(255, 255, 255, .06);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #1F64F9, #7650E8 58%, #EB4785);
  box-shadow: 0 0 18px rgba(118, 80, 232, .55);
  will-change: transform;
}

.nav-wrap,
.nav,
.nav .brand-mark,
.nav .btn {
  transition:
    top 320ms cubic-bezier(.22, 1, .36, 1),
    min-height 320ms cubic-bezier(.22, 1, .36, 1),
    padding 320ms cubic-bezier(.22, 1, .36, 1),
    border-radius 320ms cubic-bezier(.22, 1, .36, 1),
    background-color 320ms ease,
    box-shadow 320ms ease,
    width 320ms ease,
    height 320ms ease;
}

.nav-wrap.is-scrolled { top: 12px; }

.nav-wrap.is-scrolled .nav {
  min-height: 58px;
  padding: 6px 7px 6px 18px;
  background: rgba(255, 255, 255, .96);
  border-radius: 18px;
  box-shadow: 0 14px 44px rgba(13, 16, 32, .15);
}

.nav-wrap.is-scrolled .brand-mark { width: 32px; height: 32px; }

.nav-wrap.is-scrolled .nav .btn { min-height: 46px; }

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 220ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  transition: left 260ms cubic-bezier(.22, 1, .36, 1), right 260ms cubic-bezier(.22, 1, .36, 1);
}

.nav-links a:hover,
.nav-links a.is-active { color: var(--violet); }

.nav-links a:hover::after,
.nav-links a.is-active::after { left: 0; right: 0; }

.gradient-text {
  background-size: 220% 100%;
  animation: gradientFlow 10s ease-in-out infinite alternate;
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --mag-x: 0px;
  --mag-y: 0px;
  transform: translate3d(var(--mag-x), var(--mag-y), 0);
  transition:
    transform 220ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 320ms ease,
    background-position 850ms cubic-bezier(.16, 1, .3, 1);
}

.btn-primary::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -80%;
  bottom: -80%;
  left: -62%;
  width: 54%;
  transform: translateX(-10%) rotate(14deg);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,.04) 24%,
    rgba(255,255,255,.18) 50%,
    rgba(255,255,255,.04) 76%,
    transparent 100%
  );
  filter: blur(7px);
  opacity: 0;
  transition:
    transform 1100ms cubic-bezier(.16, 1, .3, 1),
    opacity 320ms ease;
}

.btn:hover {
  transform: translate3d(var(--mag-x), calc(var(--mag-y) - 2px), 0);
}

.btn-primary:hover {
  background-position: 85% 50%;
  box-shadow: 0 17px 38px rgba(118, 80, 232, .32);
}

.btn-primary:hover::after {
  transform: translateX(340%) rotate(14deg);
  opacity: .68;
}

.btn:active { transform: translate3d(var(--mag-x), calc(var(--mag-y) + 1px), 0) scale(.985); }

.js .motion-reveal {
  opacity: 0;
  transform: translateY(24px) scale(.992);
  filter: blur(6px);
  transition:
    opacity 720ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    transform 720ms cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    filter 720ms ease var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

.js .motion-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.pointer-glow {
  position: relative;
  isolation: isolate;
  --spot-x: 50%;
  --spot-y: 50%;
}

.pointer-glow::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--spot-x) var(--spot-y), rgba(95, 125, 255, .16), rgba(118, 80, 232, .07) 32%, transparent 68%);
  opacity: 0;
  transition: opacity 320ms ease;
}

.pointer-glow.is-pointed::after { opacity: 1; }

.pointer-glow > * { position: relative; z-index: 1; }

@keyframes gradientFlow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (max-width: 920px) {
.nav-wrap.is-scrolled { top: 10px; }
.nav-wrap.is-scrolled .nav { min-height: 56px; padding: 6px 7px 6px 14px; }
}

@media (prefers-reduced-motion: reduce) {
.scroll-progress span { transition: none !important; }
.gradient-text { animation: none !important; }
.js .motion-reveal,
.js .motion-reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
.pointer-glow::after { display: none !important; }
.btn-primary::after { display: none !important; }
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(13, 16, 32, .25);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus { transform: translateY(0); }

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid rgba(31, 100, 249, .55);
  outline-offset: 4px;
}

:where(input, textarea, select):focus-visible {
  outline: none;
}

.mobile-menu { display: none; }

.menu-btn .menu-line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1), opacity 180ms ease;
}

.menu-btn[aria-expanded="true"] .menu-line-top { transform: translateY(4px) rotate(45deg); }

.menu-btn[aria-expanded="true"] .menu-line-bottom { transform: translateY(-4px) rotate(-45deg); }

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.form-note a {
  color: var(--violet);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer .brand { color: #fff; }

.footer-brand { max-width: 360px; }

.footer-brand p {
  margin: 14px 0 0;
  color: rgba(255,255,255,.58);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.footer-links a { transition: color 180ms ease; }

.footer-links a:hover { color: #fff; }

@media (max-width: 920px) {
.mobile-menu {
    pointer-events: none;
    display: grid;
    gap: 4px;
    width: min(100% - 40px, 1060px);
    margin: 10px auto 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.68);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(13,16,32,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(.985);
    transform-origin: top center;
    transition: opacity 220ms ease, visibility 220ms ease, transform 280ms cubic-bezier(.22, 1, .36, 1);
  }
.mobile-menu.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }
.mobile-menu > a:not(.btn) {
    padding: 13px 14px;
    border-radius: 11px;
    color: var(--ink);
    font-size: var(--text-sm);
    font-weight: 800;
  }
.mobile-menu > a:not(.btn):hover { background: var(--paper); }
.mobile-menu .btn { margin-top: 5px; }
body.menu-open { overflow: hidden; }
}

@media (max-width: 640px) {
.mobile-menu { width: min(100% - 24px, var(--max)); }
.footer-row { align-items: flex-start; }
.footer-links { justify-content: flex-start; }
.footer-credit { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
.mobile-menu,
.menu-btn .menu-line { transition: none; }
}
