:root {
  --rj-bg:        #060912;
  --rj-bg-2:      #0a1124;
  --rj-surface:   #0f1830;
  --rj-surface-2: #131e3d;
  --rj-border:    #1f2c52;
  --rj-text:      #e7ecf7;
  --rj-muted:     #8a97b8;
  --rj-dim:       #5a6587;
  --rj-brand:     #1e3a8a;   /* deep droplet blue */
  --rj-brand-2:   #2553c9;
  --rj-accent:    #4ea8ff;   /* lighter ripple blue */
  --rj-accent-2:  #7aa7ff;
  --rj-accent-3:  #29d6c8;   /* aqua highlight */
  --rj-warn:      #ffb547;
  --rj-grad:      linear-gradient(135deg, #1e3a8a 0%, #2553c9 45%, #4ea8ff 100%);
  --rj-grad-soft: linear-gradient(135deg, rgba(30,58,138,.22), rgba(37,83,201,.20) 55%, rgba(78,168,255,.20));
  --rj-mono:      ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body {
  background: var(--rj-bg);
  color: var(--rj-text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(37,83,201,.22), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(78,168,255,.14), transparent 60%),
    var(--rj-bg);
  min-height: 100vh;
}

a { color: var(--rj-accent); text-decoration: none; }
a:hover { color: #93dffb; }

.text-muted, .text-secondary { color: var(--rj-muted) !important; }
.text-dim { color: var(--rj-dim); }
.text-grad {
  background: var(--rj-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

code, pre, .mono { font-family: var(--rj-mono); }

/* ---------- Navbar ---------- */
.rj-navbar {
  background: rgba(8, 11, 18, .72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rj-border);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.rj-navbar .navbar-brand {
  color: var(--rj-text);
  font-weight: 700;
  letter-spacing: -.01em;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.rj-navbar .navbar-brand img.rj-mark {
  width: 28px; height: 28px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(78,168,255,.35));
}
.rj-navbar .nav-link {
  color: var(--rj-muted);
  font-weight: 500;
  padding-left: .9rem;
  padding-right: .9rem;
}
.rj-navbar .nav-link:hover,
.rj-navbar .nav-link.active { color: var(--rj-text); }

.rj-navbar .navbar-toggler {
  border-color: var(--rj-border);
}
.rj-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23e6ecf5' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn-rj {
  background: var(--rj-grad);
  color: #ffffff;
  font-weight: 600;
  border: 0;
  padding: .65rem 1.15rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(37,83,201,.32), inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-rj:hover {
  color: #ffffff;
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(78,168,255,.35), inset 0 0 0 1px rgba(255,255,255,.22);
}
.btn-rj-ghost {
  background: transparent;
  color: var(--rj-text);
  border: 1px solid var(--rj-border);
  padding: .6rem 1.05rem;
  border-radius: 10px;
  font-weight: 500;
  transition: border-color .15s ease, background .15s ease;
}
.btn-rj-ghost:hover {
  color: var(--rj-text);
  border-color: var(--rj-accent);
  background: rgba(76,201,240,.06);
}

/* ---------- Pills / Tags ---------- */
.rj-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: var(--rj-grad-soft);
  border: 1px solid var(--rj-border);
  color: var(--rj-text);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.rj-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rj-accent-3);
  box-shadow: 0 0 0 4px rgba(41,214,200,.18);
}

/* ---------- Hero ---------- */
.rj-hero {
  padding: 6rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}
.rj-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.rj-hero h1 code {
  font-family: var(--rj-mono);
  font-size: .85em;
  background: var(--rj-bg-2);
  border: 1px solid var(--rj-border);
  padding: .05em .3em;
  border-radius: 8px;
}
.rj-hero p.lead {
  color: var(--rj-muted);
  font-size: 1.15rem;
  max-width: 640px;
}
.rj-hero .rj-hero-cta { margin-top: 2rem; }

/* ---------- Sections ---------- */
.rj-section {
  padding: 5rem 0;
  border-top: 1px solid var(--rj-border);
}
.rj-section h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -.02em;
  font-weight: 700;
}
.rj-section .section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--rj-accent);
  font-weight: 600;
  margin-bottom: .7rem;
}

/* ---------- Cards ---------- */
.rj-card {
  background: linear-gradient(180deg, var(--rj-surface) 0%, var(--rj-surface-2) 100%);
  border: 1px solid var(--rj-border);
  border-radius: 16px;
  padding: 1.6rem;
  height: 100%;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.rj-card:hover {
  border-color: #2c3a58;
  transform: translateY(-2px);
}
.rj-card .rj-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--rj-grad-soft);
  border: 1px solid var(--rj-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--rj-accent);
  margin-bottom: 1rem;
}
.rj-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .45rem;
  color: var(--rj-text);
}
.rj-card p {
  color: var(--rj-muted);
  font-size: .95rem;
  margin-bottom: 0;
}

