/* ============================================
   DDD Homepage — Redesign v2
   Modern, mobile-first override layer.
   Loaded after index.css so these rules win.
   Scoped to html.dt-page to avoid leaking to
   other pages.
   ============================================ */

/* ── 1. PAGE TOKENS ────────────────────────── */
html.dt-page .page {
  --page-h-pad: clamp(16px, 4vw, 40px);
  --section-v-pad: clamp(36px, 5.5vw, 64px);
  --card-radius: 20px;
  --card-bg: rgba(13, 17, 23, 0.94);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(45, 212, 191, 0.28);
}

/* ── 2. HERO — RESTORE MOBILE VISIBILITY ───── */
/*
   hero-terminal.css hides .dt-hero via display:none in its base
   (mobile-first) rules and again explicitly inside
   @media (max-width: 768px).  The font-size, padding, and
   layout rules for all mobile breakpoints already exist in
   hero-terminal.css — they just never fire because the element
   is hidden.  We un-hide it here with higher specificity so users
   see the "1/71" headline and H1 on every screen size.

   We deliberately leave .dt-hero::before hidden (the vignette
   gradient that sits behind the canvas) — it's not needed when
   the page background is solid on mobile.
*/
html.dt-page .dt-hero {
  display: grid !important;
}

/* Tighten the hero padding on very small screens */
@media (max-width: 480px) {
  html.dt-page .dt-hero {
    padding-top: 28px !important;
    padding-bottom: 20px !important;
  }
}

/* ── 3. TERMINAL PANELS — RESPONSIVE GUTTERS ── */
/*
   The .dt wrapper gets 16px side-padding from hero-terminal.css
   inside @media (max-width: 768px), so no extra gutter is needed
   there.  We add a bottom gap so the panels breathe above the
   narrative sections below.
*/
html.dt-page .dt-header-panels {
  padding-bottom: 20px;
}

@media (min-width: 901px) {
  html.dt-page .dt-header-panels {
    padding-bottom: 32px;
  }
}

/* On phones, make the window-toggle buttons scroll horizontally
   rather than wrapping onto a second row, which looks untidy. */
