/* ============================================================
   parseapi.dev — Marketing Index page styles
   Editorial, monochrome, modern. Black & white first.
   ============================================================ */

/* ── Local tokens (homepage-scoped) ─────────────────────────── */
.h-page {
  --h-ink:      #050507;
  --h-ink-2:    #1a1a1d;
  --h-ink-3:    #2a2a2e;
  --h-line:     #ececef;
  --h-line-2:   #f1f1f4;
  --h-mute:     #6b7280;
  --h-mute-2:   #9ca3af;
  --h-paper:    #ffffff;
  --h-paper-2:  #fafafa;
  --h-paper-3:  #f4f4f5;

  --h-dark:     #0a0a0b;
  --h-dark-2:   #111114;
  --h-dark-edge:#27272a;

  color: var(--h-ink-2);
}

/* ============================================================
   Section scaffolding & reusable bits
   ============================================================ */
.h-section { padding: 4.5rem 0; position: relative; }
@media (min-width: 768px) { .h-section { padding: 5.5rem 0; } }

.h-rule {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--h-mute);
}
.h-rule::before {
  content: ""; width: 24px; height: 1px; background: var(--h-ink);
}
.h-rule.h-rule-dark { color: #a1a1aa; }
.h-rule.h-rule-dark::before { background: #fff; }

.h-display {
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--h-ink);
}
.h-display-2 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: var(--h-ink);
}
.h-lead {
  font-size: clamp(.98rem, 1.05vw, 1.075rem);
  color: var(--h-mute);
  line-height: 1.65;
}

/* ============================================================
   HERO
   ============================================================ */
.h-hero {
  position: relative;
  overflow: hidden;
  background: var(--h-paper);
  padding: 3rem 0 3.5rem;
}
@media (min-width: 992px) {
  .h-hero { padding: 4rem 0 4.5rem; }
}
.h-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 80% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.h-hero > * { position: relative; z-index: 1; }

.h-hero-chip {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .3rem .7rem .3rem .3rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--h-line);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  font-size: .78rem; font-weight: 500;
  color: var(--h-ink-2);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.h-hero-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,.06); border-color: #d4d4d8; color: var(--h-ink); }
.h-hero-chip-tag {
  display: inline-flex; align-items: center;
  background: var(--h-ink); color: #fff;
  font-size: .58rem; font-weight: 700; letter-spacing: .1em;
  padding: .22rem .5rem; border-radius: 999px;
}
.h-hero-chip i { font-size: .72rem; color: var(--h-mute); }

.h-hero-title {
  font-size: clamp(2.1rem, 4.4vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  color: var(--h-ink);
  margin-top: 1.5rem;
  margin-bottom: 0;
}
.h-hero-title .h-emph { display: inline-block; position: relative; isolation: isolate; padding: 0 .12em; }
.h-hero-title .h-emph::before {
  content: ""; position: absolute;
  top: .08em; bottom: .12em; left: -.02em; right: -.02em;
  background: var(--h-ink); z-index: 0; border-radius: 4px;
  transform: skewX(-6deg);
}
.h-hero-title .h-emph .h-emph-inner { position: relative; z-index: 1; color: #fff; }

.h-hero-lead {
  font-size: clamp(1rem, 1.05vw, 1.075rem);
  color: var(--h-mute);
  line-height: 1.6;
  max-width: 30rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
}
.h-hero-lead strong { color: var(--h-ink); font-weight: 600; }

.h-cta-row { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin-top: 1.75rem; }

.h-btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--h-ink); color: #fff;
  padding: .7rem 1.15rem; border-radius: .55rem;
  font-weight: 600; font-size: .9rem; letter-spacing: -.005em;
  text-decoration: none; border: 1px solid var(--h-ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 16px rgba(0,0,0,.12);
}
.h-btn-primary:hover { transform: translateY(-1px); background: #1a1a1d; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 24px rgba(0,0,0,.16); }
.h-btn-primary i { transition: transform .2s ease; }
.h-btn-primary:hover i { transform: translateX(3px); }

.h-btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--h-ink-2);
  padding: .65rem .9rem; border-radius: .55rem;
  font-weight: 600; font-size: .9rem; letter-spacing: -.005em;
  text-decoration: none; border: 1px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.h-btn-ghost:hover { background: var(--h-paper-3); color: var(--h-ink); }
.h-btn-ghost .h-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: var(--h-paper-3); border: 1px solid var(--h-line); color: var(--h-ink);
  font-size: .62rem;
}

