* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--rfa-font-body);
  color: var(--rfa-text);
  background: var(--rfa-bg);
  line-height: 1.65;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), rgba(176, 188, 205, 0.03) calc(100% - 1px)),
    linear-gradient(180deg, transparent 0, transparent calc(100% - 1px), rgba(176, 188, 205, 0.03) calc(100% - 1px)),
    linear-gradient(180deg, transparent 0, rgba(255, 255, 255, 0.018) 100%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  pointer-events: none;
  z-index: -1;
}

body.rfa2-body-lock {
  overflow: hidden;
}

a {
  color: inherit;
}

.rfa2-shell {
  width: 100%;
}

.container,
.topbar-inner,
.footer-inner {
  width: var(--rfa-shell-width);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--rfa-line);
  background: rgba(8, 13, 21, 0.82);
  backdrop-filter: blur(22px);
}

:root[data-theme='light'] .topbar {
  background: rgba(250, 248, 243, 0.9);
}

.topbar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--rfa-accent), transparent 34%), transparent);
}

.topbar-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--rfa-primary), var(--rfa-secondary));
  color: #fff;
  box-shadow: var(--rfa-shadow-soft);
  clip-path: polygon(0 0, 86% 0, 100% 22%, 100% 100%, 14% 100%, 0 78%);
}

.brand-logo-inline,
.sidebar-brand-logo,
.mobile-sidebar-brand-logo {
  display: block;
  width: clamp(74px, 9vw, 96px);
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

.brand-copy {
  display: grid;
  gap: 3px;
}

.brand-kicker {
  color: var(--rfa-text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand-title {
  font-family: var(--rfa-font-ui);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links,
.topbar-actions,
.btn-row,
.chip-row,
.stat-grid,
.card-grid,
.footer-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a,
.ghost-link {
  padding: 0 0 6px;
  border-bottom: 1px solid transparent;
  text-decoration: none;
  color: var(--rfa-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color var(--rfa-transition), border-color var(--rfa-transition);
}

.nav-links a:hover,
.nav-links a.is-active,
.ghost-link:hover {
  color: var(--rfa-primary);
  border-color: color-mix(in srgb, var(--rfa-primary), transparent 54%);
}

.btn,
.chip,
.status-pill,
.theme-toggle {
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 0;
  border: 1px solid var(--rfa-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform var(--rfa-transition), border-color var(--rfa-transition), background var(--rfa-transition), color var(--rfa-transition);
}

.btn:hover,
.theme-toggle:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: color-mix(in srgb, var(--rfa-accent), transparent 24%);
  color: #08111d;
  background: linear-gradient(90deg, var(--rfa-accent), color-mix(in srgb, var(--rfa-accent), white 18%));
  box-shadow: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 0 0);
}

.btn-secondary,
.theme-toggle,
.chip,
.status-pill {
  color: var(--rfa-text);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rfa-surface-muted), transparent 8%), transparent);
}

.section {
  padding: 68px 0 76px;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rfa-primary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: '';
  width: 24px;
  height: 1px;
  background: color-mix(in srgb, var(--rfa-primary), transparent 44%);
}

.section-title,
.display-title,
.stat-value,
.card-title {
  font-family: var(--rfa-font-display);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.03em;
}

.display-title {
  font-size: clamp(3.3rem, 6vw, 5.8rem);
}

.section-title {
  font-size: clamp(2.4rem, 4vw, 4.2rem);
}

.section-copy,
.support-copy,
.card-copy,
.stat-label,
.footer-copy p {
  color: var(--rfa-text-soft);
}

.panel,
.feature-card,
.stat-card,
.cta-shell,
.footer-shell {
  border-top: 2px solid color-mix(in srgb, var(--rfa-primary), transparent 28%);
  border-bottom: 1px solid var(--rfa-line);
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--rfa-surface), transparent 2%), color-mix(in srgb, var(--rfa-surface), transparent 8%));
  box-shadow: var(--rfa-shadow-soft);
  position: relative;
  overflow: hidden;
}

.panel::after,
.feature-card::after,
.stat-card::after,
.cta-shell::after,
.footer-shell::after {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, var(--rfa-accent), transparent);
}

.feature-card,
.stat-card,
.cta-shell {
  padding: 26px 24px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.stat-value {
  display: block;
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 8px;
}

.stat-card {
  border-top-width: 1px;
  border-bottom-width: 1px;
}

.stat-grid .stat-card:not(:first-child) {
  border-left: 1px solid var(--rfa-line);
}

.footer {
  padding: 0 0 34px;
}

.footer-shell {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--rfa-primary), transparent 84%), transparent 26%),
    linear-gradient(180deg, rgba(8, 14, 24, 0.88), rgba(6, 11, 19, 0.96));
  border-top-width: 1px;
}

.footer-inner {
  padding: 36px 0 0;
  display: grid;
  gap: 24px;
}

.feature-card,
.stat-card {
  padding: 0 0 0 18px;
  border: 0;
  background: transparent;
  min-height: auto;
}

.feature-card::after,
.stat-card::after {
  display: none;
}

.feature-card::before,
.stat-card::before {
  content: '';
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 10px;
  height: 1px;
  background: var(--rfa-accent);
}

.stat-grid .stat-card:not(:first-child) {
  border-left: 0;
}

.chip,
.status-pill {
  padding: 0 0 0 14px;
  min-height: auto;
  border: 0;
  background: transparent;
  position: relative;
}

.chip::before,
.status-pill::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 1px;
  background: color-mix(in srgb, var(--rfa-accent), transparent 12%);
}

@media (max-width: 720px) {
  .section {
    padding: 44px 0 50px;
  }

  .stat-grid {
    gap: 14px;
  }

  .stat-grid .stat-card:not(:first-child) {
    border-left: 0;
  }
}