@media (max-width: 600px) {
  html.dt-page .dt-header-window-toggle {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  html.dt-page .dt-header-window-toggle::-webkit-scrollbar {
    display: none;
  }
  html.dt-page .dt-header-window-btn {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }
}

/* Hide supply status badge / pin copy below the chart */
html.dt-page .dt-header-supply-status {
  display: none !important;
}

/* ── SUPPLY WIDGET — MOBILE CLEANUP ─────────── */
/*
   On mobile the supply panel stacks: heading → $319B → chart →
   issuance feed.  The issuance feed (event cards with amounts,
   kickers, meta rows) is desktop-grade UI that reads as clutter
   on a narrow screen.  We hide it below 768px and compact the
   chart so the panel stays tight and readable.
*/
@media (max-width: 768px) {
  /* Shorten the chart so it doesn't dominate the small screen */
  html.dt-page .dt-header-chart-shell {
    min-height: 140px !important;
  }
  html.dt-page .dt-header-chart {
    min-height: 130px !important;
  }

  /* Reduce the huge supply dollar value on small screens */
  html.dt-page .dt-header-supply-value {
    font-size: clamp(28px, 8vw, 38px) !important;
  }

  /* Stack the supply head: title on top, window buttons below */
  html.dt-page .dt-header-supply-head {
    flex-direction: column;
    gap: 0.6rem;
  }
  html.dt-page .dt-header-supply-controls {
    width: 100%;
  }

  /* Tighten the supply panel padding */
  html.dt-page .dt-header-panel--supply {
    padding: 0.9rem 1rem 0.85rem;
  }

  /* Status line below the chart removed globally */
  html.dt-page .dt-header-supply-status {
    display: none !important;
  }

  /* ── Issuance feed rows — mobile card layout ── */
  /*
     hero-terminal.css @560px sets grid-template-columns: auto auto 1fr
     on a 4-child row, which wraps the tail onto its own line and makes
     amount / desc / chip / age read as four separate blocks.

     Re-layout as a 2-row card:
       row 1: dot | amount | tail (24H + age)
       row 2: dot | description (full width)
  */
  html.dt-page .dt-header-feed-list--primary .dt-header-feed-row,
  html.dt-page .dt-header-feed-row {
    display: grid !important;
    grid-template-columns: 8px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    grid-template-areas:
      "dot amount tail"
      "dot desc desc" !important;
    gap: 0.22rem 0.55rem !important;
    align-items: start !important;
    padding: 10px 12px !important;
  }

  html.dt-page .dt-header-feed-list--primary .dt-header-feed-row {
    padding: 10px 12px 10px 14px !important;
  }

  html.dt-page .dt-header-feed-dot {
    grid-area: dot;
    align-self: start;
    margin-top: 0.42rem;
  }

  html.dt-page .dt-header-feed-amount {
    grid-area: amount;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  html.dt-page .dt-header-feed-desc {
    grid-area: desc;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: rgba(232, 234, 237, 0.58) !important;
  }

  html.dt-page .dt-header-feed-tail {
    grid-area: tail;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-self: end;
    gap: 0.12rem !important;
    white-space: nowrap;
  }

  /* Undo hero-terminal @560px rules that break nested age placement */
  html.dt-page .dt-header-feed-age {
    grid-column: unset !important;
    padding-left: 0 !important;
    font-size: 10px !important;
    line-height: 1.2;
  }

  html.dt-page .dt-header-feed-chip {
    font-size: 8px !important;
    padding: 2px 6px !important;
    letter-spacing: 0.1em !important;
  }

  /* Compact the issuance section wrapper */
  html.dt-page .dt-header-issuance {
    padding: 0.7rem 0.75rem 0.8rem;
    gap: 0.5rem;
  }

  html.dt-page .dt-header-feed-module--primary {
    padding: 0.65rem 0.7rem;
    gap: 0.45rem;
  }

  html.dt-page .dt-header-feed-list--primary {
    padding-left: 0.5rem;
    gap: 0.45rem;
  }

  /* Hide duplicate section title — kicker already says "Issuer activity" */
  html.dt-page .dt-header-feed-title {
    display: none;
  }

  html.dt-page .dt-header-feed-summary {
    font-size: 11px;
    line-height: 1.45;
    color: rgba(232, 234, 237, 0.52);
  }

  html.dt-page .dt-header-feed-note--primary {
    font-size: 10px;
    line-height: 1.4;
  }
}

/* ── 4. NARRATIVE SECTIONS ─────────────────── */
html.dt-page .narrative-section {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--section-v-pad) var(--page-h-pad);
  box-sizing: border-box;
  width: 100%;
}

/* Remove the old frosted-glass pseudo-element card background */
html.dt-page .narrative-section::before {
  display: none;
}

/* Adjacent narrative sections share a thin divider */
html.dt-page .narrative-section + .narrative-section {
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  padding-top: var(--section-v-pad);
}

/* Section eyebrow pill */
html.dt-page .narrative-section .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  background: rgba(45, 212, 191, 0.06);
  font-family: var(--mono, 'IBM Plex Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5eead4;
}

html.dt-page .narrative-section .section-eyebrow::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2dd4bf;
  box-shadow: 0 0 8px rgba(45, 212, 191, 0.65);
  flex-shrink: 0;
}

/* Narrative headings */
html.dt-page .narrative-section .narrative-heading {
  font-family: var(--serif-display, 'Fraunces', Georgia, serif);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #e8f0ee;
  margin-bottom: 14px;
}

/* Narrative body text */
html.dt-page .narrative-section .narrative-body {
  font-size: 15px;
  line-height: 1.78;
  color: rgba(232, 240, 238, 0.75);
}

html.dt-page .narrative-section .narrative-body > p {
  max-width: 56ch;
  margin-bottom: 0;
}

