/*
 * VexaDoc — Landing Page
 * Design 1:1 from mockup.html
 * Merged with existing register view + footer styles
 */

/* ══════════════════════════════════════════
   TOKENS — mockup design-system aliases
   The mockup.html uses --r-s / --r-m / --r-l / --r-xl for radii
   and --f-display / --f-body / --f-mono for fonts.
   variables.css uses different names, so we alias them here.
══════════════════════════════════════════ */
:root {
  /* border-radius aliases (mockup uses --r-s, --r-m, --r-l, --r-xl) */
  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --r-xl: 30px;

  /* font-family aliases (mockup uses --f-display, --f-body, --f-mono) */
  --f-display: var(--font-brand);
  --f-body: var(--font-ui);
  --f-mono: var(--font-mono);

  /* gradient aliases used throughout mockup CSS */
  --grad-brand: linear-gradient(135deg, var(--blue), var(--cyan));
  --grad-text: linear-gradient(90deg, #eaf7fa 0%, #8fe3f0 55%, #29c4e0 100%);
}

/* ambient backdrop --------------------------------------------------- */
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.mesh::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 40% at 12% -5%,
      rgba(41, 196, 224, 0.14) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse 55% 40% at 50% 100%,
      rgba(26, 127, 168, 0.12) 0%,
      transparent 60%
    );
}
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1020;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s,
    background 0.3s,
    transform 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(8, 10, 13, 0.85);
  backdrop-filter: blur(20px) saturate(150%);
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}
.nav-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.logo img {
  height: 30px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}
.logo b {
  color: var(--cyan);
  font-weight: 700;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.88rem;
  color: var(--text2);
  font-weight: 500;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.nav-signin {
  font-size: 0.85rem;
  color: var(--text2);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-signin:hover {
  color: var(--text);
}

/* ── Language toggle (mockup style) ── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 0.4rem 0.8rem 0.4rem 0.6rem;
  background: none;
  cursor: pointer;
  font-family: var(--font-ui);
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.lang-toggle:hover {
  border-color: var(--cyan);
  color: var(--text);
  background: rgba(41, 196, 224, 0.06);
}
.lang-toggle .lt-flag {
  font-size: 1rem;
  line-height: 1;
}
.lang-toggle .lt-txt {
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.nav-mobile-actions .lang-toggle-mobile {
  font-size: 0.95rem;
  padding: 0.55rem 1.1rem 0.55rem 0.8rem;
  margin-top: 0.3rem;
}

/* ── Burger ── */
.nav-burger {
  display: none;
  position: relative;
  z-index: 1010;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: transparent;
  border: none;
  transition:
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger:hover {
  background: rgba(255, 255, 255, 0.05);
}
.nav-burger:active {
  transform: scale(0.9);
}
.nav-burger .burger-inner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 16px;
  transform: translate(-50%, -50%);
}
.nav-burger .burger-inner span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.25s var(--ease),
    top 0.3s var(--ease);
}
.nav-burger .burger-inner span:nth-child(1) {
  top: 0;
}
.nav-burger .burger-inner span:nth-child(2) {
  top: 7px;
}
.nav-burger .burger-inner span:nth-child(3) {
  top: 14px;
}
.nav-burger.open .burger-inner span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.nav-burger.open .burger-inner span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.5);
}
.nav-burger.open .burger-inner span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

