/*
 * Rizve Joarder — Design System
 * Production WordPress CSS — rj- prefixed, Elementor-safe
 * Fonts: Inter · JetBrains Mono · Instrument Serif (via wp_enqueue)
 */

/* ─── FONTS loaded via wp_enqueue_style in inc/enqueue.php ──────────────── */

/* ─── CSS CUSTOM PROPERTIES ─────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --rj-bg-0:              #020814;
  --rj-bg-1:              #06111f;
  --rj-bg-2:              #0a1a2c;
  --rj-bg-3:              #0e2238;

  /* Surfaces */
  --rj-surface-glass:     rgba(8, 22, 38, 0.72);
  --rj-surface-glass-str: rgba(10, 26, 44, 0.88);
  --rj-surface-hi:        rgba(255, 255, 255, 0.04);

  /* Borders */
  --rj-border:            rgba(148, 163, 184, 0.16);
  --rj-border-mid:        rgba(148, 163, 184, 0.24);
  --rj-border-strong:     rgba(148, 163, 184, 0.38);

  /* Text */
  --rj-text:              #F8FAFC;
  --rj-text-muted:        #94A3B8;
  --rj-text-dim:          #64748B;

  /* Accents */
  --rj-lime:              #9DFF57;
  --rj-lime-soft:         #c4ff8e;
  --rj-lime-glow:         rgba(157, 255, 87, 0.35);
  --rj-lime-bg:           rgba(157, 255, 87, 0.06);
  --rj-lime-rgb:          157, 255, 87;
  --rj-cyan:              #22D3EE;
  --rj-cyan-glow:         rgba(34, 211, 238, 0.25);
  --rj-cyan-rgb:          34, 211, 238;
  --rj-blue:              #60A5FA;
  --rj-violet:            #8B5CF6;
  --rj-violet-glow:       rgba(139, 92, 246, 0.25);
  --rj-amber:             #F59E0B;
  --rj-rose:              #FB7185;

  /* Typography — Geist is now the primary UI font (matches handoff) */
  --rj-f-body:            "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --rj-f-mono:            "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --rj-f-serif:           "Instrument Serif", ui-serif, Georgia, serif;

  /* Spacing */
  --rj-max:               1240px;
  --rj-gutter:            clamp(20px, 4vw, 48px);

  /* Radii */
  --rj-r-sm:              8px;
  --rj-r-md:              14px;
  --rj-r-lg:              20px;
  --rj-r-xl:              28px;
  --rj-r-2xl:             36px;

  /* Transitions */
  --rj-ease:              0.22s ease;
  --rj-ease-slow:         0.35s ease;
}

/* ─── BODY CANVAS ────────────────────────────────────────────────────────── */
.rj-canvas {
  background-color: var(--rj-bg-0);
  color: var(--rj-text);
  font-family: var(--rj-f-body);
  position: relative;
}

/* Grid background */
.rj-canvas::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 100%);
}

/* Ambient glow blobs */
.rj-canvas::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(40vmax 30vmax at 12% 8%, rgba(200, 255, 61, 0.09), transparent 70%),
    radial-gradient(36vmax 32vmax at 90% 18%, rgba(139, 92, 246, 0.12), transparent 70%),
    radial-gradient(45vmax 30vmax at 50% 95%, rgba(46, 230, 224, 0.09), transparent 70%);
  filter: blur(4px);
}

.rj-canvas > * {
  position: relative;
  z-index: 1;
}

/* ─── LAYOUT ─────────────────────────────────────────────────────────────── */
.rj-section {
  padding-block: clamp(64px, 8vw, 120px);
}

.rj-section--tight {
  padding-block: clamp(40px, 5vw, 80px);
}

/* ─── SECTION UTILITIES (extended variants) ─────────────────────────────── */

/* Single-dash alias — matches user-authored HTML */
.rj-section-tight {
  padding-block: clamp(40px, 5vw, 80px);
}

/* Hero sections — tall generous padding */
.rj-section-hero {
  padding-block: clamp(72px, 10vw, 148px);
}

/* Muted section — subtle tint for alternating visual rhythm */
.rj-section-muted {
  background: rgba(13, 20, 36, 0.5);
  border-top: 1px solid var(--rj-border);
  border-bottom: 1px solid var(--rj-border);
}

/* Grid-bg section — visible grid lines, fading toward edges */
.rj-section-grid-bg {
  position: relative;
  overflow: hidden;
}
.rj-section-grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 15%, transparent 72%);
}
.rj-section-grid-bg > * {
  position: relative;
  z-index: 1;
}

.rj-container {
  max-width: var(--rj-max);
  margin-inline: auto;
  padding-inline: var(--rj-gutter);
  width: 100%;
}

.rj-container--narrow {
  max-width: 840px;
}

.rj-container--wide {
  max-width: 1400px;
}

/* Container shorthands */
.rj-narrow {
  max-width: 840px;
  margin-inline: auto;
  padding-inline: var(--rj-gutter);
  width: 100%;
}

.rj-wide {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--rj-gutter);
  width: 100%;
}

/* ─── GRIDS ──────────────────────────────────────────────────────────────── */
.rj-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

.rj-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 18px);
}

.rj-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.5vw, 16px);
}

.rj-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(14px, 2vw, 18px);
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────────────── */
.rj-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--rj-f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rj-text-muted);
  margin-bottom: 14px;
}

.rj-kicker--lime  { color: var(--rj-lime); }
.rj-kicker--cyan  { color: var(--rj-cyan); }
.rj-kicker--violet { color: var(--rj-violet); }

.rj-heading {
  font-family: var(--rj-f-body);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--rj-text);
  margin: 0;
}