/* ── 5. MARKET BEAT SECTIONS ───────────────── */
html.dt-page .market-beat-section {
  padding-bottom: calc(var(--section-v-pad) * 0.5);
}

html.dt-page .market-beat-frame {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: start;
  margin-top: 24px;
}

html.dt-page .market-beat-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: none;
  padding-top: 4px;
}

html.dt-page .market-beat-step {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(45, 212, 191, 0.45);
}

html.dt-page .market-beat-heading {
  font-size: clamp(22px, 2.8vw, 30px) !important;
  font-weight: 300 !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  letter-spacing: -0.015em !important;
  color: #e8f0ee !important;
}

html.dt-page .market-beat-copy p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(232, 240, 238, 0.65);
  margin: 0;
}

/* ── 6. MARKET STRUCTURE CARDS (feature) ───── */
html.dt-page .market-structure-card--feature {
  padding: 24px;
  border-radius: var(--card-radius, 20px);
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
  background: linear-gradient(145deg, rgba(15, 20, 29, 0.97) 0%, rgba(10, 13, 18, 0.95) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

@media (hover: hover) {
  html.dt-page .market-structure-card--feature:hover {
    border-color: var(--card-border-hover, rgba(45, 212, 191, 0.28));
    box-shadow: 0 10px 44px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(45, 212, 191, 0.1);
    transform: translateY(-2px);
  }
}

html.dt-page .market-structure-card--feature .market-structure-title {
  font-family: var(--serif-display, 'Fraunces', Georgia, serif);
  font-size: clamp(20px, 2.2vw, 26px) !important;
  font-weight: 300;
  line-height: 1.2;
  color: #e8f0ee;
  min-height: 0 !important;
  margin-bottom: 6px;
}

html.dt-page .market-structure-card--feature .market-structure-copy {
  font-size: 13px;
  color: rgba(232, 240, 238, 0.65);
  line-height: 1.65;
  min-height: 0 !important;
  max-width: none;
  margin-top: 4px;
}

/* "Open board" CTA */
html.dt-page .market-structure-card--feature .market-structure-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 16px;
  margin-top: 16px;
  max-width: fit-content;
  width: auto;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: rgba(45, 212, 191, 0.06);
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7dd3c0;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  font-weight: 500;
}

html.dt-page .market-structure-card--feature .market-structure-link:hover {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.4);
  color: #b2f5ea;
}

/* ── 7. ISSUER VIZ BARS ────────────────────── */
html.dt-page .market-structure-card--feature .issuer-viz {
  margin: 16px 0 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
  background: rgba(8, 11, 16, 0.55);
}

html.dt-page .market-structure-card--feature .issuer-viz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-family: var(--mono, monospace);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200, 218, 228, 0.48);
  padding-bottom: 10px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html.dt-page .market-structure-card--feature .issuer-viz-header span:last-child {
  color: rgba(45, 212, 191, 0.72);
}

html.dt-page .market-structure-card--feature .issuer-viz-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) 42px;
  align-items: center;
  gap: 8px 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

html.dt-page .market-structure-card--feature .issuer-viz-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

html.dt-page .market-structure-card--feature .issuer-viz-name {
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.76);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.dt-page .market-structure-card--feature .issuer-viz-bar {
  height: 4px;
  background: rgba(45, 212, 191, 0.07);
  border-radius: 999px;
  overflow: hidden;
}

html.dt-page .market-structure-card--feature .issuer-viz-bar-fill {
  height: 100%;
  min-width: 2px;
  background: linear-gradient(90deg, #0d9488, #5eead4);
  border-radius: 999px;
}

html.dt-page .market-structure-card--feature .issuer-viz-pct {
  font-family: var(--mono, monospace);
  font-size: 10px;
  font-weight: 500;
  text-align: right;
  color: rgba(167, 243, 208, 0.85);
  font-variant-numeric: tabular-nums;
}

/* ── 8. HOME HISTORY PANEL ─────────────────── */
html.dt-page .home-history-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--card-radius, 20px);
  background: linear-gradient(145deg, rgba(14, 19, 27, 0.96) 0%, rgba(10, 13, 18, 0.93) 100%);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

