/* ============================================================
   theme.css — the shared look of the redesigned pages
   (load-balancer.html, microservices.html). A page links this
   after components.css, then its own page file.

   Not yet used by the older pages; when they follow, this file
   and components.css become the one common stylesheet.

   Colour carries meaning on this page:
     blue   = a request, on its way in through the load balancer
     orange = a reply, on its way straight back to the client

   and on the Microservices page:
     blue   = the scheduler placing a replica
     orange = a replica that is changing (starting, moving, upgrading)
   ============================================================ */

:root {
  /* brand */
  --accent: #4f9bd0;
  --accent-hi: #7cc4f2;
  --accent-strong: #ff7a24;

  /* surfaces: blue-black ink, not flat black */
  --ink: #070c15;
  --ink-2: #09101a;
  --surface: #0e1826;
  --surface-2: #142235;
  --line: rgba(148, 184, 222, 0.14);
  --line-strong: rgba(148, 184, 222, 0.28);

  /* text */
  --text: #eef3f8;
  --text-soft: #c4cfdb;
  --muted: #94a3b6;

  /* status */
  --ok: #3ecf8e;
  --bad: #ef5a5a;

  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}

body {
  background: var(--ink);
  color: var(--text);
}

/* Back-to-top button (rendered by the shared footer include). */
#myBtn {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 99;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  outline: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  font-family: var(--font-sans);
  font-weight: var(--fw-bold);
  line-height: 1;
  font-size: 18px;
}

#myBtn:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

#myBtn:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}

#myBtn i {
  display: none;
}

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 3px;
}

/* ------------------------------------------------------------
   Hero: copy on the left, an animated diagram on the right
   ------------------------------------------------------------ */
#hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 7.5rem 0 4.5rem;
  background:
    /* the spotlight, behind the diagram */
    radial-gradient(22rem 16rem at 72% 30%, rgba(140, 205, 250, 0.16), transparent 70%),
    radial-gradient(56rem 40rem at 74% 44%, rgba(79, 155, 208, 0.34), transparent 64%),
    /* warm return light, low right */
    radial-gradient(30rem 22rem at 96% 96%, rgba(255, 122, 36, 0.16), transparent 68%),
    /* a little fill behind the copy */
    radial-gradient(36rem 30rem at 4% 30%, rgba(79, 155, 208, 0.08), transparent 70%),
    linear-gradient(180deg, #04070c 0%, var(--ink-2) 100%);
}

/* A fine dot grid, visible only inside the spotlight. */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(160, 200, 240, 0.22) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(46rem 34rem at 74% 46%, #000 0%, transparent 70%);
  mask-image: radial-gradient(46rem 34rem at 74% 46%, #000 0%, transparent 70%);
  pointer-events: none;
}

#hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

#hero .hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: left;
}

.hero-layout {
  row-gap: 3rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  color: var(--accent-hi);
  font-size: var(--fs-kicker);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
}

.hero-kicker span {
  width: 2rem;
  height: 2px;
  background: var(--accent-strong);
}

.hero-title {
  margin: 0;
  font-size: clamp(3.5rem, 2.2rem + 5vw, 6rem);
  font-weight: var(--fw-display);
  line-height: 0.95;
  letter-spacing: var(--ls-display);
}

.hero-title span,
.hero-title strong {
  display: block;
}

.hero-title span {
  color: var(--text-soft);
  font-size: 0.62em;
  font-weight: var(--fw-light);
}

.hero-title strong {
  font-weight: var(--fw-display);
}

.hero-title em {
  font-style: normal;
  color: var(--accent-strong);
  text-shadow: 0 0 3.5rem rgba(255, 122, 36, 0.45);
}

.hero-copy {
  max-width: 30rem;
  margin: 1.8rem 0 0;
  color: var(--text-soft);
  font-size: 1.25rem;
  line-height: 1.6;
}

.hero-reveal {
  --i: 0;
  opacity: 0;
  transform: translateY(1rem);
  animation: hero-reveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 0.12s);
}

.hero-copy-col .hero-title  { --i: 1; }
.hero-copy-col .hero-copy   { --i: 2; }
.hero-copy-col .cta-buttons { --i: 3; }
.hero-copy-col .hero-proof  { --i: 4; }
.hero-visual-col .rk-flow   { --i: 2; }

@keyframes hero-reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 12px;
  font-size: var(--fs-btn);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-btn);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

#hero .btn-primary {
  color: #fff;
  background: var(--accent-strong);
  border: 1px solid var(--accent-strong);
  box-shadow: 0 1rem 2.4rem rgba(255, 122, 36, 0.28);
}

#hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1.2rem 2.8rem rgba(255, 122, 36, 0.4);
}

