/* Nature Tools — block-rendered CSS
   Mirrors the React inline-styled components as proper, themeable classes so
   the homepage renders identically when composed from Gutenberg blocks. */

/* ── Layout primitives ─────────────────────────────────────────────────── */

.nt-section {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
  background: var(--nt-bg-0);
}
.nt-section--surface {
  background: var(--nt-bg-1);
  border-top: 1px solid var(--nt-border);
  border-bottom: 1px solid var(--nt-border);
}
.nt-section--paper {
  background: var(--nt-paper-0);
  color: var(--nt-ink-paper-hi);
}
.nt-section--paper .nt-eyebrow { color: var(--nt-ink-paper-lo); }
.nt-section__inner {
  max-width: var(--nt-max-w);
  margin: 0 auto;
  padding-inline: var(--nt-gutter);
  position: relative;
}

/* ── Section header (eyebrow + display heading + body + kicker) ────────── */

.nt-section-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: flex-end;
}
.nt-section-header__title {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.014em;
  font-weight: 500;
  color: var(--nt-ink-hi);
  margin: 18px 0 0;
  max-width: 540px;
  text-wrap: balance;
}
.nt-section-header__body {
  padding-bottom: 8px;
}
.nt-section-header__body p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--nt-ink-md);
  max-width: 460px;
  margin: 0;
  text-wrap: pretty;
}
.nt-section-header__kicker {
  font-family: var(--nt-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nt-ink-lo);
  text-align: right;
  margin-top: 18px;
}
@media (max-width: 820px) {
  .nt-section-header { grid-template-columns: 1fr; }
  .nt-section-header__kicker { text-align: left; }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.nt-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
}
.nt-hero__bg { position: absolute; inset: 0; z-index: 0; }
.nt-hero__bg .nt-imgslot { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
.nt-hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-color: #0d100e;
}
.nt-hero--has-image .nt-hero__scrim-a {
  background: linear-gradient(105deg,
    rgba(13,16,14,0.94) 0%,
    rgba(13,16,14,0.78) 30%,
    rgba(13,16,14,0.42) 55%,
    rgba(13,16,14,0.18) 78%,
    rgba(13,16,14,0.05) 100%);
}
.nt-hero--has-image .nt-hero__scrim-b {
  background: linear-gradient(180deg,
    rgba(13,16,14,0.55) 0%,
    transparent 22%, transparent 72%,
    rgba(13,16,14,0.85) 100%);
}
.nt-hero__caption {
  position: absolute;
  right: 32px;
  bottom: 44px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nt-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(235, 233, 221, 0.55);
  pointer-events: none;
}
.nt-hero__caption-tick {
  width: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.nt-hero__scrim-a, .nt-hero__scrim-b { position: absolute; inset: 0; pointer-events: none; }
.nt-hero__scrim-a {
  background: linear-gradient(110deg,
    rgba(13,16,14,0.92) 0%,
    rgba(13,16,14,0.7)  38%,
    rgba(13,16,14,0.45) 65%,
    rgba(13,16,14,0.55) 100%);
}
.nt-hero__scrim-b {
  background: linear-gradient(180deg,
    rgba(13,16,14,0.6) 0%,
    transparent 25%, transparent 70%,
    rgba(13,16,14,0.85) 100%);
}
.nt-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--nt-max-w);
  margin: 0 auto;
  padding: 120px var(--nt-gutter);
  min-height: 760px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.nt-hero__copy h1 {
  margin: 24px 0 0;
  font-size: clamp(48px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.022em;
  font-weight: 400;
  color: var(--nt-ink-hi);
  text-wrap: balance;
}
.nt-hero__copy > p {
  margin-top: 28px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--nt-ink-md);
  max-width: 540px;
  text-wrap: pretty;
}
.nt-hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.nt-hero__chips {
  margin-top: 56px;
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--nt-border-faint);
  padding-top: 24px;
}
.nt-hero__chips-label {
  font-family: var(--nt-font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nt-ink-lo);
  margin-right: 18px;
}
.nt-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--nt-ink-md);
  padding: 6px 0;
}
.nt-hero__chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.nt-hero__chip-sep {
  color: var(--nt-border-strong);
  padding: 0 14px;
}
.nt-hero__ruler {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 0 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--nt-border-faint);
  background: rgba(13,16,14,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--nt-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nt-ink-lo);
}
@media (max-width: 980px) {
  .nt-hero__inner { grid-template-columns: 1fr; padding: 88px var(--nt-gutter) 96px; }
  .nt-hero { min-height: 0; }
  .nt-hero__inner { min-height: 0; }
}

