/* ==========================================================================
   Xien Systems - Global stylesheet
   Dark, high-contrast tech aesthetic with smooth image transitions.
   ========================================================================== */

/* ------------------------------ Tokens ---------------------------------- */
:root {
  --bg: #05070f;
  --bg-soft: #070b16;
  --surface: #0b1120;
  --surface-2: #101a30;
  --line: rgba(148, 178, 255, 0.14);
  --line-strong: rgba(148, 178, 255, 0.28);
  --text: #e9effc;
  --muted: #9aa9c7;
  --muted-2: #7c8aa8;
  --accent: #38e1ff;
  --accent-2: #6d7bff;
  --accent-3: #a855f7;
  --success: #2dd4a7;
  --danger: #ff6b8b;
  --gradient: linear-gradient(118deg, #38e1ff 0%, #6d7bff 48%, #a855f7 100%);
  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow-glow: 0 30px 80px -34px rgba(56, 225, 255, 0.5);
  --shadow-card: 0 22px 60px -38px rgba(2, 6, 23, 0.95);
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --speed: 0.55s;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(680px 480px at 12% -8%, rgba(56, 225, 255, 0.16), transparent 62%),
    radial-gradient(720px 520px at 88% 4%, rgba(109, 123, 255, 0.16), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(168, 85, 247, 0.12), transparent 65%),
    linear-gradient(180deg, #05070f 0%, #060a14 45%, #05070f 100%);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 178, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 178, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  pointer-events: none;
}

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

figure,
blockquote {
  margin: 0;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: rgba(56, 225, 255, 0.28);
  color: #fff;
}

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

/* ------------------------------ Layout ---------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(4.2rem, 8vw, 7.5rem) 0;
}

.section--tight {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.section--alt {
  background:
    linear-gradient(180deg, transparent, rgba(12, 20, 38, 0.72) 12%, rgba(12, 20, 38, 0.72) 88%, transparent);
  border-block: 1px solid rgba(148, 178, 255, 0.08);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -80px;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #041016;
  font-weight: 700;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

/* ------------------------------ Typography ------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(56, 225, 255, 0.06);
  color: #bfeaff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(56, 225, 255, 0.7);
}

.display {
  font-size: clamp(2.5rem, 5.4vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h2.display,
.section-title {
  font-size: clamp(1.95rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

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

.lede {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
  max-width: 62ch;
}

.section-head {
  display: grid;
  gap: 1.1rem;
  max-width: 720px;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
  justify-items: start;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background-color 0.35s var(--ease),
    color 0.35s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn--primary {
  color: #04121a;
  background-image: var(--gradient);
  box-shadow: 0 16px 40px -18px rgba(56, 225, 255, 0.75);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 54px -20px rgba(109, 123, 255, 0.85);
}

.btn--ghost {
  border-color: var(--line-strong);
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(56, 225, 255, 0.6);
  background-color: rgba(56, 225, 255, 0.08);
  transform: translateY(-2px);
}

.btn--block {
  width: 100%;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #a9e9ff;
  font-weight: 600;
  font-size: 0.92rem;
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.text-link:hover svg {
  transform: translateX(5px);
}

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(5, 7, 15, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(5, 7, 15, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.06rem;
}

.brand img {
  width: 38px;
  height: 38px;
  transition: transform 0.5s var(--ease-out), filter 0.5s var(--ease-out);
}

.brand:hover img {
  transform: rotate(-8deg) scale(1.06);
  filter: drop-shadow(0 0 14px rgba(56, 225, 255, 0.65));
}

.brand span small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
  line-height: 1.2;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  position: relative;
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 550;
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: translateX(-50%);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 26px;
}

.nav-links a[aria-current="page"] {
  color: #d8f6ff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  place-items: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ------------------------------ Hero ------------------------------------ */
.hero {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(4rem, 7vw, 6rem);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1.6rem;
  justify-items: start;
}

.hero-copy .lede {
  max-width: 54ch;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, max-content));
  gap: 1rem 2.2rem;
  padding-top: 0.4rem;
  width: 100%;
}