.rj-heading--xl { font-size: clamp(40px, 5vw, 72px); }
.rj-heading--lg { font-size: clamp(36px, 4.4vw, 60px); }
.rj-heading--md { font-size: clamp(30px, 3.6vw, 48px); }
.rj-heading--sm { font-size: clamp(24px, 2.8vw, 36px); }
.rj-heading--xs { font-size: clamp(19px, 2vw, 24px); }

.rj-subheading {
  font-family: var(--rj-f-body);
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--rj-text-muted);
  margin: 0;
}

.rj-body {
  font-family: var(--rj-f-body);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--rj-text-muted);
}

/* Gradient text */
.rj-gradient-text {
  background: linear-gradient(90deg, var(--rj-lime) 0%, var(--rj-cyan) 60%, var(--rj-lime-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rj-gradient-text--violet {
  background: linear-gradient(90deg, var(--rj-violet) 0%, var(--rj-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Serif accent */
.rj-serif-accent {
  font-family: var(--rj-f-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--rj-lime);
  letter-spacing: -0.02em;
}

/* Mono label */
.rj-mono {
  font-family: var(--rj-f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ─── BADGES & CHIPS ─────────────────────────────────────────────────────── */
.rj-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--rj-border);
  background: var(--rj-surface-hi);
  font-family: var(--rj-f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--rj-text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.rj-chip--lime {
  color: var(--rj-lime);
  border-color: rgba(157, 255, 87, 0.32);
  background: rgba(157, 255, 87, 0.06);
}

.rj-chip--cyan {
  color: var(--rj-cyan);
  border-color: rgba(34, 211, 238, 0.32);
  background: rgba(34, 211, 238, 0.06);
}

.rj-chip--violet {
  color: var(--rj-violet);
  border-color: rgba(139, 92, 246, 0.32);
  background: rgba(139, 92, 246, 0.06);
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.rj-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--rj-f-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  transition: transform var(--rj-ease), box-shadow var(--rj-ease), background var(--rj-ease), color var(--rj-ease), border-color var(--rj-ease);
  -webkit-user-select: none;
  user-select: none;
}

.rj-btn:hover {
  text-decoration: none;
}

.rj-btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.rj-btn--lg {
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
}

/* Primary — lime */
.rj-btn-primary {
  background: var(--rj-lime);
  color: #08120b;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 0 0 1px rgba(157, 255, 87, 0.2),
    0 10px 30px -8px rgba(157, 255, 87, 0.45);
}

.rj-btn-primary:hover {
  background: var(--rj-lime-soft);
  color: #08120b;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 0 0 1px rgba(157, 255, 87, 0.3),
    0 18px 40px -10px rgba(157, 255, 87, 0.6);
}

.rj-btn-primary:active {
  transform: translateY(0);
}

.rj-btn-primary:focus-visible {
  outline: 2px solid var(--rj-lime);
  outline-offset: 3px;
}

/* Secondary — outline */
.rj-btn-secondary {
  background: transparent;
  color: var(--rj-text);
  border: 1px solid var(--rj-border-mid);
}

.rj-btn-secondary:hover {
  background: rgba(148, 163, 184, 0.1);
  border-color: var(--rj-border-strong);
  transform: translateY(-1px);
}

.rj-btn-secondary:focus-visible {
  outline: 2px solid var(--rj-border-strong);
  outline-offset: 3px;
}

/* Ghost */
.rj-btn-ghost {
  background: transparent;
  color: var(--rj-text-muted);
  border: none;
  padding-inline: 12px;
}

.rj-btn-ghost:hover {
  color: var(--rj-text);
}

.rj-btn-ghost:focus-visible {
  outline: 2px solid var(--rj-border-strong);
  outline-offset: 3px;
}

/* Cyan variant */
.rj-btn-cyan {
  background: var(--rj-cyan);
  color: #020814;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 10px 30px -8px rgba(34, 211, 238, 0.45);
}

.rj-btn-cyan:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.rj-btn-cyan:focus-visible {
  outline: 2px solid var(--rj-cyan);
  outline-offset: 3px;
}

/* ─── GLASS BASE ─────────────────────────────────────────────────────────── */
.rj-glass {
  background: var(--rj-surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-r-lg);
  transition: border-color var(--rj-ease), transform var(--rj-ease), box-shadow var(--rj-ease);
}

.rj-glass--strong {
  background: var(--rj-surface-glass-str);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.rj-glass:hover,
.rj-glass--hover:hover {
  border-color: var(--rj-border-mid);
  transform: translateY(-2px);
  box-shadow:
    0 18px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--rj-border-mid),
    0 0 60px -20px rgba(200, 255, 61, 0.12);
}

/* ─── CARD ───────────────────────────────────────────────────────────────── */
.rj-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.005)),
    var(--rj-surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-r-lg);
  padding: 28px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  transition: border-color var(--rj-ease), transform var(--rj-ease), box-shadow var(--rj-ease);
}

.rj-card:hover {
  border-color: var(--rj-border-mid);
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 60px -20px rgba(0, 0, 0, 0.55),
    0 0 50px -20px rgba(200, 255, 61, 0.12);
}

.rj-card--sm { padding: 20px; }
.rj-card--lg { padding: 36px; }
.rj-card--flat { border-radius: var(--rj-r-md); padding: 20px; }

/* ─── STAT CARD ──────────────────────────────────────────────────────────── */
.rj-stat-card {
  background: var(--rj-surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-r-lg);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--rj-ease), transform var(--rj-ease);
}

.rj-stat-card:hover {
  border-color: rgba(157, 255, 87, 0.36);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -15px rgba(157, 255, 87, 0.18);
}

.rj-stat-card__value {
  font-family: var(--rj-f-body);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--rj-text);
}

.rj-stat-card__value--lime  { color: var(--rj-lime); }
.rj-stat-card__value--cyan  { color: var(--rj-cyan); }
.rj-stat-card__value--violet { color: var(--rj-violet); }

.rj-stat-card__label {
  font-family: var(--rj-f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rj-text-dim);
}

.rj-stat-card__desc {
  font-size: 13.5px;
  color: var(--rj-text-muted);
  margin-top: 4px;
}

/* ─── SERVICE CARD ───────────────────────────────────────────────────────── */
.rj-service-card {
  background: var(--rj-surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color var(--rj-ease), transform var(--rj-ease), box-shadow var(--rj-ease);
}

.rj-service-card:hover {
  border-color: var(--rj-border-strong);
  transform: translateY(-3px);
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 60px -20px rgba(157, 255, 87, 0.12);
}

.rj-service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(157, 255, 87, 0.14), rgba(34, 211, 238, 0.08));
  border: 1px solid var(--rj-border);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--rj-lime);
  flex-shrink: 0;
}

.rj-service-card__icon svg {
  width: 22px;
  height: 22px;
}

.rj-service-card__title {
  font-family: var(--rj-f-body);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--rj-text);
  margin: 0 0 10px;
}