#hero .btn-secondary {
  color: var(--text);
  background: rgba(124, 196, 242, 0.08);
  border: 1px solid var(--line-strong);
}

#hero .btn-secondary:hover {
  background: rgba(124, 196, 242, 0.16);
  border-color: var(--accent-hi);
  transform: translateY(-2px);
}

/* The proof row is shared (components.css); retint it for this page. */
.hero-proof {
  border-top-color: var(--line);
}

.hero-proof li {
  color: var(--muted);
}

/* ---- the packet-path diagram ---- */
.rk-flow {
  position: relative;
  margin: 0;
  padding: 1.1rem 1.25rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(79, 155, 208, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(16, 27, 42, 0.92), rgba(8, 14, 23, 0.94));
  box-shadow:
    0 2.5rem 6rem rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.rk-defs {
  position: absolute;
}

/* the three balancing scenes: tabs above, one scene showing at a time */
.rk-tabs {
  display: flex;
  gap: 0.3rem;
  width: fit-content;
  margin: 0 auto 1rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 9, 15, 0.55);
}

.rk-tab {
  position: relative;
  overflow: hidden;
  padding: 0.4rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  transition: color 0.2s ease, background 0.2s ease;
}

.rk-tab:hover {
  color: var(--text);
}

.rk-tab:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

.rk-tab.is-active {
  background: var(--surface-2);
  color: #fff;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}

/* the bar that fills until the next scene */
.rk-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent-strong);
  transform: scaleX(0);
  transform-origin: left;
}

.rk-tab.is-active::after {
  animation: rk-tab-progress 7s linear forwards;
}

.rk-flow:hover .rk-tab.is-active::after,
.rk-flow:focus-within .rk-tab.is-active::after {
  animation-play-state: paused;
}

@keyframes rk-tab-progress {
  to {
    transform: scaleX(1);
  }
}

.rk-scenes {
  display: grid;
}

.rk-scene {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0s linear 0.6s;
}

.rk-scene.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.6s ease;
}

.rk-flow-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-sans);
}

.rk-wire path,
path.rk-wire {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rk-wire-req path {
  stroke: var(--accent-hi);
}

.rk-wire-rep path {
  stroke: var(--accent-strong);
  stroke-dasharray: 2 7;
  stroke-width: 2.5;
}

.rk-wire-dead {
  stroke: rgba(239, 90, 90, 0.45);
  stroke-dasharray: 3 6;
}

/* a packet: a small chip carrying its connection or client label */
.rk-pkt text {
  font-size: 10.5px;
  font-weight: 800;
}

.rk-pkt-req circle {
  fill: #c4e8ff;
  filter: drop-shadow(0 0 5px var(--accent-hi));
}

.rk-pkt-req text {
  fill: #06243a;
}

.rk-pkt-rep circle {
  fill: #ffc59e;
  filter: drop-shadow(0 0 5px var(--accent-strong));
}

.rk-pkt-rep text {
  fill: #3d1600;
}

.rk-node rect {
  fill: var(--surface-2);
  stroke: var(--line-strong);
  stroke-width: 1;
}

.rk-client rect {
  fill: #101c2c;
}

.rk-vip rect {
  stroke: var(--accent-hi);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 14px rgba(124, 196, 242, 0.35));
}

.rk-host rect {
  fill: rgba(9, 16, 26, 0.72);
  stroke: var(--line);
  stroke-width: 1;
}

.rk-xdp rect {
  fill: #12283d;
  stroke: rgba(124, 196, 242, 0.55);
}

.rk-replica-down {
  opacity: 0.6;
}

.rk-replica-down rect {
  stroke: rgba(239, 90, 90, 0.5);
  stroke-dasharray: 4 4;
}

.rk-dot-ok  { fill: var(--ok); }
.rk-dot-bad { fill: var(--bad); }
.rk-dot-primary { fill: var(--accent-strong); }
.rk-dot-idle { fill: var(--muted); }

.rk-replica-primary rect {
  fill: rgba(255, 122, 36, 0.14);
  stroke: var(--accent-strong);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 12px rgba(255, 122, 36, 0.3));
}

.rk-replica-standby {
  opacity: 0.7;
}

.rk-replica-standby rect {
  fill: transparent;
  stroke: rgba(148, 163, 182, 0.55);
  stroke-dasharray: 4 4;
}

.rk-wire-idle path {
  stroke: rgba(148, 163, 182, 0.4);
  stroke-dasharray: 3 6;
}

.rk-tunnel-idle {
  opacity: 0.45;
}

.rk-tunnel rect {
  fill: var(--ink-2);
  stroke: rgba(124, 196, 242, 0.55);
}

.rk-tunnel text {
  fill: var(--accent-hi);
  font-size: 11.5px;
  font-weight: 700;
}