/* ── Mobile nav overlay ── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1005;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: rgba(8, 10, 13, 0.97);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  overflow-y: auto;
  padding: 0;
}
.nav-mobile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(41, 196, 224, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.nav-mobile.menu-open {
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 100px 28px 40px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.nav-mobile a {
  width: 100%;
  max-width: min(320px, 100%);
  margin: 0 auto;
  padding: 1rem 20px;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(1.2rem, 5vw, 1.5rem);
  color: var(--text2);
  white-space: nowrap;
  border-radius: var(--r-m, 14px);
  transform: translateY(16px);
  opacity: 0;
  transition:
    transform 0.4s var(--ease),
    opacity 0.4s var(--ease),
    color 0.2s,
    background 0.2s;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-decoration: none;
}
.nav-mobile a::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  opacity: 0;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
  transform: scale(0);
}
.nav-mobile a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.nav-mobile a:hover::before {
  opacity: 1;
  transform: scale(1);
}
.nav-mobile.menu-open a {
  transform: translateY(0);
  opacity: 1;
}
.nav-mobile.menu-open a:nth-child(1) {
  transition-delay: 0.06s;
}
.nav-mobile.menu-open a:nth-child(2) {
  transition-delay: 0.11s;
}
.nav-mobile.menu-open a:nth-child(3) {
  transition-delay: 0.16s;
}
.nav-mobile.menu-open a:nth-child(4) {
  transition-delay: 0.21s;
}
.nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  max-width: min(320px, 100%);
  margin: 1.8rem auto 0;
  padding: 2rem 20px 0;
  border-top: 1px solid var(--border);
  transform: translateY(16px);
  opacity: 0;
  transition:
    transform 0.4s var(--ease) 0.28s,
    opacity 0.4s var(--ease) 0.28s;
}
.nav-mobile.menu-open .nav-mobile-actions {
  transform: translateY(0);
  opacity: 1;
}
.nav-mobile-actions .nav-signin {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text2);
  padding: 0.75rem 0;
  text-align: center;
  border-radius: var(--r-m, 14px);
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-mobile-actions .nav-signin:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.nav-mobile-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
}
.nav-mobile-actions .lang-toggle-mobile {
  align-self: center;
  margin-top: 0.2rem;
}
.nav.menu-open {
  background: transparent !important;
  border-bottom-color: transparent !important;
  backdrop-filter: none !important;
}

@media (max-width: 860px) {
  .nav-actions {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .nav-mobile {
    display: flex;
  }
  .nav-in {
    padding: 12px 16px;
  }
  .logo {
    font-size: 1.15rem;
  }
}

@media (max-width: 480px) {
  .nav-in {
    padding: 10px 12px;
    gap: 10px;
  }
  .logo {
    font-size: 1.05rem;
  }
  .nav-burger {
    width: 32px;
    height: 32px;
  }
  .nav-burger .burger-inner {
    width: 18px;
    height: 14px;
  }
  .nav-burger .burger-inner span:nth-child(2) {
    top: 6px;
  }
  .nav-burger .burger-inner span:nth-child(3) {
    top: 12px;
  }
  .nav-burger.open .burger-inner span:nth-child(1),
  .nav-burger.open .burger-inner span:nth-child(3) {
    top: 6px;
  }
  .nav-mobile-inner {
    padding: 76px 16px 28px;
  }
  .nav-mobile a {
    padding: 0.75rem 14px;
    font-size: 1rem;
    gap: 10px;
  }
  .nav-mobile-actions {
    padding: 1.2rem 14px 0;
    margin-top: 1.2rem;
  }
  .nav-mobile-actions .btn {
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
  }
  .nav-mobile-actions .nav-signin {
    font-size: 0.9rem;
    padding: 0.6rem 0;
  }
  .nav-mobile-actions .lang-toggle-mobile {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem 0.4rem 0.6rem;
  }
}

@media (max-width: 360px) {
  .nav-in {
    padding: 8px 10px;
    gap: 8px;
  }
  .logo {
    font-size: 0.95rem;
  }
  .nav-burger {
    width: 30px;
    height: 30px;
  }
  .nav-burger .burger-inner {
    width: 16px;
    height: 12px;
  }
  .nav-burger .burger-inner span:nth-child(2) {
    top: 5px;
  }
  .nav-burger .burger-inner span:nth-child(3) {
    top: 10px;
  }
  .nav-burger.open .burger-inner span:nth-child(1),
  .nav-burger.open .burger-inner span:nth-child(3) {
    top: 5px;
  }
  .nav-mobile-inner {
    padding: 68px 12px 24px;
  }
  .nav-mobile a {
    padding: 0.65rem 12px;
    font-size: 0.95rem;
  }
  .nav-mobile-actions {
    padding: 1rem 12px 0;
  }
  .nav-mobile-actions .btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Tablet range: tighter spacing for longer Polish labels */
@media (min-width: 861px) and (max-width: 1220px) {
  .nav-in {
    padding: 14px 20px;
    gap: 14px;
  }
  .nav-links {
    gap: 1.1rem;
    font-size: 0.8rem;
  }
  .nav-actions {
    gap: 0.65rem;
  }
  .nav-signin {
    font-size: 0.78rem;
  }
  .btn {
    font-size: 0.8rem;
    padding: 0.6rem 1.05rem;
  }
  .lang-toggle {
    font-size: 0.72rem;
    padding: 0.35rem 0.6rem 0.35rem 0.5rem;
    gap: 0.3rem;
  }
}
@media (min-width: 861px) and (max-width: 980px) {
  .nav-links {
    gap: 0.8rem;
    font-size: 0.74rem;
  }
  .logo {
    font-size: 1.1rem;
  }
}

