/* =====================================================
   Homepage-only styles. Builds on the tokens in style.css.
   ===================================================== */

.h-hero { padding-bottom: 72px; }
.h-hero .lead { max-width: 40ch; }

/* ---- Live rule gate ------------------------------------------------- */
.h-gate {
  margin-top: 2.6rem;
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.86rem;
}
.h-gate-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.h-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--matrix-good);
  animation: pulseRing 2s ease-out infinite;
  flex: 0 0 auto;
}
.h-gate-log {
  list-style: none;
  margin: 0;
  padding: 0.6rem 1rem 0.8rem;
  height: 10.6rem;
  overflow: hidden;
}
.h-gate-log li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.28rem 0;
  animation: fadeInUp 420ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.h-gate-log .act { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-gate-log .ok { color: var(--matrix-good); font-weight: 700; flex: 0 0 auto; }
.h-gate-log .no { color: var(--matrix-bad); font-weight: 700; flex: 0 0 auto; }

/* ---- Numbers strip -------------------------------------------------- */
.h-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 44px 0;
}
.h-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.h-stat-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.h-stat-label {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* ---- Who cards ------------------------------------------------------ */
.h-who {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.h-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.h-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: var(--shadow); }
.h-card-eyebrow {
  font: 600 0.74rem/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 0.8rem;
}
.h-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; line-height: 1.3; }
.h-card p { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.97rem; line-height: 1.55; }
.h-more { font-size: 0.92rem; font-weight: 600; color: var(--brand); }

