:root {
  --md-primary-fg-color:        #3c9dd0;
  --md-primary-fg-color--light: #6db8e0;
  --md-primary-fg-color--dark:  #2a7aaa;
  --md-primary-bg-color:        #ffffff;
  --md-primary-bg-color--light: #ffffffcc;
  --md-accent-fg-color:         #3c9dd0;
}

.md-header__title { display: none; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.rime-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 65% 0%, rgba(60, 157, 208, 0.38) 0%, transparent 60%),
    linear-gradient(160deg, #071c2e 0%, #0d3550 50%, #0e3f63 100%);
  padding: 3rem 1.5rem 3rem;
  text-align: center;
  overflow: hidden;
}

.rime-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.rime-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 100%, rgba(60, 157, 208, 0.32) 0%, transparent 60%),
    linear-gradient(160deg, #061523 0%, #0a2e48 45%, #133a5a 100%);
  opacity: 0;
  animation: hero-gradient-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes hero-gradient-drift {
  to { opacity: 1; }
}

.rime-hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.rime-hero__inner {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  z-index: 1;
}

.rime-hero__logo {
  width: 300px;
  max-width: 80%;
  margin-bottom: 0.9rem;
  filter: drop-shadow(0 4px 24px rgba(60, 157, 208, 0.3));
}

.rime-hero__etymology {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0 auto 2.6rem;
  padding: 0.7rem 1.2rem 0.7rem 1.1rem;
  border-left: 2px solid rgba(60, 157, 208, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 6px 6px 0;
  text-align: left;
  max-width: 440px;
}

.rime-hero__word {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.rime-hero__def {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.87rem;
  line-height: 1.55;
  font-style: italic;
}

.rime-hero__desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0.7rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.rime-hero__badges {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
  opacity: 0.9;
}

.rime-hero__install {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(60, 157, 208, 0.3);
  border-radius: 8px;
  padding: 0.65rem 1.4rem;
  margin-bottom: 0.9rem;
  font-family: var(--md-code-font, monospace);
  font-size: 0.88rem;
  color: #a8d8f0;
  letter-spacing: 0.025em;
  box-shadow: 0 0 20px rgba(60, 157, 208, 0.1);
}

.rime-hero__buttons {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.rime-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.rime-btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.rime-btn--primary {
  background: #ffffff;
  color: #071c2e;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.rime-btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ── Register prompt ────────────────────────────────────────────────────── */

.rime-hero__register {
  position: relative;
  z-index: 1;
  margin: 2.5rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.rime-hero__register a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: color 0.2s, border-color 0.2s;
}

.rime-hero__register a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* ── Scroll arrow ───────────────────────────────────────────────────────── */

.rime-hero__scroll {
  position: relative;
  z-index: 1;
  display: block;
  margin: 1.2rem auto 0;
  width: 64px;
  height: 64px;
  color: rgba(255, 255, 255, 0.7);
  animation: rime-bounce 1.8s ease-in-out infinite;
  transition: color 0.2s ease;
  filter: drop-shadow(0 0 8px rgba(60, 157, 208, 0.6));
}

.rime-hero__scroll:hover {
  color: #ffffff;
}

@keyframes rime-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ── Screenshot ─────────────────────────────────────────────────────────── */

.md-typeset img[alt="RIME UI"] {
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin: 2rem auto;
  display: block;
}

/* ── Feature cards ──────────────────────────────────────────────────────── */

.md-typeset .grid.cards > ul > li {
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.md-typeset .grid.cards > ul > li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
}

/* ── Footer credit ──────────────────────────────────────────────────────── */

.rime-footer-credit {
  text-align: center;
  font-size: 0.72rem;
  color: var(--md-default-fg-color--lighter);
  padding: 0.5rem 1rem 1rem;
}

.rime-footer-credit a {
  color: var(--md-default-fg-color--light);
}

/* ── Borderless table ───────────────────────────────────────────────────── */

.borderless-table table,
.borderless-table th,
.borderless-table td {
  border: none !important;
  box-shadow: none !important;
}
