:root {
  --bg: #f3f6ff;
  --bg-2: #edf2fb;
  --card: rgba(255, 255, 255, 0.82);
  --card-strong: rgba(255, 255, 255, 0.9);
  --panel-soft: rgba(244, 248, 255, 0.72);
  --text: #0f1728;
  --text-dim: #5a6576;
  --primary: #2563eb;
  --cyan: #19b7df;
  --accent: linear-gradient(135deg, var(--primary), var(--cyan));
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --shadow: 0 28px 72px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 20px 48px rgba(15, 23, 42, 0.09);
  --success: #16a34a;
  --warning: #b45309;
  --danger: #be123c;
  --grid-line: rgba(37, 99, 235, 0.05);
  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

html[data-bs-theme="dark"] {
  --bg: #0a0e0c;
  --bg-2: #0f1512;
  --card: rgba(18, 24, 21, 0.92);
  --card-strong: rgba(14, 19, 17, 0.96);
  --panel-soft: rgba(22, 29, 25, 0.72);
  --text: #edf2eb;
  --text-dim: #9aa69a;
  --primary: #4d86ff;
  --cyan: #2ac7e2;
  --border: rgba(175, 193, 170, 0.12);
  --border-strong: rgba(175, 193, 170, 0.2);
  --shadow: 0 28px 72px rgba(0, 0, 0, 0.4);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.28);
  --grid-line: rgba(255, 255, 255, 0.015);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(77, 134, 255, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(42, 199, 226, 0.08), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  isolation: isolate;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 58%, transparent 100%);
  opacity: 0.9;
}

a {
  color: inherit;
}

main {
  flex: 1 0 auto;
  min-height: 0;
  width: 100%;
}

.publication-shell-frame {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 30px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.public-main {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  gap: 28px;
}

.public-main .container,
.site-header .container,
.tg-footer .container {
  max-width: none;
}

.runbee-mark {
  --runbee-mark-size: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.runbee-mark--sm {
  --runbee-mark-size: 44px;
}

.runbee-mark--xs {
  --runbee-mark-size: 34px;
}

.runbee-mark__shape {
  position: relative;
  width: var(--runbee-mark-size);
  height: var(--runbee-mark-size);
  display: grid;
  place-items: center;
  color: #0c1117;
  background: var(--accent);
  clip-path: polygon(18% 0, 82% 0, 100% 22%, 100% 78%, 82% 100%, 18% 100%, 0 78%, 0 22%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 14px 34px rgba(37, 99, 235, 0.22);
}

.runbee-mark__shape::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--runbee-mark-size) * 0.72);
  height: calc(var(--runbee-mark-size) * 0.72);
  transform: translate(-50%, -50%);
  background: url("../../images/icons/brand-logo-honeycomb.79a042cff9d4.svg") center / contain no-repeat;
  pointer-events: none;
}

.runbee-mark__shape .bi {
  display: none;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-head.center {
  justify-content: center;
}

.display-6,
.section-head h2,
.section-head h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.text-muted,
.small.text-muted {
  color: var(--text-dim) !important;
}

.page-hero-bg {
  position: relative;
}

.page-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 36px;
  background:
    radial-gradient(560px 260px at 12% 0%, rgba(37, 99, 235, 0.12), transparent 70%),
    radial-gradient(540px 260px at 96% 8%, rgba(25, 183, 223, 0.09), transparent 70%);
}

.tg-btn-primary,
.tg-btn-secondary,
.btn-cta {
  min-height: 46px;
  border-radius: 16px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease,
    background 160ms ease,
    color 160ms ease,
    filter 160ms ease;
}

.tg-btn-primary,
.btn-cta-primary {
  color: #081018;
  border: none;
  background: var(--accent);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.2);
}

.tg-btn-primary:hover,
.btn-cta-primary:hover {
  color: #081018;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
  filter: brightness(1.02);
}

.tg-btn-secondary,
.btn-cta-ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.tg-btn-secondary:hover,
.btn-cta-ghost:hover {
  color: var(--text);
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.08);
}

.cta-inner {
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 980px;
  margin: 40px auto 0;
  padding: 30px 28px 32px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 249, 255, 0.82)),
    var(--card-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.32), rgba(25, 183, 223, 0.18), transparent 68%);
}

.cta-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}

.cta-sub {
  margin: 0 0 18px;
  color: var(--text-dim);
  font-size: 15px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  text-decoration: none;
}

.cta-rocket-icon,
.cta-inline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: transform 180ms ease;
}

.cta-inline-icon-btn:hover .cta-inline-icon {
  transform: translateX(3px);
}

.cta-rocket-btn:hover .cta-rocket-icon {
  animation: cta-rocket-hop 1.1s ease-in-out infinite;
}

@keyframes cta-rocket-hop {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.home-auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  padding-bottom: 6px;
  margin-top: -10px;
}

.tg-cta-row {
  padding: 0 12px;
}

.tg-btn-live,
.tg-btn-self {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.tg-btn-live:hover,
.tg-btn-self:hover {
  color: var(--text);
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(37, 99, 235, 0.08);
}

.tg-btn-live-emoji {
  display: inline-block;
  line-height: 1;
  transition: transform 180ms ease;
}

.tg-btn-live:hover .tg-btn-live-emoji {
  transform: translateX(3px);
}

html[data-bs-theme="dark"] .page-hero-bg::before {
  background:
    radial-gradient(560px 260px at 12% 0%, rgba(77, 134, 255, 0.18), transparent 70%),
    radial-gradient(540px 260px at 96% 8%, rgba(42, 199, 226, 0.12), transparent 70%);
}

html[data-bs-theme="dark"] .tg-btn-primary,
html[data-bs-theme="dark"] .btn-cta-primary {
  color: #081018;
}

html[data-bs-theme="dark"] .tg-btn-secondary,
html[data-bs-theme="dark"] .btn-cta-ghost,
html[data-bs-theme="dark"] .tg-btn-live,
html[data-bs-theme="dark"] .tg-btn-self {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-bs-theme="dark"] .tg-btn-secondary:hover,
html[data-bs-theme="dark"] .btn-cta-ghost:hover,
html[data-bs-theme="dark"] .tg-btn-live:hover,
html[data-bs-theme="dark"] .tg-btn-self:hover {
  background: rgba(77, 134, 255, 0.16);
  border-color: rgba(77, 134, 255, 0.28);
  color: var(--text);
}

html[data-bs-theme="dark"] .cta-inner {
  background:
    linear-gradient(180deg, rgba(18, 24, 21, 0.96), rgba(12, 17, 14, 0.94)),
    var(--card-strong);
}

@media (max-width: 575.98px) {
  .publication-shell-frame {
    width: min(100% - 24px, 100%);
    padding-top: 16px;
  }

  .public-main {
    gap: 22px;
  }

  .cta-inner {
    padding: 24px 18px 26px;
    border-radius: 24px;
  }

  .btn-cta,
  .cta-actions .btn-cta,
  .home-auth-actions a {
    width: 100%;
  }
}