.rj-service-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--rj-text-muted);
  flex-grow: 1;
  margin: 0;
}

.rj-service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed var(--rj-border);
}

/* ─── CASE STUDY CARD ────────────────────────────────────────────────────── */
.rj-case-card {
  background: var(--rj-surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-r-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: border-color var(--rj-ease), transform var(--rj-ease), box-shadow var(--rj-ease);
}

.rj-case-card:hover {
  border-color: rgba(34, 211, 238, 0.22);
  transform: translateY(-3px);
  box-shadow:
    0 24px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 50px -20px rgba(34, 211, 238, 0.12);
}

.rj-case-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--rj-bg-2);
  position: relative;
  overflow: hidden;
}

.rj-case-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.rj-case-card:hover .rj-case-card__thumb img {
  transform: scale(1.05);
}

.rj-case-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(148, 163, 184, 0.04) 0px,
      rgba(148, 163, 184, 0.04) 1px,
      transparent 1px,
      transparent 14px
    );
}

.rj-case-card__label {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 5px 10px;
  border-radius: var(--rj-r-sm);
  background: rgba(2, 8, 20, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--rj-border);
  font-family: var(--rj-f-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rj-cyan);
}

.rj-case-card__body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.rj-case-card__cat {
  font-family: var(--rj-f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rj-cyan);
  margin-bottom: 10px;
}

.rj-case-card__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--rj-text);
  margin: 0 0 10px;
}

.rj-case-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--rj-text-muted);
  flex-grow: 1;
  margin: 0;
}

.rj-case-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--rj-border);
  font-family: var(--rj-f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--rj-text-dim);
}

/* ─── BLOG CARD ──────────────────────────────────────────────────────────── */
.rj-blog-card {
  background: var(--rj-surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-r-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: border-color var(--rj-ease), transform var(--rj-ease), box-shadow var(--rj-ease);
}

.rj-blog-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow:
    0 20px 50px -20px rgba(0, 0, 0, 0.55),
    0 0 50px -20px rgba(157, 255, 87, 0.08);
}

.rj-blog-card__thumb {
  aspect-ratio: 16 / 10;
  background: var(--rj-bg-2);
  position: relative;
  overflow: hidden;
}

.rj-blog-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rj-blog-card:hover .rj-blog-card__thumb img {
  transform: scale(1.04);
}

.rj-blog-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--rj-f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rj-lime);
  background: rgba(2, 8, 20, 0.80);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(157, 255, 87, 0.25);
}

.rj-blog-card__body {
  padding: 22px 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.rj-blog-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--rj-text);
  margin: 0 0 10px;
}

.rj-blog-card__desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--rj-text-muted);
  flex-grow: 1;
  margin: 0;
}

.rj-blog-card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--rj-border);
  font-family: var(--rj-f-mono);
  font-size: 11px;
  letter-spacing: 0.10em;
  color: var(--rj-text-dim);
}

/* ─── TESTIMONIAL CARD ───────────────────────────────────────────────────── */
.rj-testimonial-card {
  background: var(--rj-surface-glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-r-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color var(--rj-ease), transform var(--rj-ease);
}

.rj-testimonial-card:hover {
  border-color: var(--rj-border-strong);
  transform: translateY(-2px);
}

.rj-testimonial-card__stars {
  display: flex;
  gap: 3px;
  color: var(--rj-lime);
}

.rj-testimonial-card__stars svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.rj-testimonial-card__quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--rj-text);
  flex-grow: 1;
  margin: 0;
  font-style: italic;
}

.rj-testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rj-testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rj-bg-3), var(--rj-bg-2));
  border: 1px solid var(--rj-border-mid);
  overflow: hidden;
  flex-shrink: 0;
}

.rj-testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rj-testimonial-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--rj-text);
  line-height: 1.3;
}

.rj-testimonial-card__role {
  font-size: 12.5px;
  color: var(--rj-text-muted);
  line-height: 1.3;
}

/* ─── IMAGE FRAME ────────────────────────────────────────────────────────── */
.rj-image-frame {
  position: relative;
  border-radius: var(--rj-r-xl);
  overflow: hidden;
  border: 1px solid var(--rj-border-mid);
  box-shadow:
    0 30px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--rj-border);
}

.rj-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.rj-image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(2, 8, 20, 0.6) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ─── DASHBOARD MOCKUP ───────────────────────────────────────────────────── */
.rj-dashboard-mockup {
  position: relative;
  padding: 18px;
  border-radius: var(--rj-r-xl);
  background: linear-gradient(180deg, rgba(10, 26, 44, 0.88), rgba(6, 17, 31, 0.88));
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--rj-border-mid);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.rj-dashboard-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 40% at 50% 0%, rgba(157, 255, 87, 0.09), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(139, 92, 246, 0.09), transparent 70%);
  pointer-events: none;
}

