/* =================================================
   Sinux Relay marketing site — dark navy / violet
   ================================================= */

.rl-page {
  background: #0a1628;
  color: #e6e9ee;
  min-height: 100vh;
  font-family: "Poppins", system-ui, sans-serif;
}
.rl-page * { box-sizing: border-box; }

.rl-container {
  width: min(100% - var(--side), 1240px);
  margin-inline: auto;
}

.rl-section {
  padding-block: clamp(72px, 9vw, 120px);
  position: relative;
}
.rl-section-alt {
  background: #0d1d31;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ====== Typography ====== */
.rl-h1 {
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  font-size: clamp(34px, 6.4vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: #fff;
  margin: 22px 0 22px;
  text-wrap: balance;
}
.rl-h1-accent {
  color: #8B5CF6;
  font-style: italic;
  font-family: "Poppins", serif;
  font-weight: 500;
}
.rl-h2 {
  font-family: "Michroma", sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 4.2vw, 48px);
  line-height: 1.12;
  letter-spacing: 0.005em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.rl-h2 em {
  font-family: "Poppins", serif;
  font-style: italic;
  font-weight: 500;
  color: #8B5CF6;
}
.rl-eyebrow {
  font-family: "Michroma", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B5CF6;
  margin-bottom: 16px;
}
.rl-lede {
  font-size: clamp(15px, 1.6vw, 18px);
  color: rgba(230,233,238,0.75);
  line-height: 1.65;
  max-width: 56ch;
}
.rl-section-header {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

/* ====== Pills ====== */
.rl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #A78BFA;
  background: rgba(139, 92, 246,0.1);
  border: 1px solid rgba(139, 92, 246,0.3);
}
.rl-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8B5CF6;
  box-shadow: 0 0 0 4px rgba(139, 92, 246,0.25);
  animation: livepulse 2s ease-in-out infinite;
}

/* ====== Header / Nav ====== */
.rl-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
}
.rl-header.scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,0.06);
}
.rl-nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
  padding: 0 calc(var(--side) / 2);
}
.rl-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.rl-brand-text {
  font-family: "Michroma", sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #fff;
}
.rl-nav-links {
  display: flex;
  gap: clamp(14px, 1.5vw, 26px);
  margin-left: auto;
}
.rl-nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.rl-nav-links a:hover { color: #fff; }
@media (max-width: 820px) {
  .rl-nav-links { display: none; }
}

/* ====== Buttons ====== */
.rl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
  white-space: nowrap;
}
.rl-btn:hover { transform: translateY(-1px); }
.rl-btn-lg { padding: 16px 28px; font-size: 14px; }
.rl-btn-sm { padding: 8px 14px; font-size: 12px; }
.rl-btn-block { width: 100%; justify-content: center; }
.rl-btn-primary {
  background: #8B5CF6;
  color: #0a1628;
  box-shadow: 0 6px 24px -8px rgba(139, 92, 246, 0.6);
}
.rl-btn-primary:hover { background: #A78BFA; }
.rl-btn-outline {
  background: transparent;
  color: #8B5CF6;
  border-color: rgba(139, 92, 246,0.5);
}
.rl-btn-outline:hover { background: rgba(139, 92, 246,0.08); border-color: #8B5CF6; }
.rl-btn-light {
  background: white;
  color: #0a1628;
}
.rl-btn-outline-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}
.rl-btn-outline-light:hover { background: rgba(255,255,255,0.08); border-color: white; }

/* ====== Hero ====== */
.rl-hero {
  position: relative;
  padding-top: clamp(64px, 8vw, 96px);
  padding-bottom: clamp(72px, 9vw, 120px);
  overflow: hidden;
}
.rl-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(139, 92, 246, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(0, 103, 110, 0.18), transparent 60%),
    linear-gradient(180deg, transparent, rgba(10, 22, 40, 0.4));
  pointer-events: none;
  z-index: 0;
}
.rl-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
}
.rl-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .rl-hero-grid { grid-template-columns: 1fr; }
}
.rl-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* ====== Discord ticket mockup ====== */
.rl-discord-card {
  background: #1e1f22;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
  overflow: hidden;
}
.rl-discord-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #2b2d31;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rl-discord-channel {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rl-channel-icon { color: #a1a8b4; font-weight: 400; }
.rl-discord-status {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.rl-discord-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
}
.rl-discord-msg {
  display: flex;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: smFadeUp 0.5s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes smFadeUp { to { opacity: 1; transform: translateY(0); } }
.rl-discord-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #5865f2;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.rl-discord-avatar-bot {
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}
.rl-discord-msg-body { flex: 1; min-width: 0; }
.rl-discord-msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.rl-discord-author {
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
}
.rl-discord-author-bot { color: #A78BFA; }
.rl-discord-bot-tag {
  background: #5865f2;
  color: white;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.rl-discord-author-bot + .rl-discord-bot-tag {
  background: #8B5CF6;
}
.rl-discord-msg-text {
  font-size: 13.5px;
  color: #dbdee1;
  line-height: 1.5;
}
.rl-discord-msg-text strong { color: #fff; font-weight: 600; }
.rl-discord-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  margin-left: 48px;
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  align-self: flex-start;
  opacity: 0;
  animation: smFadeUp 0.4s forwards;
}
.rl-typing-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #a1a8b4;
  animation: smTyping 1.2s ease-in-out infinite;
}
.rl-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.rl-typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes smTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-3px); opacity: 1; }
}
.rl-discord-close {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  color: #4ade80;
  font-size: 12px;
  text-align: center;
  opacity: 0;
  animation: smFadeUp 0.5s forwards;
}

