:root {
  --bg: #1e1f22;
  --bg-deep: #111214;
  --surface: #2b2d31;
  --surface-raised: #313338;
  --surface-hover: #35373c;
  --surface-active: #404249;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f2f3f5;
  --muted: #b5bac1;
  --muted-2: #949ba4;
  --primary: #5865f2;
  --primary-hover: #4752c4;
  --green: #23a55a;
  --danger: #f23f42;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  opacity: 0;
  animation: page-in 0.42s ease forwards;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
::selection { background: rgba(88, 101, 242, 0.42); color: #fff; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section-pad { padding: 96px 0; }
.ambient { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 18, 20, 0.96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.26); }
.nav-shell { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 0; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  position: relative;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--text); background: var(--surface); }
.site-nav .nav-dashboard {
  margin-left: 6px;
  padding-inline: 16px;
  color: #fff;
  background: var(--primary);
}
.site-nav .nav-dashboard:hover { background: var(--primary-hover); transform: translateY(-1px); }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }
.nav-toggle:hover { background: var(--surface); }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 999px; background: #fff; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { padding-top: 82px; background: linear-gradient(180deg, var(--bg-deep) 0, var(--bg) 78%); }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; align-items: center; gap: 66px; min-height: 650px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: status-pulse 2.3s ease-in-out infinite; }
h1 { max-width: 760px; margin: 22px 0 23px; font-size: clamp(3rem, 5.7vw, 5.35rem); line-height: 1.01; letter-spacing: -0.06em; }
h1 span { color: #8b95ff; }
.hero-copy > p { max-width: 610px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 31px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 750;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(0.985); }
.button-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 22px rgba(88, 101, 242, 0.22); }
.button-primary:hover { background: var(--primary-hover); box-shadow: 0 10px 28px rgba(88, 101, 242, 0.3); }
.button-secondary { border-color: var(--line-strong); background: var(--surface); color: var(--text); }
.button-secondary:hover { background: var(--surface-hover); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 25px; color: var(--muted-2); font-size: 0.81rem; font-weight: 650; }
.hero-proof span::first-letter { color: var(--green); }

.hero-visual {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  padding-top: 35px;
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out;
}
.hero-visual::before {
  content: "Rallybit  •  Community dashboard";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 38px;
  display: flex;
  align-items: center;
  padding: 0 16px 0 52px;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #232428;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}
.hero-visual::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 17px;
  z-index: 4;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f23f42;
  box-shadow: 14px 0 #f0b232, 28px 0 #23a55a;
}
.hero-visual > img {
  position: relative;
  z-index: 2;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0 0 14px 14px;
  box-shadow: var(--shadow);
  background: var(--surface-raised);
}
.visual-glow { display: none; }
.floating-card {
  position: absolute;
  z-index: 5;
  display: flex;
  min-width: 175px;
  flex-direction: column;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #232428;
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.3);
  animation: float-card 5s ease-in-out infinite;
}
.floating-card strong { font-size: 0.83rem; }
.floating-card span { color: var(--muted); font-size: 0.71rem; }
.floating-top { top: 1px; right: -27px; }
.floating-bottom { bottom: -24px; left: -25px; animation-delay: -2.2s; }

.trust-strip { border-block: 1px solid var(--line); background: var(--bg-deep); }
.trust-row { display: flex; justify-content: center; gap: clamp(20px, 6vw, 72px); padding: 19px 0; color: var(--muted); font-size: 0.83rem; font-weight: 700; }
.trust-row span::before { content: "#"; margin-right: 5px; color: var(--muted-2); }