.rj-dashboard-mockup__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rj-border);
}

.rj-dashboard-mockup__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.rj-dashboard-mockup__dot:nth-child(1) { background: #FF5F57; }
.rj-dashboard-mockup__dot:nth-child(2) { background: #FFBD2E; }
.rj-dashboard-mockup__dot:nth-child(3) { background: #27C840; }

.rj-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.rj-kpi {
  padding: 14px;
  border-radius: var(--rj-r-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--rj-border);
}

.rj-kpi__value {
  font-family: var(--rj-f-body);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--rj-text);
  line-height: 1;
  margin-bottom: 4px;
}

.rj-kpi__label {
  font-family: var(--rj-f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rj-text-dim);
}

/* ─── CHAT CARD ──────────────────────────────────────────────────────────── */
.rj-chat-card {
  background: var(--rj-surface-glass-str);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--rj-border-mid);
  border-radius: var(--rj-r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rj-chat-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rj-border);
}

.rj-chat-card__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rj-lime-bg), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(157, 255, 87, 0.25);
  display: grid;
  place-items: center;
  color: var(--rj-lime);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--rj-f-body);
}

.rj-chat-card__name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rj-text);
}

.rj-chat-card__status {
  font-size: 12px;
  color: var(--rj-lime);
  display: flex;
  align-items: center;
  gap: 5px;
}

.rj-chat-card__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rj-lime);
  animation: rj-pulse 1.8s ease-in-out infinite;
}

.rj-chat-message {
  padding: 12px 14px;
  border-radius: var(--rj-r-md);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 85%;
}

.rj-chat-message--in {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--rj-border);
  color: var(--rj-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.rj-chat-message--out {
  background: linear-gradient(135deg, rgba(157, 255, 87, 0.12), rgba(34, 211, 238, 0.06));
  border: 1px solid rgba(157, 255, 87, 0.20);
  color: var(--rj-text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  margin-left: auto;
}

/* ─── CTA BAND ───────────────────────────────────────────────────────────── */
.rj-cta-band {
  position: relative;
  padding: clamp(48px, 6vw, 80px) clamp(28px, 4vw, 56px);
  border-radius: var(--rj-r-2xl);
  border: 1px solid var(--rj-border-mid);
  background: linear-gradient(
    135deg,
    rgba(157, 255, 87, 0.06) 0%,
    rgba(6, 17, 31, 0.92) 40%,
    rgba(139, 92, 246, 0.06) 100%
  );
  overflow: hidden;
  text-align: center;
}

.rj-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(157, 255, 87, 0.18), transparent 70%),
    radial-gradient(40% 50% at 100% 100%, rgba(139, 92, 246, 0.18), transparent 70%);
}

.rj-cta-band > * {
  position: relative;
  z-index: 1;
}

.rj-cta-band__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */
.rj-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(6, 8, 15, 0.60);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  transition: background var(--rj-ease), border-color var(--rj-ease), box-shadow var(--rj-ease);
}

.rj-header--scrolled {
  background: rgba(6, 8, 15, 0.90);
  border-bottom-color: var(--rj-border);
  box-shadow: 0 4px 30px -10px rgba(0, 0, 0, 0.5);
}

.rj-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--rj-max);
  margin-inline: auto;
  padding-inline: var(--rj-gutter);
  width: 100%;
}

/* Brand */
.rj-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.rj-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(200, 255, 61, 0.18), transparent 50%),
    linear-gradient(140deg, #131c33, #07101f);
  border: 1px solid rgba(200, 255, 61, 0.18);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(200, 255, 61, 0.06), 0 8px 24px -10px rgba(200, 255, 61, 0.28);
}

.rj-brand__mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 255, 61, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 255, 61, 0.09) 1px, transparent 1px);
  background-size: 6px 6px;
  opacity: 0.6;
}

.rj-brand__mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 9px;
  background: transparent;
}

.rj-brand__mark-inner {
  position: relative;
  z-index: 1;
  color: var(--rj-lime);
  font-weight: 800;
  font-size: 15px;
  font-family: var(--rj-f-body);
  letter-spacing: -0.04em;
  text-shadow: 0 0 12px rgba(200, 255, 61, 0.4);
}

.rj-brand__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--rj-text);
  letter-spacing: -0.02em;
}

/* Nav */
.rj-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rj-nav__item {
  position: relative;
}

.rj-nav__item--mega::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 100%;
  height: 18px;
  z-index: 59;
}

.rj-nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--rj-ease), background var(--rj-ease), border-color var(--rj-ease), box-shadow var(--rj-ease);
  white-space: nowrap;
  position: relative;
  border: 1px solid transparent;
}

.rj-nav__link:hover {
  color: var(--rj-text);
  background: var(--rj-surface-hi);
  text-decoration: none;
}

.rj-nav__link.is-active {
  color: var(--rj-text);
  background: transparent;
  text-decoration: none;
}

.rj-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--rj-lime);
}

.rj-nav__link svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  transition: transform var(--rj-ease), opacity var(--rj-ease);
}

.rj-nav__item:hover .rj-nav__link svg {
  opacity: 1;
  transform: rotate(180deg);
}

/* Mega Menu */
.rj-mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(820px, 92vw);
  background: rgba(10, 14, 24, 0.96);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 0;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(200, 255, 61, 0.04);
  display: flex;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}

.rj-nav__item--mega:hover .rj-mega-menu,
.rj-nav__item--mega.is-mega-open .rj-mega-menu,
.rj-nav__item--mega:focus-within .rj-mega-menu,
.rj-mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.rj-mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--rj-r-md);
  text-decoration: none;
  transition: background var(--rj-ease);
}

