/* ==========================================================================
   VERSYCODE — Main Stylesheet
   Premium dark, glassmorphism, cybersecurity/AI enterprise design system
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --vc-primary: #3262A8;
  --vc-primary-light: #4E82CE;
  --vc-primary-dark: #234878;
  --vc-secondary: #7532A8;
  --vc-secondary-light: #9A56D6;
  --vc-secondary-dark: #4F2178;
  --vc-gradient: linear-gradient(135deg, #3262A8 0%, #7532A8 100%);
  --vc-gradient-soft: linear-gradient(135deg, rgba(50,98,168,.16) 0%, rgba(117,50,168,.16) 100%);
  --vc-gradient-radial: radial-gradient(circle at 30% 20%, rgba(117,50,168,.35), transparent 60%);

  /* Surfaces */
  --bg-0: #060810;
  --bg-1: #0A0E1A;
  --bg-2: #0D1220;
  --bg-3: #10162A;
  --surface: rgba(255,255,255,.04);
  --surface-strong: rgba(255,255,255,.06);
  --surface-border: rgba(255,255,255,.09);
  --surface-border-strong: rgba(255,255,255,.16);

  /* Text */
  --text-hi: #F3F5FC;
  --text-mid: #B7C0DA;
  --text-low: #7E88A6;
  --text-on-grad: #FFFFFF;

  /* Feedback */
  --success: #22C55E;
  --warning: #F5A623;
  --danger: #EF4444;
  --info: #3AB0FF;

  /* Elevation / Glow */
  --glow-primary: 0 0 60px rgba(50,98,168,.35);
  --glow-secondary: 0 0 60px rgba(117,50,168,.35);
  --shadow-card: 0 20px 50px -20px rgba(0,0,0,.55);
  --shadow-soft: 0 10px 30px -12px rgba(0,0,0,.5);

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Type */
  --font-heading: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container-w: 1240px;
  --nav-h: 78px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-1);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-hi);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--vc-primary-light); outline-offset: 3px; }
::selection { background: var(--vc-secondary); color: #fff; }

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

/* ---------- Background layers ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
  pointer-events: none;
}
.bg-radial {
  position: fixed;
  inset: 0;
  z-index: -4;
  background: var(--bg-1);
}
.bg-radial::before, .bg-radial::after {
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .28;
}
.bg-radial::before { top: -15%; left: -10%; background: var(--vc-primary); }
.bg-radial::after { bottom: -20%; right: -10%; background: var(--vc-secondary); }
#particles-canvas { position: fixed; inset: 0; z-index: -2; pointer-events: none; opacity: .55; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 70px 0; }
.section-head { max-width: 680px; margin: 0 auto 60px; text-align: center; }
.section-head.align-left { margin: 0 0 50px; text-align: left; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { color: var(--text-mid); font-size: 17px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--vc-primary-light);
  background: var(--vc-gradient-soft);
  border: 1px solid var(--surface-border);
  padding: 7px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vc-secondary-light); box-shadow: 0 0 10px var(--vc-secondary-light); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.text-gradient {
  background: var(--vc-gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--surface-border-strong), transparent); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--vc-gradient);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(80, 60, 180, .55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(80, 60, 180, .7); }
.btn-outline {
  background: var(--surface);
  color: var(--text-hi);
  border-color: var(--surface-border-strong);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { background: var(--surface-strong); border-color: var(--vc-primary-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-mid); padding: 10px 14px; }
.btn-ghost:hover { color: var(--text-hi); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 38px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Glass Card ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-xl);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--surface-border);
  border-radius: var(--r-xl);
  padding: 34px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--vc-gradient-radial);
  opacity: 0;
  transition: opacity .35s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-6px); border-color: var(--surface-border-strong); box-shadow: var(--shadow-card); }
.card:hover::before { opacity: 1; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease), height .35s var(--ease);
}
.navbar.scrolled {
  background: rgba(8, 11, 22, .72);
  border-bottom-color: var(--surface-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 68px;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 21px; color: var(--text-hi); }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--vc-gradient);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -6px rgba(80,60,180,.7);
}
.brand .mark svg { width: 19px; height: 19px; }
.brand span.dim { color: var(--text-mid); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 10px 16px; font-size: 14.5px; font-weight: 500; color: var(--text-mid);
  border-radius: var(--r-pill);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover { color: var(--text-hi); background: var(--surface); }
.nav-links a.active { color: var(--text-hi); background: var(--surface-strong); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text-hi); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; z-index: 999;
  background: rgba(6, 8, 16, .98);
  backdrop-filter: blur(20px);
  transform: translateY(-8px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto;
  padding: 30px 24px 60px;
}
.mobile-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-panel a.mobile-link { display: block; padding: 16px 6px; font-size: 19px; font-weight: 600; color: var(--text-hi); border-bottom: 1px solid var(--surface-border); }
.mobile-panel .mobile-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 70px) 0 100px;
  min-height: 92vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); margin-bottom: .35em; }
.hero .lead { font-size: 19px; color: var(--text-mid); max-width: 520px; margin-bottom: 2em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-trust { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-heading); font-size: 22px; color: var(--text-hi); }
.hero-trust span { font-size: 13px; color: var(--text-low); }

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 90px) 0 90px;
  overflow: hidden;
  text-align: center;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); max-width: 820px; margin: 0 auto .4em; }
.page-hero .lead { max-width: 640px; margin: 0 auto; font-size: 18px; }
.page-hero .hero-actions { justify-content: center; margin-top: 34px; margin-bottom: 0; }
.breadcrumb { display: flex; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-low); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--text-hi); }

/* ---------- 3D Hero Visual ---------- */
.hero-visual { position: relative; height: 520px; perspective: 1400px; }
.hv-stage { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.hv-orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--surface-border);
}
.hv-orbit.o1 { inset: 6%; }
.hv-orbit.o2 { inset: 16%; border-color: rgba(117,50,168,.2); }