.hero-meta div {
  display: grid;
  gap: 0.1rem;
}

.hero-meta strong {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-meta span {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero-visual {
  position: relative;
  isolation: isolate;
  border-radius: 26px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  z-index: -1;
  background: radial-gradient(circle at 60% 40%, rgba(56, 225, 255, 0.22), transparent 62%);
  filter: blur(12px);
  animation: breathe 9s ease-in-out infinite;
}

.hero-visual .media {
  border: 1px solid rgba(148, 178, 255, 0.22);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.hero-visual img {
  animation: floaty 8s ease-in-out infinite;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* ------------------------------ Page hero ------------------------------- */
.page-hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.6rem, 4.5vw, 3.8rem);
  border-bottom: 1px solid rgba(148, 178, 255, 0.08);
  background:
    radial-gradient(620px 320px at 20% 0%, rgba(56, 225, 255, 0.12), transparent 70%),
    radial-gradient(560px 320px at 82% 10%, rgba(168, 85, 247, 0.12), transparent 70%);
}

.page-hero .display {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  max-width: 20ch;
}

.page-hero-inner {
  display: grid;
  gap: 1.3rem;
  max-width: 760px;
  justify-items: start;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-2);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

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

.breadcrumb span[aria-hidden="true"] {
  color: var(--line-strong);
}

/* ------------------------------ Cards / grids --------------------------- */
.grid {
  display: grid;
  gap: clamp(1.1rem, 2vw, 1.6rem);
}

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

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

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

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(16, 26, 48, 0.85), rgba(8, 13, 26, 0.72));
  box-shadow: var(--shadow-card);
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(56, 225, 255, 0.5), transparent 45%, rgba(168, 85, 247, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 80px -44px rgba(56, 225, 255, 0.55);
}

.card:hover::after {
  opacity: 1;
}

.card h3 {
  font-size: 1.18rem;
  letter-spacing: -0.015em;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card .text-link {
  margin-top: auto;
  padding-top: 0.4rem;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(56, 225, 255, 0.28);
  background: linear-gradient(150deg, rgba(56, 225, 255, 0.16), rgba(109, 123, 255, 0.1));
  color: #8deeff;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

/* ------------------------------ Media / images -------------------------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, #0a1222, #101a30);
  border: 1px solid var(--line);
  isolation: isolate;
}

.media img {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(1.055);
  filter: saturate(0.85) brightness(0.92);
  transition:
    opacity 0.9s var(--ease-out),
    transform 1.15s var(--ease-out),
    filter 0.9s var(--ease-out);
  will-change: opacity, transform;
}

.media img.is-loaded {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1) brightness(1);
}

.media:hover img.is-loaded {
  transform: scale(1.045);
}

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 15, 0) 45%, rgba(5, 7, 15, 0.55) 100%);
  opacity: 0;
  transition: opacity var(--speed) var(--ease);
  pointer-events: none;
}

.media:hover::after {
  opacity: 1;
}

.media--card {
  border-radius: var(--radius);
  border-color: rgba(148, 178, 255, 0.16);
}

.media--wide img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(148, 178, 255, 0.1);
  color: var(--muted-2);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(5, 7, 15, 0.35);
}

/* ------------------------------ Reveal transitions ---------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

[data-reveal="left"] {
  transform: translateX(-26px);
}

[data-reveal="right"] {
  transform: translateX(26px);
}

[data-reveal="zoom"] {
  transform: scale(0.94);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------ Split sections -------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split--reverse .split-media {
  order: 2;
}

.split-copy {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
  width: 100%;
}

.feature-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-list svg {
  width: 22px;
  height: 22px;
  margin-top: 0.12rem;
  color: var(--accent);
}

/* ------------------------------ Stats ----------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(148, 178, 255, 0.1);
}

.stat {
  padding: clamp(1.3rem, 2.6vw, 2rem);
  background: rgba(8, 13, 26, 0.92);
  display: grid;
  gap: 0.25rem;
  transition: background-color 0.4s var(--ease);
}

.stat:hover {
  background: rgba(16, 26, 48, 0.95);
}

.stat strong {
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ------------------------------ Steps ----------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
  counter-reset: step;
}

.step {
  position: relative;
  display: grid;
  gap: 0.6rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 16, 30, 0.7);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.step:hover {
  border-color: rgba(56, 225, 255, 0.4);
  transform: translateY(-4px);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.step h3 {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------ Chips / tags ---------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.82rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.chip:hover {
  border-color: rgba(56, 225, 255, 0.45);
  background: rgba(56, 225, 255, 0.06);
  color: var(--text);
}

/* ------------------------------ CTA band -------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 225, 255, 0.22);
  border-radius: 28px;
  padding: clamp(2.2rem, 5vw, 4rem);
  background:
    radial-gradient(540px 300px at 86% 18%, rgba(168, 85, 247, 0.24), transparent 70%),
    radial-gradient(520px 320px at 8% 82%, rgba(56, 225, 255, 0.2), transparent 70%),
    linear-gradient(150deg, #0a1428, #07101f);
  box-shadow: var(--shadow-glow);
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
}

.cta-band h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
  max-width: 24ch;
}

.cta-band p {
  margin-top: 0.7rem;
  color: var(--muted);
  max-width: 48ch;
}

/* ------------------------------ Footer ---------------------------------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2.5rem, 5vw, 4rem) 0 1.8rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 11, 22, 0.3), rgba(7, 11, 22, 0.95));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
}

.footer-brand {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 34ch;
}

.footer-col h3 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c6d4f2;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  display: inline-block;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(3px);
}

.footer-contact li {
  display: grid;
  gap: 0.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-contact strong {
  color: var(--muted-2);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(148, 178, 255, 0.1);
  color: var(--muted-2);
  font-size: 0.82rem;
}

.socials {
  display: flex;
  gap: 0.5rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.3s var(--ease);
}

.socials a:hover {
  color: var(--accent);
  border-color: rgba(56, 225, 255, 0.45);
  background: rgba(56, 225, 255, 0.06);
  transform: translateY(-2px);
}

.socials svg {
  width: 17px;
  height: 17px;
}

/* ------------------------------ Contact page ---------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: 1rem;
}

.contact-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 16, 30, 0.72);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.contact-card:hover {
  border-color: rgba(56, 225, 255, 0.38);
  transform: translateY(-3px);
}

.contact-card .icon-badge {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
}

.contact-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.contact-card p,
.contact-card a {
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-card a:hover {
  color: var(--accent);
}

.hours-note {
  display: grid;
  gap: 0.4rem;
  padding: 1.15rem 1.35rem;
  border: 1px dashed rgba(56, 225, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(56, 225, 255, 0.04);
  color: var(--muted);
  font-size: 0.88rem;
}

.hours-note strong {
  color: #c8f4ff;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ------------------------------ Form ------------------------------------ */
.form-panel {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(16, 26, 48, 0.9), rgba(7, 12, 24, 0.85));
  box-shadow: var(--shadow-card);
}

.form-panel h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  letter-spacing: -0.02em;
}

.form-panel > p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.6rem;
}

