:root {
  --c2r-hero-bg: linear-gradient(140deg, rgba(14, 19, 31, 0.96), rgba(7, 10, 18, 0.99));
  --c2r-border: rgba(255, 255, 255, 0.14);
  --c2r-soft-border: rgba(255, 255, 255, 0.08);
  --c2r-card-bg: rgba(255, 255, 255, 0.05);
  --c2r-card-shadow: rgba(0, 0, 0, 0.5);
  --c2r-text: #f8fbff;
  --c2r-muted: #b9c7f8;
  --c2r-accent: #2dd4bf;
  --c2r-accent-soft: rgba(45, 212, 191, 0.18);
  --c2r-web-bg: rgba(13, 16, 24, 0.92);
  --c2r-web-border: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] {
  --c2r-hero-bg: linear-gradient(145deg, #fdfcff, #eef2ff);
  --c2r-border: rgba(15, 23, 42, 0.08);
  --c2r-soft-border: rgba(15, 23, 42, 0.06);
  --c2r-card-bg: rgba(255, 255, 255, 0.9);
  --c2r-card-shadow: rgba(15, 22, 40, 0.1);
  --c2r-text: #0f172a;
  --c2r-muted: #4b5563;
  --c2r-accent: #0f766e;
  --c2r-accent-soft: rgba(15, 118, 110, 0.12);
  --c2r-web-bg: #ffffff;
  --c2r-web-border: rgba(15, 23, 42, 0.09);
}

/* ===========================
   Hero
   =========================== */

.hero-panel {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2rem);
  background: var(--c2r-hero-bg);
  border: 1px solid var(--c2r-border);
  border-radius: 1.4rem;
  padding: clamp(2.3rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.5rem)
           clamp(1.75rem, 4vw, 2.5rem);
  color: var(--c2r-text);
  box-shadow: 0 24px 48px var(--c2r-card-shadow);
  margin: 1.75rem auto 2.75rem;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid var(--c2r-soft-border);
  opacity: 0.7;
}

.hero-surface {
  display: grid;
  grid-template-columns: minmax(200px, 320px) 1fr;
  gap: clamp(1.1rem, 2vw, 2rem);
  align-items: center;
  padding: 0.25rem;
  position: relative;
  z-index: 1;
}

/* Logo + "Current version" badge */

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

/* Eyebrow: “Current version |release|” badge */

.hero-copy__eyebrow {
  text-align: center;
  margin-bottom: 0.1rem;
}

.hero-copy__eyebrow p {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at 0 0, rgba(148, 163, 253, 0.3), transparent 55%),
    rgba(15, 23, 42, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c2r-muted);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

/* Light theme tweak for the badge */

html[data-theme="light"] .hero-copy__eyebrow p {
  background:
    radial-gradient(circle at 0 0, rgba(129, 140, 248, 0.25), transparent 55%),
    rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.15);
  color: var(--c2r-muted);
}

/* Accent dot before text */

.hero-copy__eyebrow p::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--c2r-accent);
  box-shadow: 0 0 0 4px var(--c2r-accent-soft);
}

/* Emphasize "Current version" */

.hero-copy__eyebrow strong {
  font-weight: 800;
  color: var(--c2r-text);
}

.hero-logo__img {
  width: 100%;
  max-width: 320px;
  border-radius: 1rem;
  padding: 0.35rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55);
  background: radial-gradient(circle at 20% 0%, rgba(148, 163, 253, 0.22), transparent 55%);
}

.hero-logo__img--dark {
  display: none;
}

html[data-theme="dark"] .hero-logo__img--dark {
  display: block;
}

html[data-theme="dark"] .hero-logo__img--light {
  display: none;
}

/* Hero copy */

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.25rem 0.5rem;
}

.hero-copy__text p {
  margin: 0;
  color: var(--c2r-text);
  line-height: 1.65;
  font-size: 0.98rem;
}

/* ===========================
   Hero actions (pills)
   =========================== */

/* Container around the list */
.hero-actions {
  margin: 0.75rem 0 0;
  padding: 0;
}

/* The <ul> created by the bullet list inside the container */
.hero-actions > ul,
.hero-actions .simple {
  display: flex;
  flex-wrap: wrap;          /* allow wrapping to next line */
  flex-direction: row;
  gap: 0.75rem;
  margin: 0;                /* remove ul default margin */
  padding: 0;               /* remove ul default padding */
  list-style: none;
}