.hv-core {
  position: absolute; top: 50%; left: 50%; width: 210px; height: 210px;
  transform: translate(-50%, -50%);
  border-radius: 34px;
  background: linear-gradient(160deg, rgba(50,98,168,.35), rgba(117,50,168,.35));
  border: 1px solid var(--surface-border-strong);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-secondary), inset 0 0 40px rgba(255,255,255,.05);
  animation: floatY 6s ease-in-out infinite;
}
.hv-core svg { width: 92px; height: 92px; color: #fff; filter: drop-shadow(0 6px 16px rgba(0,0,0,.4)); }

.hv-chip {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 66px; height: 66px;
  border-radius: 18px;
  background: rgba(16, 22, 42, .75);
  border: 1px solid var(--surface-border-strong);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  animation: floatY 5.5s ease-in-out infinite;
}
.hv-chip svg { width: 28px; height: 28px; color: var(--vc-primary-light); }
.hv-chip.c-lock   { top: 6%;  left: 2%;  animation-delay: .2s; }
.hv-chip.c-cloud  { top: 12%; right: 4%; animation-delay: .8s; }
.hv-chip.c-globe  { bottom: 10%; left: 0%; animation-delay: 1.4s; }
.hv-chip.c-server { bottom: 4%; right: 10%; animation-delay: .5s; }
.hv-chip.c-ai     { top: 46%; right: -2%; animation-delay: 1.1s; }

.hv-stream { position: absolute; inset: 0; }
.hv-glow { position: absolute; width: 70%; height: 70%; top: 15%; left: 15%; background: var(--vc-gradient-radial); filter: blur(50px); }

@keyframes floatY { 0%, 100% { transform: translateY(0) translateZ(20px); } 50% { transform: translateY(-16px) translateZ(20px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-orbit.o1 { animation: spin 40s linear infinite; }
.hv-orbit.o2 { animation: spin 55s linear infinite reverse; }

/* ---------- Stats ---------- */
.stats-bar {
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
  padding: 60px 0;
}
.stats-bar .grid-4 { text-align: center; }
.stat-num { font-family: var(--font-heading); font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--text-hi); }
.stat-num span.accent { background: var(--vc-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--text-low); font-size: 14px; margin-top: 6px; }

/* ---------- Service Cards ---------- */
.service-icon {
  width: 62px; height: 62px; border-radius: var(--r-md);
  background: var(--vc-gradient-soft);
  border: 1px solid var(--surface-border-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transform-style: preserve-3d;
  transition: transform .4s var(--ease);
}
.card:hover .service-icon { transform: rotateY(180deg); }
.service-icon svg { width: 28px; height: 28px; color: var(--vc-primary-light); backface-visibility: hidden; }
/* Services Editor (additive) — an admin-chosen Card Image fills the same
   icon box instead of an SVG glyph; same size/position/hover-flip, so this
   is a content choice, not a layout change. */
.service-icon.has-image { padding: 0; overflow: hidden; }
.service-icon.has-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-md); backface-visibility: hidden; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--text-mid); margin-bottom: 20px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--vc-primary-light); }
.card-link svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.card:hover .card-link svg { transform: translateX(4px); }

