:root {
  --xyvren-primary: #6d28d9;
  --xyvren-primary-dark: #5721b1;
  --xyvren-accent: #2563eb;
  --xyvren-ink: #0f172a;
  --xyvren-muted: #64748b;
  --xyvren-line: #e2e8f0;
  --xyvren-bg: #f8fafc;
  --xyvren-card: #ffffff;
  --xyvren-success: #15803d;
  --xyvren-error: #b91c1c;
  --xyvren-radius: 12px;
  --xyvren-radius-lg: 16px;
  --xyvren-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  --xyvren-ease: cubic-bezier(0.2, 0.75, 0.25, 1);
  --primary: var(--xyvren-primary) !important;
  --ungu: var(--xyvren-primary) !important;
  --biru: var(--xyvren-accent) !important;
  --ink: var(--xyvren-ink) !important;
  --mut: var(--xyvren-muted) !important;
  --muted: var(--xyvren-muted) !important;
  --text: var(--xyvren-ink) !important;
  --line: var(--xyvren-line) !important;
  --border: var(--xyvren-line) !important;
  --bg: var(--xyvren-bg) !important;
  --surface: var(--xyvren-card) !important;
  --card: var(--xyvren-card) !important;
  --grad: var(--xyvren-primary) !important;
  --r-md: var(--xyvren-radius) !important;
  --r-lg: var(--xyvren-radius-lg) !important;
  --r-xl: var(--xyvren-radius-lg) !important;
  --shadow: var(--xyvren-shadow) !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--xyvren-bg) !important;
  color: var(--xyvren-ink) !important;
  font-synthesis: none;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.38) !important;
  outline-offset: 3px;
}

nav,
.nav {
  min-height: 64px;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--xyvren-line) !important;
}

.nav-in,
nav .nav-in,
nav > .wrap {
  min-height: 64px;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.logo,
.brand {
  letter-spacing: -0.02em;
}

.logo-mark,
.brand .logo,
.prod-ic,
.sb-new,
.step-num,
.step .n,
.fam-ic,
[class*="-ic"] {
  border-radius: 10px !important;
}

.avatar {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  display: inline-grid !important;
  place-items: center !important;
  flex: 0 0 36px !important;
  background: var(--xyvren-primary) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.logo-mark,
.brand .logo,
.prod-ic,
.avatar,
.sb-new,
.step-num,
.step .n {
  background: var(--xyvren-primary) !important;
}

.fam-ic {
  background: var(--xyvren-primary) !important;
}

.fam-item,
.card,
.mock,
.auth-card,
.stat,
.step,
.prod-live,
.bub,
.launcher,
.tabs,
pre,
.price-grid > *,
.grid3 > *,
.grid2 > * {
  border-radius: var(--xyvren-radius-lg) !important;
  box-shadow: none !important;
}

.card,
.mock,
.auth-card,
.stat,
.step,
.prod-live,
.launcher,
.price-grid > * {
  background: var(--xyvren-card) !important;
  border: 1px solid var(--xyvren-line) !important;
}

.launcher {
  max-width: calc(100vw - 24px);
  box-shadow: var(--xyvren-shadow) !important;
  border-radius: var(--xyvren-radius-lg) !important;
  top: 56px !important;
}

.launcher h4,
.sec-head .kick,
.kicker,
.kick,
.mock h5,
.mock-sec h5 {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  background: none !important;
  color: var(--xyvren-muted) !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.hero h1,
.hero h1.grad-text,
.hero h1 .grad,
.hero h1 .grad-text,
.grad-text {
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: var(--xyvren-ink) !important;
}

.btn,
.btn.pri,
button.primary,
input[type="submit"],
.tabs button.on,
.sb-new {
  min-height: 44px;
  border: 0 !important;
  background: var(--xyvren-primary) !important;
  color: #fff !important;
  border-radius: var(--xyvren-radius) !important;
  transition: transform 160ms var(--xyvren-ease),
              background-color 160ms var(--xyvren-ease),
              box-shadow 160ms var(--xyvren-ease) !important;
}

.btn:hover,
.btn.pri:hover,
button.primary:hover,
input[type="submit"]:hover,
.sb-new:hover {
  background: var(--xyvren-primary-dark) !important;
  transform: translateY(-1px);
}

.btn.sec,
.icon-btn,
button.secondary,
.tabs button {
  background: #fff !important;
  color: var(--xyvren-ink) !important;
  border: 1px solid var(--xyvren-line) !important;
  border-radius: var(--xyvren-radius) !important;
}

.icon-btn,
.btn,
a,
button {
  touch-action: manipulation;
}

.icon-btn {
  width: 44px;
  height: 44px;
}

.nav-right {
  min-height: 44px;
  gap: 8px !important;
}

.nav-right .user-chip,
.header-account,
.account-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 44px;
  max-width: 240px;
  color: var(--xyvren-ink) !important;
}

.nav-right .user-chip span:not(.avatar),
.header-account-name,
.account-name {
  min-width: 0;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.tag,
.tag.live,
.tag.soon,
.badge,
.badge.ok,
.badge.off,
.hot-badge,
.pname + * {
  border-radius: 999px !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.tag.live,
.badge.ok {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.tag.soon,
.badge.off {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.cta-band,
.auth-card,
.hero {
  box-shadow: none !important;
}

.cta-band {
  background: var(--xyvren-primary) !important;
  border-radius: var(--xyvren-radius-lg) !important;
}

.cta-band .btn {
  background: #fff !important;
  color: var(--xyvren-primary) !important;
}

.xyv-reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 260ms var(--xyvren-ease),
              transform 260ms var(--xyvren-ease);
}

.xyv-reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .xyv-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 760px) {
  .nav-in,
  nav .nav-in {
    height: 64px;
  }

  .nav-links,
  #landingLinks {
    display: none !important;
  }

  .nav-right .user-chip span:not(.avatar),
  .header-account-name,
  .account-name {
    display: none !important;
  }

  .launcher {
    position: fixed !important;
    top: 70px !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
  }

  .hero,
  .hero-copy,
  section.blk,
  section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .grid3,
  .grid2,
  .prod-live,
  .steps,
  .price {
    grid-template-columns: 1fr !important;
  }

  .hero h1 {
    font-size: clamp(34px, 12vw, 48px) !important;
  }
}