.h-trust { display: flex; flex-wrap: wrap; gap: 1rem 1.25rem; margin-top: 1.5rem; font-size: .78rem; color: var(--h-mute); }
.h-trust span { display: inline-flex; align-items: center; gap: .35rem; }
.h-trust i { color: var(--h-ink); font-size: .78rem; }

.h-hero-vis { position: relative; }

/* ============================================================
   TICKER
   ============================================================ */
.h-ticker {
  border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
  background: var(--h-paper-2);
  padding: .9rem 0;
}
.h-ticker-row {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: .85rem 1.5rem; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem; color: var(--h-mute);
}
.h-ticker-row strong { color: var(--h-ink); font-weight: 600; }
.h-ticker-row .h-tick-sep { width: 4px; height: 4px; border-radius: 999px; background: var(--h-line); display: inline-block; }

/* ============================================================
   OPS BAND
   ============================================================ */
.h-ops {
  background: #0a0a0b;
  color: #e4e4e7;
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0;
}
@media (min-width: 768px) { .h-ops { padding: 4rem 0; } }
.h-ops::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, #000 30%, transparent 80%);
}
.h-ops > * { position: relative; z-index: 1; }

.h-ops-head {
  display: flex; align-items: center; gap: .65rem;
  font-family: 'JetBrains Mono', monospace; font-size: .7rem;
  color: #71717a; letter-spacing: .08em;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 1.75rem;
}
.h-ops-live {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .22rem .55rem; border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff; font-weight: 600; font-size: .62rem; letter-spacing: .14em;
}
.h-ops-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.5);
  animation: hOpsPulse 2.4s infinite;
}
@keyframes hOpsPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