.rj-mega-link:hover {
  background: var(--rj-surface-hi);
  text-decoration: none;
}

.rj-mega-link__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(157, 255, 87, 0.12), rgba(34, 211, 238, 0.06));
  border: 1px solid var(--rj-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--rj-lime);
}

.rj-mega-link__icon svg {
  width: 16px;
  height: 16px;
}

.rj-mega-link__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--rj-text);
  line-height: 1.3;
  margin-bottom: 3px;
}

.rj-mega-link__desc {
  font-size: 12px;
  color: var(--rj-text-muted);
  line-height: 1.45;
}

/* Header actions */
.rj-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Hamburger */
.rj-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-r-sm);
  background: transparent;
  cursor: pointer;
  padding: 8px;
  transition: border-color var(--rj-ease), background var(--rj-ease);
}

.rj-hamburger:hover {
  border-color: var(--rj-border-strong);
  background: var(--rj-surface-hi);
}

.rj-hamburger__line {
  display: block;
  height: 1.5px;
  background: var(--rj-text-muted);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
}

.rj-hamburger.is-active .rj-hamburger__line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.rj-hamburger.is-active .rj-hamburger__line:nth-child(2) {
  opacity: 0;
}

.rj-hamburger.is-active .rj-hamburger__line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ─── MOBILE DRAWER ──────────────────────────────────────────────────────── */
.rj-drawer {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 15, 0.97);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  backdrop-filter: blur(20px) saturate(130%);
  z-index: 80;
  transform: translateX(100%);
  transition: transform 0.30s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 20px var(--rj-gutter);
  overflow-y: auto;
}

.rj-drawer.is-open {
  transform: translateX(0);
}

.rj-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  flex-shrink: 0;
}

.rj-drawer__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-r-sm);
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--rj-text-muted);
  transition: border-color var(--rj-ease), color var(--rj-ease);
}

.rj-drawer__close:hover {
  border-color: var(--rj-border-strong);
  color: var(--rj-text);
}

.rj-drawer__close svg {
  width: 18px;
  height: 18px;
}

.rj-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 20px;
  flex-grow: 1;
}

.rj-drawer__link {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--rj-r-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--rj-text-muted);
  text-decoration: none;
  border: 1px solid transparent;
  transition: color var(--rj-ease), background var(--rj-ease), border-color var(--rj-ease);
}

.rj-drawer__link:hover {
  color: var(--rj-text);
  background: var(--rj-surface-hi);
  border-color: var(--rj-border);
  text-decoration: none;
}

.rj-drawer__footer {
  padding-top: 24px;
  border-top: 1px solid var(--rj-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.rj-footer {
  background: linear-gradient(180deg, rgba(46, 230, 224, 0.03) 0%, transparent 100%);
  border-top: 1px solid var(--hairline);
  padding: 60px 0 80px;
  margin-top: 80px;
}

.rj-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-bottom: 48px;
}

.rj-footer__brand-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--rj-text-muted);
  margin: 14px 0 20px;
  max-width: 280px;
}

.rj-footer__col-title {
  font-family: var(--rj-f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rj-text-dim);
  margin: 0 0 14px;
  font-weight: 600;
}

.rj-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rj-footer__links a,
.rj-footer__link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--rj-text-muted);
  text-decoration: none;
  transition: color var(--rj-ease), transform var(--rj-ease);
}

.rj-footer__links a:hover,
.rj-footer__link:hover {
  color: var(--rj-lime);
  text-decoration: none;
}

.rj-footer__social {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.rj-footer__social a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--rj-border);
  background: var(--rj-surface-glass);
  display: grid;
  place-items: center;
  color: var(--rj-text-muted);
  text-decoration: none;
  transition: color var(--rj-ease), border-color var(--rj-ease), background var(--rj-ease);
}

.rj-footer__social a:hover {
  color: var(--rj-lime);
  border-color: rgba(200, 255, 61, 0.30);
  background: var(--rj-lime-bg);
  text-decoration: none;
}

.rj-footer__social svg {
  width: 16px;
  height: 16px;
}

.rj-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 12.5px;
  color: var(--rj-text-dim);
}

.rj-footer__bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.rj-footer__bottom-links a {
  color: var(--rj-text-dim);
  text-decoration: none;
  transition: color var(--rj-ease);
}

.rj-footer__bottom-links a:hover {
  color: var(--ink-2);
}

/* ─── FAQ ACCORDION ──────────────────────────────────────────────────────── */
.rj-faq {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rj-faq__item {
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-r-md);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color var(--rj-ease), background var(--rj-ease);
}

.rj-faq__item.is-open {
  border-color: rgba(157, 255, 87, 0.28);
  background: rgba(157, 255, 87, 0.025);
}

.rj-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: background var(--rj-ease);
}

.rj-faq__q:hover {
  background: rgba(148, 163, 184, 0.07);
}

.rj-faq__q-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--rj-text);
  flex-grow: 1;
}

.rj-faq__icon {
  width: 18px;
  height: 18px;
  color: var(--rj-lime);
  flex-shrink: 0;
  transition: transform 0.28s ease, color 0.22s ease;
}

.rj-faq__item.is-open .rj-faq__icon {
  transform: rotate(45deg);
}

.rj-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.rj-faq__item.is-open .rj-faq__a {
  max-height: 600px;
}

.rj-faq__a-inner {
  padding: 4px 24px 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--rj-text-muted);
}