/* ══════════════════════════════════════════
   BUTTONS (mockup style)
══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--r-s, 8px);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent-grad);
  color: #04222b;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 8px 24px rgba(41, 196, 224, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 12px 32px rgba(41, 196, 224, 0.4);
}
.btn-ghost {
  border: 1px solid var(--border2);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(41, 196, 224, 0.06);
}
.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 0.95rem;
  border-radius: var(--r-m, 14px);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 2;
  padding: 100px 0 60px;
}
.hero-in {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 1060px) {
  .hero-in {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--cyan-light);
  border: 1px solid rgba(41, 196, 224, 0.28);
  background: rgba(41, 196, 224, 0.07);
  border-radius: 99px;
  padding: 0.4rem 0.9rem;
  margin-bottom: 1.6rem;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 1.8s infinite;
}

.hero h1 {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.07;
  margin-bottom: 1.4rem;
}
.hero h1 .fade {
  color: var(--text2);
  font-weight: 600;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 460px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-ctas .link-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border2);
  padding-bottom: 2px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.hero-ctas .link-more:hover {
  border-color: var(--cyan);
  color: var(--cyan-light);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text3);
}
.trust-row i {
  color: var(--text3);
  font-size: 14px;
}

/* ---- hero abstract "void → signal" visual ---- */
.hero-visual {
  position: relative;
}
.hv-stage {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hv-glow {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(41, 196, 224, 0.16) 0%,
    rgba(26, 127, 168, 0.06) 45%,
    transparent 72%
  );
  filter: blur(2px);
}
.hv-sweep {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(41, 196, 224, 0.22),
    transparent 26%,
    transparent 100%
  );
  animation: hv-spin 7s linear infinite;
  opacity: 0.55;
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%, #000 100%);
  mask: radial-gradient(circle, transparent 58%, #000 59%, #000 100%);
}
.hv-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hv-ring-static {
  border: 1px solid rgba(41, 196, 224, 0.14);
}
.hv-ring-static-1 {
  inset: 30%;
}
.hv-ring-static-2 {
  inset: 15%;
}
.hv-ring-static-3 {
  inset: 0%;
  border-color: rgba(41, 196, 224, 0.08);
}
.hv-ping {
  inset: 38%;
  border: 1px solid rgba(77, 216, 239, 0.55);
  animation: hv-ping 3.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
.hv-ping-2 {
  animation-delay: 1.2s;
}
.hv-ping-3 {
  animation-delay: 2.4s;
}

.hv-core {
  position: relative;
  z-index: 3;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--blue), var(--cyan));
  font-size: 1.7rem;
  color: #04141a;
  animation:
    hv-breathe 4s ease-in-out infinite,
    hv-float 5s ease-in-out infinite;
}

.hv-page {
  position: absolute;
  z-index: 2;
  top: 26%;
  left: 16%;
  width: 108px;
  height: 138px;
  border-radius: 10px;
  transform: rotate(-9deg);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 18px 34px -16px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  animation: hv-float 5.5s ease-in-out infinite;
  animation-delay: 0.6s;
}
.hv-page-lines {
  position: absolute;
  inset: 16px 14px;
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.16) 0 3px,
    transparent 3px 13px
  );
}
.hv-page-lines::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 34%;
  height: 3px;
  background: rgba(41, 196, 224, 0.5);
  border-radius: 2px;
}
.hv-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 30%;
  top: -40%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(41, 196, 224, 0.4),
    transparent
  );
  animation: hv-scan 3.4s ease-in-out infinite;
}

.hv-node {
  position: absolute;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  background: var(--bg2);
  border: 1px solid var(--border2);
  color: var(--cyan-light);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  animation: hv-node 4.5s ease-in-out infinite;
}
.hv-node-1 {
  top: 8%;
  left: 10%;
  animation-delay: 0.2s;
}
.hv-node-2 {
  top: 12%;
  right: 6%;
  animation-delay: 1.4s;
}
.hv-node-3 {
  bottom: 8%;
  right: 18%;
  animation-delay: 2.6s;
}