/* ---------- Process Flow ---------- */
.flow { display: flex; flex-direction: column; align-items: center; gap: 0; max-width: 420px; margin: 0 auto; }
.flow-step {
  width: 100%; padding: 22px 26px; text-align: center;
  border-radius: var(--r-lg);
}
.flow-arrow { padding: 10px 0; color: var(--vc-secondary-light); }
.flow-arrow svg { width: 20px; height: 20px; margin: 0 auto; animation: floatY 2.4s ease-in-out infinite; }
.flow-row { display: flex; align-items: stretch; gap: 20px; }
.flow-row .flow-step { flex: 1; }
.flow-row .flow-arrow { display: flex; align-items: center; }
.flow-row .flow-arrow svg { transform: rotate(-90deg); }

/* ---------- Pricing ---------- */
.pricing-card {
  padding: 40px 32px;
  text-align: left;
  display: flex; flex-direction: column;
}
.pricing-card.featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--vc-gradient) border-box;
  position: relative;
  transform: scale(1.03);
  box-shadow: var(--glow-secondary);
}
.pricing-card .badge-pop {
  display: inline-flex; align-items: center;
  background: var(--vc-gradient); color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  padding: 7px 18px; border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.plan-name { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-low); margin-bottom: 14px; }
.plan-price { font-family: var(--font-heading); font-size: 42px; color: var(--text-hi); font-weight: 700; margin-bottom: 4px; }
.plan-price span { font-size: 15px; color: var(--text-low); font-weight: 500; }
.plan-desc { font-size: 14px; color: var(--text-low); margin-bottom: 26px; }
.plan-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; flex: 1; }
.plan-features li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--text-mid); }
.plan-features svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }

/* ---------- Forms ---------- */
.form-panel { padding: 44px; }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-mid); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--r-md);
  color: var(--text-hi);
  font-size: 14.5px;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.form-control::placeholder { color: var(--text-low); }
.form-control:focus { outline: none; border-color: var(--vc-primary-light); background: rgba(255,255,255,.05); box-shadow: 0 0 0 4px rgba(50,98,168,.18); }
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23B7C0DA' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-mid); }
.form-check input { width: 18px; height: 18px; accent-color: var(--vc-primary); }
.form-note { font-size: 13px; color: var(--text-low); margin-top: 6px; }
.form-error { font-size: 13px; color: var(--danger); margin-top: 6px; display: none; }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-invalid ~ .form-error { display: block; }
.form-status { padding: 14px 18px; border-radius: var(--r-md); font-size: 14px; margin-top: 18px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); color: #7CE2A0; }
.form-status.err { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.35); color: #F5A0A0; }
.form-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; overflow: hidden; }
.form-side {
  padding: 50px 44px;
  background: var(--vc-gradient-radial), var(--bg-3);
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--surface-border);
}
.form-side .service-icon { margin-bottom: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--surface-border); padding: 80px 0 0; background: var(--bg-0); }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(5, 1fr); gap: 28px; padding-bottom: 60px; }
.footer-brand p { font-size: 14.5px; color: var(--text-low); max-width: 280px; margin: 18px 0 24px; }
.footer-col h4 { font-size: 13.5px; color: var(--text-hi); margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; font-size: 13.5px; color: var(--text-low); transition: color .2s; }
.footer-col a:hover { color: var(--text-hi); }
.social-row { display: flex; gap: 10px; margin-top: 4px; }
.social-row a {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--surface-border);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--surface-strong); border-color: var(--surface-border-strong); }
.social-row svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid var(--surface-border); padding: 24px 0; display: flex; justify-content: center; align-items: center; gap: 20px; font-size: 13px; color: var(--text-low); text-align: center; }
.footer-bottom .legal-links { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--text-hi); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal="left"] { transform: translateX(-32px); }
[data-reveal="left"].in-view { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="right"].in-view { transform: translateX(0); }
[data-reveal-group] > * { transition-delay: calc(var(--stagger, 0) * 90ms); }

/* ---------- Misc components ---------- */
.badge-soft { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; background: var(--surface); border: 1px solid var(--surface-border-strong); color: var(--text-mid); }
.icon-check { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; }
.list-check { display: flex; flex-direction: column; gap: 16px; }
.list-check li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--text-mid); }

.value-item { display: flex; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--surface-border); }
.value-item:last-child { border-bottom: none; }
.value-item .num { font-family: var(--font-heading); font-size: 20px; color: var(--vc-primary-light); font-weight: 700; }
.value-item h4 { margin-bottom: 6px; font-size: 17px; }
.value-item p { margin: 0; font-size: 14.5px; }