.rk-t-name  { fill: var(--text); font-size: 15px; font-weight: 700; }
.rk-t-sub   { fill: var(--muted); font-size: 12px; }
.rk-t-host  { fill: var(--muted); font-size: 13px; font-weight: 700; }
.rk-t-label { fill: var(--accent-hi); font-size: 12px; font-weight: 600; }
.rk-t-mono  { fill: var(--muted); font-size: 12px; font-family: var(--mono); }
.rk-t-addr  { fill: #fff; font-size: 17px; font-weight: 600; font-family: var(--mono); }
.rk-t-foot  { fill: var(--muted); font-size: 12.5px; }

.rk-flow-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: var(--fs-small);
}

.rk-key {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.rk-key::before {
  content: "";
  width: 1.75rem;
  height: 0;
  border-top: 2px solid var(--accent-hi);
}

.rk-key-rep::before {
  border-top: 3px dotted var(--accent-strong);
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .rk-packets {
    display: none;
  }

  .rk-tab.is-active::after {
    animation: none;
  }

  .rk-scene,
  .rk-scene.is-active {
    transition: none;
  }
}

/* ------------------------------------------------------------
   Section shell + shared headings
   ------------------------------------------------------------ */
.sections {
  position: relative;
  padding: 6.5rem 0;
  background: var(--ink);
  overflow: hidden;
}

.sections.compact {
  padding: 5rem 0;
}

/* Each plain section is lit from above, so its heading sits in light. */
.sections::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(52rem 24rem at 50% 0%, rgba(79, 155, 208, 0.2), transparent 70%);
  pointer-events: none;
}

.bg-accent {
  background: linear-gradient(180deg, #0a121d 0%, #0c1622 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.bg-accent::before {
  background:
    radial-gradient(40rem 20rem at 12% 0%, rgba(79, 155, 208, 0.14), transparent 70%),
    radial-gradient(34rem 20rem at 92% 100%, rgba(255, 122, 36, 0.09), transparent 70%);
}

.sections > .container {
  position: relative;
  z-index: 1;
}

.section-head {
  max-width: 820px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.portal-kicker {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.95rem;
  border: 1px solid rgba(124, 196, 242, 0.3);
  border-radius: 50px;
  background: rgba(79, 155, 208, 0.12);
  color: var(--accent-hi);
  font-size: var(--fs-kicker);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-kicker);
  text-transform: uppercase;
}

.portal-headline {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: var(--fs-h2);
  font-weight: var(--fw-display);
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-h2);
}

.portal-gradient {
  background: linear-gradient(90deg, var(--accent-hi) 0%, #a9d9f7 40%, var(--accent-strong) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portal-sub {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: var(--fs-lead);
  line-height: var(--lh-lead);
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.service-list li:last-child {
  margin-bottom: 0;
}

.service-list li i {
  margin-top: 0.3rem;
  color: var(--accent-hi);
  font-size: 0.8rem;
}

/* ------------------------------------------------------------
   Pillars: three columns in one lit panel, divided by rules
   ------------------------------------------------------------ */
.rk-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(20, 34, 53, 0.75), rgba(11, 19, 30, 0.75));
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.rk-pillar {
  position: relative;
  padding: 2.25rem 2rem;
}

.rk-pillar + .rk-pillar {
  border-left: 1px solid var(--line);
}

.rk-pillar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(124, 196, 242, 0.35);
  border-radius: 12px;
  background: rgba(79, 155, 208, 0.14);
  color: var(--accent-hi);
  font-size: 1.15rem;
}

.rk-pillar:nth-child(2) .rk-pillar-icon {
  border-color: rgba(255, 122, 36, 0.4);
  background: rgba(255, 122, 36, 0.12);
  color: var(--accent-strong);
}

.rk-pillar h3 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h3);
}

.rk-pillar p {
  margin: 0 0 1.4rem;
  color: var(--muted);
  line-height: var(--lh-body);
}

.rk-pillars-plain .rk-pillar h3 {
  margin-bottom: 1rem;
}

.rk-pillars-plain .rk-pillar:nth-child(2) .rk-pillar-icon {
  border-color: rgba(124, 196, 242, 0.35);
  background: rgba(79, 155, 208, 0.14);
  color: var(--accent-hi);
}

/* ------------------------------------------------------------
   Balancing modes, each with its own small drawing
   ------------------------------------------------------------ */