.hv-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text2);
  white-space: nowrap;
  background: rgba(13, 16, 21, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 0.45rem 0.9rem;
  opacity: 0;
  animation: hv-fade 8s ease-in-out infinite;
}
.hv-badge i {
  font-size: 0.7rem;
  color: var(--cyan-light);
}
.hv-badge-1 {
  bottom: 20%;
  left: -4%;
  animation-delay: 0s;
}
.hv-badge-2 {
  top: 4%;
  right: 0%;
  animation-delay: 2s;
}
.hv-badge-3 {
  bottom: 4%;
  right: 6%;
  animation-delay: 4s;
}
.hv-badge-4 {
  top: 22%;
  left: -8%;
  animation-delay: 6s;
}
@media (max-width: 640px) {
  .hv-badge-4 {
    display: none;
  }
}

@keyframes hv-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hv-ping {
  0% {
    transform: scale(0.45);
    opacity: 0.7;
  }
  80% {
    opacity: 0;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes hv-breathe {
  0%,
  100% {
    box-shadow: 0 0 34px 4px rgba(41, 196, 224, 0.28);
  }
  50% {
    box-shadow: 0 0 52px 12px rgba(41, 196, 224, 0.45);
  }
}
@keyframes hv-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes hv-node {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-7px) scale(1.06);
  }
}
@keyframes hv-scan {
  0% {
    top: -40%;
  }
  100% {
    top: 110%;
  }
}
@keyframes hv-fade {
  0%,
  2% {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
  8%,
  20% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  27%,
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
}

@media (max-width: 1060px) {
  .hv-stage {
    max-width: 360px;
  }
}
@media (max-width: 520px) {
  .hv-badge {
    display: none;
  }
}

/* ══════════════════════════════════════════
   WRAP — shared max-width container
══════════════════════════════════════════ */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }
}