/* ====== Social proof ====== */
.rl-proof-strip {
  padding-block: clamp(28px, 4vw, 48px);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.015);
}
.rl-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 24px;
}
.rl-proof-stat {
  text-align: center;
  position: relative;
}
.rl-proof-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 18%; height: 64%;
  width: 1px;
  background: rgba(255,255,255,0.08);
}
@media (max-width: 720px) {
  .rl-proof-stat:not(:last-child)::after { display: none; }
}
.rl-proof-num {
  font-family: "Michroma", sans-serif;
  font-size: clamp(22px, 2.6vw, 32px);
  color: #fff;
  letter-spacing: 0.005em;
}
.rl-proof-label {
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* Capability badges — second row of social proof */
.rl-capabilities {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed rgba(255,255,255,0.06);
}
.rl-cap-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(139, 92, 246,0.08);
  border: 1px solid rgba(139, 92, 246,0.22);
  border-radius: 999px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.rl-cap-badge:hover {
  background: rgba(139, 92, 246,0.14);
  border-color: rgba(139, 92, 246,0.4);
  color: #fff;
  transform: translateY(-1px);
}
.rl-cap-icon { font-size: 14px; line-height: 1; }
.rl-cap-label { line-height: 1; }

/* ====== Cards / grid ====== */
.rl-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 14px;
  padding: clamp(20px, 2.5vw, 28px);
  transition: transform .25s, border-color .25s, box-shadow .25s, background .25s;
  height: 100%;
}
.rl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246,0.04);
  box-shadow: 0 20px 40px -20px rgba(139, 92, 246, 0.25);
}
.rl-card-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(16px, 1.7vw, 19px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}
.rl-card-body {
  font-size: 14px;
  color: rgba(230, 233, 238, 0.65);
  line-height: 1.6;
  margin: 0;
}
.rl-grid-2, .rl-grid-3, .rl-grid-4 {
  display: grid;
  gap: clamp(16px, 2vw, 22px);
}
.rl-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.rl-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.rl-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.rl-feature-card { display: flex; flex-direction: column; }
.rl-feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.12);
  color: #8B5CF6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

/* ====== Demo section ====== */
.rl-demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
@media (max-width: 900px) {
  .rl-demo-grid { grid-template-columns: 1fr; }
}
.rl-kb-card {
  background: #fff;
  color: #0f172a;
  border-radius: 14px;
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}
.rl-kb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.rl-kb-eyebrow {
  font-family: "Michroma", sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B5CF6;
}
.rl-kb-uses {
  font-size: 11px;
  padding: 4px 10px;
  background: rgba(139, 92, 246, 0.1);
  color: #7C3AED;
  border-radius: 999px;
  font-weight: 600;
}
.rl-kb-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 16px 0 6px;
}
.rl-kb-q {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}
.rl-kb-a {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}
.rl-kb-tags {
  display: flex; gap: 8px;
  margin-top: 16px;
}
.rl-kb-tag {
  padding: 4px 10px;
  font-size: 11px;
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  font-weight: 500;
}
.rl-kb-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ====== Dashboard ====== */
.rl-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow-x: auto;
  width: fit-content;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rl-tabs::-webkit-scrollbar { display: none; }
