/* Landing page styles for the Datum documentation site. */

.dt-landing {
  --dt-bg: #f8fafc;
  --dt-bg-soft: #eef2f7;
  --dt-bg-tint: #f1f5fb;
  --dt-panel: #ffffff;
  --dt-panel-strong: #0d1117;
  --dt-ink: #121820;
  --dt-muted: #566173;
  --dt-border: rgba(15, 23, 42, 0.12);
  --dt-primary: #2d6cdf;
  --dt-primary-dark: #245bc0;
  --dt-teal: #0d9488;
  --dt-amber: #bd6b17;
  --dt-green: #4f8f45;
  --dt-rose: #c7526b;
  --dt-cyan: #2d8ba5;
  --dt-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  display: block;
  width: 100%;
  overflow-x: hidden;
  color: var(--dt-ink);
  background: var(--dt-bg);
}

[data-md-color-scheme="slate"] .dt-landing {
  --dt-bg: #0f1115;
  --dt-bg-soft: #171a20;
  --dt-bg-tint: #101822;
  --dt-panel: #1c222b;
  --dt-panel-strong: #05070a;
  --dt-ink: #eef3f8;
  --dt-muted: #a9b4c3;
  --dt-border: rgba(226, 232, 240, 0.14);
  --dt-primary: #2d6cdf;
  --dt-primary-dark: #5d8ff0;
  --dt-teal: #5eead4;
  --dt-amber: #f2a65a;
  --dt-green: #8bcf7a;
  --dt-rose: #f28aa4;
  --dt-cyan: #62c9e4;
  --dt-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

/* Full-bleed layout. Material centres and width-limits an article, and the
 * landing page needs neither. */
.dt-landing-article {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  max-width: none;
}

.md-main:has(.md-content--landing) .md-main__inner {
  display: block;
  max-width: none;
  margin: 0;
  padding: 0;
}

.md-content--landing {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  max-width: none;
  margin: 0;
}

.dt-landing > section {
  display: block;
  width: 100%;
}

.md-content--landing .md-content__button {
  display: none;
}

.md-content--landing .md-typeset {
  padding: 0;
}

.dt-landing-article h1,
.dt-landing-article h2,
.dt-landing-article h3,
.dt-landing-article p {
  margin: 0;
}

.dt-landing-article h1,
.dt-landing-article h2,
.dt-landing-article h3 {
  color: inherit;
  letter-spacing: 0;
}

.dt-landing-article a {
  text-decoration-thickness: 0.08em;
}

/* Section scaffolding */
.dt-section {
  padding: 3.25rem 1.5rem;
}

.dt-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.dt-landing-article .dt-section__eyebrow {
  margin-bottom: 0.5rem;
  color: var(--dt-teal);
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dt-landing-article .dt-section__title {
  color: var(--dt-ink);
  font-size: 1.28rem;
  line-height: 1.16;
  font-weight: 800;
}

.dt-landing-article .dt-section__lede {
  color: var(--dt-muted);
  font-size: 0.78rem;
  line-height: 1.55;
  margin-top: 0.75rem;
}

/* Hero. There is no product screenshot for a command line tool, so the
 * background is a plotted grid rather than a photograph. */
.dt-hero {
  position: relative;
  isolation: isolate;
  padding: 3.75rem 1.5rem;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(
      1200px 520px at 15% 18%,
      rgba(45, 108, 223, 0.32) 0%,
      rgba(45, 108, 223, 0) 70%
    ),
    radial-gradient(
      900px 460px at 88% 92%,
      rgba(13, 148, 136, 0.22) 0%,
      rgba(13, 148, 136, 0) 70%
    ),
    linear-gradient(160deg, #0d1522 0%, #070a10 58%, #0a1119 100%);
}

.dt-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(1000px 560px at 30% 40%, #000 0%, transparent 78%);
}

.dt-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.dt-hero__inner {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 3rem;
  align-items: center;
}

.dt-hero__copy {
  min-width: 0;
}

.dt-hero__eyebrow {
  color: #5eead4;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
}

.dt-landing-article .dt-hero__title {
  max-width: 560px;
  margin-top: 0.55rem;
  color: #ffffff;
  font-size: 2.3rem;
  line-height: 1.06;
  font-weight: 900;
}

.dt-landing-article .dt-hero__lede {
  max-width: 520px;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  line-height: 1.58;
}

.dt-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.dt-hero__ctas {
  margin-top: 1.6rem;
}

.dt-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  max-width: 560px;
  margin-top: 1.55rem;
}

.dt-hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.22rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.62rem;
  font-weight: 700;
}

/* Buttons */
.dt-landing-article .dt-cta,
.dt-landing-article .dt-cta:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.95rem;
  padding: 0.38rem 0.72rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.dt-landing-article .dt-cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.dt-landing-article .dt-cta--primary,
.dt-landing-article .dt-cta--primary:visited {
  color: #ffffff;
  background: var(--dt-primary);
  box-shadow: 0 10px 24px rgba(47, 111, 228, 0.28);
}

.dt-landing-article .dt-cta--primary:hover {
  color: #ffffff;
  background: var(--dt-primary-dark);
}

.dt-landing-article .dt-cta--secondary,
.dt-landing-article .dt-cta--secondary:visited {
  color: var(--dt-ink);
  background: var(--dt-panel);
  border-color: var(--dt-border);
}

.dt-hero .dt-cta--secondary,
.dt-hero .dt-cta--secondary:visited {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.dt-landing-article .dt-cta--secondary:hover {
  color: var(--dt-primary-dark);
  border-color: currentColor;
}

.dt-hero .dt-cta--secondary:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
}

/* Terminal and document panels. These are the product shot. */
.dt-panel {
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--dt-panel-strong);
  box-shadow: var(--dt-shadow);
  overflow: hidden;
}

