:root {
  color-scheme: dark;
  --rgs-bg: #060d18;
  --rgs-bg-elevated: #0c1628;
  --rgs-panel: #111f35;
  --rgs-border: #1e3354;
  --rgs-text: #e8eef7;
  --rgs-muted: #8fa3bf;
  --rgs-accent: #3b82f6;
  --rgs-accent-soft: rgba(59, 130, 246, 0.14);
  --rgs-success: #34d399;
  --rgs-gold: #fbbf24;
  --rgs-radius: 16px;
  --rgs-max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--rgs-bg);
  color: var(--rgs-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rgs-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.rgs-wrap {
  max-width: var(--rgs-max);
  margin: 0 auto;
  padding: 0 20px;
}

.rgs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(6, 13, 24, 0.82);
  border-bottom: 1px solid rgba(30, 51, 84, 0.6);
}

.rgs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.rgs-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--rgs-text);
  text-decoration: none;
}

.rgs-logo:hover {
  text-decoration: none;
}

.rgs-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}

.rgs-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rgs-nav a {
  color: var(--rgs-muted);
  font-size: 0.9rem;
  padding: 8px 10px;
  text-decoration: none;
}

.rgs-nav a:hover {
  color: var(--rgs-text);
  text-decoration: none;
}

.rgs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  border: none;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rgs-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.rgs-btn-primary {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.rgs-btn-ghost {
  background: transparent;
  color: var(--rgs-text);
  border: 1px solid var(--rgs-border);
}

.rgs-hero {
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}

.rgs-hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto;
  height: 420px;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.22), transparent 65%);
  pointer-events: none;
}

.rgs-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.rgs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--rgs-accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #bfdbfe;
  font-size: 0.82rem;
  margin-bottom: 18px;
}

.rgs-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rgs-muted);
}

.rgs-status-dot.is-live {
  background: var(--rgs-success);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
}

.rgs-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.rgs-hero-lead {
  margin: 0 0 28px;
  color: var(--rgs-muted);
  font-size: 1.08rem;
  max-width: 54ch;
}

.rgs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.rgs-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--rgs-muted);
  font-size: 0.86rem;
}

.rgs-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rgs-hero-card {
  background: linear-gradient(160deg, rgba(17, 31, 53, 0.95), rgba(12, 22, 40, 0.98));
  border: 1px solid var(--rgs-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.rgs-hero-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
}

.rgs-hero-card p {
  margin: 0 0 18px;
  color: var(--rgs-muted);
  font-size: 0.9rem;
}

.rgs-demo-preview {
  position: relative;
  height: 220px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 75%, rgba(239, 68, 68, 0.18), transparent 55%),
    linear-gradient(180deg, #0a1424, #060d18);
  border: 1px solid rgba(30, 51, 84, 0.8);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.rgs-demo-balloon {
  width: 72px;
  height: 90px;
  border-radius: 50% 50% 48% 48%;
  background: radial-gradient(circle at 35% 28%, #fca5a5, #ef4444 55%, #991b1b);
  transform-origin: 50% 90%;
  animation: rgsFloat 3s ease-in-out infinite;
  box-shadow: inset -8px -12px 20px rgba(0, 0, 0, 0.25);
}

.rgs-demo-mult {
  position: absolute;
  top: 16px;
  font-size: 1.6rem;
  font-weight: 800;
  color: #93c5fd;
  text-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
}

@keyframes rgsFloat {
  0%, 100% { transform: scale(0.35) translateY(0); }
  50% { transform: scale(0.42) translateY(-6px); }
}

.rgs-section {
  padding: 56px 0;
}

.rgs-section-title {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.rgs-section-lead {
  margin: 0 0 32px;
  color: var(--rgs-muted);
  max-width: 62ch;
}

.rgs-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rgs-card {
  background: var(--rgs-panel);
  border: 1px solid var(--rgs-border);
  border-radius: var(--rgs-radius);
  padding: 22px;
}

.rgs-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--rgs-accent-soft);
  color: #93c5fd;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.rgs-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.rgs-card p {
  margin: 0;
  color: var(--rgs-muted);
  font-size: 0.92rem;
}

.rgs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.rgs-code {
  background: #020617;
  border: 1px solid var(--rgs-border);
  border-radius: 14px;
  padding: 16px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.rgs-code .kw { color: #7dd3fc; }
.rgs-code .str { color: #86efac; }
.rgs-code .cm { color: #64748b; }

.rgs-steps {
  display: grid;
  gap: 14px;
}

.rgs-step {
  display: flex;
  gap: 14px;
  padding: 16px;
  background: var(--rgs-panel);
  border: 1px solid var(--rgs-border);
  border-radius: 14px;
}

.rgs-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--rgs-accent-soft);
  color: #93c5fd;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.rgs-step h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
}

.rgs-step p {
  margin: 0;
  color: var(--rgs-muted);
  font-size: 0.88rem;
}

.rgs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.rgs-stat {
  text-align: center;
  padding: 18px 12px;
  background: var(--rgs-bg-elevated);
  border: 1px solid var(--rgs-border);
  border-radius: 14px;
}

.rgs-stat strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 4px;
  color: #fff;
}

.rgs-stat span {
  color: var(--rgs-muted);
  font-size: 0.82rem;
}

.rgs-cta {
  margin: 56px 0;
  padding: 40px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.28);
  text-align: center;
}

.rgs-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.rgs-cta p {
  margin: 0 auto 22px;
  max-width: 52ch;
  color: var(--rgs-muted);
}

.rgs-footer {
  border-top: 1px solid var(--rgs-border);
  padding: 28px 0 40px;
  color: var(--rgs-muted);
  font-size: 0.86rem;
}

.rgs-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.rgs-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.rgs-footer-links a {
  color: var(--rgs-muted);
  text-decoration: none;
}

.rgs-footer-links a:hover {
  color: var(--rgs-text);
}

@media (max-width: 900px) {
  .rgs-hero-grid,
  .rgs-split,
  .rgs-grid-3 {
    grid-template-columns: 1fr;
  }

  .rgs-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .rgs-nav a:not(.rgs-btn) {
    display: none;
  }
}

@media (max-width: 480px) {
  .rgs-hero {
    padding-top: 36px;
  }

  .rgs-hero-actions {
    flex-direction: column;
  }

  .rgs-hero-actions .rgs-btn {
    width: 100%;
  }

  .rgs-stats {
    grid-template-columns: 1fr;
  }
}