/* ── App grid + cards ──────────────────────────────────────────────────── */

.nt-grid {
  display: grid;
  gap: 0;
  margin-top: 56px;
  border: 1px solid var(--nt-border);
}
.nt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nt-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nt-grid > * + * { border-left: 1px solid var(--nt-border-faint); }

.nt-app-card {
  position: relative;
  background: var(--nt-bg-1);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  overflow: hidden;
  transition: background var(--nt-dur-base) var(--nt-ease), border-color var(--nt-dur-base) var(--nt-ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.nt-app-card:hover { background: var(--nt-bg-2); }
.nt-app-card__accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  opacity: 0.6;
  transition: opacity var(--nt-dur-base) var(--nt-ease);
}
.nt-app-card:hover .nt-app-card__accent { opacity: 1; }
.nt-app-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.nt-app-card__platform {
  font-family: var(--nt-font-mono);
  font-size: 10px;
  color: var(--nt-ink-lo);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nt-app-card__name {
  margin-top: 24px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--nt-ink-hi);
}
.nt-app-card__tagline {
  margin-top: 8px;
  font-size: 14px;
  color: var(--nt-ink-md);
  line-height: 1.55;
}
.nt-app-card__foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--nt-border-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  align-items: flex-end;
}
.nt-app-card__view {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--nt-ink-md);
  transition: color var(--nt-dur-base) var(--nt-ease);
}
.nt-app-card:hover .nt-app-card__view { color: var(--nt-accent); }
.nt-app-card__version {
  font-family: var(--nt-font-mono);
  font-size: 10px;
  color: var(--nt-ink-lo);
  letter-spacing: 0.04em;
}

/* ── Intent cards ──────────────────────────────────────────────────────── */

.nt-intent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.nt-intent-card {
  background: var(--nt-bg-1);
  border: 1px solid var(--nt-border);
  padding: 28px 28px 22px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.nt-intent-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 1px solid var(--nt-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nt-accent);
}
.nt-intent-card__title {
  margin: 22px 0 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.2;
  color: var(--nt-ink-hi);
  text-wrap: balance;
  flex: 1;
}
.nt-intent-card__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
}
.nt-intent-card__row {
  padding: 12px 0;
  border-top: 1px solid var(--nt-border-faint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding-left 180ms var(--nt-ease);
  text-decoration: none;
  color: inherit;
}
.nt-intent-card__row:hover { padding-left: 6px; }
.nt-intent-card__row-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--nt-ink-hi);
  font-weight: 500;
}
.nt-intent-card__row-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.nt-intent-card__row-flag {
  font-size: 10px;
  color: var(--nt-ink-lo);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 8px;
}

/* ── Trust columns ─────────────────────────────────────────────────────── */

.nt-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border: 1px solid var(--nt-border);
}
.nt-trust__col {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.nt-trust__col + .nt-trust__col { border-left: 1px solid var(--nt-border-faint); }
.nt-trust__col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nt-trust__col-icon { color: var(--nt-accent); }
.nt-trust__col-tag {
  font-family: var(--nt-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nt-ink-lo);
}
.nt-trust__col h3 {
  margin: 32px 0 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.nt-trust__col p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--nt-ink-md);
  text-wrap: pretty;
}

/* ── Audience pathways ─────────────────────────────────────────────────── */

.nt-audience {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--nt-border);
}
.nt-audience__cell {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  text-decoration: none;
  color: inherit;
  transition: background var(--nt-dur-base) var(--nt-ease);
}
.nt-audience__cell + .nt-audience__cell { border-left: 1px solid var(--nt-border-faint); }
.nt-audience__cell:hover { background: var(--nt-bg-2); }
.nt-audience__icon { color: var(--nt-accent-soft); }
.nt-audience__cell h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--nt-ink-hi);
  margin: 0;
}
.nt-audience__cell p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--nt-ink-md);
  margin: 8px 0 0;
}
.nt-audience__cell-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--nt-accent);
  font-size: 12px;
  margin-top: auto;
}

