/* ───────────────────────────────────────────────────────────────────────────
   Homepage layout. Tokens, type, buttons, header and footer come from
   brand.css — only section-specific layout lives here.
   ─────────────────────────────────────────────────────────────────────────── */

.btn--sm { min-height: 42px; padding: .5rem 1.05rem; font-size: var(--fs-label); }

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

.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero #forge { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 18% 10%, rgba(255,107,44,.13), transparent 58%),
    linear-gradient(180deg, rgba(7,12,20,.35) 0%, rgba(7,12,20,.82) 72%, var(--bg) 100%);
}
.hero-inner { padding-block: clamp(5rem, 13vw, 9.5rem) clamp(4rem, 8vw, 6.5rem); }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: 1.6rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.4rem; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: 1rem 3rem;
  margin: 3.5rem 0 0; padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-facts dt {
  font-family: var(--mono); font-size: var(--fs-label);
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3);
}
.hero-facts dd { margin: .3rem 0 0; font-weight: 600; font-size: 1.02rem; }

/* ── Point of view ─────────────────────────────────────────────────────── */

.pov-grid { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1rem 3rem; align-items: start; }
.pov-grid .label { margin-top: .5rem; }
@media (max-width: 760px) { .pov-grid { grid-template-columns: 1fr; } }

/* ── Section heads ─────────────────────────────────────────────────────── */

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .lede { margin-top: 1.1rem; }

/* ── Featured system ───────────────────────────────────────────────────── */

.feature {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color .25s ease, transform .25s ease;
}
.feature:hover { border-color: var(--accent); transform: translateY(-3px); }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } }

.feature-media {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background:
    radial-gradient(90% 70% at 20% 0%, rgba(255,107,44,.10), transparent 60%),
    linear-gradient(rgba(80,147,214,.05) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(80,147,214,.05) 1px, transparent 1px) 0 0 / 34px 100%,
    var(--panel-2);
  border-right: 1px solid var(--line);
}
@media (max-width: 880px) { .feature-media { border-right: 0; border-bottom: 1px solid var(--line); } }

.flow { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.flow-node {
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .07em;
  padding: .45rem .7rem; border: 1px solid var(--line-2); border-radius: 7px;
  color: var(--ink-2); background: rgba(7,12,20,.55);
}
.flow-node--hot { color: var(--accent); border-color: rgba(255,107,44,.45); background: var(--accent-dim); }
.flow-arrow { width: 26px; height: 1px; background: linear-gradient(90deg, var(--line-2), var(--accent)); flex: none; }

.feature-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature-stats b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: clamp(1.3rem, 2.6vw, 1.85rem); letter-spacing: -.02em; color: var(--ink);
}
.feature-stats span { display: block; margin-top: .3rem; font-size: var(--fs-label); line-height: 1.45; color: var(--ink-3); }
@media (max-width: 520px) { .feature-stats { grid-template-columns: 1fr; gap: .9rem; } }

.feature-body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; }
.feature-top, .soon-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sys-num { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }

.pill {
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .07em;
  padding: .25rem .6rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-3);
}
.pill--ok { color: var(--ok); border-color: rgba(53,208,138,.4); background: rgba(53,208,138,.09); }

.feature-body p { color: var(--ink-2); }
.feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; font-family: var(--mono); font-size: var(--fs-label); color: var(--ink-3); }
.feature-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }
.feature-cta { margin-top: auto; padding-top: .5rem; font-weight: 600; color: var(--accent); }
.feature-cta b { display: inline-block; transition: transform .2s ease; }
.feature:hover .feature-cta b { transform: translateX(4px); }

/* ── Roadmap cards ─────────────────────────────────────────────────────── */

.soon-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: 1.25rem; }
.soon { padding: 1.5rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(15,25,38,.5); }
.soon h3 { margin: 1rem 0 .6rem; color: var(--ink-2); }
.soon p { color: var(--ink-3); font-size: var(--fs-small); }

/* ── Steps ─────────────────────────────────────────────────────────────── */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { position: relative; padding: 1.4rem 1.25rem; border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 0 0 12px 12px; background: var(--panel); }
.steps b { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .1em; color: var(--accent); }
.steps h3 { margin: .7rem 0 .45rem; font-size: 1.12rem; }
.steps p { color: var(--ink-3); font-size: var(--fs-small); line-height: 1.55; }

/* ── Included cards ────────────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; }
.card { padding: 1.6rem 1.4rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.card b { font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .1em; color: var(--ink-3); }
.card h3 { margin: .8rem 0 .5rem; font-size: 1.12rem; }
.card p { color: var(--ink-2); font-size: var(--fs-small); line-height: 1.6; }

/* ── Workshop ──────────────────────────────────────────────────────────── */

.workshop {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line); border-radius: 18px;
  background: radial-gradient(85% 120% at 0% 0%, rgba(255,107,44,.1), transparent 55%), var(--panel);
}
.workshop .lede { margin: 1.1rem 0 2rem; }
@media (max-width: 820px) { .workshop { grid-template-columns: 1fr; } .workshop-stamp { justify-self: start; } }

.workshop-stamp {
  display: grid; place-items: center; gap: .5rem;
  width: 190px; height: 190px; border-radius: 50%;
  border: 1px dashed var(--line-2);
  font-family: var(--mono); font-size: var(--fs-label); letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); text-align: center;
}
.workshop-stamp b { font-family: var(--display); font-size: 1.3rem; letter-spacing: -.01em; color: var(--accent); text-transform: none; line-height: 1.1; }
