/* ==========================================================================
   RAIO — Design Tokens
   ========================================================================== */
:root {
  /* Surfaces */
  --bg-void: #07080c;
  --bg-base: #0b0d13;
  --bg-surface: #12141c;
  --bg-surface-2: #191c27;
  --bg-surface-3: #212433;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.2);

  /* Text */
  --text-primary: #f5f6f8;
  --text-secondary: #a6acba;
  --text-tertiary: #6d7385;
  --text-on-accent: #ffffff;

  /* Brand */
  --brand-blurple: #5865f2;
  --brand-blurple-light: #8792ff;
  --brand-blurple-dark: #3c46c1;
  --accent-pink: #ff6fb5;
  --accent-pink-light: #ffa0d1;
  --accent-gold: #ffc94d;
  --accent-gold-light: #ffdd8a;
  --accent-green: #57f287;
  --accent-red: #ed4245;

  /* Default page accent (overridden per bot via [data-accent]) */
  --accent: var(--brand-blurple);
  --accent-light: var(--brand-blurple-light);
  --accent-dark: var(--brand-blurple-dark);
  --accent-rgb: 88, 101, 242;

  /* Typography */
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Spacing scale (4/8pt) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Shadow / glow */
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 20px 60px rgba(0, 0, 0, 0.45);
  --glow-accent: 0 0 0 1px rgba(var(--accent-rgb), 0.4), 0 0 48px rgba(var(--accent-rgb), 0.28);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 400ms;

  /* Layout */
  --container-w: 1180px;
  --nav-h: 76px;
}

[data-accent="pink"] {
  --accent: var(--accent-pink);
  --accent-light: var(--accent-pink-light);
  --accent-dark: #d94f95;
  --accent-rgb: 255, 111, 181;
}

[data-accent="gold"] {
  --accent: var(--accent-gold);
  --accent-light: var(--accent-gold-light);
  --accent-dark: #cc9c2c;
  --accent-rgb: 255, 201, 77;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: var(--space-9);
}

@media (max-width: 640px) {
  .section {
    padding-block: var(--space-8);
  }
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-7);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.12);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: var(--space-3);
}

.section-head p {
  color: var(--text-secondary);
  font-size: 17px;
}

/* Background texture: soft radial glows, shared across pages */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-base);
}

.bg-glow::before,
.bg-glow::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
}

.bg-glow::before {
  top: -18%;
  left: -12%;
  background: var(--brand-blurple);
}

.bg-glow::after {
  bottom: -20%;
  right: -14%;
  background: var(--accent-pink);
  opacity: 0.16;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  opacity: 0.5;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  min-height: 44px;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out);
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--text-on-accent);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
  min-height: 38px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    backdrop-filter var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(9, 10, 15, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border-subtle);
}

.nav-inner {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand .brand-mark {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
  padding-block: 6px;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text-primary);
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav.is-open .icon-menu {
  display: none;
}

.nav.is-open .icon-close {
  display: block;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-5);
    background: rgba(9, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease-out);
    overflow-y: auto;
  }

  .nav.is-open .nav-links {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    padding: var(--space-4) var(--space-3);
    font-size: 18px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--space-9));
  padding-bottom: var(--space-9);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-8);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  font-size: clamp(36px, 5.4vw, 64px);
  margin-bottom: var(--space-5);
}

.hero-copy h1 .highlight {
  background: linear-gradient(135deg, var(--brand-blurple-light), var(--accent-pink-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-7);
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat .label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.hero-visual {
  position: relative;
  height: 460px;
}

.orbit-card {
  position: absolute;
  width: 168px;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-surface));
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.orbit-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-inline: auto;
  margin-bottom: var(--space-3);
  background: var(--bg-surface-3);
  overflow: hidden;
}

.orbit-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.orbit-card .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.orbit-card .tag {
  font-size: 12px;
  color: var(--text-tertiary);
}

.orbit-1 {
  top: 0;
  left: 6%;
}

.orbit-2 {
  top: 46%;
  right: 0;
}

.orbit-3 {
  bottom: 0;
  left: 20%;
}

.hero-orb {
  position: absolute;
  inset: 8% 14%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(var(--accent-rgb), 0.5), transparent 65%);
  filter: blur(6px);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    height: 320px;
    margin-bottom: var(--space-6);
    order: -1;
  }

  .orbit-card {
    width: 136px;
    padding: var(--space-3);
  }

  .orbit-2 {
    top: 38%;
  }

  .orbit-3 {
    bottom: 10%;
  }
}

@media (max-width: 560px) {
  .hero-visual {
    display: none;
  }
}

/* ==========================================================================
   Bot cards (home showcase)
   ========================================================================== */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 980px) {
  .bot-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}

.bot-card {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-surface));
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
  will-change: transform;
}

.bot-card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: var(--shadow-lift), var(--glow-accent);
}

.bot-card .card-top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.bot-card .avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-3);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-medium);
}

.bot-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-card .category {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 4px;
}

.bot-card h3 {
  font-size: 21px;
}

.bot-card .tagline {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: var(--space-5);
  min-height: 44px;
}

.bot-card .feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.bot-card .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--text-secondary);
}