.dt-section .dt-panel {
  border-color: var(--dt-border);
}

.dt-panel__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.dt-panel__dots {
  display: inline-flex;
  gap: 0.28rem;
}

.dt-panel__dots i {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.dt-panel__name {
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--md-code-font-family, monospace);
  font-size: 0.6rem;
  font-weight: 600;
}

/* These panels are illustrations rather than snippets to lift, and the copy
 * button lands on top of the output. Zensical names it md-code__button, where
 * Material used md-clipboard, so both are covered. */
.dt-panel .md-code__nav,
.dt-panel .md-clipboard {
  display: none;
}

.dt-landing-article .dt-panel pre {
  margin: 0;
  padding: 0.95rem 1.1rem;
  overflow-x: auto;
  background: transparent;
  border-radius: 0;
}

.dt-landing-article .dt-panel code {
  display: block;
  padding: 0;
  color: #d8e2ee;
  background: transparent;
  box-shadow: none;
  font-family: var(--md-code-font-family, monospace);
  font-size: 0.66rem;
  line-height: 1.75;
  white-space: pre;
}

/* Hand-applied token colours, so the panels read as output rather than as a
 * highlighted code block. */
.dt-k {
  color: #7fb2ff;
}

.dt-s {
  color: #9ae6b4;
}

.dt-c {
  color: #7a8899;
}

.dt-t {
  color: #f2b06a;
}

.dt-p {
  color: #6f7d8f;
}

/* Feature grid */
.dt-section--features {
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
  background: var(--dt-bg);
}

.dt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.dt-card {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--dt-border);
  border-radius: 8px;
  background: var(--dt-panel);
}

.dt-card__mark {
  display: block;
  width: 1.4rem;
  height: 0.2rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--dt-primary);
}

.dt-card:nth-child(2) .dt-card__mark {
  background: var(--dt-teal);
}

.dt-card:nth-child(3) .dt-card__mark {
  background: var(--dt-amber);
}

.dt-card:nth-child(4) .dt-card__mark {
  background: var(--dt-green);
}

.dt-card:nth-child(5) .dt-card__mark {
  background: var(--dt-rose);
}

.dt-card:nth-child(6) .dt-card__mark {
  background: var(--dt-cyan);
}

.dt-landing-article .dt-card__title {
  color: var(--dt-ink);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
}

.dt-landing-article .dt-card__body {
  margin-top: 0.48rem;
  color: var(--dt-muted);
  font-size: 0.72rem;
  line-height: 1.52;
}

/* Inline code in the landing copy sits next to punctuation, where Material's
 * default padding reads as a stray space. */
.dt-landing-article .dt-card__body code {
  padding: 0.05em 0.28em;
  font-size: 0.86em;
}

/* Install */
.dt-section--install {
  padding-top: 3.2rem;
  padding-bottom: 3.2rem;
  background: var(--dt-bg);
}

.dt-install__copy,
.dt-install__media {
  min-width: 0;
}

.dt-install {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.8rem;
  align-items: center;
}

@media (max-width: 1100px) {
  .dt-hero__inner {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .dt-hero__copy {
    max-width: 720px;
  }

  .dt-install {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .dt-install__copy {
    max-width: 720px;
  }

  .dt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .dt-section {
    padding: 2.75rem 1rem;
  }

  .dt-hero {
    padding: 3rem 1rem;
  }

  .dt-hero__title {
    font-size: 1.8rem;
    line-height: 1.06;
  }

  .dt-hero__lede {
    font-size: 0.82rem;
  }

.dt-section__title {
    font-size: 1.15rem;
    line-height: 1.2;
  }

  .dt-grid {
    grid-template-columns: 1fr;
  }

  .dt-landing-article .dt-panel code {
    font-size: 0.6rem;
  }
}

@media (max-width: 420px) {
  .dt-hero__title {
    font-size: 1.55rem;
  }

  .dt-landing-article .dt-cta {
    width: 100%;
  }

  .dt-hero__meta span {
    width: 100%;
  }
}
