/* ================================================================
   Dogma homepage custom styles — applies to homepage only.
   All rules scoped to homepage-specific classes; does not touch
   Adidoks docs page styles.
   ================================================================ */

/* --- Hero -------------------------------------------------------- */
.hero {
  background: #4f46e5;
  color: #fff;
  padding: 4rem 1.5rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-wordmark {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 1rem;
  color: #fff;
  border: none;
}

.hero-tagline {
  font-size: 1.15rem;
  line-height: 1.65;
  margin: 0 0 1.75rem;
  opacity: 0.92;
}

/* --- CTA buttons ------------------------------------------------- */
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.btn-hero {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn-hero-primary {
  background: #fff;
  color: #4f46e5;
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.btn-hero:hover {
  opacity: 0.88;
  text-decoration: none;
}

/* --- Shared tab chrome (install strip + code panel) ------------- */
.itabs {
  display: flex;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.itab {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s;
}

.itab.active {
  color: #fff;
  border-bottom-color: #fff;
}

.itab:hover {
  color: #fff;
}

.ipanel {
  display: none;
}

.ipanel.active {
  display: block;
}

/* --- Install strip ----------------------------------------------- */
.install-strip {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.install-strip .itabs {
  padding: 0 0.75rem;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.install-strip .ipanel pre {
  margin: 0;
  padding: 0.85rem 1rem;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: 0.875rem;
  overflow-x: auto;
}

.install-strip .ipanel code {
  background: none;
  color: inherit;
  font-size: inherit;
  padding: 0;
}

/* --- Code panel (right-column hero) ----------------------------- */
.hero-right {
  display: flex;
  align-items: stretch;
}

.code-panel {
  width: 100%;
  background: #1e1b4b;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.code-panel .itabs {
  padding: 0 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.hl-pre {
  margin: 0;
  padding: 1.25rem 1rem;
  background: transparent;
  border: none;
  color: #b3b1ad;
  font-size: 0.8rem;
  line-height: 1.65;
  overflow-x: auto;
}

.hl-pre code {
  background: none;
  color: inherit;
  font-size: inherit;
  padding: 0;
}

/* Syntax token colours (ayu-dark palette) */
.kw   { color: #ff8f40; }   /* keywords */
.st   { color: #c2d94c; }   /* strings */
.ty   { color: #39bae6; }   /* types */
.fn-n { color: #ffb454; }   /* function names */
.nu   { color: #e6b450; }   /* numbers */
.cm   { color: #626a73; }   /* comments */

/* --- Feature cards ----------------------------------------------- */
.features {
  padding: 4rem 1.5rem;
  background: #fff;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: 8px;
  background: #f8f9fa;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a2e;
}

.feature-card p {
  margin: 0;
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Status strip ------------------------------------------------ */
.status-strip {
  background: #f1f5f9;
  text-align: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
}

.status-strip p {
  margin: 0;
}

/* --- Responsive -------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .features-inner {
    grid-template-columns: 1fr;
  }

  .hero-wordmark {
    font-size: 2.5rem;
  }
}