/* ---- Comparison table ----------------------------------------------- */
.h-sub { margin-top: 3.4rem; margin-bottom: 1.2rem; }
.h-sub h3 { font-size: clamp(1.3rem, 1.4vw + 0.9rem, 1.75rem); color: var(--brand); margin: 0; }
.h-table-wrap { overflow-x: auto; }
.h-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.h-table th, .h-table td { padding: 0.62em 0.7em; }
.h-table thead tr { border-bottom: 2px solid var(--border-strong); }
.h-table th { font-weight: 700; text-align: center; vertical-align: bottom; min-width: 6.5em; }
.h-table th:first-child, .h-table td:first-child { text-align: left; }
.h-table th span { display: block; font-weight: 400; font-size: 0.76rem; color: var(--text-faint); }
.h-table th.is-us { color: var(--matrix-good); font-family: 'JetBrains Mono', ui-monospace, monospace; }
.h-table tbody tr { border-bottom: 1px solid var(--border); }
.h-table td { text-align: center; font-weight: 700; }
.h-table td:first-child { font-weight: 500; }
.h-table .yes { color: var(--matrix-good); }
.h-table .no { color: var(--matrix-bad); }
.h-table .part { color: var(--text-faint); }
.h-table tbody tr:hover { background: var(--surface); }
.h-note {
  max-width: 900px;
  margin: 0.9em auto 0;
  color: var(--text-faint);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* ---- Proof ---------------------------------------------------------- */
.h-proof {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: center;
}
.h-proof > * { min-width: 0; }
.h-try { margin-top: 1.4rem; margin-bottom: 0.6rem; }
.h-cmd {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.h-cmd code {
  min-width: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  padding: 0.6em 0.9em;
  overflow-x: auto;
  white-space: nowrap;
}
.h-copy {
  border: 0;
  border-left: 1px solid var(--border-strong);
  background: var(--info-bg);
  color: var(--brand);
  font-weight: 600;
  padding: 0.6em 0.9em;
  cursor: pointer;
}
.h-copy:hover { background: var(--surface-2); }
.h-small { color: var(--text-muted); font-size: 0.92rem; margin-top: 1rem; }
.h-center { text-align: center; }

.h-score {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.h-score-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr 3.6rem;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
}
.h-score-row + .h-score-row { margin-top: 1.1rem; }
.h-score-row b { font-family: 'JetBrains Mono', ui-monospace, monospace; text-align: right; color: var(--matrix-bad); }
.h-score-row.is-us b { color: var(--matrix-good); }
.h-bar { height: 12px; border-radius: 999px; background: var(--bg-alt); border: 1px solid var(--border); overflow: hidden; }
.h-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--matrix-good);
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.h-score.in-view .h-bar i { width: var(--w); }

/* ---- Hardware ------------------------------------------------------- */
.h-hw {
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(255,255,255,0.10) 0%, transparent 55%),
    linear-gradient(120deg, #082F49 0%, #075985 60%, #0369A1 130%);
  color: #fff;
}
.h-hw h2 { color: #fff; }
.h-hw p, .h-hw li { color: rgba(255,255,255,0.86); }
.h-hw .tm { font-size: 0.42em; vertical-align: super; }
.h-hw-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}
.h-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 700 0.72rem/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.h-hw-facts { margin: 1.2rem 0 1.6rem; padding-left: 1.1rem; line-height: 1.7; }
.h-hw .btn-primary { background: #fff; color: #075985; }
.h-hw .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.55); background: transparent; }
.h-hw-visual { display: flex; justify-content: center; }
.h-hw-visual img {
  width: 100%;
  max-width: 340px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.h-hw-visual img:hover { transform: rotate(-2deg) scale(1.03); }

/* ---- Compliance ----------------------------------------------------- */
.h-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2.2rem; }
.h-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.h-pillars > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1.1rem;
}
.h-pillars h3 { margin: 0 0 0.45rem; font-size: 1.05rem; color: var(--brand); }
.h-pillars p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* ---- Responsive ----------------------------------------------------- */
@media (max-width: 900px) {
  .h-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .h-proof, .h-hw-grid { grid-template-columns: 1fr; gap: 2rem; }
  .h-hw-visual { order: -1; }
  .h-hw-visual img { max-width: 240px; }
  .h-pillars { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .h-stats-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .h-score-row { grid-template-columns: 6rem 1fr 3.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .h-dot { animation: none; }
  .h-gate-log li { animation: none; }
  .h-bar i { transition: none; }
  .h-card, .h-hw-visual img { transition: none; }
}

/* Legacy inbound anchors (#compare, #security) */
.h-anchor { display: block; position: relative; top: -80px; }

/* Bottom call to action: preorder first, email second */
.h-cta-actions { justify-content: center; }
.section-cta .h-cta-actions .btn-secondary { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.6); box-shadow: none; }
.section-cta .h-cta-actions .btn-secondary:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.h-hw-link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* NVIDIA Inception card (landing page only, per NVIDIA's badge guidelines) */
.h-eco { padding: 56px 0 8px; }
.h-eco-card { max-width: 420px; margin: 0 auto; text-align: center; }
.h-eco-card img { display: block; height: 64px; width: auto; margin: 0 auto 1rem; }
/* The Enclawed logo beside the NVIDIA Inception badge: the nav's own lockup
   (mark and mono wordmark, same theme swap) at a little more than the badge's
   height, well apart from it; the row is wider than the text below it and
   stacks on narrow screens. */
.h-eco-card:has(.h-eco-logos) { max-width: 600px; }
.h-eco-card:has(.h-eco-logos) :is(h3, p) { max-width: 420px; margin-inline: auto; }
.h-eco-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.25rem 3rem; margin: 0 auto 1rem; }
.h-eco-logos img { margin: 0; }
.h-eco-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--brand); font-size: 2.1rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.h-eco-card .h-eco-mark { height: 72px; width: auto; }
.h-eco-mark.logo-dark { display: none; }
[data-theme="dark"] .h-eco-mark.logo-light { display: none; }
[data-theme="dark"] .h-eco-mark.logo-dark { display: block; }
.h-eco-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.h-eco-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* News pill above the hero tag (text only; the badge lives in the card below) */
.h-news {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 100%;
  margin: 0 auto 1.1rem;
  padding: 0.35rem 0.85rem 0.35rem 0.4rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--transition);
}
.h-news:hover { border-color: var(--brand); }
.h-news-label {
  flex: 0 0 auto;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: 700 0.7rem/1.2 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
[data-theme="dark"] .h-news-label { color: #082F49; }
.h-hero .hero-container { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 520px) { .h-news { border-radius: 14px; text-align: left; } }
.h-news-date { flex: 0 0 auto; color: var(--text-muted); font-size: 0.82rem; }
@media (max-width: 520px) { .h-news { flex-wrap: wrap; row-gap: 0.3rem; padding: 0.5rem 0.8rem; } .h-news > span[aria-hidden] { display: none; } }

/* Independent checks under the proof copy */
.h-checked { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
.h-checked-item { border-left: 3px solid var(--matrix-good); padding: 0.2rem 0 0.2rem 0.9rem; }
.h-checked-title { font-weight: 700; color: var(--matrix-good); font-size: 0.95rem; margin-bottom: 0.3rem; }
.h-checked-item p { margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
@media (max-width: 720px) { .h-checked { grid-template-columns: 1fr; } }
.h-checked-item a { color: var(--brand); font-weight: 600; }
.h-checked-wide { grid-column: 1 / -1; }
.h-score-head { font-weight: 700; color: var(--text); margin-bottom: 1.1rem; }
.h-score-note { margin: 1.2rem 0 0; color: var(--text-faint); font-size: 0.8rem; line-height: 1.5; }
.h-eco-card p a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.h-eco-card p a:hover { text-decoration-thickness: 2px; }
.h-small a { color: var(--brand); font-weight: 600; }