.cta-band {
  position: relative;
  border-radius: var(--r-xl);
  padding: 70px 60px;
  text-align: center;
  overflow: hidden;
  background: var(--vc-gradient);
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 55%); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto 30px; }
.cta-band .btn-outline { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,.2); }
.cta-band .btn-primary { background: #fff; color: var(--vc-primary-dark); box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.cta-band .hero-actions { justify-content: center; margin: 0; }

.dashboard-mock { padding: 26px; }
.dm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dm-dots { display: flex; gap: 6px; }
.dm-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-border-strong); }
.dm-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--surface); border: 1px solid var(--surface-border); border-radius: var(--r-md); margin-bottom: 10px; }
.dm-row .name { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-hi); }
.dm-row .dot { width: 9px; height: 9px; border-radius: 50%; }
.dm-row .dot.ok { background: var(--success); box-shadow: 0 0 8px var(--success); }
.dm-row .dot.warn { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.dm-bar { height: 6px; border-radius: 3px; background: var(--surface-border); overflow: hidden; width: 90px; }
.dm-bar i { display: block; height: 100%; background: var(--vc-gradient); border-radius: 3px; }

/* ---------- Table (pricing compare / tickets) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--surface-border); }
table.vc-table { width: 100%; border-collapse: collapse; min-width: 640px; }
table.vc-table th, table.vc-table td { padding: 16px 20px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--surface-border); }
table.vc-table th { color: var(--text-hi); background: var(--surface); font-weight: 600; }
table.vc-table td { color: var(--text-mid); }
table.vc-table tr:last-child td { border-bottom: none; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; }
.tag.open { background: rgba(58,176,255,.12); color: var(--info); }
.tag.progress { background: rgba(245,166,35,.12); color: var(--warning); }
.tag.closed { background: rgba(34,197,94,.12); color: var(--success); }
.tag.high { background: rgba(239,68,68,.12); color: var(--danger); }
.tag.medium { background: rgba(245,166,35,.12); color: var(--warning); }
.tag.low { background: rgba(34,197,94,.12); color: var(--success); }

/* ---------- Support Widget ---------- */
.support-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 1200;
  display: flex; align-items: center; gap: 10px;
  padding: 15px 22px 15px 18px;
  border-radius: var(--r-pill);
  background: var(--vc-gradient);
  color: #fff; font-weight: 600; font-size: 14.5px;
  border: none;
  box-shadow: 0 14px 34px -10px rgba(80,60,180,.65);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.support-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -10px rgba(80,60,180,.8); }
.support-fab svg { width: 20px; height: 20px; }
.support-fab .pulse { position: absolute; top: -3px; right: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--success); border: 2px solid var(--bg-1); }