.bot-card .feature-list .icon {
  color: var(--accent);
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.bot-card .card-actions {
  display: flex;
  gap: var(--space-3);
}

.bot-card .card-actions .btn {
  flex: 1;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(87, 242, 135, 0.2);
}

.status-pill {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   Feature grid (why RAIO)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-item {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.feature-item .icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent-light);
  margin-bottom: var(--space-4);
}

.feature-item .icon-wrap .icon {
  width: 22px;
  height: 22px;
}

.feature-item h3 {
  font-size: 17px;
  margin-bottom: var(--space-2);
}

.feature-item p {
  font-size: 14.5px;
  color: var(--text-secondary);
}

/* ==========================================================================
   Steps (how it works)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  counter-reset: step;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  position: relative;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.step .step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.14);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
}

.step h3 {
  font-size: 16px;
  margin-bottom: var(--space-2);
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-7);
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.22), rgba(255, 111, 181, 0.14));
  border: 1px solid var(--border-medium);
}

.cta-banner h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin-bottom: var(--space-3);
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-7);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-brand p {
  color: var(--text-tertiary);
  font-size: 14px;
  max-width: 280px;
  margin-top: var(--space-3);
}

.footer-cols {
  display: flex;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: 14.5px;
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Bot detail page
   ========================================================================== */
.bot-hero {
  padding-top: calc(var(--nav-h) + var(--space-8));
  padding-bottom: var(--space-8);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}

.breadcrumb a:hover {
  color: var(--text-primary);
}

.breadcrumb .icon {
  width: 14px;
  height: 14px;
}

.bot-hero-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-7);
  align-items: center;
}

@media (max-width: 760px) {
  .bot-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bot-hero-avatar {
    margin-inline: auto;
  }

  .hero-actions,
  .bot-meta-row {
    justify-content: center;
  }
}

.bot-hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  background: var(--bg-surface-2);
  box-shadow: var(--shadow-lift), var(--glow-accent);
}

.bot-hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-meta-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.bot-hero-copy h1 {
  font-size: clamp(30px, 4.4vw, 48px);
  margin-bottom: var(--space-4);
}

.bot-hero-copy p.lead {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-6);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.chip .icon {
  width: 14px;
  height: 14px;
}

.chip-accent {
  color: var(--accent-light);
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.exclusive-notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  margin-bottom: var(--space-6);
  max-width: 560px;
}

.exclusive-notice .icon {
  width: 20px;
  height: 20px;
  color: var(--accent-light);
  margin-top: 2px;
  flex-shrink: 0;
}

.exclusive-notice p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.exclusive-notice strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14.5px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* Two column layout: content + sidebar */
.bot-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-7);
  align-items: start;
}

@media (max-width: 900px) {
  .bot-layout {
    grid-template-columns: 1fr;
  }
}

.bot-main > .block + .block {
  margin-top: var(--space-8);
}

.block h2 {
  font-size: 24px;
  margin-bottom: var(--space-5);
}

.command-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.command-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

.command-item:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateX(4px);
}

@media (max-width: 560px) {
  .command-item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}

.command-item code {
  font-family: "Consolas", "SFMono-Regular", Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  align-self: start;
}

.command-item span {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (max-width: 560px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }
}

.rule-card {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.rule-card .rule-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.rule-card .rule-title .icon {
  color: var(--accent);
  width: 17px;
  height: 17px;
}

.rule-card p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

/* Sidebar card */
.sidebar-card {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-5));
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--bg-surface-2), var(--bg-surface));
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
}

.sidebar-card h3 {
  font-size: 16px;
  margin-bottom: var(--space-4);
}

.sidebar-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.sidebar-stat:last-of-type {
  border-bottom: none;
}

.sidebar-stat .label {
  color: var(--text-tertiary);
}

.sidebar-stat .value {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sidebar-card .btn {
  margin-top: var(--space-5);
}

.perm-note {
  margin-top: var(--space-4);
  font-size: 12.5px;
  color: var(--text-tertiary);
  display: flex;
  gap: var(--space-2);
  align-items: flex-start;
}

.perm-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--accent-green);
}

/* related bots */
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

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

.related-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

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

.related-card .avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface-3);
  flex-shrink: 0;
}

.related-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-card h4 {
  font-size: 15.5px;
  margin-bottom: 2px;
}

.related-card p {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   Floating contact buttons (call / messenger)
   ========================================================================== */
.contact-fab {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.fab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #ffffff;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.fab-btn:hover {
  transform: translateY(-3px) scale(1.03);
}

.fab-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.fab-btn .fab-icon-wrap {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fab-btn .icon {
  width: 16px;
  height: 16px;
}

.fab-call {
  background: linear-gradient(135deg, #57f287, #2fb968);
}

.fab-messenger {
  background: linear-gradient(135deg, #7c7ff2, #a855f7);
}

.fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(87, 242, 135, 0.55);
  animation: fab-pulse 2.2s ease-out infinite;
}

@keyframes fab-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fab-ring {
    animation: none;
  }
}

@media (max-width: 560px) {
  .contact-fab {
    right: var(--space-4);
    bottom: var(--space-4);
  }

  .fab-btn {
    padding: 10px 14px 10px 10px;
    font-size: 13px;
  }

  .fab-btn .fab-icon-wrap {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   Reveal animation base states (GSAP toggles .is-visible)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* View Transitions (progressive enhancement for smoother nav) */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.32s;
    animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  }
}