/* ══════════════════════════════════════════
   SECTION COMMON
══════════════════════════════════════════ */
.section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
}
@media (max-width: 860px) {
  /* Mobile nav: hide desktop links & actions, show burger */
  .nav-links {
    display: none;
  }
  .nav-actions {
    display: none;
  }
  .nav-burger {
    display: flex;
  }
  .nav-mobile {
    display: flex;
  }
  .nav-in {
    padding: 12px 16px;
  }
  .logo {
    font-size: 1.15rem;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 76px 0;
  }
}
.sec-head {
  max-width: 640px;
  margin-bottom: 4rem;
}
.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-light);
  margin-bottom: 0.9rem;
  display: block;
}
.sec-head h2 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.16;
  margin-bottom: 1rem;
}
.sec-head p {
  color: var(--text2);
  font-size: 1.02rem;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 {
  transition-delay: 0.1s;
}
.reveal-delay-2 {
  transition-delay: 0.2s;
}

/* ══════════════════════════════════════════
   BENTO FEATURES
══════════════════════════════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.b-card {
  background: linear-gradient(160deg, var(--bg3), var(--bg2));
  border: 1px solid var(--border);
  border-radius: var(--r-l, 22px);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.3s;
}
.b-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}
.b-full {
  grid-column: 1 / -1;
}
@media (max-width: 860px) {
  .bento {
    grid-template-columns: 1fr;
  }
}

.b-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(41, 196, 224, 0.12);
  color: var(--cyan-light);
  font-size: 1rem;
  margin-bottom: 1.1rem;
}
.b-card h3 {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
  letter-spacing: -0.005em;
}
.b-card p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 460px;
}

.b-full-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 38px;
  align-items: center;
  margin-top: 1.4rem;
}
@media (max-width: 760px) {
  .b-full-inner {
    grid-template-columns: 1fr;
  }
}
.page-map {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pm-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.pm-tag {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 4px;
  width: 66px;
  text-align: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}
.pm-track {
  flex: 1;
  height: 7px;
  border-radius: 99px;
  background: var(--bg4);
  overflow: hidden;
}
.pm-fill {
  height: 100%;
  border-radius: 99px;
}
.pm-time {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text3);
  width: 38px;
  text-align: right;
  flex-shrink: 0;
}

/* ---- tag & fill colors (page-map) ---- */
.tag-cover {
  background: rgba(251, 191, 36, 0.18);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.4);
}
.fill-cover {
  background: linear-gradient(90deg, #a16207, #fde68a);
}
.tag-proof {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
}
.fill-proof {
  background: linear-gradient(90deg, #15803d, #86efac);
}
.tag-scope {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
}
.fill-scope {
  background: linear-gradient(90deg, #1d4ed8, #93c5fd);
}
.tag-pricing {
  background: rgba(248, 81, 73, 0.18);
  color: #fca5a5;
  border-color: rgba(248, 81, 73, 0.4);
}
.fill-pricing {
  background: linear-gradient(90deg, #b91c1c, #fca5a5);
}
.tag-team {
  background: rgba(20, 184, 166, 0.18);
  color: #5eead4;
  border-color: rgba(20, 184, 166, 0.4);
}
.fill-team {
  background: linear-gradient(90deg, #0f766e, #5eead4);
}
.tag-terms {
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border-color: rgba(139, 92, 246, 0.4);
}
.fill-terms {
  background: linear-gradient(90deg, #6d28d9, #c4b5fd);
}

.mini-toast {
  margin-top: 1.4rem;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: var(--r-m);
  padding: 0.9rem 1rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.mini-toast i {
  color: var(--cyan-light);
  margin-top: 0.15rem;
}
.mini-toast .mt-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.mini-toast .mt-sub {
  font-size: 0.76rem;
  color: var(--text3);
}

.shield-visual {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.shield-visual .sv-pill {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  color: var(--text2);
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 0.35rem 0.8rem;
}

/* ══════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 52px;
  }
}
.step {
  position: relative;
  padding: 0 28px;
}
.step:first-child {
  padding-left: 0;
}
.step:last-child {
  padding-right: 0;
}
@media (max-width: 860px) {
  .step,
  .step:first-child,
  .step:last-child {
    padding: 0;
  }
}
.step::after {
  content: "";
  position: absolute;
  top: 29px;
  left: calc(100% - 28px + 29px);
  width: calc(56px - 2px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(41, 196, 224, 0.35),
    rgba(41, 196, 224, 0)
  );
}
.step:last-child::after {
  display: none;
}
@media (max-width: 860px) {
  .step::after {
    display: none;
  }
}
.step-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.4rem;
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--cyan-light);
  border-radius: 16px;
  background: linear-gradient(
    155deg,
    rgba(41, 196, 224, 0.14),
    rgba(26, 127, 168, 0.04)
  );
  border: 1px solid rgba(41, 196, 224, 0.3);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 12px 28px -14px rgba(41, 196, 224, 0.5);
}
.step-num::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(
    155deg,
    rgba(77, 216, 239, 0.7),
    rgba(41, 196, 224, 0) 60%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.step h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}
.step p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---- real-app screenshot (used in showcase section) ---- */
.appmock-stage {
  position: relative;
}
.appmock {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-radius: var(--r-l);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.03) inset;
  overflow: hidden;
}
.amc-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
}
.amc-bar .d {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border3);
}
.amc-bar .url {
  margin-left: 0.6rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.amc-shell {
  display: grid;
  grid-template-columns: 158px 210px 1fr;
  min-height: 400px;
}
@media (max-width: 1060px) {
  .amc-shell {
    grid-template-columns: 132px 190px 1fr;
  }
}
@media (max-width: 640px) {
  .amc-shell {
    grid-template-columns: 1fr;
  }
  .amc-sidebar,
  .amc-doclist {
    display: none;
  }
}

.amc-sidebar {
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.amc-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--border);
}
.amc-logo .dot-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--grad-brand);
  flex-shrink: 0;
}
.amc-logo b {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.amc-logo b span {
  color: var(--cyan);
}
.amc-navlabel {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  padding: 0 6px;
  margin-bottom: 4px;
}
.amc-navitem {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text2);
  margin-bottom: 2px;
}
.amc-navitem i {
  font-size: 14px;
}
.amc-navitem.active {
  background: rgba(41, 196, 224, 0.1);
  color: var(--cyan);
  position: relative;
}
.amc-navitem .amc-badge {
  margin-left: auto;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: 99px;
  font-size: 0.58rem;
  padding: 0 6px;
  color: var(--text3);
}

.amc-doclist {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.amc-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 10px 0;
  border-bottom: 1px solid var(--border);
}
.amc-tab {
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--text2);
  padding: 5px 10px;
  border-radius: 6px 6px 0 0;
}
.amc-tab.active {
  color: var(--cyan);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-bottom-color: var(--bg2);
  position: relative;
  top: 1px;
}
.amc-search {
  margin: 9px 10px;
  position: relative;
}
.amc-search i {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text3);
}
.amc-search span {
  display: block;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 8px 5px 24px;
  font-size: 0.65rem;
  color: var(--text3);
}
.amc-doc {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
}
.amc-doc.sel {
  background: rgba(41, 196, 224, 0.06);
  border-left: 2px solid var(--cyan);
}
.amc-doc-name {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.amc-doc-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  color: var(--text3);
}
.amc-doc-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bg4);
  border-radius: 99px;
  padding: 1px 6px;
  font-size: 0.55rem;
  color: var(--text3);
}