.section-heading { max-width: 700px; margin: 0 auto 48px; text-align: center; }
.section-heading.left { margin: 0; text-align: left; }
.section-heading h2, .cta-panel h2 { margin: 16px 0 12px; font-size: clamp(2.2rem, 4vw, 3.55rem); line-height: 1.08; letter-spacing: -0.045em; }
.section-heading p, .cta-panel p { color: var(--muted); font-size: 1rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.feature-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: transparent; transition: background 0.2s ease; }
.feature-card:hover { transform: translateY(-5px); border-color: rgba(88, 101, 242, 0.55); background: #303238; box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24); }
.feature-card:hover::before { background: var(--primary); }
.feature-wide { grid-column: 1 / -1; min-height: 415px; display: grid; grid-template-columns: 0.86fr 1.14fr; align-items: center; gap: 38px; }
.feature-card > img { margin-top: 30px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised); box-shadow: 0 12px 27px rgba(0, 0, 0, 0.2); transition: transform 0.25s ease; }
.feature-card:hover > img { transform: translateY(-3px) scale(1.01); }
.feature-wide > img { margin-top: 0; }
.feature-number { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: rgba(88, 101, 242, 0.16); color: #aeb4ff; font-size: 0.78rem; font-weight: 800; }
.feature-card h3 { margin: 19px 0 11px; font-size: 1.55rem; line-height: 1.2; letter-spacing: -0.03em; }
.feature-card p { color: var(--muted); }
.feature-card ul { display: grid; gap: 9px; margin-top: 22px; list-style: none; }
.feature-card li { color: #d4d7dc; font-size: 0.89rem; }
.feature-card li::before { content: "✓"; margin-right: 9px; color: var(--green); font-weight: 800; }

.workflow-section { background: #232428; border-block: 1px solid var(--line); }
.workflow-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; align-items: center; gap: 84px; }
.text-link { display: inline-block; margin-top: 21px; color: #aeb4ff; text-decoration: none; font-weight: 750; }
.text-link:hover { text-decoration: underline; }
.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 18px; padding: 21px; border-radius: 10px; background: var(--surface); transition: transform 0.18s ease, background 0.18s ease; }
.step:hover { transform: translateX(5px); background: var(--surface-hover); }
.step > span { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; }
.step h3 { margin-bottom: 2px; font-size: 1.02rem; }
.step p { color: var(--muted); font-size: 0.89rem; }

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 46px;
  border-radius: var(--radius-lg);
  background: var(--primary);
  box-shadow: 0 14px 34px rgba(88, 101, 242, 0.24);
}
.cta-panel .eyebrow { background: rgba(0, 0, 0, 0.18); color: #fff; }
.cta-panel p { color: rgba(255, 255, 255, 0.8); }
.cta-panel > div:first-child { max-width: 690px; }
.cta-panel .hero-actions { min-width: max-content; margin-top: 0; }
.cta-panel .button-primary { background: #fff; color: #24262b; box-shadow: none; }
.cta-panel .button-primary:hover { background: #e8e9eb; }
.cta-panel .button-secondary { border-color: rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.16); color: #fff; }
.cta-panel .button-secondary:hover { background: rgba(0, 0, 0, 0.26); }

.site-footer { padding: 64px 0 23px; border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 48px; }
.footer-intro p { max-width: 360px; margin: 17px 0; color: var(--muted); }
.free-pill { display: inline-flex; padding: 6px 10px; border-radius: 6px; background: rgba(35, 165, 90, 0.14); color: #5bd68c; font-size: 0.74rem; font-weight: 750; }
.footer-column { display: flex; flex-direction: column; gap: 9px; }
.footer-column h3 { margin-bottom: 8px; color: #fff; font-size: 0.82rem; }
.footer-column a { color: var(--muted); text-decoration: none; font-size: 0.85rem; }
.footer-column a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.76rem; }

.content-hero { padding: 94px 0 48px; text-align: center; background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.content-hero h1 { margin-inline: auto; font-size: clamp(2.7rem, 6vw, 4.5rem); }
.content-wrap { width: min(calc(100% - 40px), 850px); margin: 56px auto 100px; padding: clamp(26px, 5vw, 52px); border-radius: 14px; background: var(--surface-raised); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18); }
.content-wrap h2 { margin: 31px 0 10px; font-size: 1.38rem; }
.content-wrap h2:first-child { margin-top: 0; }
.content-wrap p, .content-wrap li { color: var(--muted); }
.content-wrap ul { margin: 12px 0; padding-left: 21px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.team-card { padding: 26px; border-radius: 12px; background: var(--surface); transition: transform 0.2s ease, background 0.2s ease; }
.team-card:hover { transform: translateY(-4px); background: var(--surface-hover); }
.team-card p { color: var(--muted); font-size: 0.9rem; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.75, 0.3, 1); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes page-in { to { opacity: 1; } }
@keyframes float-card { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes status-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(35, 165, 90, 0); } 50% { box-shadow: 0 0 0 5px rgba(35, 165, 90, 0.14); } }

@media (max-width: 900px) {
  .section-pad { padding: 78px 0; }
  .hero-grid, .workflow-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-grid { min-height: auto; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { max-width: 680px; margin-inline: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; grid-template-columns: 1fr; }
  .cta-panel { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-column:last-child { grid-column: 2 / 4; }
  .site-nav {
    position: absolute;
    top: 64px;
    right: 20px;
    left: 20px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #18191c;
    box-shadow: var(--shadow);
    transform-origin: top;
  }
  .site-nav.is-open { display: flex; animation: menu-in 0.18s ease; }
  .site-nav .nav-dashboard { margin-left: 0; text-align: center; }
  .nav-toggle { display: block; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section-pad { padding: 64px 0; }
  .hero { padding-top: 50px; }
  .hero-grid { gap: 39px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .floating-card { display: none; }
  .trust-row { justify-content: flex-start; overflow-x: auto; padding-inline: 4px; scrollbar-width: none; }
  .trust-row::-webkit-scrollbar { display: none; }
  .trust-row span { white-space: nowrap; }
  .feature-card { min-height: auto; padding: 23px; }
  .cta-panel { padding: 31px 21px; }
  .cta-panel .hero-actions { width: 100%; min-width: 0; flex-direction: column; }
  .cta-panel .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1 / -1; }
  .footer-column:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }
}

@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; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Code-built product previews ------------------------------------------------ */
.ui-preview {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background: #1e1f22;
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.ui-preview small,
.ui-preview span,
.ui-preview strong,
.ui-preview b,
.ui-preview em,
.ui-preview time { line-height: 1.25; }

.dashboard-preview {
  z-index: 2;
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  min-height: 426px;
  border-radius: 0 0 14px 14px;
}

.preview-sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 17px 11px 13px;
  background: #2b2d31;
  border-right: 1px solid var(--line);
}

.preview-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 7px 16px;
  color: #fff;
  font-size: 0.72rem;
}

.preview-logo > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.preview-nav { display: grid; gap: 4px; }
.preview-nav > span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 9px;
  border-radius: 6px;
  color: #949ba4;
  font-size: 0.62rem;
  font-weight: 650;
}
.preview-nav > span.is-active { color: #fff; background: #404249; }
.preview-nav i {
  width: 14px;
  color: #b5bac1;
  font-style: normal;
  text-align: center;
}

.preview-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 9px 7px 0;
  border-top: 1px solid var(--line);
}
.preview-user > span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 50%;
  background: #23a55a;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 800;
}
.preview-user div { display: grid; min-width: 0; }
.preview-user strong { overflow: hidden; font-size: 0.61rem; text-overflow: ellipsis; }
.preview-user small { color: #949ba4; font-size: 0.49rem; }

.preview-main { min-width: 0; padding: 18px; background: #313338; }
.preview-topbar,
.preview-panel-title,
.feature-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.preview-topbar > div,
.preview-panel-title > div,
.feature-preview-head > div { display: grid; gap: 2px; }
.preview-topbar small,
.feature-preview-head small { color: #949ba4; font-size: 0.5rem; font-weight: 800; letter-spacing: 0.12em; }
.preview-topbar strong { font-size: 0.93rem; }
.preview-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(35, 165, 90, 0.12);
  color: #5bd68c;
  font-size: 0.53rem;
  font-weight: 750;
}
.preview-online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #23a55a;
  animation: code-preview-pulse 2s ease-in-out infinite;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 17px 0 10px;
}
.preview-stats article {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #2b2d31;
}
.preview-stats span { color: #949ba4; font-size: 0.43rem; font-weight: 800; letter-spacing: 0.06em; }
.preview-stats strong { font-size: 1.03rem; }
.preview-stats small { color: #5bd68c; font-size: 0.46rem; }

.preview-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(145px, 0.88fr);
  gap: 8px;
}
.preview-chart,
.preview-recent {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #2b2d31;
}
.preview-panel-title strong { font-size: 0.65rem; }
.preview-panel-title small { color: #949ba4; font-size: 0.48rem; }
.preview-panel-title > span,
.preview-panel-title > b {
  color: #b5bac1;
  font-size: 0.48rem;
  font-weight: 650;
}
.preview-panel-title > b { color: #aeb4ff; }

.preview-chart-bars {
  display: flex;
  height: 122px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 4px 0;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0 27px, rgba(255,255,255,0.045) 27px 28px);
}
.preview-chart-bars i {
  width: 100%;
  height: var(--bar);
  min-height: 12px;
  transform: scaleY(0.08);
  transform-origin: bottom;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, #7c85ff, #5865f2);
  animation: code-preview-bars 0.8s cubic-bezier(.2,.8,.2,1) forwards;
}
.preview-chart-bars i:nth-child(2) { animation-delay: 0.07s; }
.preview-chart-bars i:nth-child(3) { animation-delay: 0.14s; }
.preview-chart-bars i:nth-child(4) { animation-delay: 0.21s; }
.preview-chart-bars i:nth-child(5) { animation-delay: 0.28s; }
.preview-chart-bars i:nth-child(6) { animation-delay: 0.35s; }
.preview-chart-bars i:nth-child(7) { animation-delay: 0.42s; }
.preview-chart-labels { display: flex; justify-content: space-between; padding: 5px 4px 0; color: #949ba4; font-size: 0.43rem; }

.preview-recent { display: flex; flex-direction: column; }
.preview-check-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.preview-check-row:last-child { border-bottom: 0; }
.preview-check-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: rgba(88, 101, 242, 0.16);
  color: #aeb4ff;
  font-size: 0.58rem;
  font-weight: 900;
}
.preview-check-row div { display: grid; min-width: 0; }
.preview-check-row strong { overflow: hidden; font-size: 0.55rem; text-overflow: ellipsis; white-space: nowrap; }
.preview-check-row small { color: #949ba4; font-size: 0.45rem; }
.preview-check-row em { color: #5bd68c; font-size: 0.43rem; font-style: normal; }
.preview-check-row:nth-of-type(3) em { color: #f0b232; }

.feature-preview {
  width: 100%;
  margin-top: 28px;
  border-radius: 11px;
  background: #1e1f22;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover .feature-preview { transform: translateY(-3px); border-color: rgba(88,101,242,0.45); }
.feature-preview-head { min-height: 62px; padding: 13px 15px; border-bottom: 1px solid var(--line); background: #2b2d31; }
.feature-preview-head strong { font-size: 0.77rem; }
.feature-preview-head > span:not(.code-toggle) {
  padding: 6px 8px;
  border-radius: 5px;
  background: #1e1f22;
  color: #b5bac1;
  font-size: 0.52rem;
  font-weight: 650;
}

.leaderboard-preview { min-height: 330px; }
.leaderboard-podium {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: clamp(12px, 4vw, 34px);
  min-height: 149px;
  padding: 17px 18px 13px;
  background: linear-gradient(180deg, rgba(88,101,242,0.07), transparent);
}
.podium-member {
  position: relative;
  display: grid;
  min-width: 84px;
  justify-items: center;
  gap: 3px;
  padding: 9px 8px;
  border-radius: 9px;
  background: #2b2d31;
}
.podium-member.first { transform: translateY(-13px); border: 1px solid rgba(240,178,50,0.38); }
.podium-member.second { border: 1px solid rgba(181,186,193,0.24); }
.podium-member.third { border: 1px solid rgba(205,127,50,0.28); }
.podium-member i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #5865f2;
  color: #fff;
  font-size: 0.6rem;
  font-style: normal;
  font-weight: 800;
}
.podium-member.first i { width: 46px; height: 46px; background: #23a55a; }
.podium-member.second i { background: #7d67d8; }
.podium-member.third i { background: #d97757; }
.podium-member strong { font-size: 0.61rem; }
.podium-member small { color: #949ba4; font-size: 0.46rem; }
.podium-rank {
  position: absolute;
  top: -9px;
  right: -5px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: #404249;
  color: #fff;
  font-size: 0.48rem;
  font-weight: 850;
}
.podium-member.first .podium-rank { background: #f0b232; color: #2b2d31; }

.leaderboard-list { padding: 0 14px 12px; }
.leaderboard-row {
  display: grid;
  grid-template-columns: 40px minmax(120px, 1fr) 84px 54px;
  align-items: center;
  min-height: 42px;
  padding: 0 8px;
  border-top: 1px solid var(--line);
  color: #b5bac1;
  font-size: 0.55rem;
}
.leaderboard-labels { min-height: 29px; border-top: 0; color: #72767d; font-size: 0.43rem; font-weight: 800; letter-spacing: 0.08em; }
.leaderboard-row b { color: #949ba4; }
.leaderboard-row em { color: #5bd68c; font-style: normal; font-weight: 750; }
.member-cell { display: flex; align-items: center; gap: 8px; color: #f2f3f5; }
.member-cell i {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #404249;
  color: #fff;
  font-size: 0.46rem;
  font-style: normal;
}

.code-toggle {
  position: relative;
  width: 34px;
  height: 19px;
  flex: 0 0 34px;
  border-radius: 99px;
  background: #4e5058;
}
.code-toggle i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
}
.code-toggle.is-on { background: #23a55a; }
.code-toggle.is-on i { left: 18px; }
.automation-preview { min-height: 322px; }
.automation-status {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 14px;
  padding: 11px;
  border: 1px solid rgba(35,165,90,0.24);
  border-radius: 8px;
  background: rgba(35,165,90,0.08);
}
.automation-status > div { display: grid; }
.automation-status strong { font-size: 0.6rem; }
.automation-status small { color: #949ba4; font-size: 0.47rem; }
.automation-status b { color: #5bd68c; font-size: 0.54rem; }
.automation-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 0 0 rgba(35,165,90,.36);
  animation: code-preview-pulse-ring 2s ease-out infinite;
}
.automation-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px; }
.automation-fields label {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #2b2d31;
}
.automation-fields label > span,
.automation-method > span { color: #949ba4; font-size: 0.45rem; font-weight: 700; }
.automation-fields strong { font-size: 0.56rem; }
.automation-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
}
.automation-method div { display: flex; gap: 5px; }
.automation-method b {
  padding: 5px 8px;
  border-radius: 5px;
  background: #2b2d31;
  color: #949ba4;
  font-size: 0.48rem;
}
.automation-method b.is-selected { background: rgba(88,101,242,.2); color: #c9cdfd; }
.automation-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: #949ba4;
  font-size: 0.45rem;
}
.automation-footer strong { color: #f2f3f5; }
.preview-button {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 5px;
  background: #5865f2;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 750;
}

.audit-preview { min-height: 322px; }
.audit-filter { display: flex; gap: 6px; padding: 12px 14px 6px; }
.audit-filter > span,
.audit-filter .preview-button {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 0 8px;
  border-radius: 5px;
  background: #2b2d31;
  color: #b5bac1;
  font-size: 0.46rem;
  font-weight: 650;
}
.audit-filter .preview-button { margin-left: auto; background: #404249; color: #fff; }
.audit-list { padding: 0 14px; }
.audit-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 49px;
  border-bottom: 1px solid var(--line);
}
.audit-row > i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  font-size: 0.53rem;
  font-style: normal;
  font-weight: 850;
}
.audit-row > div { display: grid; min-width: 0; }
.audit-row strong { overflow: hidden; font-size: 0.56rem; text-overflow: ellipsis; white-space: nowrap; }
.audit-row small { overflow: hidden; color: #949ba4; font-size: 0.44rem; text-overflow: ellipsis; white-space: nowrap; }
.audit-row time { color: #72767d; font-size: 0.43rem; }
.audit-success { background: rgba(35,165,90,.13); color: #5bd68c; }
.audit-user { background: rgba(88,101,242,.17); color: #aeb4ff; }
.audit-run { background: rgba(240,178,50,.13); color: #f0b232; }
.audit-config { background: rgba(181,186,193,.1); color: #b5bac1; }
.audit-live {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  color: #949ba4;
  font-size: 0.44rem;
}
.audit-live span { width: 6px; height: 6px; border-radius: 50%; background: #23a55a; animation: code-preview-pulse 2s ease-in-out infinite; }

@keyframes code-preview-bars { to { transform: scaleY(1); } }
@keyframes code-preview-pulse { 50% { opacity: .45; } }
@keyframes code-preview-pulse-ring { 70% { box-shadow: 0 0 0 6px rgba(35,165,90,0); } }

@media (max-width: 900px) {
  .dashboard-preview { min-height: 420px; }
  .leaderboard-preview { max-width: 680px; margin-inline: auto; }
}

@media (max-width: 620px) {
  .hero-visual { padding-top: 31px; }
  .hero-visual::before { height: 34px; padding-left: 45px; font-size: 0.62rem; }
  .hero-visual::after { top: 13px; left: 14px; width: 7px; height: 7px; box-shadow: 12px 0 #f0b232, 24px 0 #23a55a; }
  .dashboard-preview { grid-template-columns: 80px minmax(0, 1fr); min-height: 358px; }
  .preview-sidebar { padding: 12px 7px 10px; }
  .preview-logo { gap: 5px; padding-inline: 3px; font-size: 0.57rem; }
  .preview-logo > span { width: 21px; height: 21px; border-radius: 6px; }
  .preview-nav > span { gap: 5px; padding: 7px 5px; font-size: 0.49rem; }
  .preview-nav i { width: 10px; }
  .preview-user { padding-inline: 3px; }
  .preview-user > span { width: 22px; height: 22px; flex-basis: 22px; font-size: 0.44rem; }
  .preview-user strong { font-size: 0.49rem; }
  .preview-user small { display: none; }
  .preview-main { padding: 12px 10px; }
  .preview-topbar strong { font-size: 0.72rem; }
  .preview-online { padding: 5px 6px; font-size: 0.43rem; }
  .preview-stats { gap: 5px; margin: 11px 0 6px; }
  .preview-stats article { padding: 7px; }
  .preview-stats span { font-size: 0.34rem; }
  .preview-stats strong { font-size: 0.75rem; }
  .preview-stats small { font-size: 0.35rem; }
  .preview-dashboard-grid { grid-template-columns: 1fr; }
  .preview-recent { display: none; }
  .preview-chart-bars { height: 110px; }
  .leaderboard-podium { gap: 7px; padding-inline: 8px; }
  .podium-member { min-width: 70px; }
  .leaderboard-row { grid-template-columns: 32px minmax(90px, 1fr) 58px 35px; }
  .automation-fields { grid-template-columns: 1fr; }
  .automation-fields label:nth-child(n+3) { display: none; }
  .automation-footer > span { max-width: 160px; }
  .audit-row:nth-child(4) { display: none; }
}

/* Rallybit 7.1 community quiz and moderation previews ----------------------- */
.quiz-preview,
.mod-preview { min-height: 322px; }
.quiz-timer { color: #f0b232 !important; font-variant-numeric: tabular-nums; }
.quiz-body { padding: 18px 15px 14px; }
.quiz-label { display: block; margin-bottom: 8px; color: #949ba4; font-size: .46rem; font-weight: 800; letter-spacing: .12em; }
.quiz-question { display: block; max-width: 390px; font-size: .82rem; line-height: 1.35; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 17px; }
.quiz-options > span {
  display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 7px; background: #2b2d31;
  color: #c7c9ce; font-size: .55rem; font-weight: 650;
}
.quiz-options b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 6px; background: #404249; color: #fff; font-size: .48rem; }
.quiz-options > span.is-picked { border-color: rgba(88,101,242,.7); background: rgba(88,101,242,.16); color: #fff; }
.quiz-options > span.is-picked b { background: #5865f2; }
.quiz-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 15px; border-top: 1px solid var(--line); color: #949ba4; font-size: .47rem; }
.quiz-footer span { display: inline-flex; align-items: center; gap: 6px; }
.quiz-footer i { width: 7px; height: 7px; border-radius: 50%; background: #23a55a; animation: code-preview-pulse 2s ease-in-out infinite; }
.quiz-footer strong { color: #aeb4ff; font-size: .47rem; }

.mod-member { display: grid; grid-template-columns: 48px minmax(0,1fr) 104px; align-items: center; gap: 11px; padding: 15px; }
.mod-member > i { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 50%; background: #5865f2; color: #fff; font-size: .62rem; font-style: normal; font-weight: 850; }
.mod-member > div { display: grid; gap: 3px; min-width: 0; }
.mod-member > div > strong { font-size: .72rem; }
.mod-member > div > small { color: #949ba4; font-size: .45rem; }
.mod-member > div > span { margin-top: 5px; color: #b5bac1; font-size: .48rem; }
.mod-member > div b { padding: 3px 5px; border-radius: 4px; background: rgba(88,101,242,.18); color: #c9cdfd; }
.mod-member aside { display: grid; gap: 3px; padding: 9px; border-radius: 7px; background: #2b2d31; }
.mod-member aside small { color: #72767d; font-size: .4rem; font-weight: 800; letter-spacing: .08em; }
.mod-member aside strong { margin-bottom: 4px; color: #f2f3f5; font-size: .52rem; }
.mod-divider { height: 1px; margin: 0 15px; background: var(--line); }
.mod-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; padding: 14px 15px; }
.mod-actions span { display: grid; min-height: 37px; place-items: center; padding: 6px; border-radius: 6px; background: #404249; color: #f2f3f5; font-size: .46rem; font-weight: 700; text-align: center; }
.mod-actions span.warn { background: #9b6a00; }
.mod-actions span.timeout { background: #5140a5; }
.mod-actions span.danger { background: #a1282d; }
.mod-footer { padding: 10px 15px 13px; border-top: 1px solid var(--line); color: #72767d; font-size: .43rem; text-align: center; }
.mod-footer b { margin: 0 4px; color: #5865f2; }

@media (max-width: 620px) {
  .quiz-options { grid-template-columns: 1fr; }
  .mod-member { grid-template-columns: 42px minmax(0,1fr); }
  .mod-member aside { grid-column: 1 / -1; grid-template-columns: repeat(4,auto); align-items: center; }
  .mod-actions { grid-template-columns: repeat(2,1fr); }
}