/* ─── SECTION HEADER PATTERN ─────────────────────────────────────────────── */
.rj-section-head {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.rj-section-head--left {
  text-align: left;
  margin-inline: 0;
}

/* ─── DIVIDER ────────────────────────────────────────────────────────────── */
.rj-divider {
  border: none;
  border-top: 1px solid var(--rj-border);
  margin: 0;
}

/* ─── UTILITIES ──────────────────────────────────────────────────────────── */
.rj-mt-4  { margin-top: 4px;  }
.rj-mt-8  { margin-top: 8px;  }
.rj-mt-12 { margin-top: 12px; }
.rj-mt-16 { margin-top: 16px; }
.rj-mt-20 { margin-top: 20px; }
.rj-mt-24 { margin-top: 24px; }
.rj-mt-32 { margin-top: 32px; }
.rj-mt-40 { margin-top: 40px; }
.rj-mt-48 { margin-top: 48px; }
.rj-mt-56 { margin-top: 56px; }

.rj-mb-4  { margin-bottom: 4px;  }
.rj-mb-8  { margin-bottom: 8px;  }
.rj-mb-12 { margin-bottom: 12px; }
.rj-mb-16 { margin-bottom: 16px; }
.rj-mb-20 { margin-bottom: 20px; }
.rj-mb-24 { margin-bottom: 24px; }
.rj-mb-32 { margin-bottom: 32px; }

.rj-text-center { text-align: center; }
.rj-text-right  { text-align: right; }
.rj-flex        { display: flex; }
.rj-flex-center { display: flex; align-items: center; justify-content: center; }
.rj-gap-8   { gap: 8px; }
.rj-gap-12  { gap: 12px; }
.rj-gap-16  { gap: 16px; }
.rj-gap-20  { gap: 20px; }
.rj-gap-24  { gap: 24px; }
.rj-hidden  { display: none; }
.rj-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── REVEAL ANIMATION ───────────────────────────────────────────────────── */
@keyframes rj-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rj-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes rj-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

@keyframes rj-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.rj-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.rj-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rj-reveal-2 { transition-delay: 0.08s; }
.rj-reveal-3 { transition-delay: 0.16s; }
.rj-reveal-4 { transition-delay: 0.24s; }
.rj-reveal-5 { transition-delay: 0.32s; }
.rj-reveal-6 { transition-delay: 0.40s; }

@media (prefers-reduced-motion: reduce) {
  .rj-reveal,
  .rj-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .rj-brand__mark::before {
    animation: none;
  }
  .rj-chat-card__status::before {
    animation: none;
  }
}

/* ─── FORM INPUTS ────────────────────────────────────────────────────────── */
.rj-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rj-field__label {
  font-family: var(--rj-f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rj-text-muted);
}

.rj-field__input,
.rj-field__textarea,
.rj-field__select {
  width: 100%;
  padding: 14px 16px;
  background: var(--rj-surface-glass);
  border: 1px solid var(--rj-border);
  border-radius: var(--rj-r-md);
  color: var(--rj-text);
  font-family: var(--rj-f-body);
  font-size: 14.5px;
  line-height: 1.5;
  transition: border-color var(--rj-ease), background var(--rj-ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.rj-field__input::placeholder,
.rj-field__textarea::placeholder {
  color: var(--rj-text-dim);
}

.rj-field__input:focus,
.rj-field__textarea:focus,
.rj-field__select:focus {
  border-color: var(--rj-lime);
  background: rgba(157, 255, 87, 0.03);
  box-shadow: 0 0 0 3px rgba(157, 255, 87, 0.10);
}

.rj-field__textarea {
  resize: vertical;
  min-height: 120px;
}

.rj-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ─── PROGRESS / SKILL BARS ──────────────────────────────────────────────── */
.rj-progress {
  height: 4px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.rj-progress__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--rj-lime), var(--rj-cyan));
  transform-origin: left;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── LIVE STATUS DOT ────────────────────────────────────────────────────── */
.rj-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--rj-f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rj-lime);
}

.rj-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rj-lime);
  box-shadow: 0 0 8px var(--rj-lime-glow);
  animation: rj-pulse 1.8s ease-in-out infinite;
}

/* ─── SERVICES MEGA MENU LAYOUT ──────────────────────────────────────────── */
.rj-mega-menu--services {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  gap: 0;
  width: min(920px, 94vw);
  grid-template-columns: none;
}

.rj-mega-menu__panel {
  display: flex;
  align-items: stretch;
}

.rj-mega-menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--rj-border);
  background: rgba(15, 23, 42, 0.5);
}

.rj-mega-menu__foot-note {
  margin: 0;
  font-size: 12px;
  color: var(--rj-text-dim);
  line-height: 1.45;
}

.rj-mega-menu__foot-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.rj-mega-menu__foot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rj-text-muted);
  text-decoration: none;
  transition: color var(--rj-ease);
}

.rj-mega-menu__foot-link:hover {
  color: var(--rj-lime-soft);
  text-decoration: none;
}

.rj-mega-menu__foot-link svg {
  transition: transform var(--rj-ease);
}

.rj-mega-menu__foot-link:hover svg {
  transform: translateX(3px);
}

.rj-mega-col {
  padding: 22px 24px;
}

.rj-mega-col--main {
  flex: 1;
  min-width: 0;
  border-right: 1px solid var(--rj-border);
}

.rj-mega-col--side {
  width: 222px;
  flex-shrink: 0;
}

.rj-mega-col__head {
  margin-bottom: 14px;
}

.rj-mega-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

/* Service link item */
.rj-mega-service-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--rj-r-md);
  text-decoration: none;
  transition: background var(--rj-ease);
}

.rj-mega-service-link:hover {
  background: var(--rj-surface-hi);
  text-decoration: none;
}

.rj-mega-service-link__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--rj-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(157, 255, 87, 0.07);
  color: var(--rj-lime);
  transition: border-color var(--rj-ease), background var(--rj-ease);
}

.rj-mega-service-link__icon--cyan {
  background: rgba(34, 211, 238, 0.07);
  color: var(--rj-cyan);
}

