:root {
  --bg: #0b0f19;
  --card: #1e293b;
  --text: #ffffff;
  --sub: #cbd5e1;
  --muted: #94a3b8;
  --primary: #3b82f6;
  --accent: #22d3ee;
  --border: rgba(148, 163, 184, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--sub);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.6;
}

.navbar {
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: #020617;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* Inner pages: solid bar without relying on scroll position */
body:not(.home) .navbar {
  background: #020617;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.navbar a {
  color: #fff !important;
  font-weight: 500;
}

/* Moyea-style top nav: flat links + dropdown */
.nav-ray-main .nav-link {
  border-radius: 6px;
}

.nav-ray-main .nav-link:hover,
.nav-ray-main .nav-link:focus {
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-menu-ray {
  --bs-dropdown-bg: #0f172a;
  --bs-dropdown-border-color: var(--border);
  --bs-dropdown-link-color: #e2e8f0;
  --bs-dropdown-link-hover-color: #fff;
  --bs-dropdown-link-hover-bg: rgba(59, 130, 246, 0.25);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-active-bg: rgba(59, 130, 246, 0.4);
  padding: 0.5rem 0;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  min-width: 12rem;
}

.dropdown-menu-ray .dropdown-item {
  font-size: 0.9rem;
  padding: 0.5rem 1.15rem;
}

.dropdown-menu-ray .dropdown-header {
  color: var(--muted);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.navbar-brand img {
  height: 56px;
  width: auto;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  background: radial-gradient(circle at 28% 22%, #1e3a8a 0%, #020617 55%);
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero .lead {
  font-size: 1.125rem;
  color: #e2e8f0;
  max-width: 36rem;
}

.btn-main {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  color: #fff !important;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
}

.btn-main:hover {
  filter: brightness(1.06);
}

.btn-outline-glass {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
}

.btn-outline-glass:hover {
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.card-ray {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  height: 100%;
  color: #e2e8f0;
}

.card-ray h3,
.card-ray h4,
.card-ray h5 {
  color: #fff;
  font-weight: 600;
}

.card-ray .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.5rem;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-hero {
  padding: 8rem 0 3rem;
  background: linear-gradient(180deg, #0f172a 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--muted);
}

.breadcrumb-item a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--muted);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 211, 238, 0.12);
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.cta {
  background: linear-gradient(45deg, var(--primary), var(--accent));
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
  color: #fff;
}

.cta h2 {
  color: #fff;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.show {
  opacity: 1;
  transform: none;
}

.compare-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.table-compare {
  --bs-table-bg: transparent;
  --bs-table-color: var(--sub);
  margin-bottom: 0;
}

.table-compare thead th {
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  border-color: var(--border);
  white-space: nowrap;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
}

.table-compare thead th.col-edition-pro {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35) 0%, rgba(34, 211, 238, 0.22) 100%);
  color: #f8fafc;
  box-shadow: inset 0 -2px 0 rgba(34, 211, 238, 0.5);
}

.table-compare thead th.col-edition-vjm {
  background: rgba(15, 23, 42, 0.95);
}

.table-compare thead th.col-feature {
  background: #020617;
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Trial labels etc. sit on striped rows — Bootstrap .text-muted is too dim */
.table-compare .text-muted {
  color: #cbd5e1 !important;
}

.table-compare tbody td,
.table-compare tbody th {
  border-color: var(--border);
  vertical-align: middle;
  padding: 0.85rem 1rem;
}

.table-compare tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.45);
}

.table-compare tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

.table-compare .cell-center {
  text-align: center;
}

.table-compare .cell-value {
  font-weight: 600;
  color: #e2e8f0;
  font-variant-numeric: tabular-nums;
}

.check-yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.22), rgba(16, 185, 129, 0.12));
  color: #4ade80;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  border: 1px solid rgba(74, 222, 128, 0.45);
  box-shadow: 0 0 16px rgba(74, 222, 128, 0.12);
}

.check-yes::before {
  content: "✓";
}

.check-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.15));
  color: #5eead4;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  border: 1px solid rgba(94, 234, 212, 0.4);
}

.check-cyan::before {
  content: "✓";
}

.cell-dash {
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.65;
}

.compare-footnote {
  font-size: 0.8125rem;
  color: #cbd5e1;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.5);
}

/* Compact edition comparison (vjmixer.html) */
.compare-wrap.compare-wrap-sm {
  max-width: 52rem;
  margin-inline: auto;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.compare-wrap.compare-wrap-sm .table-compare {
  font-size: 0.8125rem;
}

.compare-wrap.compare-wrap-sm .table-compare thead th {
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
}

.compare-wrap.compare-wrap-sm .table-compare thead th.col-feature {
  font-size: 0.68rem;
}

.compare-wrap.compare-wrap-sm .table-compare tbody td,
.compare-wrap.compare-wrap-sm .table-compare tbody th {
  padding: 0.5rem 0.65rem;
}

.compare-wrap.compare-wrap-sm .check-yes,
.compare-wrap.compare-wrap-sm .check-cyan {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.68rem;
}

.compare-wrap.compare-wrap-sm .cell-dash {
  font-size: 1rem;
}

.compare-wrap.compare-wrap-sm .compare-footnote {
  font-size: 0.75rem;
  padding: 0.65rem 0.85rem 0.85rem;
}

.badge-pill {
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.75rem;
}

.callout {
  border-left: 4px solid var(--accent);
  background: rgba(34, 211, 238, 0.08);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.25rem;
  color: #e2e8f0;
}

/* Readable body copy on dark cards (Bootstrap .text-muted is too dim here) */
.card-ray .text-muted {
  color: #cbd5e1 !important;
}

.text-ray {
  color: #e2e8f0;
}

.text-ray-soft {
  color: #cbd5e1;
}

.text-ray-label {
  color: #5eead4;
  font-weight: 600;
}

.page-hero .lead.text-secondary {
  color: #cbd5e1 !important;
}

.link-ray {
  color: #5eead4;
  text-decoration: none;
  font-weight: 500;
}

.link-ray:hover {
  color: #99f6e4;
  text-decoration: underline;
}

footer.site-footer {
  background: #020617;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  color: #94a3b8;
}

footer.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

footer.site-footer a:hover {
  color: #99f6e4;
  text-decoration: underline;
}

footer.site-footer .footer-copy {
  color: #94a3b8;
  font-size: 0.8125rem;
}

/* Slightly tighter vertical rhythm on inner pages */
body:not(.home) .section {
  padding: 4rem 0;
}

body:not(.home) .section-tight {
  padding: 2.75rem 0;
}

body:not(.home) .page-hero {
  padding: 7rem 0 2.5rem;
}

/* Home quick-link tiles */
a.text-decoration-none:hover .card-ray {
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.12);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Hero rotating content */
.hero-slides {
  position: relative;
}

.hero-slide {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-slide.is-hidden {
  opacity: 0;
  transform: translateY(12px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.hero-slide.is-visible {
  opacity: 1;
  transform: none;
}

.hero-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.3s ease;
  border: none;
  padding: 0;
}

.hero-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.5);
}