.amc-detail {
  padding: 16px 18px;
}
.amc-dheader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.amc-dtitle {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 0.92rem;
}
.amc-durl {
  font-size: 0.62rem;
  color: var(--text3);
  margin-top: 2px;
}
.amc-dactions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.amc-abtn {
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.62rem;
  color: var(--text2);
  background: transparent;
}
.amc-abtn.primary {
  background: rgba(41, 196, 224, 0.1);
  border-color: rgba(41, 196, 224, 0.3);
  color: var(--cyan);
}

.amc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 1rem;
}
.amc-stat {
  background: var(--bg3);
  border-radius: var(--r-s);
  padding: 10px 12px;
}
.amc-stat .l {
  font-size: 0.56rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text3);
  display: block;
  margin-bottom: 4px;
}
.amc-stat .v {
  font-family: var(--f-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.amc-stat.cyan .v {
  color: var(--cyan);
}
.amc-stat .s {
  font-size: 0.55rem;
  color: var(--text3);
  display: block;
  margin-top: 2px;
}

.amc-section-title {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 0.6rem;
}

.amc-visit {
  background: var(--bg3);
  border-radius: var(--r-s);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.amc-visit i {
  color: var(--text3);
  font-size: 12px;
}
.amc-visit .info {
  flex: 1;
}
.amc-visit .date {
  font-size: 0.68rem;
  font-weight: 500;
}
.amc-visit .meta {
  font-size: 0.58rem;
  color: var(--text3);
}
.amc-visit .dur {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text2);
}

.amc-pm-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.amc-pm-tag {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  width: 44px;
  flex-shrink: 0;
  color: var(--text3);
}
.amc-pm-track {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--bg4);
  overflow: hidden;
}
.amc-pm-fill {
  height: 100%;
  border-radius: 99px;
}
.amc-pm-time {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--text3);
  width: 32px;
  text-align: right;
  flex-shrink: 0;
}

.amc-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.amc-toggle-row .nm {
  font-size: 0.68rem;
  font-weight: 500;
}
.amc-toggle-row .ds {
  font-size: 0.58rem;
  color: var(--text3);
}
.amc-toggle {
  width: 28px;
  height: 16px;
  border-radius: 99px;
  background: var(--cyan);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.amc-toggle::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}
.amc-toggle.off {
  background: var(--bg4);
}
.amc-toggle.off::before {
  left: 2px;
}

/* ══════════════════════════════════════════
   ANALYTICS SHOWCASE
══════════════════════════════════════════ */
.showcase {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 1.9rem;
}
.sc-item {
  display: flex;
  gap: 1rem;
}
.sc-num {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--cyan-light);
  border: 1px solid rgba(41, 196, 224, 0.3);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.15rem;
}
.sc-item h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.06rem;
  margin-bottom: 0.3rem;
}
.sc-item p {
  color: var(--text2);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   TRUST / SECURITY
══════════════════════════════════════════ */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}
.trust-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  padding: 26px;
}
.trust-card i {
  font-size: 1.3rem;
  color: var(--cyan-light);
  margin-bottom: 0.9rem;
  display: block;
}
.trust-card h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.trust-card p {
  color: var(--text2);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   FAQ
══════════════════════════════════════════ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}
.faq-q i {
  color: var(--text3);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-q i {
  transform: rotate(45deg);
  color: var(--cyan-light);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-item.open .faq-a {
  max-height: 220px;
}
.faq-a p {
  color: var(--text2);
  font-size: 0.92rem;
  line-height: 1.7;
  padding-bottom: 1.6rem;
  max-width: 640px;
}

/* ══════════════════════════════════════════
   FINAL CTA
══════════════════════════════════════════ */
.final-cta {
  text-align: center;
  position: relative;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: -40px -10% auto -10%;
  height: 340px;
  z-index: -1;
  background: radial-gradient(
    ellipse 60% 100% at 50% 40%,
    rgba(41, 196, 224, 0.13),
    transparent 70%
  );
}
.final-cta h2 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.final-cta p {
  color: var(--text2);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 2.2rem;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: transparent;
}
.footer-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links {
  display: flex;
  gap: 1.6rem;
  font-size: 0.82rem;
  color: var(--text3);
}
.footer-links a:hover {
  color: var(--text2);
}
.footer small {
  color: var(--text3);
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