/* Individual pills are the <li> elements */
.hero-actions li {
  list-style: none;
  margin: 0;
  display: inline-flex;     /* pill */
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: var(--c2r-text);
  font-weight: 500;
  font-size: 0.94rem;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  white-space: nowrap;      /* keep label on one line */
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease-out,
    box-shadow 0.2s ease;
}

/* Light theme pills */

html[data-theme="light"] .hero-actions li {
  border-color: rgba(15, 23, 42, 0.15);
  background: rgba(15, 23, 42, 0.04);
  color: var(--c2r-text);
}

/* Hover / focus */

.hero-actions li:hover {
  background: var(--c2r-accent-soft);
  border-color: var(--c2r-accent);
  color: var(--c2r-text);
  transform: translateY(-1px);
}

.hero-actions li:focus-within {
  outline: 2px solid var(--c2r-accent);
  outline-offset: 2px;
}

/* Links + icons inside pill */

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  text-decoration: none;
}

.hero-actions i {
  color: var(--c2r-accent);
  width: 1rem;
  flex-shrink: 0;
}

/* ===========================
   Hero highlights
   =========================== */

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

.hero-highlight {
  background: var(--c2r-card-bg);
  border: 1px solid var(--c2r-border);
  border-radius: 1rem;
  padding: 1.4rem 1.35rem;
  box-shadow: 0 18px 32px var(--c2r-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  backdrop-filter: blur(10px);
}

html[data-theme="light"] .hero-highlight {
  backdrop-filter: none;
}

.hero-highlight a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 1rem;
  color: var(--c2r-text);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.15s ease-out;
}

.hero-highlight a:hover {
  color: var(--c2r-accent);
  transform: translateY(-1px);
}

.hero-highlight a:focus-visible {
  outline: 2px solid var(--c2r-accent);
  outline-offset: 3px;
}

.hero-highlight i {
  color: var(--c2r-accent);
  margin-top: 0.1rem;
}

.hero-highlight p {
  margin: 0.2rem 0 0;
  color: var(--c2r-muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

/* ===========================
   Web interface panel
   =========================== */

.web-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.2rem, 3vw, 1.8rem);
  margin: 0 auto 2.5rem;
  padding: clamp(1.75rem, 4vw, 2.3rem);
  border: 1px solid var(--c2r-web-border);
  border-radius: 1.25rem;
  background: var(--c2r-web-bg);
  box-shadow: 0 22px 38px var(--c2r-card-shadow);
  max-width: 1100px;
}

.web-panel__summary {
  font-size: 0.98rem;
  color: var(--c2r-text);
  line-height: 1.65;
  padding: 0.2rem 1rem 0.2rem 0.2rem;
}

.web-panel__cta {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.web-panel__cta li {
  list-style: none;
}

.web-panel__cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--c2r-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--c2r-text);
  font-weight: 500;
  font-size: 0.92rem;
  text-decoration: none;
  transition:
    border 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease-out;
}

html[data-theme="light"] .web-panel__cta a {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.12);
  color: var(--c2r-text);
}

.web-panel__cta a:hover {
  border-color: var(--c2r-accent);
  color: var(--c2r-accent);
  transform: translateY(-1px);
}

.web-panel__cta a:focus-visible {
  outline: 2px solid var(--c2r-accent);
  outline-offset: 2px;
}

.web-panel__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(1rem, 2vw, 1.4rem);
}

.web-card {
  background: var(--c2r-card-bg);
  border: 1px solid var(--c2r-soft-border);
  border-radius: 0.95rem;
  padding: 1.3rem 1.35rem;
  color: var(--c2r-text);
  box-shadow: 0 18px 30px var(--c2r-card-shadow);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.web-card strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.web-card p {
  margin: 0;
  color: var(--c2r-muted);
  line-height: 1.5;
  font-size: 0.94rem;
}

/* ===========================
   Responsive tweaks
   =========================== */

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

  .hero-copy__text {
    text-align: left;
  }

  .hero-actions > ul,
  .hero-actions .simple {
    justify-content: center;
  }

  .hero-panel {
    margin-top: 1.25rem;
  }
}

/* ===========================
   Hide structure on index/install
   =========================== */

.page-install .bd-doc-toc,
.page-install .bd-doc-header,
.page-install .bd-sidebar {
  display: none !important;
}