html.dt-page .home-history-lead {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(232, 240, 238, 0.72);
  margin: 0;
}

html.dt-page .home-history-progress-track {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(45, 212, 191, 0.1);
  overflow: hidden;
}

html.dt-page .home-history-progress-fill {
  background: linear-gradient(90deg, #0d9488, #2dd4bf);
}

html.dt-page .home-history-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

html.dt-page .home-history-meta-item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(8, 11, 16, 0.6);
}

html.dt-page .home-history-meta-label {
  font-family: var(--mono, monospace);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.38);
}

html.dt-page .home-history-meta-value {
  font-size: 13px;
  font-weight: 500;
  color: rgba(232, 240, 238, 0.88);
}

html.dt-page .home-history-link {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #5eead4;
  border-bottom-color: rgba(45, 212, 191, 0.25);
}

html.dt-page .home-history-link:hover {
  color: #a7f3d0;
  border-bottom-color: rgba(167, 243, 208, 0.4);
}

/* ── 9. DDD WHY SECTION ────────────────────── */
html.dt-page .ddd-why-section {
  padding-bottom: var(--section-v-pad);
}

html.dt-page .ddd-why-frame {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 24px 36px;
  align-items: start;
  margin-top: 0;
}

html.dt-page .ddd-why-copy .narrative-body {
  max-width: 36rem;
}

html.dt-page .ddd-why-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html.dt-page .ddd-why-point {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(145deg, rgba(14, 19, 27, 0.8) 0%, rgba(10, 13, 18, 0.55) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease;
}

@media (hover: hover) {
  html.dt-page .ddd-why-point:hover {
    border-color: rgba(45, 212, 191, 0.18);
  }
}

html.dt-page .ddd-why-point-kicker {
  display: block;
  font-family: var(--mono, monospace);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(94, 234, 212, 0.72);
  margin-bottom: 6px;
}

html.dt-page .ddd-why-point p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(232, 240, 238, 0.7);
}

/* ── 10. TRUSTED / PARTNERS SECTION ────────── */
html.dt-page .trusted-section {
  max-width: 1040px;
  margin: 0 auto;
  padding: var(--section-v-pad) var(--page-h-pad);
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  box-sizing: border-box;
  width: 100%;
}

/* Strip the frosted inner container — let cards speak for themselves */
html.dt-page .trusted-section .narrative-body {
  display: block;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.dt-page .trusted-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

html.dt-page .trusted-logo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 130px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(15, 20, 29, 0.96) 0%, rgba(10, 13, 18, 0.92) 100%);
  color: var(--text, #e8eaed);
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

@media (hover: hover) {
  html.dt-page .trusted-logo:hover {
    border-color: rgba(45, 212, 191, 0.26);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.26);
  }
}

html.dt-page .trusted-logo-kicker {
  font-family: var(--mono, monospace);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 240, 238, 0.42);
  margin: 0;
}

html.dt-page .trusted-logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: auto;
}

html.dt-page .trusted-logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex-shrink: 0;
}

html.dt-page .trusted-logo-name {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(242, 247, 245, 0.92);
  white-space: nowrap;
}

html.dt-page .trusted-logo-copy {
  color: rgba(232, 240, 238, 0.62);
  font-size: 0.77rem;
  line-height: 1.5;
  flex: 1;
}

/* ── 11. EMAIL SIGNUP BLOCK ─────────────────── */
html.dt-page .signup-block {
  max-width: 600px;
  margin: 0 auto;
  padding: var(--section-v-pad) var(--page-h-pad);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
  box-sizing: border-box;
}

html.dt-page .signup-block .signup-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  background: rgba(45, 212, 191, 0.06);
  font-family: var(--mono, monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5eead4;
}