.rl-tab {
  padding: 10px 18px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.rl-tab.active {
  background: #8B5CF6;
  color: #0a1628;
}
.rl-tab:hover:not(.active) { color: #fff; }
.rl-dash-caption {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 18px;
  max-width: 64ch;
  line-height: 1.55;
}
.rl-dash-window {
  background: #f7f8fb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
}
.rl-dash-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #e2e8f0;
  border-bottom: 1px solid #cbd5e1;
}
.rl-dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.rl-dash-url {
  margin-left: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: #64748b;
}
.rl-dash-body {
  background: white;
  padding: clamp(20px, 3vw, 32px);
  min-height: 420px;
  color: #0f172a;
}



/* ====== Steps ====== */
.rl-steps {
  display: flex; flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
}
.rl-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  align-items: flex-start;
}
.rl-step:last-child { border-bottom: none; }
.rl-step-num {
  font-family: "Michroma", sans-serif;
  font-size: 32px;
  color: #8B5CF6;
  opacity: 0.5;
  letter-spacing: 0.02em;
}
.rl-step-title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(17px, 1.9vw, 22px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 8px;
}
.rl-step-desc {
  color: rgba(230,233,238,0.65);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 60ch;
}

/* ====== Pricing ====== */
.rl-pricing-card {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 56px);
}
.rl-pricing-display { text-align: center; margin-bottom: 36px; }
.rl-pricing-amount-row {
  display: flex; justify-content: center;
  align-items: baseline;
  gap: 6px;
}
.rl-pricing-currency {
  font-family: "Michroma", sans-serif;
  font-size: 24px;
  color: rgba(255,255,255,0.6);
}
.rl-pricing-amount {
  font-family: "Michroma", sans-serif;
  font-size: clamp(48px, 6vw, 72px);
  color: #fff;
  letter-spacing: -0.005em;
  line-height: 1;
}
.rl-pricing-period {
  font-size: 16px;
  color: rgba(255,255,255,0.5);
  margin-left: 4px;
}
.rl-pricing-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 10px;
}
.rl-slider-wrap { padding: 0 12px; }
.rl-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  outline: none;
}
.rl-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px; height: 24px;
  background: #8B5CF6;
  border: 4px solid #0a1628;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.15);
}
.rl-slider::-moz-range-thumb {
  width: 24px; height: 24px;
  background: #8B5CF6;
  border: 4px solid #0a1628;
  border-radius: 50%;
  cursor: pointer;
}
.rl-slider-ticks {
  position: relative;
  height: 30px;
  margin-top: 10px;
}
.rl-slider-tick {
  position: absolute;
  transform: translateX(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  white-space: nowrap;
  transition: color .2s;
}
.rl-slider-tick:hover { color: #fff; }
.rl-slider-tick.active { color: #8B5CF6; font-weight: 600; }

.rl-pricing-anchor {
  margin-top: 32px;
  padding: 22px 24px;
  background: rgba(139, 92, 246,0.06);
  border: 1px solid rgba(139, 92, 246,0.22);
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rl-pricing-anchor strong {
  color: #fff;
  font-weight: 600;
  font-size: clamp(15px, 1.7vw, 18px);
  letter-spacing: 0.005em;
}
.rl-pricing-anchor span {
  color: rgba(255,255,255,0.7);
  font-size: clamp(13px, 1.5vw, 15px);
  line-height: 1.55;
}
.rl-pricing-note {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ====== FAQ ====== */
.rl-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) {
  .rl-faq-grid { grid-template-columns: 1fr; }
}
.rl-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rl-faq-q {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 500;
  color: #fff;
}
.rl-faq-plus {
  width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
  color: #8B5CF6;
  transition: transform .25s, border-color .25s;
  flex-shrink: 0;
}
.rl-faq-item.open .rl-faq-plus {
  transform: rotate(45deg);
  border-color: #8B5CF6;
}
.rl-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.2,.7,.2,1);
}
.rl-faq-item.open .rl-faq-a { max-height: 400px; }
.rl-faq-a-inner {
  padding-bottom: 20px;
  font-size: 14.5px;
  color: rgba(230,233,238,0.65);
  line-height: 1.7;
}

/* ====== Final CTA ====== */
.rl-final-cta { padding-block: clamp(60px, 8vw, 100px); }
.rl-final-card .rl-h2 em { color: rgba(255,255,255,0.72); }
.rl-final-card {
  background: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 60%, #A78BFA 100%);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.rl-final-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.rl-final-card > * { position: relative; z-index: 1; }

/* ====== Footer ====== */
.rl-footer {
  background: #050a14;
  padding: clamp(48px, 7vw, 72px) 0 28px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.rl-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 768px) {
  .rl-footer-grid { grid-template-columns: 1fr 1fr; }
}
.rl-footer-h {
  font-family: "Michroma", sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
}
.rl-footer-links { display: flex; flex-direction: column; gap: 10px; }
.rl-footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}
.rl-footer-links a:hover { color: #fff; }
.rl-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  gap: 16px;
  flex-wrap: wrap;
}

/* ====== Hero pills row + 'What's new' pill ====== */
.rl-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.rl-pill-new {
  background: rgba(139, 92, 246, 0.14);
  border-color: rgba(139, 92, 246, 0.42);
  color: #A78BFA;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rl-pill-new-tag {
  background: #8B5CF6;
  color: #052e2f;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
}


/* ====== Relay-specific: branded embed mock (hero + demo visual) ====== */
.rl-relay-mock {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.rl-relay-arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #A78BFA;
  padding: 2px 0;
}
.rl-relay-arrow::before, .rl-relay-arrow::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.4), transparent);
}
.rl-embed-card {
  background: #2b2d31;
  border-left: 4px solid #8B5CF6;
  border-radius: 0 8px 8px 0;
  padding: 14px 16px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  animation: rlFadeUp 0.6s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes rlFadeUp { to { opacity: 1; } }
.rl-embed-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rl-embed-thumb {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #8B5CF6, #7C3AED);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Michroma", sans-serif;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.rl-embed-brand {
  font-weight: 700;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.rl-embed-sub {
  font-size: 11px;
  color: #a1a8b4;
  margin-top: 1px;
}
.rl-embed-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}
.rl-embed-body {
  font-size: 13.5px;
  color: #dbdee1;
  line-height: 1.5;
}
.rl-embed-body strong { color: #fff; font-weight: 700; }
.rl-embed-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.rl-embed-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.42);
  border-radius: 4px;
  font-size: 11px;
  color: #A78BFA;
  text-decoration: none;
  font-family: "JetBrains Mono", monospace;
}
.rl-embed-footer {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rl-embed-poll {
  display: inline-flex;
  gap: 6px;
  margin-top: 6px;
}
.rl-embed-poll-react {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  font-size: 11px;
  color: #dbdee1;
  font-family: "JetBrains Mono", monospace;
}
.rl-embed-poll-react.up { color: #4ade80; }
.rl-embed-poll-react.down { color: #f87171; }

/* Mode badges */
.rl-mode-pill {
  padding: 3px 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
  border: 1px solid;
  display: inline-block;
  text-transform: uppercase;
  white-space: nowrap;
}
.rl-mode-manual { background: rgba(148,163,184,0.16); border-color: rgba(148,163,184,0.42); color: #cbd5e1; }
.rl-mode-quick  { background: rgba(139, 92, 246, 0.16); border-color: rgba(139, 92, 246, 0.42); color: #A78BFA; }
.rl-mode-auto   { background: rgba(34, 197, 94, 0.16); border-color: rgba(34, 197, 94, 0.42); color: #4ade80; }

/* Routes panel */
.rl-routes-panel { display: flex; flex-direction: column; gap: 14px; }
.rl-routes-toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 6px; }
.rl-routes-search {
  flex: 1; padding: 10px 14px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  font-size: 13px; color: #0f172a;
}
.rl-route-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(220px, 1.4fr) auto auto;
  gap: 14px; align-items: center;
  padding: 12px 14px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
  font-size: 13px;
}
.rl-route-source { display: flex; flex-direction: column; gap: 2px; }
.rl-route-server { font-size: 10px; color: #64748b; font-family: "JetBrains Mono", monospace; letter-spacing: 0.04em; }
.rl-route-channel { font-family: "JetBrains Mono", monospace; font-weight: 700; color: #0f172a; }
.rl-route-arrow { font-family: "JetBrains Mono", monospace; color: #94a3b8; font-size: 16px; }
.rl-route-dests { display: flex; flex-direction: column; gap: 4px; }
.rl-route-dest {
  display: flex; align-items: center; gap: 6px;
  font-family: "JetBrains Mono", monospace; font-size: 12px; color: #475569;
}
.rl-route-dest-dot { width: 5px; height: 5px; border-radius: 50%; background: #8B5CF6; }
.rl-route-status { font-size: 11px; padding: 3px 10px; border-radius: 999px; font-weight: 600; letter-spacing: 0.04em; }
.rl-route-status-on  { background: rgba(34, 197, 94, 0.14); color: #15803d; }
.rl-route-status-off { background: rgba(148, 163, 184, 0.16); color: #64748b; }
@media (max-width: 720px) {
  .rl-route-row { grid-template-columns: 1fr; gap: 8px; }
  .rl-route-arrow { display: none; }
}

/* Templates panel — split editor + live preview */
.rl-templates-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 18px; align-items: start;
}
@media (max-width: 820px) { .rl-templates-panel { grid-template-columns: 1fr; } }
.rl-template-editor {
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px;
}
.rl-template-field { margin-bottom: 12px; }
.rl-template-field:last-child { margin-bottom: 0; }
.rl-template-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #64748b; font-weight: 600;
  display: block; margin-bottom: 6px;
}
.rl-template-input, .rl-template-textarea {
  width: 100%; padding: 8px 12px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  font-family: "Poppins", sans-serif; font-size: 13px; color: #0f172a; resize: vertical;
}
.rl-template-input:focus, .rl-template-textarea:focus { outline: none; border-color: #8B5CF6; }
.rl-template-colour-row { display: flex; align-items: center; gap: 10px; }
.rl-template-swatch { width: 32px; height: 32px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.08); flex-shrink: 0; }
.rl-template-preview-wrap {
  background: #313338; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px;
}
.rl-template-preview-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: #94a3b8; margin-bottom: 10px;
}

/* Activity panel — forward log feed */
.rl-activity-panel { display: flex; flex-direction: column; gap: 6px; }
.rl-activity-row {
  display: grid; grid-template-columns: 70px auto 1fr auto;
  gap: 12px; align-items: center;
  padding: 11px 14px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px;
}
.rl-activity-time { font-family: "JetBrains Mono", monospace; font-size: 11px; color: #64748b; }
.rl-activity-detail {
  font-family: "JetBrains Mono", monospace; font-size: 12px; color: #475569;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rl-activity-detail strong { color: #0f172a; font-weight: 700; }
.rl-activity-count {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  color: #7C3AED; background: rgba(139,92,246,0.1);
  padding: 3px 8px; border-radius: 4px; font-weight: 600;
}
@media (max-width: 720px) {
  .rl-activity-row { grid-template-columns: 60px auto 1fr; }
  .rl-activity-count { grid-column: 1 / -1; justify-self: end; }
}

/* Access panel — role table */
.rl-access-panel { display: flex; flex-direction: column; gap: 14px; }
.rl-access-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rl-access-table th, .rl-access-table td {
  text-align: left; padding: 11px 8px;
  border-bottom: 1px solid #f1f5f9; vertical-align: middle;
}
.rl-access-table th {
  font-size: 10px; color: #64748b; letter-spacing: 0.12em;
  text-transform: uppercase; background: #f8fafc;
  font-family: "JetBrains Mono", monospace; font-weight: 600;
}
.rl-access-name { font-weight: 600; color: #0f172a; }
.rl-access-role-pill {
  font-size: 10px; padding: 3px 9px; border-radius: 4px;
  font-family: "JetBrains Mono", monospace; font-weight: 600;
  letter-spacing: 0.04em; display: inline-block;
}
.rl-access-role-owner    { background: rgba(139,92,246,0.16); color: #7C3AED; }
.rl-access-role-admin    { background: rgba(59,130,246,0.14);  color: #1d4ed8; }
.rl-access-role-operator { background: rgba(245,158,11,0.16); color: #b45309; }
.rl-access-protected {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #b45309; margin-left: 8px;
}
.rl-access-hint { font-size: 11px; color: #94a3b8; margin-top: 4px; }

/* Discord raw-source mock (left side of hero/demo) */
.rl-source-card {
  background: #2b2d31; border-radius: 8px;
  padding: 12px 14px; font-size: 13.5px;
  color: #dbdee1; line-height: 1.5;
  display: flex; gap: 12px;
  opacity: 0; animation: rlFadeUp 0.5s cubic-bezier(.2,.7,.2,1) forwards;
}
.rl-source-card strong { color: #fff; font-weight: 700; }
.rl-source-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #5865f2; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; flex-shrink: 0;
}
.rl-source-body { flex: 1; min-width: 0; }
.rl-source-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.rl-source-author { color: #fff; font-weight: 600; font-size: 13.5px; }
.rl-source-ts { color: #a1a8b4; font-size: 11px; font-family: "JetBrains Mono", monospace; }
.rl-source-channel-label {
  font-size: 11px; color: #a1a8b4;
  font-family: "JetBrains Mono", monospace; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.rl-source-channel-label::before { content: "#"; color: #5865f2; font-weight: 700; }