.rj-mega-service-link__icon--violet {
  background: rgba(139, 92, 246, 0.07);
  color: var(--rj-violet);
}

.rj-mega-service-link:hover .rj-mega-service-link__icon {
  border-color: var(--rj-border-mid);
}

.rj-mega-service-link__icon svg {
  width: 14px;
  height: 14px;
}

.rj-mega-service-link__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--rj-text);
  line-height: 1.3;
  margin-bottom: 2px;
}

.rj-mega-service-link__desc {
  font-size: 11.5px;
  color: var(--rj-text-muted);
  line-height: 1.4;
}

/* Specialties list */
.rj-mega-specialties-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rj-mega-specialty-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--rj-r-sm);
  font-size: 13px;
  color: var(--rj-text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--rj-ease), background var(--rj-ease);
}

.rj-mega-specialty-link::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rj-cyan);
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity var(--rj-ease);
}

.rj-mega-specialty-link:hover {
  color: var(--rj-text);
  background: var(--rj-surface-hi);
  text-decoration: none;
}

.rj-mega-specialty-link:hover::before {
  opacity: 1;
}

/* ─── HEADER EXTRAS ──────────────────────────────────────────────────────── */
.rj-nav__chevron {
  display: inline-flex;
  align-items: center;
  opacity: 0.5;
  transition: transform var(--rj-ease), opacity var(--rj-ease);
}

.rj-nav__item--mega:hover .rj-nav__chevron,
.rj-nav__item--mega.is-mega-open .rj-nav__chevron,
.rj-nav__item--mega:focus-within .rj-nav__chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

.rj-header__cta-secondary {
  /* Hide on screens < 900px to save space */
}

.rj-footer__brand-logo {
  margin-bottom: 0;
}

.rj-footer__cta {
  margin-top: 18px;
  margin-bottom: 20px;
}

.rj-footer__social-link {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--rj-border);
  background: var(--rj-surface-glass);
  display: grid;
  place-items: center;
  color: var(--rj-text-muted);
  text-decoration: none;
  transition: color var(--rj-ease), border-color var(--rj-ease), background var(--rj-ease), transform var(--rj-ease);
}

.rj-footer__social-link:hover {
  color: var(--rj-lime);
  border-color: rgba(200, 255, 61, 0.30);
  background: var(--rj-lime-bg);
  transform: translateY(-2px);
  text-decoration: none;
}

.rj-footer__availability {
  margin-top: 20px;
}

/* ─── FOOTER BRAND ACTIONS ───────────────────────────────────────────────── */
.rj-footer__brand-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* ─── FOOTER NEWSLETTER STRIP ────────────────────────────────────────────── */
.rj-footer__newsletter {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid var(--rj-border-mid);
  border-radius: 22px;
  background:
    radial-gradient(400px 200px at 0% 0%, rgba(46, 230, 224, 0.07), transparent 60%),
    radial-gradient(400px 200px at 100% 100%, rgba(139, 92, 246, 0.08), transparent 60%),
    rgba(13, 20, 36, 0.5);
  margin-bottom: 56px;
}

.rj-footer__newsletter-copy .rj-kicker {
  margin-bottom: 12px;
}

.rj-footer__newsletter h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--rj-text);
}

.rj-footer__newsletter p {
  color: var(--rj-text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0;
}

.rj-footer__newsletter-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.rj-footer__newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 999px;
  background: rgba(13, 20, 36, 0.8);
  border: 1px solid var(--rj-border-mid);
  color: var(--rj-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s ease;
}

.rj-footer__newsletter-input::placeholder {
  color: var(--rj-text-dim);
}

.rj-footer__newsletter-input:focus {
  border-color: rgba(200, 255, 61, 0.45);
}

/* ─── DRAWER ACCORDION ───────────────────────────────────────────────────── */
.rj-drawer__section {
  border-bottom: 1px solid var(--rj-border);
}

.rj-drawer__section-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--rj-text-muted);
  font-family: var(--rj-f-body);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  border-radius: var(--rj-r-md);
  gap: 12px;
  transition: color var(--rj-ease), background var(--rj-ease), border-color var(--rj-ease);
}

.rj-drawer__section-trigger:hover {
  color: var(--rj-text);
  background: var(--rj-surface-hi);
  border-color: var(--rj-border);
}

.rj-drawer__section-trigger svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--rj-text-dim);
  transition: transform 0.28s ease, color var(--rj-ease);
}

.rj-drawer__section.is-open .rj-drawer__section-trigger {
  color: var(--rj-text);
}

.rj-drawer__section.is-open .rj-drawer__section-trigger svg {
  transform: rotate(180deg);
  color: var(--rj-lime);
}

.rj-drawer__section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.rj-drawer__section.is-open .rj-drawer__section-content {
  max-height: 680px;
}

.rj-drawer__section-inner {
  padding: 4px 0 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rj-drawer__sub-kicker {
  font-family: var(--rj-f-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rj-text-dim);
  padding: 10px 16px 4px;
  display: block;
}

.rj-drawer__sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--rj-r-md);
  font-size: 14px;
  color: var(--rj-text-muted);
  text-decoration: none;
  transition: color var(--rj-ease), background var(--rj-ease);
}

.rj-drawer__sub-link:hover {
  color: var(--rj-text);
  background: var(--rj-surface-hi);
  text-decoration: none;
}

.rj-drawer__sub-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(157, 255, 87, 0.07);
  border: 1px solid var(--rj-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--rj-lime);
}

.rj-drawer__sub-icon--cyan   { background: rgba(34, 211, 238, 0.07); color: var(--rj-cyan); }
.rj-drawer__sub-icon--violet { background: rgba(139, 92, 246, 0.07); color: var(--rj-violet); }

.rj-drawer__sub-link--specialty {
  padding-left: 20px;
}

