:root {
  --revz-text: #0e1624;
  --revz-bg: #ffffff;
  --revz-bg-soft: #fafbfd;
  --revz-purple: #f3d9f6;
  --revz-blue: #e4f7ff;
  --revz-yellow: #fffacd;
  --revz-shadow: 0 18px 50px rgba(14, 22, 36, 0.08);
  --revz-shadow-soft: 0 12px 32px rgba(14, 22, 36, 0.06);
}

* {
  font-family: "Inter", sans-serif;
}

body {
  background:
    radial-gradient(circle at top, rgba(228, 247, 255, 0.22), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
  color: var(--revz-text);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  border-radius: 9999px;
  background: #0e1624;
  color: #fafbfd;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: top 0.2s ease;
}

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

.navbar-scroll {
  backdrop-filter: blur(16px);
  background: rgba(14, 22, 36, 0.88) !important;
  box-shadow: 0 1px 24px rgba(8, 12, 20, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-nav {
  backdrop-filter: blur(16px);
  background: rgba(14, 22, 36, 0.88);
  box-shadow: 0 1px 24px rgba(8, 12, 20, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-toggle {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 0.25rem;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.74);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-link.is-active {
  background: #fafbfd;
  color: #0e1624;
  box-shadow: 0 10px 24px rgba(8, 12, 20, 0.16);
}

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: max-height 0.32s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.mobile-menu.open {
  max-height: 560px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  padding-top: 1rem !important;
  padding-bottom: 1.5rem !important;
}

.mobile-drawer {
  background: linear-gradient(180deg, rgba(14, 22, 36, 0.98) 0%, rgba(17, 28, 45, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 44px rgba(8, 12, 20, 0.24);
}

.mobile-lang-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
  padding: 0.35rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.mobile-lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-lang-link.is-active {
  background: #fafbfd;
  color: #0e1624;
}

.mobile-nav-link {
  display: block;
  padding: 0.8rem 0;
  font-size: 1.35rem;
  line-height: 1.2;
  font-weight: 500;
  color: #fafbfd;
}

.mobile-nav-link.is-secondary {
  color: rgba(255, 255, 255, 0.74);
}

.mobile-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  border-radius: 9999px;
  background: #fafbfd;
  color: #0e1624;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 16px 36px rgba(8, 12, 20, 0.18);
}

.blog-pattern-top {
  background:
    linear-gradient(180deg, rgba(243, 217, 246, 0.24) 0%, rgba(228, 247, 255, 0.16) 48%, rgba(243, 217, 246, 0.02) 88%, rgba(243, 217, 246, 0) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(243, 217, 246, 0) 0px,
      rgba(243, 217, 246, 0) 8px,
      rgba(243, 217, 246, 0.26) 8px,
      rgba(243, 217, 246, 0.26) 10px,
      rgba(228, 247, 255, 0.22) 10px,
      rgba(228, 247, 255, 0.22) 12px,
      rgba(243, 217, 246, 0) 12px,
      rgba(243, 217, 246, 0) 18px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0));
  opacity: 0.9;
}

.blog-pattern-soft {
  background:
    linear-gradient(180deg, rgba(243, 217, 246, 0.09) 0%, rgba(228, 247, 255, 0.06) 42%, rgba(255, 255, 255, 0) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(243, 217, 246, 0) 0px,
      rgba(243, 217, 246, 0) 12px,
      rgba(243, 217, 246, 0.18) 12px,
      rgba(243, 217, 246, 0.18) 14px,
      rgba(228, 247, 255, 0.16) 14px,
      rgba(228, 247, 255, 0.16) 16px,
      rgba(243, 217, 246, 0) 16px,
      rgba(243, 217, 246, 0) 21px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0));
}

.blog-shell,
.blog-card,
.summary-block,
.learn-block,
.takeaway-box,
.faq-card,
.search-shell {
  border: 1px solid rgba(14, 22, 36, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 251, 253, 0.98) 100%);
  box-shadow:
    0 18px 44px rgba(14, 22, 36, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.blog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 48px rgba(14, 22, 36, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  border-color: rgba(14, 22, 36, 0.1);
}

.taxonomy-chip,
.meta-pill,
.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(14, 22, 36, 0.08);
  background: rgba(250, 251, 253, 0.9);
  color: rgba(14, 22, 36, 0.7);
}

.filter-chip.is-active {
  background: #0e1624;
  border-color: #0e1624;
  color: #fafbfd;
}

.search-input,
.filter-select {
  border-radius: 9999px;
  border: 1px solid rgba(14, 22, 36, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: #0e1624;
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-height: 3.5rem;
  padding-right: 3rem !important;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(14, 22, 36, 0.55) 50%),
    linear-gradient(135deg, rgba(14, 22, 36, 0.55) 50%, transparent 50%);
  background-position:
    calc(100% - 1.2rem) calc(50% - 0.18rem),
    calc(100% - 0.9rem) calc(50% - 0.18rem);
  background-size: 0.55rem 0.55rem, 0.55rem 0.55rem;
  background-repeat: no-repeat;
}

.search-input:focus,
.filter-select:focus {
  outline: none;
  border-color: rgba(14, 22, 36, 0.26);
  box-shadow: 0 0 0 4px rgba(228, 247, 255, 0.8);
}

.cta-shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(228, 247, 255, 0.08), transparent 30%),
    linear-gradient(180deg, #0e1624 0%, #121d2f 100%);
  box-shadow:
    0 22px 54px rgba(14, 22, 36, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta-shell h2,
.cta-shell p,
.cta-shell a {
  position: relative;
  z-index: 1;
}

.search-helper {
  color: rgba(14, 22, 36, 0.52);
  font-size: 0.875rem;
}

.result-hidden {
  display: none !important;
}

.search-status {
  color: rgba(14, 22, 36, 0.52);
  font-size: 0.875rem;
}

.empty-state {
  border: 1px dashed rgba(14, 22, 36, 0.14);
  background: rgba(250, 251, 253, 0.92);
  color: rgba(14, 22, 36, 0.68);
}

.article-prose {
  color: rgba(14, 22, 36, 0.76);
}

.article-prose h2,
.article-prose h3 {
  color: #0e1624;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.article-prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.article-prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
}

.article-prose p,
.article-prose li {
  font-size: 1rem;
  line-height: 1.85;
}

.article-prose p + p {
  margin-top: 1rem;
}

.article-prose ul,
.article-prose ol {
  margin-top: 1rem;
  padding-left: 1.2rem;
}

.article-prose li + li {
  margin-top: 0.5rem;
}

.article-prose a {
  color: #0e1624;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.faq-answer {
  display: none;
}

.faq-answer.open {
  display: block;
}

.footer-pattern {
  background:
    linear-gradient(180deg, rgba(243, 217, 246, 0.1) 0%, rgba(228, 247, 255, 0.08) 48%, rgba(14, 22, 36, 0) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(243, 217, 246, 0) 0px,
      rgba(243, 217, 246, 0) 8px,
      rgba(243, 217, 246, 0.24) 8px,
      rgba(243, 217, 246, 0.24) 10px,
      rgba(228, 247, 255, 0.2) 10px,
      rgba(228, 247, 255, 0.2) 12px,
      rgba(243, 217, 246, 0) 12px,
      rgba(243, 217, 246, 0) 18px
    );
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
}

.result-hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .blog-card,
  .mobile-menu,
  .lang-link,
  .mobile-lang-link {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
}