.support-panel {
  position: fixed; right: 26px; bottom: 26px; z-index: 1300;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 100px);
  border-radius: var(--r-xl);
  background: rgba(10, 13, 24, .92);
  border: 1px solid var(--surface-border-strong);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.7);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(.97); opacity: 0; visibility: hidden;
  transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
}
.support-panel.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; }
.sp-head { padding: 20px 22px; background: var(--vc-gradient); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.sp-head .who { display: flex; align-items: center; gap: 12px; }
.sp-head .avatar { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.sp-head .avatar svg { width: 20px; height: 20px; color: #fff; }
.sp-head strong { color: #fff; font-size: 15px; display: block; }
.sp-head small { color: rgba(255,255,255,.8); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.sp-head small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }
.sp-close { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.15); border: none; color: #fff; display: flex; align-items: center; justify-content: center; }
.sp-close svg { width: 16px; height: 16px; }
.sp-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sp-msg { max-width: 85%; padding: 12px 15px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.sp-msg.bot { align-self: flex-start; background: var(--surface-strong); color: var(--text-hi); border: 1px solid var(--surface-border); border-bottom-left-radius: 4px; }
.sp-msg.user { align-self: flex-end; background: var(--vc-gradient); color: #fff; border-bottom-right-radius: 4px; }
.sp-options { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.sp-option {
  text-align: left; padding: 12px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--surface-border-strong);
  color: var(--text-hi); font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
  transition: background .2s, border-color .2s;
}
.sp-option:hover { background: var(--surface-strong); border-color: var(--vc-primary-light); }
.sp-foot { padding: 14px 16px; border-top: 1px solid var(--surface-border); display: flex; gap: 10px; flex-shrink: 0; }
.sp-foot input { flex: 1; background: var(--surface); border: 1px solid var(--surface-border-strong); border-radius: var(--r-pill); padding: 12px 16px; color: var(--text-hi); font-size: 14px; }
.sp-foot input::placeholder { color: var(--text-low); }
.sp-foot button { width: 42px; height: 42px; border-radius: 50%; background: var(--vc-gradient); border: none; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sp-foot button svg { width: 18px; height: 18px; color: #fff; }
.sp-note { font-size: 11.5px; color: var(--text-low); text-align: center; padding: 0 16px 14px; }

/* ---------- Utility ---------- */
.mt-0{margin-top:0} .mb-0{margin-bottom:0}
.text-center{text-align:center}
.flex{display:flex} .items-center{align-items:center} .justify-between{justify-content:space-between} .gap-10{gap:10px}
.w-100{width:100%}
.mx-auto{margin-left:auto;margin-right:auto}
.pill-num { display:inline-flex; align-items:center; justify-content:center; width: 30px; height: 30px; border-radius: 50%; background: var(--vc-gradient-soft); border: 1px solid var(--surface-border-strong); color: var(--vc-primary-light); font-size: 13px; font-weight: 700; }

/* 404 */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 120px 24px; }
.error-code { font-family: var(--font-heading); font-size: clamp(90px, 18vw, 180px); font-weight: 700; line-height: 1; background: var(--vc-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Login/Register split visual */
.auth-visual { display: flex; align-items: center; justify-content: center; position: relative; }
.auth-visual .hv-core { position: static; transform: none; animation: floatY 6s ease-in-out infinite; }

/* ==========================================================================
   Universal CMS — Mega Menu, Hero Image, and generic page Sections.
   Additive only: every rule above this point is untouched. Built entirely
   from tokens already defined in :root above (--surface, --surface-border,
   --r-lg, --shadow-card, --vc-gradient, --font-heading, --ease, ...) so
   these read as part of the existing design rather than a new one. Every
   element below is only ever populated by js/cms-hydrate.js when an admin
   has actually published content for it — a page that never uses these
   fields renders pixel-identical to before this phase.
   ========================================================================== */

/* Mega Menu — a nav item gets wrapped in .nav-item.has-mega only when the
   published Navigation document gives it at least one child; the static
   fallback markup (nothing published, or the request failed) never has
   this wrapper, so nothing here ever appears without published data. */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item.has-mega > a { display: flex; align-items: center; gap: 4px; }
.nav-item.has-mega > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .65;
}
.mega-panel {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px);
  min-width: 520px; max-width: min(720px, calc(100vw - 40px));
  padding: 22px; margin-top: 12px;
  background: rgba(8, 11, 22, .94);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--surface-border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 1001;
}
.nav-item.has-mega:hover .mega-panel,
.nav-item.has-mega:focus-within .mega-panel {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
}
.mega-panel-inner { display: flex; gap: 30px; flex-wrap: wrap; }
.mega-group { min-width: 160px; }
.mega-group h4 {
  font-family: var(--font-heading); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-low);
  margin-bottom: 10px;
}
.mega-item { display: block; padding: 9px 10px; margin: 0 -10px 2px; border-radius: var(--r-sm); }
.mega-item:hover, .mega-item:focus-visible { background: var(--surface); }
.mega-item-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-hi); }
.mega-item-desc { display: block; font-size: 12px; color: var(--text-low); margin-top: 2px; }

/* Mobile menu's nested mega-menu items (no dropdown interaction on
   touch — a flat, always-visible indented list instead, which is the
   safer, simpler mobile pattern this phase deliberately chose). */
.mobile-sublabel {
  padding: 14px 6px 4px; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-low);
}
.mobile-panel a.mobile-sublink { padding-left: 20px; font-size: 16px; font-weight: 500; color: var(--text-mid); border-bottom: 1px solid var(--surface-border); }

/* Hero image — [data-cms-hero-image] ships empty/[hidden] in every
   CMS-managed page's hero; only ever shown once an admin publishes one. */
.hero-image { margin-top: 26px; }
.hero-image img { width: 100%; max-width: 420px; border-radius: var(--r-xl); display: block; }
.hero .hero-image img { max-width: 100%; }

/* Generic page Sections — [data-cms-sections-container] ships empty/
   [hidden] on pages that have a safe "before the final CTA" insertion
   point (see README). Mirrors About Us Editor's .additional-block. */
.cms-section-block { padding: 40px 0; border-top: 1px solid var(--surface-border); text-align: left; }
.cms-section-block:first-child { border-top: none; padding-top: 0; }
.cms-section-block img { width: 100%; border-radius: var(--r-lg); margin-bottom: 14px; display: block; }

/* Responsive: the mega menu is desktop-only (mirrors .nav-links itself
   disappearing below 991px — see css/responsive.css) so it never needs
   its own breakpoint override. */
@media (max-width: 991px) {
  .mega-panel { display: none; }
}
