/* Visually enlarge the logo without breaking the header's flexbox layout */
.md-header__button.md-logo img {
  transform: scale(2.2);
  transform-origin: center;
}


/* Base overrides for homepage */
.tx-hero {
  text-align: center;
  padding: 4rem 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.tx-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tx-hero p {
  font-size: 1.25rem;
  color: var(--md-default-fg-color);
  margin-bottom: 2.5rem;
}

/* Dynamic Hero Logo */
[data-md-color-scheme="default"] .tx-hero-logo {
  content: url("../assets/ggToolIcon.svg");
  max-width: 100%;
  height: auto;
}

[data-md-color-scheme="slate"] .tx-hero-logo {
  content: url("../assets/ggToolIcon_dark.svg");
  max-width: 100%;
  height: auto;
}

.tx-hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

/* Feature Rows */
.tx-feature-row {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin: 4rem 0;
}

.tx-feature-row.reverse {
  flex-direction: row-reverse;
}

.tx-feature-text {
  flex: 0.4;
  min-width: 0;
  width: 100%;
}

.tx-feature-text h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  border-bottom: none;
  /* remove md default border */
}

.tx-feature-text p {
  font-size: 1.1rem;
  color: var(--md-default-fg-color);
  line-height: 1.6;
}

.tx-feature-visual {
  flex: 0.6;
  min-width: 0;
  width: 100%;
  background: var(--md-code-bg-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--md-default-fg-color--lightest);
}

.tx-feature-visual pre,
.tx-feature-visual code {
  font-size: 0.65rem !important;
}

.tx-feature-visual .mermaid {
  display: flex;
  justify-content: center;
  width: 100%;
}

.tx-feature-visual .mermaid svg {
  max-width: 100%;
  height: auto;
}

.tx-feature-visual pre {
  margin: 0 !important;
}

/* Three Steps */
.tx-steps-section {
  text-align: center;
  margin: 4rem 0;
  padding: 2rem 1rem;
  background: var(--md-default-bg-color--lighter);
  border-radius: 12px;
}

.tx-steps-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  border-bottom: none;
}

.tx-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: center;
}

.tx-step-card {
  background: var(--md-code-bg-color);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--md-default-fg-color--lightest);
}

.tx-step-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--md-primary-fg-color);
  margin-bottom: 0.5rem;
}

.tx-step-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tx-step-code {
  display: block;
  background: var(--md-default-bg-color);
  color: var(--md-code-fg-color);
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 6px;
  border: 1px solid var(--md-default-fg-color--lightest);
  font-family: var(--md-code-font-family, monospace);
  font-size: 0.85rem;
  overflow-x: auto;
  white-space: nowrap;
}

/* CTA Banner */
.tx-cta-banner {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--md-primary-fg-color), var(--md-accent-fg-color));
  color: white;
  border-radius: 12px;
  margin: 3rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tx-cta-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.2;
}

.tx-cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.tx-cta-banner .md-button {
  background-color: white !important;
  color: var(--md-primary-fg-color) !important;
  border: none !important;
  font-weight: bold;
}

.tx-cta-banner .md-button:hover {
  background-color: var(--md-default-bg-color) !important;
}

/* Responsive */
@media screen and (max-width: 768px) {

  .tx-feature-row,
  .tx-feature-row.reverse {
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
  }

  .tx-hero h1 {
    font-size: 2.2rem;
  }

  .tx-hero-buttons {
    flex-direction: column;
  }

  .tx-cta-title {
    font-size: 2rem;
  }

  .tx-feature-visual {
    padding: 1rem;
  }

  .tx-steps-section {
    padding: 2rem 1rem;
  }
}

/* Override MkDocs homepage container to be wider */
.tx-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Upcoming Banner */
.tx-upcoming-banner {
  text-align: center;
  padding: 1.5rem;
  background: var(--md-code-bg-color);
  border: 1px dashed var(--md-primary-fg-color);
  border-radius: 8px;
  margin: 3rem auto;
  max-width: 800px;
}

.tx-upcoming-banner h3 {
  color: var(--md-primary-fg-color);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.tx-upcoming-banner p {
  margin: 0;
  font-size: 1.1rem;
}