html.dt-page .signup-block h3 {
  font-family: var(--serif-display, 'Fraunces', Georgia, serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #e8f0ee;
  margin: 0 0 12px;
  max-width: none;
}

html.dt-page .signup-block .signup-description {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(232, 240, 238, 0.65);
  margin: 0 auto 24px;
  max-width: 40ch;
}

html.dt-page .signup-block .subscribe-form {
  display: flex;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 13, 18, 0.85);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

html.dt-page .signup-block .subscribe-form:focus-within {
  border-color: rgba(45, 212, 191, 0.38);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.07);
}

html.dt-page .signup-block .subscribe-form input {
  flex: 1;
  background: none;
  border: none;
  color: #e8eaed;
  font-family: var(--sans, sans-serif);
  font-size: 14px;
  padding: 13px 16px;
  outline: none;
  min-width: 0;
}

html.dt-page .signup-block .subscribe-form input::placeholder {
  color: rgba(156, 163, 175, 0.45);
}

html.dt-page .signup-block .subscribe-form button {
  background: #2dd4bf;
  color: #06090e;
  border: none;
  font-family: var(--sans, sans-serif);
  font-size: 13px;
  font-weight: 600;
  padding: 13px 22px;
  cursor: pointer;
  transition: background 0.18s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

html.dt-page .signup-block .subscribe-form button:hover {
  background: #5eead4;
}

html.dt-page .signup-block .subscribe-msg {
  font-size: 13px;
  color: rgba(45, 212, 191, 0.72);
  margin-top: 10px;
  min-height: 1.2em;
}

/* ── 12. FOOTER ────────────────────────────── */
html.dt-page .page-footer {
  padding: 20px var(--page-h-pad, 24px) calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  justify-content: center;
  gap: 0.22rem 0.55rem;
}

/* ── 13. SCROLL FADE ANIMATIONS ────────────── */
.fade-target {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  will-change: opacity, transform;
}

.fade-target.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── 14. RESPONSIVE — TABLET ───────────────── */
@media (max-width: 900px) {
  html.dt-page .market-beat-frame {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  html.dt-page .ddd-why-frame {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  html.dt-page .trusted-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* ── 15. RESPONSIVE — MOBILE ───────────────── */
@media (max-width: 600px) {
  html.dt-page .narrative-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  html.dt-page .market-beat-section {
    padding-bottom: 20px;
  }

  html.dt-page .market-beat-frame {
    gap: 14px;
    margin-top: 18px;
  }

  html.dt-page .market-structure-card--feature {
    padding: 18px;
  }

  html.dt-page .ddd-why-section {
    padding-bottom: 36px;
  }

  html.dt-page .ddd-why-frame {
    gap: 20px;
  }

  html.dt-page .ddd-why-point {
    padding: 14px 16px;
  }

  html.dt-page .trusted-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  html.dt-page .trusted-logos {
    grid-template-columns: 1fr;
  }

  html.dt-page .trusted-logo {
    min-height: auto;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  html.dt-page .trusted-logo-copy {
    flex-basis: 100%;
  }

  html.dt-page .home-history-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html.dt-page .signup-block {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  html.dt-page .signup-block h3 {
    font-size: 26px;
  }

  html.dt-page .signup-block .signup-description {
    max-width: none;
  }

  html.dt-page .signup-block .subscribe-form {
    max-width: none;
    flex-direction: column;
    border-radius: 14px;
  }

  html.dt-page .signup-block .subscribe-form input {
    border-radius: 14px 14px 0 0;
  }

  html.dt-page .signup-block .subscribe-form button {
    border-radius: 0 0 12px 12px;
    padding: 13px;
    text-align: center;
    min-height: 46px;
    width: 100%;
  }
}

@media (max-width: 380px) {
  html.dt-page .home-history-meta {
    grid-template-columns: 1fr;
  }
}

/* ── 16. LARGE DESKTOP ─────────────────────── */
@media (min-width: 1200px) {
  html.dt-page .narrative-section,
  html.dt-page .trusted-section {
    max-width: 1100px;
  }

  html.dt-page .market-beat-frame {
    gap: 52px;
  }

  html.dt-page .ddd-why-frame {
    gap: 28px 48px;
  }
}