.rk-modes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.rk-mode {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(20, 34, 53, 0.7), rgba(11, 19, 30, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rk-mode-art {
  width: 100%;
  height: auto;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background:
    radial-gradient(80% 90% at 50% 50%, rgba(79, 155, 208, 0.16), transparent 75%),
    rgba(5, 9, 15, 0.55);
}

.rk-m-line path {
  fill: none;
  stroke: var(--accent-hi);
  stroke-width: 1.75;
  stroke-linecap: round;
  opacity: 0.9;
}

.rk-m-client circle {
  fill: var(--surface-2);
  stroke: var(--text-soft);
  stroke-width: 1.5;
}

.rk-m-rep rect {
  fill: #12283d;
  stroke: var(--accent-hi);
  stroke-width: 1.5;
}

.rk-m-rep rect.rk-m-idle {
  fill: transparent;
  stroke: rgba(148, 163, 182, 0.5);
  stroke-dasharray: 3 3;
}

.rk-m-rep rect.rk-m-primary {
  fill: rgba(255, 122, 36, 0.22);
  stroke: var(--accent-strong);
  stroke-width: 2;
}

.rk-mode h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}

.rk-mode p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: var(--lh-body);
}

.rk-mode-for {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

/* ------------------------------------------------------------
   Terminal block and the management cards
   ------------------------------------------------------------ */
.rk-term {
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #060b12;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.45), 0 0 5rem rgba(79, 155, 208, 0.1);
  overflow: hidden;
}

.rk-term-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.rk-term-bar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgba(148, 163, 182, 0.35);
}

.rk-term-bar em {
  margin-left: 0.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.8rem;
  font-style: normal;
}

.rk-term pre {
  margin: 0;
  padding: 1.25rem 1.25rem 1.4rem;
  overflow-x: auto;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.7;
}

.rk-term code {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}

.rk-term .c { color: #6f8198; }
.rk-term .p { color: var(--accent-strong); }

.manage-card {
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 34, 53, 0.7), rgba(11, 19, 30, 0.7));
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.manage-card:hover {
  color: inherit;
  border-color: rgba(255, 122, 36, 0.5);
  transform: translateX(4px);
}

.manage-icon {
  display: flex;
  flex: 0 0 2.75rem;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(124, 196, 242, 0.35);
  border-radius: 12px;
  background: rgba(79, 155, 208, 0.14);
  color: var(--accent-hi);
  font-size: 1.05rem;
}

.manage-body {
  min-width: 0;
}

.manage-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.15rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
}

.manage-badge {
  padding: 0.12rem 0.55rem;
  border: 1px solid rgba(62, 207, 142, 0.45);
  border-radius: 999px;
  background: rgba(62, 207, 142, 0.12);
  color: var(--ok);
  font-size: 0.7rem;
  font-weight: var(--fw-bold);
}

.manage-kind {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent-hi);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
}

.manage-card p {
  margin: 0 0 0.8rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.manage-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: var(--fw-bold);
}

.manage-cta i {
  color: var(--accent-strong);
  transition: transform 0.2s ease;
}

.manage-card:hover .manage-cta i {
  transform: translateX(4px);
}

.rk-manage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.rk-manage-grid .manage-card {
  flex-direction: column;
}

.manage-badge-licensed {
  border-color: rgba(255, 122, 36, 0.5);
  background: rgba(255, 122, 36, 0.12);
  color: var(--accent-strong);
}

/* ------------------------------------------------------------
   Related products
   ------------------------------------------------------------ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.solution-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(14, 24, 38, 0.7);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.solution-card:hover {
  color: inherit;
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.solution-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 1.4rem;
}

.solution-card .card-title {
  margin-bottom: 0.6rem;
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-h3);
}

.solution-card .card-description {
  margin: 0;
  color: var(--muted);
  line-height: var(--lh-body);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 991px) {
  #hero {
    min-height: auto;
    padding: 7rem 0 4rem;
    background:
      radial-gradient(40rem 30rem at 50% 78%, rgba(79, 155, 208, 0.24), transparent 65%),
      radial-gradient(24rem 18rem at 100% 100%, rgba(255, 122, 36, 0.14), transparent 70%),
      linear-gradient(180deg, #04070c 0%, var(--ink-2) 100%);
  }

  #hero::before {
    -webkit-mask-image: radial-gradient(34rem 26rem at 50% 78%, #000 0%, transparent 70%);
    mask-image: radial-gradient(34rem 26rem at 50% 78%, #000 0%, transparent 70%);
  }

  .sections {
    padding: 4.5rem 0;
  }

  .rk-pillars {
    grid-template-columns: 1fr;
  }

  .rk-pillar + .rk-pillar {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .rk-modes,
  .rk-manage-grid,
  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .rk-flow {
    margin: 0 -0.25rem;
    padding: 1rem 0.5rem 0.9rem;
    border-radius: 16px;
  }

  .manage-card {
    flex-direction: column;
  }

  .rk-term pre {
    font-size: 0.74rem;
  }
}
