@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --md-primary-fg-color: #101828;
  --md-primary-fg-color--light: #344054;
  --md-primary-fg-color--dark: #0b1220;
  --md-accent-fg-color: #635bff;
  --cv-border: rgba(15, 23, 42, 0.12);
  --cv-soft-bg: #f8fafc;
  --cv-card-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --cv-action: #175cd3;
  --cv-action-hover: #1849a9;
}


/* Header: logo-only brand, left-aligned search, and theme toggle. */
.md-announce {
  display: none;
}

.md-header__inner {
  display: flex;
  align-items: center;
  min-height: 2.65rem;
  position: relative;
  gap: 0;
}

.md-header__button.md-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin: 0 1rem 0 0;
  padding: 0.35rem 0;
  z-index: 3;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  width: 11.7rem;
  height: auto;
}

.md-header__title {
  display: none;
}

.md-header__option {
  position: relative;
  top: auto;
  right: auto;
  order: 4;
  z-index: 4;
  margin: 0 0 0 auto;
  transform: none;
}

.md-header__button[for="__search"] {
  display: none;
}

.md-search {
  position: relative;
  top: auto;
  left: auto;
  order: 2;
  z-index: 2;
  flex: 0 1 34rem;
  width: min(34rem, calc(100vw - 32rem));
  margin: 0;
  transform: none;
}

.md-search__form {
  height: 2.1rem;
  border: 1px solid var(--cv-border);
  border-radius: 0.7rem;
  background: rgba(248, 250, 252, 0.94);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.md-search__input {
  height: 2.1rem;
  border-radius: 0.7rem;
  font-size: 0.86rem;
}

.md-search__icon,
.md-search__input::placeholder {
  color: #667085;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #05070d;
  --md-primary-fg-color--light: #101828;
  --md-primary-fg-color--dark: #02040a;
  --md-accent-fg-color: #7c76ff;
  --cv-border: rgba(255, 255, 255, 0.14);
  --cv-soft-bg: #0b1220;
  --cv-card-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
  --cv-action: #53b1fd;
  --cv-action-hover: #84caff;
}

[data-md-color-scheme="slate"] .md-header {
  background: rgba(5, 7, 13, 0.94);
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-header__button,
[data-md-color-scheme="slate"] .md-search__input {
  color: #ffffff;
}

[data-md-color-scheme="slate"] .md-search__icon,
[data-md-color-scheme="slate"] .md-search__input::placeholder {
  color: #cbd5e1;
}

[data-md-color-scheme="slate"] .md-header__button.md-logo img {
  content: url('../images/cloudverse-logo-dark.svg');
}

[data-md-color-scheme="slate"] .md-tabs {
  background: #05070d;
  color: #e5e7eb;
}

[data-md-color-scheme="slate"] .md-main {
  background: linear-gradient(180deg, #05070d 0%, #0b1220 100%);
}

[data-md-color-scheme="slate"] .md-typeset h1,
[data-md-color-scheme="slate"] .md-typeset h2,
[data-md-color-scheme="slate"] .md-typeset h3,
[data-md-color-scheme="slate"] .cv-card,
[data-md-color-scheme="slate"] .cv-card strong {
  color: #f8fafc !important;
}

[data-md-color-scheme="slate"] .cv-card {
  background: rgba(15, 23, 42, 0.82);
  border-color: var(--cv-border);
}

[data-md-color-scheme="slate"] .cv-card p {
  color: #cbd5e1;
}

[data-md-color-scheme="slate"] .cv-button {
  background: rgba(15, 23, 42, 0.9);
  color: #f8fafc !important;
}

[data-md-color-scheme="slate"] .md-search__form {
  background: rgba(15, 23, 42, 0.92);
  border-color: var(--cv-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

@media screen and (max-width: 59.9375em) {
  .md-header__button[for="__search"] {
    display: inline-flex;
    order: 3;
    margin-left: auto;
  }

  .md-search {
    position: fixed;
    order: initial;
    width: auto;
  }

  .md-header__option {
    margin-left: 0;
  }
}

@media screen and (max-width: 44.9375em) {
  .md-header__button.md-logo img,
  .md-header__button.md-logo svg {
    width: 9.4rem;
  }
}

.md-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--cv-border);
  color: #101828;
  backdrop-filter: blur(16px);
  box-shadow: none;
}

.md-header__button,
.md-search__input {
  color: #101828;
}

.md-tabs {
  background: #ffffff;
  color: #344054;
  border-bottom: 1px solid var(--cv-border);
}

.md-main {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.md-content__inner {
  padding-top: 1.8rem;
}

.md-typeset h1 {
  color: #101828;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.md-typeset h2 {
  letter-spacing: -0.025em;
}

.md-typeset a {
  font-weight: 500;
}

.md-typeset table:not([class]) {
  border: 1px solid var(--cv-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.md-typeset table:not([class]) th {
  background: #f2f4f7;
  color: #101828;
}

.cv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 2rem;
}

.cv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--cv-border);
  border-radius: 8px;
  background: #ffffff;
  color: #101828 !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.cv-button-primary {
  border-color: var(--cv-action);
  background: var(--cv-action);
  color: #ffffff !important;
}

.cv-button-primary:hover {
  background: var(--cv-action-hover);
  border-color: var(--cv-action-hover);
}

.cv-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 2.25rem;
}

.cv-card-grid-tight {
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0.85rem;
}

.cv-card {
  display: block;
  min-height: 10.5rem;
  padding: 1.15rem;
  border: 1px solid var(--cv-border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #101828 !important;
  box-shadow: var(--cv-card-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cv-card:hover {
  border-color: rgba(99, 91, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
  text-decoration: none;
}

.cv-card-kicker {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--cv-action);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cv-card strong {
  display: block;
  color: #101828;
  font-size: 1.05rem;
}

.cv-card p {
  margin: 0.55rem 0 0;
  color: #475467;
  font-size: 0.82rem;
  line-height: 1.55;
}

.md-nav__link--active,
.md-nav__link:focus,
.md-nav__link:hover {
  color: var(--cv-action);
}

.md-footer {
  background: #101828;
}

/* Final header placement overrides: search starts immediately after logo. */
.md-header .md-header__inner {
  min-height: 2.35rem;
}

.md-header .md-header__button.md-logo {
  margin-right: 0.8rem;
}

.md-header .md-search {
  flex: 0 0 30rem;
  width: 30rem;
  max-width: calc(100vw - 34rem);
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

.md-header .md-search__form {
  height: 1.8rem;
  min-height: 1.8rem;
  border-radius: 0.58rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.045);
}

.md-header .md-search__input {
  height: 1.8rem;
  min-height: 1.8rem;
  border-radius: 0.58rem;
  font-size: 0.82rem;
}

.md-header .md-search__icon,
.md-header .md-search__icon svg {
  color: #667085;
  fill: #667085;
}

.md-header .md-search__icon {
  height: 1.8rem;
  width: 1.8rem;
}

.md-header .md-search + .md-header__option,
.md-header .md-header__option {
  margin-left: auto !important;
}

@media screen and (min-width: 60em) and (max-width: 84em) {
  .md-header .md-search {
    flex-basis: 24rem;
    width: 24rem;
    max-width: calc(100vw - 30rem);
  }
}

[data-md-color-scheme="slate"] .md-header .md-search__icon,
[data-md-color-scheme="slate"] .md-header .md-search__icon svg {
  color: #cbd5e1;
  fill: #cbd5e1;
}
