:root {
  --ink: #0f172a;
  --paper: #f5f7fb;
  --muted: #6b7280;
  --card: rgba(255, 255, 255, 0.86);
  --border: rgba(15, 23, 42, 0.12);
  --glass: rgba(12, 18, 32, 0.28);
  --cta-flat: #fb9a3c;
  --cta-flat-hover: #fcb05a;
  --cta-flat-active: #f08f31;
}

.rebot-common {
  margin: 0;
  color: var(--paper);
  background-color: #f1d199;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  isolation: isolate;
}

.rebot-common::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #f1d199;
  background-image: linear-gradient(180deg, rgba(8, 12, 20, 0.28), rgba(8, 12, 20, 0.4)), url('/img/parquet-v7-vertical.png');
  background-size: 100% auto;
  background-position: center top;
  background-repeat: repeat-y;
}

.rebot-common .shell {
  max-width: 1520px;
  margin: 0 auto;
  padding: 20px 16px 44px;
}

.rebot-common .site-header {
  --logo-size: 66px;
  --pill-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 8px 10px;
  border-radius: 20px;
  border: 1px solid transparent;
  isolation: isolate;
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease, padding 220ms ease;
}

.rebot-common .site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(12, 18, 32, 0);
  -webkit-backdrop-filter: blur(0) saturate(100%);
  backdrop-filter: blur(0) saturate(100%);
  transition: background 220ms ease, -webkit-backdrop-filter 220ms ease, backdrop-filter 220ms ease;
  pointer-events: none;
  z-index: -1;
}

.rebot-common .site-header.is-sticky {
  --logo-size: 42px;
  --pill-height: 34px;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.rebot-common .site-header.is-sticky::before {
  background: rgba(12, 18, 32, 0.58);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.rebot-common .brand {
  display: inline-flex;
  gap: 12px;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}

.rebot-common .logo {
  width: var(--logo-size);
  height: var(--logo-size);
  aspect-ratio: 1 / 1;
  flex: 0 0 var(--logo-size);
  border-radius: calc(var(--logo-size) * 0.27);
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 45px rgba(249, 115, 22, 0.3);
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.rebot-common .site-header.is-sticky .logo {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.rebot-common .logo img,
.rebot-common .logo picture {
  width: 100%;
  height: 100%;
  display: block;
}

.rebot-common .logo img {
  object-fit: cover;
}

.rebot-common .title-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--pill-height, 42px);
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transition: padding 220ms ease, box-shadow 220ms ease, background 220ms ease, opacity 220ms ease;
}

.rebot-common .title-pill h1,
.rebot-common .brand h1 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.03;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-family: 'Archivo', 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

.rebot-common .brand-subtitle {
  margin: 0;
  color: rgba(245, 247, 251, 0.92);
  font-size: 14px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.rebot-common .site-header.is-sticky .title-pill {
  padding: 6px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  opacity: 0.98;
}

.rebot-common .cta-paper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: var(--cta-flat);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .rebot-common .site-header {
    flex-wrap: wrap;
  }
  .rebot-common .shell {
    padding: 12px 10px 24px;
  }
}
