/* ===== Header ===== */
.md-header {
  background-color: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.md-header[data-md-state="shadow"] {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

[data-md-color-scheme="default"] .md-header {
  background-color: #fff;
  color: #1a1a2e;
}

[data-md-color-scheme="default"] .md-header .md-header__title {
  color: #1a1a2e;
}

[data-md-color-scheme="default"] .md-header .md-search__input {
  background-color: #f5f5f5;
}

[data-md-color-scheme="default"] .md-tabs {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

/* ===== Hero Section ===== */
.ucap-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 2rem 0 3rem;
}

.ucap-hero__content {
  flex: 1;
  max-width: 600px;
}

.ucap-hero__content h1 {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--md-default-fg-color);
}

.ucap-hero__content p:first-of-type {
  font-size: 1.25rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: 0.75rem;
}

.ucap-hero__logo {
  flex-shrink: 0;
}

.ucap-hero__logo img {
  max-width: 200px;
  height: auto;
}

@media screen and (max-width: 960px) {
  .ucap-hero {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .ucap-hero__content {
    max-width: 100%;
  }

  .ucap-hero__content h1 {
    font-size: 2rem;
  }
}

/* ===== Promo Cards ===== */
.ucap-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.ucap-promo__card {
  padding: 1.5rem 2rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 8px;
  background: var(--md-default-bg-color);
  transition: box-shadow 0.2s;
}

.ucap-promo__card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ucap-promo__card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.ucap-promo__card p {
  color: var(--md-default-fg-color--light);
  margin-bottom: 1rem;
}

@media screen and (max-width: 768px) {
  .ucap-promo {
    grid-template-columns: 1fr;
  }
}

/* ===== Features Grid ===== */
.ucap-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.ucap-feature {
  padding: 1.25rem;
}

.ucap-feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.ucap-feature p {
  font-size: 0.9rem;
  color: var(--md-default-fg-color--light);
  line-height: 1.5;
  margin: 0;
}

@media screen and (max-width: 960px) {
  .ucap-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .ucap-features {
    grid-template-columns: 1fr;
  }
}

/* ===== Action Carousel ===== */
.ucap-action-carousel {
  margin: 2rem 0;
}

.ucap-action-carousel h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===== Protocol Stack ===== */
.ucap-protocol-stack {
  margin: 2rem 0;
}

.ucap-protocol-stack h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ucap-protocol-stack pre {
  font-size: 0.8rem;
}

/* ===== Get Started ===== */
.ucap-get-started {
  margin: 2rem 0;
  text-align: center;
}

.ucap-get-started h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.ucap-get-started__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.ucap-get-started__step {
  padding: 1.5rem;
}

.ucap-get-started__step h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0;
}

.ucap-get-started__step p {
  color: var(--md-default-fg-color--light);
  font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
  .ucap-get-started__steps {
    grid-template-columns: 1fr;
  }
}

/* ===== Spec Pages ===== */
.md-typeset .capability-id {
  font-family: var(--md-code-font-family);
  background-color: var(--md-code-bg-color);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.85em;
}