/* ── Field notes teaser ────────────────────────────────────────────────── */

.nt-notes-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.nt-notes-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.nt-notes-card__meta {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nt-notes-card__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nt-notes-card__read {
  font-family: var(--nt-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--nt-ink-lo);
}
.nt-notes-card__title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--nt-ink-hi);
  text-wrap: balance;
}
.nt-notes-card__date {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--nt-ink-lo);
  font-size: 12px;
}

/* ── Free callout (GLM) ────────────────────────────────────────────────── */

.nt-free-callout {
  position: relative;
  padding: 88px 0;
  background: var(--nt-bg-0);
  border-top: 1px solid var(--nt-border);
  border-bottom: 1px solid var(--nt-border);
  overflow: hidden;
}
.nt-free-callout__decor {
  position: absolute; inset: 0;
  opacity: 0.45; pointer-events: none;
}
.nt-free-callout__inner {
  position: relative;
  max-width: var(--nt-max-w);
  margin: 0 auto;
  padding-inline: var(--nt-gutter);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.nt-free-callout h2 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  font-weight: 400;
  color: var(--nt-ink-hi);
  margin: 18px 0 0;
  text-wrap: balance;
}
.nt-free-callout__body {
  margin-top: 24px;
  max-width: 480px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--nt-ink-md);
  text-wrap: pretty;
}
.nt-free-callout__actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.nt-free-callout__caption {
  margin-top: 32px;
  font-family: var(--nt-font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--nt-ink-lo);
}
@media (max-width: 980px) {
  .nt-free-callout__inner { grid-template-columns: 1fr; }
  .nt-grid--4, .nt-grid--5, .nt-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-grid > * + *, .nt-audience__cell + .nt-audience__cell { border-left: none; }
  .nt-intent-grid, .nt-notes-grid, .nt-trust { grid-template-columns: 1fr; }
}

/* ── CTA banner ────────────────────────────────────────────────────────── */

.nt-cta {
  padding: 72px 0;
  border-top: 1px solid var(--nt-border);
  border-bottom: 1px solid var(--nt-border);
  background: var(--nt-bg-1);
  position: relative;
  overflow: hidden;
  color: var(--nt-accent);
}
.nt-cta__inner {
  position: relative;
  max-width: var(--nt-max-w);
  margin: 0 auto;
  padding-inline: var(--nt-gutter);
  text-align: center;
}
.nt-cta__inner h2 {
  margin-top: 18px;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  font-weight: 400;
  color: var(--nt-ink-hi);
  max-width: 720px;
  margin-inline: auto;
  text-wrap: balance;
}
.nt-cta__body {
  margin-top: 18px;
  font-size: 18px;
  color: var(--nt-ink-md);
  max-width: 600px;
  margin-inline: auto;
  text-wrap: pretty;
}
.nt-cta__actions {
  margin-top: 32px;
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.nt-cta .nt-eyebrow { justify-content: center; }
.nt-cta__topo {
  position: absolute; inset: 0;
  color: var(--nt-accent);
  pointer-events: none;
}

/* ── End-of-section CTA row (button + ghost link) ──────────────────────── */

.nt-end-row {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

/* Image slot internals (when used as a block) */
.nt-imgslot { position: relative; overflow: hidden; border: 1px solid var(--nt-border-faint); }
.nt-imgslot__contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; }

/* ── Editor-only adjustments ───────────────────────────────────────────── */

.editor-styles-wrapper {
  background: var(--nt-bg-0) !important;
  color: var(--nt-ink-hi) !important;
  font-family: var(--nt-font-sans);
}
.editor-styles-wrapper .nt-section { padding-top: 64px; padding-bottom: 64px; }
.editor-styles-wrapper .nt-hero { min-height: 540px; }
.editor-styles-wrapper .nt-hero__inner { min-height: 540px; padding: 80px 32px; }
