/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 0 5.5rem;
  background:
    linear-gradient(180deg, rgba(22, 93, 255, 0.08) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(90deg, rgba(20, 201, 201, 0.08) 0%, rgba(250, 173, 20, 0.08) 100%),
    var(--ifm-background-color);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 93, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 93, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 82%);
}

[data-theme='dark'] .hero {
  background:
    linear-gradient(180deg, rgba(64, 128, 255, 0.16) 0%, rgba(15, 17, 21, 0) 72%),
    linear-gradient(90deg, rgba(20, 201, 201, 0.1) 0%, rgba(250, 173, 20, 0.08) 100%),
    var(--ifm-background-color);
}

.heroInner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  gap: 4rem;
  align-items: center;
}

.heroContent {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 5px 12px;
  color: var(--ifm-color-primary);
  background: rgba(22, 93, 255, 0.09);
  border: 1px solid rgba(22, 93, 255, 0.2);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

[data-theme='dark'] .badge {
  background: rgba(64, 128, 255, 0.16);
  border-color: rgba(64, 128, 255, 0.3);
  color: var(--ifm-color-primary-lighter);
}

.badgeDot {
  width: 7px;
  height: 7px;
  background: #00b42a;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(0, 180, 42, 0.12);
}

.heroTitle {
  margin: 0;
  color: var(--ifm-heading-color);
  font-size: 3.45rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.08;
}

.heroTitleAccent {
  display: block;
  margin-top: 8px;
  color: var(--ifm-color-primary);
}

.heroSubtitle {
  max-width: 640px;
  margin: 0;
  color: var(--ifm-color-content-secondary);
  font-size: 1.15rem;
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.primaryBtn,
.secondaryBtn {
  min-height: 46px;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.primaryBtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: #165dff;
  border: 1px solid #165dff;
  box-shadow: 0 10px 24px rgba(22, 93, 255, 0.24);
  font-weight: 650;
}

.primaryBtn:hover,
.primaryBtn:focus-visible {
  color: #fff;
  background: #0e4fe6;
  border-color: #0e4fe6;
  box-shadow: 0 14px 30px rgba(22, 93, 255, 0.3);
  transform: translateY(-1px);
}

.btnArrow {
  transition: transform 0.2s ease;
}

.primaryBtn:hover .btnArrow,
.primaryBtn:focus-visible .btnArrow {
  transform: translateX(3px);
}

.secondaryBtn {
  display: inline-flex;
  align-items: center;
  color: var(--ifm-font-color-base);
  background: var(--ifm-background-color);
  border: 1px solid var(--ifm-color-emphasis-300);
  font-weight: 600;
}

.secondaryBtn:hover,
.secondaryBtn:focus-visible {
  color: var(--ifm-color-primary);
  border-color: var(--ifm-color-primary);
  background: var(--ifm-background-color);
  transform: translateY(-1px);
}

.metrics {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
  padding-top: 1.25rem;
}

.metric {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.metricValue {
  color: var(--ifm-heading-color);
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
}

.metricLabel {
  color: var(--ifm-color-content-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.metricDivider {
  width: 1px;
  height: 30px;
  background: var(--ifm-color-emphasis-300);
}

/* Product visual */
.heroVisual {
  display: grid;
  gap: 1rem;
}

.consolePanel {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 93, 255, 0.16);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(29, 33, 41, 0.12);
}

[data-theme='dark'] .consolePanel {
  background: rgba(22, 24, 29, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.consoleHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--ifm-color-emphasis-200);
}

[data-theme='dark'] .consoleHeader {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.consoleHeader strong {
  display: block;
  margin-top: 4px;
  color: var(--ifm-heading-color);
  font-size: 1.2rem;
}

.consoleEyebrow {
  color: var(--ifm-color-content-secondary);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.consoleStatus {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #00a870;
  background: rgba(0, 180, 42, 0.1);
  border: 1px solid rgba(0, 180, 42, 0.2);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.consoleGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--ifm-color-emphasis-200);
}

[data-theme='dark'] .consoleGrid {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.consoleGrid > div {
  min-width: 0;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--ifm-color-emphasis-200);
}

[data-theme='dark'] .consoleGrid > div {
  border-right-color: rgba(255, 255, 255, 0.08);
}

.consoleGrid > div:last-child {
  border-right: 0;
}

.consoleGrid strong {
  display: block;
  margin-top: 6px;
  color: var(--ifm-heading-color);
  font-size: 1.45rem;
  line-height: 1.1;
}

.consoleLabel {
  display: block;
  color: var(--ifm-color-content-secondary);
  font-size: 12px;
  font-weight: 650;
}

.timeline {
  display: grid;
}

.timelineRow {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ifm-color-emphasis-200);
}

[data-theme='dark'] .timelineRow {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.timelineRow:last-child {
  border-bottom: 0;
}

.timelineRow strong,
.timelineRow span {
  display: block;
}

.timelineRow strong {
  color: var(--ifm-heading-color);
  font-size: 0.95rem;
  font-weight: 700;
}

.timelineRow span {
  color: var(--ifm-color-content-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.timelineRow em {
  color: var(--ifm-color-content-secondary);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 650;
  white-space: nowrap;
}

.timelineDotOk,
.timelineDotInfo,
.timelineDotWarn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.timelineDotOk {
  background: #00b42a;
}

.timelineDotInfo {
  background: #165dff;
}

.timelineDotWarn {
  background: #ff7d00;
}

.commandCard {
  display: grid;
  gap: 8px;
  padding: 1rem 1.1rem;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.18);
}

.commandTitle {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

.commandCard code {
  overflow-x: auto;
  color: #e5e7eb;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 13px;
  white-space: nowrap;
}

@media (max-width: 996px) {
  .hero {
    padding: 4.5rem 0 3.5rem;
  }

  .heroInner {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .heroTitle {
    font-size: 2.45rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3.75rem 0 2.75rem;
  }

  .heroTitle {
    font-size: 2.05rem;
  }

  .heroSubtitle {
    font-size: 1rem;
  }

  .actions {
    width: 100%;
  }

  .primaryBtn,
  .secondaryBtn {
    width: 100%;
    justify-content: center;
  }

  .metrics {
    width: 100%;
    align-items: stretch;
    gap: 0.85rem;
    flex-direction: column;
  }

  .metricDivider {
    width: 100%;
    height: 1px;
  }

  .consoleHeader,
  .timelineRow {
    padding: 1rem;
  }

  .consoleGrid {
    grid-template-columns: 1fr;
  }

  .consoleGrid > div {
    border-right: 0;
    border-bottom: 1px solid var(--ifm-color-emphasis-200);
  }

  .consoleGrid > div:last-child {
    border-bottom: 0;
  }

  [data-theme='dark'] .consoleGrid > div {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .primaryBtn,
  .secondaryBtn,
  .btnArrow {
    transition: none;
  }
}