/* ---------- Architecture diagram ---------- */
.rj-arch {
  border: 1px solid var(--rj-border);
  border-radius: 18px;
  padding: 1.5rem;
  background:
    linear-gradient(180deg, rgba(15,22,35,.85), rgba(15,22,35,.55)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, transparent 1px 32px),
    var(--rj-bg-2);
}
.rj-arch-layer {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  background: var(--rj-surface);
  border: 1px solid var(--rj-border);
  border-radius: 12px;
  margin-bottom: .8rem;
}
.rj-arch-layer:last-child { margin-bottom: 0; }
.rj-arch-layer .label {
  font-family: var(--rj-mono);
  font-size: .82rem;
  color: var(--rj-accent);
  letter-spacing: .04em;
}
.rj-arch-layer .pieces {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.rj-arch-piece {
  padding: .35rem .7rem;
  border-radius: 8px;
  background: var(--rj-bg-2);
  border: 1px solid var(--rj-border);
  font-size: .82rem;
  color: var(--rj-text);
  font-family: var(--rj-mono);
}

/* ---------- Stats ---------- */
.rj-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) { .rj-stats { grid-template-columns: repeat(2, 1fr); } }
.rj-stat {
  border: 1px solid var(--rj-border);
  border-radius: 14px;
  padding: 1.2rem 1.3rem;
  background: var(--rj-surface);
}
.rj-stat .num {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  background: var(--rj-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rj-stat .label {
  font-size: .82rem;
  color: var(--rj-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-top: .35rem;
}

/* ---------- Code block ---------- */
.rj-code {
  background: var(--rj-bg-2);
  border: 1px solid var(--rj-border);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  font-family: var(--rj-mono);
  font-size: .87rem;
  color: #cfd8e6;
  overflow-x: auto;
  line-height: 1.55;
}
.rj-code .c-kw  { color: #c792ea; }
.rj-code .c-fn  { color: #82aaff; }
.rj-code .c-str { color: #c3e88d; }
.rj-code .c-num { color: #f78c6c; }
.rj-code .c-cm  { color: var(--rj-dim); font-style: italic; }

/* ---------- Pricing ---------- */
.rj-price-card {
  background: var(--rj-surface);
  border: 1px solid var(--rj-border);
  border-radius: 18px;
  padding: 2rem 1.8rem;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}
.rj-price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--rj-surface), var(--rj-surface)) padding-box,
    var(--rj-grad) border-box;
  border: 1px solid transparent;
  box-shadow: 0 20px 60px rgba(37,83,201,.14);
}
.rj-price-card .price {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.rj-price-card .price .unit {
  font-size: .9rem;
  font-weight: 500;
  color: var(--rj-muted);
  margin-left: .25rem;
}
.rj-price-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.rj-price-card ul li {
  padding: .45rem 0;
  color: var(--rj-muted);
  display: flex;
  gap: .55rem;
  font-size: .94rem;
}
.rj-price-card ul li::before {
  content: "✓";
  color: var(--rj-accent-3);
  font-weight: 700;
}

/* ---------- Forms ---------- */
.rj-form .form-label {
  color: var(--rj-text);
  font-size: .9rem;
  font-weight: 500;
  margin-bottom: .35rem;
}
.rj-form .form-control,
.rj-form .form-select {
  background: var(--rj-bg-2);
  border: 1px solid var(--rj-border);
  color: var(--rj-text);
  border-radius: 10px;
  padding: .65rem .85rem;
}
.rj-form .form-control:focus,
.rj-form .form-select:focus {
  background: var(--rj-bg-2);
  border-color: var(--rj-accent);
  color: var(--rj-text);
  box-shadow: 0 0 0 3px rgba(78,168,255,.22);
}
.rj-form textarea.form-control { min-height: 140px; }

.rj-alert {
  border: 1px solid var(--rj-border);
  background: var(--rj-surface);
  border-radius: 12px;
  padding: .9rem 1.1rem;
}
.rj-alert.success { border-color: rgba(41,214,200,.45); background: rgba(41,214,200,.07); }
.rj-alert.error   { border-color: rgba(255,99,99,.45); background: rgba(255,99,99,.07); }

/* ---------- Footer ---------- */
.rj-footer {
  border-top: 1px solid var(--rj-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  color: var(--rj-muted);
  font-size: .92rem;
}
.rj-footer h6 {
  color: var(--rj-text);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
}
.rj-footer ul { list-style: none; padding: 0; margin: 0; }
.rj-footer ul li { padding: .25rem 0; }
.rj-footer ul li a { color: var(--rj-muted); }
.rj-footer ul li a:hover { color: var(--rj-text); }
.rj-footer .legal {
  border-top: 1px solid var(--rj-border);
  padding-top: 1.5rem;
  margin-top: 2.2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .82rem;
  color: var(--rj-dim);
}

/* ---------- CTA strip ---------- */
.rj-cta {
  background:
    linear-gradient(180deg, var(--rj-surface) 0%, var(--rj-surface-2) 100%);
  border: 1px solid var(--rj-border);
  border-radius: 20px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.rj-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 220px at 90% 110%, rgba(37,83,201,.25), transparent 60%),
    radial-gradient(500px 220px at 5% -20%, rgba(78,168,255,.18), transparent 60%);
  pointer-events: none;
}
.rj-cta > * { position: relative; }

/* ---------- Misc ---------- */
.divider {
  height: 1px;
  background: var(--rj-border);
  margin: 2rem 0;
}
.rj-list-check {
  list-style: none;
  padding: 0;
}
.rj-list-check li {
  padding: .35rem 0 .35rem 1.6rem;
  position: relative;
  color: var(--rj-muted);
}
.rj-list-check li::before {
  content: "";
  position: absolute;
  left: 0; top: .65rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--rj-grad);
  box-shadow: 0 0 0 3px rgba(37,83,201,.18);
}

/* Error pages */
.rj-error {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.rj-error .code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 800;
  background: var(--rj-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.04em;
  line-height: 1;
}