.rj-drawer__sub-link--specialty::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rj-cyan);
  flex-shrink: 0;
  opacity: 0.5;
}

.rj-drawer__footer-note {
  font-size: 12px;
  color: var(--rj-text-dim);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.5;
}

/* ─── RESPONSIVE: MEGA MENU ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rj-header__cta-secondary {
    display: none;
  }
}

@media (max-width: 900px) {
  .rj-mega-menu--services {
    flex-direction: column;
    width: min(560px, 94vw);
  }

  .rj-mega-col--main {
    border-right: none;
    border-bottom: 1px solid var(--rj-border);
  }

  .rj-mega-col--side {
    width: 100%;
  }

  .rj-mega-services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .rj-mega-services-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   HANDOFF DESIGN TOKEN BRIDGE
   ─────────────────────────────────────────────────────────────────────────
   Two jobs in one block:
   1. Updates --rj-* values to match the new premium handoff palette.
   2. Adds unprefixed aliases (--bg, --lime, --ink, etc.) so handoff CSS
      classes in styles.css work alongside the existing --rj-* system.

   Old --rj-* classes keep working — only their colour values update.
   New handoff classes (using --bg, --lime, etc.) also work.
   Both systems read from the same source of truth.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {

  /* ── Update --rj-* backgrounds to handoff values ── */
  --rj-bg-0:              #06080f;   /* was #020814 */
  --rj-bg-1:              #080b15;   /* was #06111f */
  --rj-bg-2:              #0c1322;   /* was #0a1a2c */
  --rj-bg-3:              #0d1424;   /* was #0e2238 */

  /* ── Update --rj-* surfaces ── */
  --rj-surface-glass:     rgba(13, 20, 36, 0.65);
  --rj-surface-glass-str: rgba(13, 20, 36, 0.96);
  --rj-surface-hi:        rgba(255, 255, 255, 0.025);

  /* ── Update --rj-* borders to handoff values ── */
  --rj-border:            rgba(148, 173, 220, 0.10);  /* was 0.16 */
  --rj-border-mid:        rgba(148, 173, 220, 0.18);  /* was 0.24 */
  --rj-border-strong:     rgba(148, 173, 220, 0.30);  /* was 0.38 */

  /* ── Update --rj-* text to handoff values ── */
  --rj-text:              #e7ecf6;   /* was #F8FAFC */
  --rj-text-muted:        #8a93a8;   /* was #94A3B8 */
  --rj-text-dim:          #5e667a;   /* was #64748B */

  /* ── Update --rj-* accents to handoff premium palette ── */
  --rj-lime:              #c8ff3d;              /* was #9DFF57 — premium acid lime */
  --rj-lime-soft:         #aef127;              /* was #c4ff8e */
  --rj-lime-glow:         rgba(200, 255, 61, 0.35);
  --rj-lime-bg:           rgba(200, 255, 61, 0.12);
  --rj-lime-rgb:          200, 255, 61;         /* RGB channel values for rgba() use */
  --rj-cyan:              #2ee6e0;              /* was #22D3EE */
  --rj-cyan-glow:         rgba(46, 230, 224, 0.25);
  --rj-cyan-rgb:          46, 230, 224;
  --rj-blue:              #5aa9ff;              /* was #60A5FA */
  --rj-violet:            #8b5cf6;              /* unchanged */
  --rj-violet-glow:       rgba(139, 92, 246, 0.25);
  --rj-amber:             #fbbf24;              /* was #F59E0B */
  --rj-rose:              #f472b6;              /* was #FB7185 */

  /* ── Unprefixed aliases — handoff CSS reads these ── */
  --bg:            var(--rj-bg-0);
  --bg-1:          var(--rj-bg-1);
  --bg-2:          var(--rj-bg-2);
  --panel:         var(--rj-bg-3);
  --panel-2:       #0f172b;
  --border:        var(--rj-border);
  --border-strong: var(--rj-border-mid);
  --hairline:      rgba(148, 173, 220, 0.07);

  --ink:           var(--rj-text);
  --ink-2:         #c2cbdc;
  --ink-3:         var(--rj-text-muted);
  --ink-4:         var(--rj-text-dim);

  --lime:          var(--rj-lime);
  --lime-2:        var(--rj-lime-soft);
  --lime-soft:     var(--rj-lime-bg);
  --cyan:          var(--rj-cyan);
  --teal:          #14b8a6;
  --blue:          var(--rj-blue);
  --violet:        var(--rj-violet);
  --magenta:       #c084fc;
  --rose:          var(--rj-rose);
  --orange:        #fb923c;
  --good:          #34d399;
  --warn:          var(--rj-amber);

  --grad-cyan:   linear-gradient(135deg, var(--rj-cyan) 0%, var(--rj-blue) 100%);
  --grad-acid:   linear-gradient(135deg, #d6ff5d 0%, var(--rj-cyan) 100%);
  --grad-violet: linear-gradient(135deg, var(--rj-violet) 0%, var(--rj-blue) 100%);

  /* ── Text aliases used by service.css and other component files ── */
  --rj-text-primary:   var(--rj-text);
  --rj-text-secondary: var(--rj-text-muted);

  --f-ui:    var(--rj-f-body);
  --f-serif: var(--rj-f-serif);
  --f-mono:  var(--rj-f-mono);

  --maxw:      var(--rj-max);
  --pad:       var(--rj-gutter);
  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 28px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 30px -16px rgba(0,0,0,0.7);
  --shadow-pop:  0 24px 80px -20px rgba(46,230,224,0.18), 0 12px 30px -16px rgba(0,0,0,0.7);
  --glow-lime:   0 0 0 1px rgba(200,255,61,0.25), 0 12px 40px -8px rgba(200,255,61,0.35);
}