/* Honeypot field: present in the DOM for bots, never shown to people. */
.hp-field {
  display: none !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #cdd9f2;
}

.field label .req {
  color: var(--accent);
  margin-left: 0.15rem;
}

.field .hint {
  color: var(--muted-2);
  font-size: 0.76rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(5, 9, 18, 0.72);
  color: var(--text);
  font-size: 0.94rem;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.field textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #62718f;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(148, 178, 255, 0.42);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(56, 225, 255, 0.7);
  background: rgba(6, 12, 24, 0.9);
  box-shadow: 0 0 0 4px rgba(56, 225, 255, 0.13);
}

.field .error {
  display: none;
  color: var(--danger);
  font-size: 0.78rem;
  line-height: 1.4;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: rgba(255, 107, 139, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 107, 139, 0.12);
}

.field.is-invalid .error {
  display: block;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.3rem;
}

.form-actions .note {
  color: var(--muted-2);
  font-size: 0.78rem;
  max-width: 34ch;
}

.form-status {
  display: none;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(45, 212, 167, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(45, 212, 167, 0.08);
  color: #b6ffe8;
  font-size: 0.9rem;
}

.form-status.is-visible {
  display: flex;
  animation: statusIn 0.5s var(--ease-out) both;
}

.form-status.is-error {
  border-color: rgba(255, 107, 139, 0.45);
  background: rgba(255, 107, 139, 0.08);
  color: #ffd7df;
}

.form-status.is-error svg {
  display: none;
}

.form-status.is-error strong {
  color: #ffe3e9;
}

.form-status svg {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 0.12rem;
  color: var(--success);
}

.form-status strong {
  display: block;
  color: #e2fff7;
  margin-bottom: 0.15rem;
}

@keyframes statusIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------ FAQ ------------------------------------- */
.faq {
  display: grid;
  gap: 0.8rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 16, 30, 0.66);
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}

