/* HomeHero — terminal-blueprint aesthetic.
 * Mono microcopy carries the "techy" signal. Hairline borders, dot-grid
 * backdrop, generous space. No rounded blobs, no gradients.
 */

.hero {
  position: relative;
  padding: 5.5rem 1.5rem 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--ifm-color-emphasis-200);
}

/* Very low-contrast dot grid — graph-paper energy.
 * Re-implemented via radial-gradient so it renders crisp on every DPI. */
.gridBackdrop {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    var(--ifm-color-emphasis-300) 1px,
    transparent 0
  );
  background-size: 24px 24px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(180deg, black 0%, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, black 60%, transparent 100%);
}

.inner {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

/* Status bar — a discreet "server status" microreadout. */
.statusBar {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.75rem;
  margin-bottom: 2rem;
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ifm-color-emphasis-700);
  background: var(--ifm-background-color);
  border: 1px solid var(--ifm-color-emphasis-200);
  border-radius: 999px;
}

.statusDot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.statusKey {
  color: var(--ifm-color-emphasis-500);
}

.statusValue {
  color: var(--ifm-heading-color);
  font-weight: 500;
}

/* Headline — confident, tight. */
.headline {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.032em;
  margin: 0 0 1.75rem;
  color: var(--ifm-heading-color);
  max-width: 900px;
}

.headline em {
  font-style: normal;
  position: relative;
  white-space: nowrap;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 65%,
    var(--ifm-color-primary-lightest) 65%,
    var(--ifm-color-primary-lightest) 96%,
    transparent 96%
  );
  padding: 0 0.05em;
}

[data-theme='dark'] .headline em {
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 65%,
    rgba(129, 140, 248, 0.28) 65%,
    rgba(129, 140, 248, 0.28) 96%,
    transparent 96%
  );
}

/* Tagline — restrained, no inline link decoration. */
.tagline {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ifm-color-emphasis-700);
  margin: 0 0 2.5rem;
  max-width: 680px;
}

/* CTAs — primary as a solid bar, secondary as an underline-on-hover link.
 * Refined typography on both. */
.ctaRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.ctaPrimary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ifm-background-color);
  background: var(--ifm-heading-color);
  border-radius: 0;  /* sharp corners — engineered feel */
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.ctaPrimary:hover {
  background: var(--ifm-color-primary);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}

.ctaArrow {
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}
.ctaPrimary:hover .ctaArrow {
  transform: translate(2px, -2px);
}

.ctaSecondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ifm-heading-color);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.ctaSecondary:hover {
  text-decoration: none;
  color: var(--ifm-color-primary);
  border-color: var(--ifm-color-primary);
}
.linkArrow {
  font-family: var(--ifm-font-family-monospace);
  transition: transform 0.18s ease;
}
.ctaSecondary:hover .linkArrow {
  transform: translateX(3px);
}

/* Install block — two channels (stable + beta), each copyable. */
.install {
  margin: 0 0 4rem;
  max-width: 820px;
}

.installHeader {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.installLabel {
  color: var(--ifm-color-emphasis-600);
  text-transform: uppercase;
  font-weight: 600;
}

.installHint {
  color: var(--ifm-color-emphasis-500);
}

/* Each install line: [channel badge] [url] [copy button] */
.installLine {
  display: flex;
  align-items: stretch;
  background: var(--ifm-color-emphasis-100);
  border: 1px solid var(--ifm-color-emphasis-200);
  border-bottom-width: 0;
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.84rem;
  line-height: 1.4;
}
.installLine:last-child {
  border-bottom-width: 1px;
}

/* Channel pill on the left — gives each line a distinct identity */
.installChannel {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ifm-color-emphasis-700);
  background: var(--ifm-color-emphasis-200);
  border-right: 1px solid var(--ifm-color-emphasis-200);
  user-select: none;
  white-space: nowrap;
}

/* Beta channel gets a primary-tinted badge so it's distinguishable
 * at a glance from the stable one */
.installChannelBeta {
  color: var(--ifm-color-primary);
}
[data-theme='dark'] .installChannelBeta {
  color: var(--ifm-color-primary-light);
}

.installUrl {
  flex: 1;
  padding: 0.85rem 1rem;
  color: var(--ifm-color-emphasis-1000);
  background: transparent;
  border: 0;
  overflow-x: auto;
  white-space: nowrap;
  /* Make the URL itself selectable to support manual copy if the
   * Clipboard API ever fails. */
  user-select: text;
}

/* Copy button anchored on the right of each row */
.installCopy {
  align-self: stretch;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 1px solid var(--ifm-color-emphasis-200);
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

@media (max-width: 640px) {
  .installLine {
    flex-wrap: wrap;
  }
  .installUrl {
    flex-basis: 100%;
    order: 2;
    border-top: 1px solid var(--ifm-color-emphasis-200);
  }
  .installCopy {
    border-left: 0;
    border-top: 1px solid var(--ifm-color-emphasis-200);
  }
}

/* Demo (the GIF) — refined frame with mono caption above. */
.demo {
  margin: 0;
  max-width: 960px;
}

.demoCaption {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.6rem;
  font-family: var(--ifm-font-family-monospace);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ifm-color-emphasis-600);
  text-transform: uppercase;
}

.demoTag {
  color: var(--ifm-color-primary);
  font-weight: 600;
}

.demoFrame {
  position: relative;
  border: 1px solid var(--ifm-color-emphasis-200);
  background: var(--ifm-color-emphasis-100);
  overflow: hidden;
}

.demoFrame img,
.demoFrame video {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero { padding: 4rem 1rem 3rem; }
  .headline { font-size: clamp(2rem, 9vw, 3rem); }
  .tagline { font-size: 1rem; }
  .ctaRow { gap: 1rem; }
}
