@import url('https://fonts.googleapis.com/css2?family=Crimson+Pro:wght@400;600;700&display=swap');

:root {
  --md-primary-fg-color: #ffffff;
  --md-primary-fg-color--light: #fafafa;
  --md-primary-fg-color--dark: #f5f5f5;
  --md-accent-fg-color: #0d9488;
  --md-accent-fg-color--light: #14b8a6;
  --md-text-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --md-heading-font: "Crimson Pro", "Times New Roman", Times, serif;
  --teal-subtle: #0d9488;
  --teal-hover: #14b8a6;
  --teal-light: rgba(13, 148, 136, 0.08);
}

body, .md-typeset {
  font-family: var(--md-text-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #1a1a1a;
  font-size: 0.8rem;
}

/* Headings use Crimson Pro (Times-like serif) */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-family: var(--md-heading-font);
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

body {
  background: #fafafa;
}

/* Clean white header */
.md-header {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}

.md-header__button {
  color: #1a1a1a;
}

.md-header__title {
  color: #1a1a1a;
  font-family: var(--md-heading-font);
  font-weight: 600;
}

.md-header__button.md-logo img {
  border-radius: 8px;
  padding: 3px;
  background: var(--teal-light);
  border: 1px solid rgba(13, 148, 136, 0.15);
}

/* Tabs styling */
.md-tabs {
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
}

.md-tabs__link {
  font-family: var(--md-text-font);
  font-weight: 500;
  color: #666666;
  opacity: 1;
  font-size: 0.85rem;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: var(--teal-subtle);
}

/* Sidebar */
.md-nav--primary .md-nav__title {
  font-family: var(--md-heading-font);
  font-weight: 600;
  color: #1a1a1a;
  padding: 0.65rem 1rem;
}

.md-sidebar--primary {
  background: #ffffff;
  box-shadow: none;
  border-right: 1px solid #f0f0f0;
}

.md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link {
  border-radius: 6px;
  padding: 0.5rem 1rem;
  color: #4a4a4a;
  background: transparent;
  font-family: var(--md-text-font);
  font-weight: 500;
}

.md-nav--primary .md-nav__item--nested .md-nav__link {
  border-radius: 6px;
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
  color: #666666;
}

.md-nav--primary .md-nav__item--nested .md-nav__link:hover {
  background: var(--teal-light);
  color: var(--teal-subtle);
}

.md-nav--primary > .md-nav__list > .md-nav__item--active > .md-nav__link {
  color: var(--teal-subtle);
  font-weight: 600;
  background: var(--teal-light);
}

.md-nav--primary .md-nav__item--nested .md-nav__item--active > .md-nav__link {
  background: var(--teal-light);
  color: var(--teal-subtle);
  border-left: 2px solid var(--teal-subtle);
  font-weight: 500;
}

/* Hero section */
.hero {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero img {
  width: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.hero h1 {
  font-family: var(--md-heading-font);
  margin: 0 0 0.5rem 0;
  color: #1a1a1a;
}

.hero .cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.hero .cta a {
  padding: 0.65rem 1.1rem;
  border-radius: 8px;
  font-weight: 500;
  font-family: var(--md-text-font);
  text-decoration: none;
  color: #1a1a1a;
  background: #ffffff;
  border: 1.5px solid #e5e5e5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  min-width: 140px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.hero .cta a:hover {
  border-color: var(--teal-subtle);
  color: var(--teal-subtle);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.12);
}

.hero .cta a.primary {
  color: #ffffff;
  background: var(--teal-subtle);
  border: none;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.2);
}

.hero .cta a.primary:hover {
  background: var(--teal-hover);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

/* Workflow cards */
.workflow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.step-card {
  padding: 1.2rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all 0.2s ease;
}

.step-card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.step-card .badge {
  align-self: flex-start;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-subtle);
  font-weight: 600;
  font-size: 0.75rem;
  font-family: var(--md-text-font);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.step-card h3 {
  font-family: var(--md-heading-font);
  margin: 0;
  font-size: 1.1rem;
  color: #1a1a1a;
}

.step-card a {
  color: var(--teal-subtle);
  font-weight: 500;
  text-decoration: none;
}

.step-card a:hover {
  color: var(--teal-hover);
  text-decoration: underline;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.feature-card {
  padding: 1.2rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #f0f0f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-card h3 {
  font-family: var(--md-heading-font);
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.feature-card p {
  margin: 0;
  color: #4a4a4a;
  line-height: 1.6;
}

/* Link styling */
.md-typeset a {
  color: var(--teal-subtle);
  text-decoration: none;
}

.md-typeset a:hover {
  color: var(--teal-hover);
  text-decoration: underline;
}

/* Code blocks */
.md-typeset code {
  background: #f8f8f8;
  color: #1a1a1a;
  border: 1px solid #f0f0f0;
  border-radius: 3px;
}

.md-typeset pre {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
}

/* Search box */
.md-search__input {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}

.md-search__input:focus {
  border-color: var(--teal-subtle);
}

@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .hero img {
    width: 130px;
    margin: 0 auto;
  }

  .hero .cta {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .hero .cta a {
    width: 100%;
    min-width: 0;
    justify-content: center;
  }
}