.faq details[open] {
  border-color: rgba(56, 225, 255, 0.35);
  background: rgba(12, 20, 38, 0.9);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-weight: 500;
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.faq details[open] summary::after {
  content: "\2013";
  transform: rotate(180deg);
  background: rgba(56, 225, 255, 0.12);
}

.faq details p {
  padding: 0 1.25rem 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ------------------------------ Timeline -------------------------------- */
.timeline {
  position: relative;
  display: grid;
  gap: 1.6rem;
  padding-left: 1.9rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2) 55%, transparent);
  opacity: 0.55;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 0.3rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.9rem;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 225, 255, 0.12);
}

.timeline-item time {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.timeline-item h3 {
  font-size: 1.05rem;
}

.timeline-item p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ------------------------------ Team ------------------------------------ */
.team-card {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(10, 16, 30, 0.7);
  transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 225, 255, 0.32);
}

.team-card .media {
  border-radius: var(--radius);
}

.team-card h3 {
  font-size: 1rem;
  padding: 0 0.35rem;
}

.team-card p {
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0 0.35rem 0.35rem;
}

/* ------------------------------ Value tiles ----------------------------- */
.value-tile {
  display: grid;
  gap: 0.6rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 16, 30, 0.66);
  transition: border-color var(--speed) var(--ease), transform var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.value-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 225, 255, 0.36);
  background: rgba(14, 22, 42, 0.85);
}

.value-tile h3 {
  font-size: 1.02rem;
}

.value-tile p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------ 404 ------------------------------------- */
.error-page {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 1.2rem;
  padding: 4rem 0;
}

.error-page .display {
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.9;
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    gap: 0.4rem;
    padding: 1rem 1.25rem 1.6rem;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 7, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.32s var(--ease), transform 0.32s var(--ease), visibility 0.32s;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  }

  .nav.is-open {
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    display: grid;
    gap: 0.15rem;
  }

  .nav-links a {
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .nav .btn {
    margin-top: 0.6rem;
    width: 100%;
  }

  .hero-grid,
  .split,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    justify-items: start;
  }

  .split--reverse .split-media {
    order: 0;
  }

  .hero-visual {
    order: -1;
    max-width: 560px;
  }

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

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

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

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

  .brand span small {
    font-size: 0.56rem;
    letter-spacing: 0.18em;
  }

  .container {
    width: min(100% - 1.6rem, var(--container));
  }

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

  .hero-meta {
    gap: 1rem 1.4rem;
  }

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

  .footer-grid .footer-col:last-child {
    grid-column: auto;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .btn {
    width: 100%;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .media-caption {
    font-size: 0.68rem;
  }
}

/* ------------------------------ Motion & print -------------------------- */
@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;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .media img {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* No-JS fallback: never hide content or images if scripts are unavailable. */
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

html:not(.js) .media img {
  opacity: 1;
  transform: none;
  filter: none;
}

@media print {
  body::before,
  body::after,
  .site-header,
  .site-footer,
  .cta-band,
  .hero-visual {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .card,
  .form-panel,
  .contact-card {
    border-color: #ccc;
    background: #fff;
    box-shadow: none;
  }
}