.h-metric { padding: 1.25rem 1.25rem 1.25rem 0; position: relative; }
.h-metric + .h-metric { border-left: 1px solid rgba(255,255,255,.06); padding-left: 1.5rem; }
.h-metric-label {
  display: flex; align-items: center; gap: .45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; color: #71717a; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: .75rem;
}
.h-metric-label i { color: #a1a1aa; font-size: .75rem; }
.h-metric-number {
  font-size: clamp(1.85rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
  margin-bottom: .35rem;
}
.h-metric-number .h-mu { color: #71717a; font-size: .5em; font-weight: 600; margin-left: .15em; letter-spacing: 0; }
.h-metric-desc { font-size: .78rem; color: #a1a1aa; }

.h-spark { display: flex; gap: 3px; align-items: end; height: 16px; margin-top: .75rem; }
.h-spark span { width: 3px; background: rgba(255,255,255,.18); border-radius: 1px; }
.h-spark span.hi { background: #fff; }

@media (max-width: 767.98px) {
  .h-metric { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .h-metric + .h-metric { border-left: 0; padding-left: 0; }
  .h-metric:last-child { border-bottom: 0; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.h-steps { background: var(--h-paper); }

.h-steps-grid {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--h-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 18px 40px -28px rgba(15,23,42,.16);
}
@media (min-width: 768px) {
  .h-steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.h-step {
  position: relative;
  padding: 1.75rem 1.5rem 1.75rem;
  border-bottom: 1px solid var(--h-line);
  overflow: hidden;
  background: #fff;
  display: flex; flex-direction: column;
}
@media (min-width: 768px) {
  .h-step { border-bottom: 0; border-right: 1px solid var(--h-line); padding: 2rem 1.75rem 1.75rem; }
  .h-step:last-child { border-right: 0; }
}
.h-step:last-child { border-bottom: 0; }

.h-step-ghost {
  position: absolute; top: -.2em; right: .3rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 5.5rem; font-weight: 900;
  color: var(--h-paper-3);
  line-height: .85;
  letter-spacing: -.06em;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.h-step > * { position: relative; z-index: 1; }

.h-step-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--h-mute);
}
.h-step-title {
  font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em;
  color: var(--h-ink); margin: .55rem 0 .55rem; line-height: 1.2;
}
.h-step-desc { color: var(--h-mute); font-size: .9rem; line-height: 1.55; margin-bottom: 1.25rem; }

.h-step-mock {
  margin-top: auto;
  background: var(--h-paper-2);
  border: 1px solid var(--h-line);
  border-radius: 10px;
  padding: .85rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  line-height: 1.55;
}
.h-step-mock .h-mock-key { color: var(--h-mute); font-size: .58rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .45rem; }
.h-step-mock .h-mock-url-host { color: var(--h-mute); }
.h-step-mock .h-mock-url-user { color: var(--h-ink); font-weight: 600; }
.h-step-mock .h-mock-url-slash { color: var(--h-mute-2); }
.h-step-mock .h-mock-url-folder { color: var(--h-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--h-ink); text-underline-offset: 3px; }

.h-step-mock .h-bar { display:flex; justify-content:space-between; align-items:center; padding:.3rem 0; font-size:.74rem; }
.h-step-mock .h-bar.h-bar-stack { display: block; }
.h-step-mock .h-bar-row { display:flex; justify-content:space-between; align-items:center; gap: .5rem; }
.h-step-mock .h-bar + .h-bar { border-top: 1px dashed var(--h-line-2); }
.h-step-mock .h-tag-ok { color: var(--h-ink); font-weight: 700; font-size: .65rem; }
.h-step-mock .h-tag-go { color: var(--h-mute); font-weight: 700; font-size: .65rem; letter-spacing: .04em; }

.h-step-mock .h-dots { display: inline-block; min-width: 1em; text-align: left; margin-left: .15em; }
.h-step-mock .h-dots > i {
  font-style: normal;
  display: inline-block;
  opacity: .2;
  animation: hDot 1.4s ease-in-out infinite;
}
.h-step-mock .h-dots > i:nth-child(2) { animation-delay: .18s; }
.h-step-mock .h-dots > i:nth-child(3) { animation-delay: .36s; }
@keyframes hDot {
  0%, 70%, 100% { opacity: .2; transform: translateY(0); }
  35%           { opacity: 1;  transform: translateY(-1px); }
}

.h-step-mock .h-prog {
  position: relative;
  height: 4px;
  background: var(--h-paper-3);
  border-radius: 99px;
  overflow: hidden;
  margin-top: .45rem;
}
.h-step-mock .h-prog > i {
  display: block;
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, transparent 0%, var(--h-ink) 40%, var(--h-ink) 60%, transparent 100%);
  border-radius: 99px;
  transform: translateX(-100%);
  animation: hProg 1.7s cubic-bezier(.4, 0, .2, 1) infinite;
  will-change: transform;
}
@keyframes hProg {
  0%        { transform: translateX(-100%); }
  60%, 100% { transform: translateX(265%); }
}

.h-step-mock.dark {
  background: var(--h-ink);
  border-color: var(--h-ink);
  color: #e4e4e7;
}
.h-step-mock.dark .h-mock-key { color: #71717a; }
.h-step-mock.dark .h-line { color: #d4d4d8; }
.h-step-mock.dark .h-c { color: #71717a; }
.h-step-mock.dark .h-g { color: #34d399; }

/* ============================================================
   WHY DIFFERENT — comparison
   ============================================================ */
.h-compare {
  background: var(--h-paper-2);
  border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
}
.h-compare-table {
  background: #fff;
  border: 1px solid var(--h-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 14px 32px -20px rgba(15,23,42,.14);
}
.h-compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--h-line-2);
}
.h-compare-row:last-child { border-bottom: 0; }
.h-compare-row > * { padding: .95rem 1.1rem; }
.h-compare-feat { font-weight: 600; color: var(--h-ink); font-size: .9rem; }
.h-compare-other, .h-compare-us {
  font-size: .85rem; color: var(--h-ink-2);
  border-left: 1px solid var(--h-line-2);
  display: flex; align-items: center; gap: .5rem;
}
.h-compare-us { background: #0a0a0b; color: #e4e4e7; border-left-color: #0a0a0b; }
.h-compare-us strong { color: #fff; font-weight: 600; }
.h-compare-row.h-compare-head { background: var(--h-paper-2); }
.h-compare-row.h-compare-head .h-compare-feat,
.h-compare-row.h-compare-head .h-compare-other,
.h-compare-row.h-compare-head .h-compare-us {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--h-mute);
  padding-top: .75rem; padding-bottom: .75rem;
}
.h-compare-row.h-compare-head .h-compare-us { color: #f4f4f5; background: #0a0a0b; }
.h-compare-other i { color: var(--h-mute-2); font-size: .95rem; }
.h-compare-us i { color: #fff; font-size: .95rem; }
@media (max-width: 575.98px) {
  .h-compare-row { grid-template-columns: 1fr; }
  .h-compare-row > * { border-left: 0; padding: .8rem 1rem; }
  .h-compare-row.h-compare-head { display: none; }
  .h-compare-feat { background: var(--h-paper-2); font-size: .78rem; }
  .h-compare-other::before { content: "Others — "; color: var(--h-mute); font-weight: 600; margin-right: .25rem; }
  .h-compare-us::before { content: "ParseApi — "; color: #a1a1aa; font-weight: 600; margin-right: .25rem; }
}

/* ============================================================
   EDITABLE EXTRACTIONS
   ============================================================ */
.h-edit-section {
  background: var(--h-paper-2);
  border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
}

.h-edit-pts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .85rem; }
.h-edit-pts li { display: flex; gap: .75rem; align-items: flex-start; }
.h-edit-pts .h-edit-tick {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
  background: var(--h-ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem;
}
.h-edit-pts li strong { color: var(--h-ink); font-weight: 600; display: block; margin-bottom: .1rem; font-size: .92rem; }
.h-edit-pts li span.h-d { color: var(--h-mute); font-size: .85rem; line-height: 1.5; }

.h-edit-frame {
  border-radius: 14px;
  border: 1px solid var(--h-line);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 22px 48px -22px rgba(15,23,42,.18);
}
.h-edit-head {
  display: flex; align-items: center; gap: .5rem;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--h-line);
  background: var(--h-paper-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; color: var(--h-mute);
}
.h-edit-head .h-edit-dots { display: inline-flex; gap: .3rem; margin-right: .4rem; }
.h-edit-head .h-edit-dots span { width: 9px; height: 9px; border-radius: 999px; background: var(--h-paper-3); border: 1px solid var(--h-line); }
.h-edit-body { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 767.98px) { .h-edit-body { grid-template-columns: 1fr; } }

.h-edit-doc {
  padding: 1rem;
  background: var(--h-paper-2);
  border-right: 1px solid var(--h-line);
}
@media (max-width: 767.98px) {
  .h-edit-doc { border-right: 0; border-bottom: 1px solid var(--h-line); }
}
.h-edit-doc-paper {
  background: #fff; border: 1px solid var(--h-line); border-radius: 8px;
  padding: .9rem; font-size: .7rem; line-height: 1.65;
}
.h-edit-doc-paper .h-co { font-weight: 700; letter-spacing: .02em; font-size: .78rem; }
.h-edit-doc-paper .h-addr { color: var(--h-mute); font-size: .65rem; }
.h-edit-doc-paper .h-hi { background: var(--h-ink); color: #fff; padding: 0 .25rem; border-radius: 3px; font-weight: 600; }
.h-edit-doc-paper .h-hi-soft { background: var(--h-paper-3); border: 1px dashed var(--h-line); padding: 0 .25rem; border-radius: 3px; }

.h-edit-json {
  padding: 1rem;
  background: #fff;
  font-family: 'JetBrains Mono', monospace;
  font-size: .74rem;
  line-height: 1.85;
  color: var(--h-ink-2);
}
.h-edit-json .jk { color: var(--h-ink); font-weight: 600; }
.h-edit-json .jc { color: var(--h-mute-2); }
.h-edit-json .js { color: var(--h-ink-2); }
.h-edit-json .jn { color: var(--h-ink-2); }
.h-edit-json .jl-edit {
  display: flex; align-items: center; gap: .5rem;
  background: var(--h-paper-3);
  border: 1px solid var(--h-line);
  border-radius: 6px;
  padding: .2rem .55rem; margin: .2rem -.45rem;
}
.h-edit-json .jl-edit-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: .25rem;
  background: var(--h-ink); color: #fff;
  font-size: .55rem; font-weight: 700; letter-spacing: .1em;
  padding: .12rem .4rem; border-radius: 4px;
  text-transform: uppercase;
}

/* ============================================================
   DEV LOVE — code samples
   ============================================================ */
.h-dev {
  background: var(--h-dark);
  color: #e4e4e7;
  position: relative;
  overflow: hidden;
}
.h-dev::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, #000 30%, transparent 80%);
}
.h-dev > * { position: relative; z-index: 1; }
.h-dev-title { color: #fff; }
.h-dev-lead { color: #a1a1aa; }

.h-tabs { display: flex; gap: .15rem; border-bottom: 1px solid #1f1f23; margin-bottom: 0; flex-wrap: wrap; }
.h-tab {
  background: transparent; color: #71717a;
  border: 0; border-bottom: 2px solid transparent;
  padding: .55rem 1rem; font-size: .78rem; font-weight: 600;
  font-family: 'JetBrains Mono', monospace; letter-spacing: -.005em;
  cursor: pointer; transition: color .15s;
}
.h-tab[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
.h-tab:hover { color: #e4e4e7; }

.h-codeframe {
  border: 1px solid #1f1f23;
  border-radius: 12px;
  overflow: hidden;
  background: #0c0c0e;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
}
.h-codeframe-head {
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem 1rem;
  background: #111114;
  border-bottom: 1px solid #1f1f23;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem; color: #71717a;
}
.h-codeframe-dots { display: inline-flex; gap: .3rem; }
.h-codeframe-dots span { width: 9px; height: 9px; border-radius: 999px; background: #1f1f23; }
.h-codeframe-body {
  padding: 1rem 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  line-height: 1.85;
  color: #d4d4d8;
  overflow-x: auto;
}
.h-codeframe-body .ck { color: #fff; font-weight: 600; }
.h-codeframe-body .cs { color: #d4d4d8; }
.h-codeframe-body .cc { color: #52525b; }
.h-codeframe-body .cu { color: #fff; }
.h-codeframe-body .cf { color: #fff; }
.h-codeframe-body .cg { color: #a1a1aa; }
.h-codeframe-body .cp { color: #71717a; }

.h-codeframe-resp {
  border-top: 1px solid #1f1f23;
  padding: .85rem 1.2rem;
  display: flex; align-items: center; gap: .6rem;
  font-family: 'JetBrains Mono', monospace; font-size: .74rem; color: #a1a1aa;
}
.h-codeframe-resp .h-resp-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .18rem .5rem; border-radius: 5px;
  background: #18181b; color: #fff;
  font-size: .62rem; font-weight: 700; letter-spacing: .08em;
}

/* ============================================================
   USE CASES — monochrome tiles
   ============================================================ */
.h-uc-grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--h-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
@media (min-width: 768px) { .h-uc-grid { grid-template-columns: repeat(4, 1fr); } }

.h-uc {
  position: relative;
  display: flex; flex-direction: column; gap: 1.1rem;
  padding: 1.6rem 1.4rem 1.5rem;
  background: #fff; text-decoration: none;
  border-right: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
  transition: background .25s ease, color .25s ease;
  overflow: hidden;
  min-height: 13.5rem;
}
/* Subtle dot-pattern watermark in the top-right corner of each tile */
.h-uc::before {
  content: ""; position: absolute;
  top: -10px; right: -10px; width: 110px; height: 110px;
  background-image: radial-gradient(circle, rgba(0,0,0,.07) 1px, transparent 1.4px);
  background-size: 10px 10px;
  mask-image: radial-gradient(circle at top right, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at top right, #000 30%, transparent 70%);
  pointer-events: none;
  transition: background-image .25s ease;
}
.h-uc:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) {
  .h-uc { border-right: 1px solid var(--h-line); min-height: 14.5rem; }
  .h-uc:nth-child(2n) { border-right: 1px solid var(--h-line); }
  .h-uc:nth-child(4n) { border-right: 0; }
  .h-uc:nth-last-child(-n + 4) { border-bottom: 0; }
}
@media (max-width: 767.98px) {
  .h-uc:nth-last-child(-n + 2) { border-bottom: 0; }
}

.h-uc-icon {
  position: relative;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--h-ink);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.95rem;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    5px 5px 0 0 rgba(0,0,0,.06);
  transition:
    transform .4s cubic-bezier(.34, 1.56, .64, 1),
    background .25s ease,
    color .25s ease,
    border-radius .4s ease,
    box-shadow .25s ease;
  z-index: 1;
}
.h-uc-icon i { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }

@media (max-width: 575.98px) {
  .h-uc-icon { width: 54px; height: 54px; font-size: 1.65rem; border-radius: 15px; }
  .h-uc { min-height: 11.5rem; }
}

.h-uc-title {
  font-weight: 700; font-size: 1.1rem; color: var(--h-ink);
  letter-spacing: -.018em; margin-top: auto;
}
.h-uc-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; color: var(--h-mute);
  display: inline-flex; align-items: center; gap: .3rem;
  margin-bottom: .25rem;
}
.h-uc-arrow {
  position: absolute; top: 1.4rem; right: 1.3rem;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--h-paper-3); color: var(--h-ink-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem;
  opacity: 0; transform: translate(-6px, 6px);
  transition: opacity .25s ease, transform .25s ease, background .25s ease, color .25s ease;
  z-index: 2;
}

/* Tile hover — inverts to black */
.h-uc:hover {
  background: var(--h-ink);
  color: #fff;
}
.h-uc:hover::before {
  background-image: radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1.4px);
}
.h-uc:hover .h-uc-icon {
  background: #fff;
  color: var(--h-ink);
  transform: rotate(-6deg) scale(1.08);
  border-radius: 22px 14px 20px 16px;
  box-shadow:
    inset 0 1px 0 rgba(0,0,0,.08),
    7px 7px 0 0 rgba(255,255,255,.18);
}
.h-uc:hover .h-uc-icon i { transform: rotate(6deg); /* counter-rotate to keep glyph upright */ }
.h-uc:hover .h-uc-title { color: #fff; }
.h-uc:hover .h-uc-tag { color: #a1a1aa; }
.h-uc:hover .h-uc-arrow { opacity: 1; transform: translate(0,0); background: #fff; color: var(--h-ink); }

/* ============================================================
   PRICING TEASER
   ============================================================ */
.h-pricing { background: var(--h-paper-2); border-top: 1px solid var(--h-line); border-bottom: 1px solid var(--h-line); }

.h-plan {
  background: #fff;
  border: 1px solid var(--h-line);
  border-radius: 14px;
  padding: 1.75rem 1.6rem 1.6rem;
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative;
}
.h-plan:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -18px rgba(15,23,42,.14); border-color: #d4d4d8; }
.h-plan-name { font-family: 'JetBrains Mono', monospace; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--h-ink); }
.h-plan-sub { color: var(--h-mute); font-size: .82rem; margin-top: .35rem; }
.h-plan-price { display: flex; align-items: baseline; gap: .35rem; margin: 1.1rem 0 1.2rem; }
.h-plan-price .h-pp { font-size: clamp(2.25rem, 3.5vw, 2.85rem); font-weight: 800; letter-spacing: -.035em; color: var(--h-ink); line-height: 1; }
.h-plan-price .h-pper { color: var(--h-mute); font-size: .85rem; }
.h-plan ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: flex; flex-direction: column; gap: .5rem; }
.h-plan ul li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--h-ink-2); }
.h-plan ul li i { color: var(--h-ink); font-size: .85rem; }
.h-plan-cta { margin-top: auto; }

.h-plan.dark {
  background: var(--h-ink);
  border-color: var(--h-ink);
  color: #e4e4e7;
}
.h-plan.dark:hover { box-shadow: 0 22px 48px -22px rgba(0,0,0,.5); }
.h-plan.dark .h-plan-name { color: #fff; }
.h-plan.dark .h-plan-sub { color: #a1a1aa; }
.h-plan.dark .h-plan-price .h-pp { color: #fff; }
.h-plan.dark .h-plan-price .h-pper { color: #71717a; }
.h-plan.dark ul li { color: #e4e4e7; }
.h-plan.dark ul li i { color: #fff; }
.h-plan-pop {
  position: absolute; top: -.7rem; right: 1.25rem;
  display: inline-flex; align-items: center; gap: .35rem;
  background: #fff; color: var(--h-ink);
  padding: .25rem .6rem; border-radius: 999px;
  font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 0 5px 14px rgba(0,0,0,.15);
}
.h-plan-pop::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--h-ink); }

.h-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%;
  background: #fff; color: var(--h-ink);
  border: 1px solid var(--h-line);
  border-radius: .55rem; padding: .65rem 1rem;
  font-weight: 600; font-size: .85rem; text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.h-btn-outline:hover { background: var(--h-paper-2); border-color: #d4d4d8; color: var(--h-ink); transform: translateY(-1px); }

.h-btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  width: 100%;
  background: #fff; color: var(--h-ink);
  border: 1px solid #fff;
  border-radius: .55rem; padding: .7rem 1rem;
  font-weight: 700; font-size: .88rem; text-decoration: none;
  transition: transform .15s, box-shadow .15s;
}
.h-btn-light:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.22); color: var(--h-ink); }
.h-btn-light i { transition: transform .2s; }
.h-btn-light:hover i { transform: translateX(3px); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.h-final {
  position: relative;
  overflow: hidden;
  background: #050507;
  color: #f4f4f5;
  padding: 4.5rem 0 5rem;
}
@media (min-width: 768px) { .h-final { padding: 5.5rem 0 6rem; } }
.h-final::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 30%, transparent 80%);
}
.h-final::after {
  content: ""; position: absolute; top: -20%; left: 50%; width: 80%; height: 100%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(255,255,255,.06), transparent 70%);
  pointer-events: none;
}
.h-final > * { position: relative; z-index: 1; }
.h-final-title {
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .98;
  color: #fff;
}
.h-final-lead {
  color: #a1a1aa;
  font-size: clamp(1rem, 1.05vw, 1.075rem);
  max-width: 32rem;
  margin: 1.25rem auto 2rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .h-step-mock .h-prog > i,
  .h-step-mock .h-dots > i,
  .h-ops-live-dot {
    animation: none !important;
  }
  .h-step-mock .h-prog > i { transform: translateX(40%); }
  .h-step-mock .h-dots > i { opacity: 1; }
}

/* ============================================================
   AI PROVIDERS SHOWCASE
   ============================================================ */
.h-providers { background: var(--h-paper); }

.h-prov-grid {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  border: 1px solid var(--h-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 18px 40px -28px rgba(15,23,42,.14);
}
@media (min-width: 640px) { .h-prov-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .h-prov-grid { grid-template-columns: repeat(5, 1fr); } }

.h-prov {
  position: relative;
  padding: 1.5rem 1.25rem 1.35rem;
  background: #fff;
  border-bottom: 1px solid var(--h-line);
  display: flex; flex-direction: column; gap: .75rem;
  min-height: 9.5rem;
  transition: background .2s ease;
}
@media (min-width: 640px) {
  .h-prov { border-right: 1px solid var(--h-line); }
  .h-prov:nth-child(2n) { border-right: 0; }
}
@media (min-width: 992px) {
  .h-prov { border-right: 1px solid var(--h-line); }
  .h-prov:nth-child(2n) { border-right: 1px solid var(--h-line); }
  .h-prov:last-child { border-right: 0; }
  .h-prov { border-bottom: 0; }
}
.h-prov:last-child { border-bottom: 0; }
.h-prov:hover { background: var(--h-paper-2); }

.h-prov-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--h-ink);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: .95rem; font-weight: 700;
  letter-spacing: -.02em;
}
.h-prov-name { font-weight: 700; font-size: 1rem; color: var(--h-ink); letter-spacing: -.015em; }
.h-prov-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; color: var(--h-mute);
  margin-top: auto;
}
.h-prov-status {
  position: absolute; top: 1rem; right: 1rem;
  display: inline-flex; align-items: center; gap: .3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .58rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-mute);
}
.h-prov-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px;
  background: var(--h-ink);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.h-quotes { background: var(--h-paper); }

.h-quote-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .h-quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .h-quote-grid { grid-template-columns: repeat(3, 1fr); } }

.h-quote {
  position: relative;
  padding: 1.85rem 1.65rem 1.5rem;
  background: #fff;
  border: 1px solid var(--h-line);
  border-radius: 16px;
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.h-quote:hover {
  transform: translateY(-2px);
  border-color: #d4d4d8;
  box-shadow: 0 18px 36px -22px rgba(15,23,42,.15);
}
.h-quote-mark {
  position: absolute; top: .35rem; left: 1.2rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 5rem; font-weight: 800; line-height: .8;
  color: var(--h-paper-3);
  user-select: none; pointer-events: none;
}
.h-quote-body {
  position: relative;
  font-size: 1.02rem; line-height: 1.55;
  color: var(--h-ink); font-weight: 500;
  letter-spacing: -.012em;
  margin: 1.5rem 0 1.5rem;
  flex: 1;
}
.h-quote-foot {
  display: flex; align-items: center; gap: .75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--h-line-2);
}
.h-quote-avatar {
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--h-ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: .78rem; font-weight: 700;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.h-quote-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.h-quote-name { font-weight: 600; font-size: .9rem; color: var(--h-ink); }
.h-quote-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; color: var(--h-mute);
  margin-top: .15rem;
}
.h-quote-note {
  text-align: center; margin-top: 2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; color: var(--h-mute-2);
  letter-spacing: .12em; text-transform: uppercase;
}

/* ============================================================
   STATS (animated numbers)
   ============================================================ */
.h-stats {
  background: var(--h-paper);
  border-top: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
}

.h-stats-grid {
  display: grid; gap: 0;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .h-stats-grid { grid-template-columns: repeat(4, 1fr); } }

.h-stat {
  padding: 2rem 1.25rem;
  text-align: center;
  border-right: 1px solid var(--h-line);
  border-bottom: 1px solid var(--h-line);
}
.h-stat:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) {
  .h-stat { border-right: 1px solid var(--h-line); border-bottom: 0; padding: 2.5rem 1.5rem; }
  .h-stat:nth-child(2n) { border-right: 1px solid var(--h-line); }
  .h-stat:last-child { border-right: 0; }
}
@media (max-width: 767.98px) {
  .h-stat:nth-last-child(-n + 2) { border-bottom: 0; }
}

.h-stat-num {
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .95;
  color: var(--h-ink);
  font-variant-numeric: tabular-nums;
}
.h-stat-num .h-stat-suffix {
  font-size: .55em; color: var(--h-mute); font-weight: 700; margin-left: .08em;
}
.h-stat-label {
  margin-top: .75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-mute);
}
.h-stat-sub {
  margin-top: .35rem;
  font-size: .85rem;
  color: var(--h-mute);
}

/* ============================================================
   FAQ
   ============================================================ */
.h-faq { background: var(--h-paper); }

.h-faq-list {
  border: 1px solid var(--h-line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.03), 0 18px 40px -28px rgba(15,23,42,.14);
}

.h-faq-item {
  border-bottom: 1px solid var(--h-line-2);
}
.h-faq-item:last-child { border-bottom: 0; }
.h-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--h-ink);
  letter-spacing: -.012em;
  transition: background .15s ease;
}
.h-faq-item summary::-webkit-details-marker { display: none; }
.h-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--h-paper-3);
  color: var(--h-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 500; line-height: 1;
  transition: transform .25s ease, background .15s ease;
}
.h-faq-item[open] summary::after { content: "−"; background: var(--h-ink); color: #fff; }
.h-faq-item summary:hover { background: var(--h-paper-2); }
.h-faq-item summary:hover::after { background: var(--h-line); }
.h-faq-item[open] summary:hover::after { background: var(--h-ink); }
.h-faq-body {
  padding: 0 1.4rem 1.4rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--h-mute);
}
.h-faq-body strong { color: var(--h-ink); font-weight: 600; }
.h-faq-body code {
  font-size: .85em;
  background: var(--h-paper-3);
  padding: .05em .35em;
  border-radius: 4px;
  color: var(--h-ink);
  border: 1px solid var(--h-line);
}

@media (prefers-reduced-motion: reduce) {
  .h-faq-item summary::after { transition: none; }
}
