/* css/home.css: the landing page. */

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: max(640px, 100svh);
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--cobalt-deep); color: var(--glaze); overflow: hidden;
}
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 78% 30%; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 24, 74, 0.82) 0%, rgba(8, 24, 74, 0.45) 42%, rgba(8, 24, 74, 0) 70%),
    linear-gradient(0deg, rgba(8, 24, 74, 0.7) 0%, rgba(8, 24, 74, 0) 40%);
}
.hero-in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 40px;
  padding-top: calc(var(--nav-h) + 80px); padding-bottom: 28px;
}
.hero-copy { max-width: 760px; }
.hero-kicker { color: var(--gilt-2); margin-bottom: 22px; }
.hero-kicker span { color: rgba(246, 243, 235, 0.5); }
.hero h1 { color: #fff; font-weight: 400; }
.hero .lede { color: rgba(246, 243, 235, 0.86); margin-top: 24px; max-width: 44ch; }
.hero .lede b { color: #fff; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.summon {
  width: 340px; padding: 16px 16px 14px;
  background: rgba(246, 243, 235, 0.96); color: var(--ink);
  border: 1px solid rgba(246, 243, 235, 0.9);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(246, 243, 235, 0.08);
  margin-bottom: 6px;
}
.summon-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.summon-count { font: 500 11px var(--mono); color: var(--muted); }
.summon-line { font: 400 22px/1.3 var(--serif); padding: 16px 0 18px; min-height: 64px; color: var(--ink); }
.summon-at { color: var(--cobalt-2); }
.caret { display: inline-block; width: 1.5px; height: 1.05em; background: var(--cobalt); margin-left: 2px; vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.summon-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font: 500 11.5px var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--cobalt); }
.btn-mini { background: var(--cobalt); color: var(--glaze); padding: 8px 14px; border-radius: 999px; letter-spacing: 0.04em; }

.hero-status {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  padding-top: 16px; padding-bottom: 22px;
  border-top: 1px solid rgba(246, 243, 235, 0.18);
  font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(246, 243, 235, 0.8);
}
.hs-item { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; }
  .summon { width: 100%; max-width: 420px; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; }
  .hero-art img { object-position: 70% 20%; }
  .hero-shade { background: linear-gradient(0deg, rgba(8, 24, 74, 0.94) 10%, rgba(8, 24, 74, 0.55) 55%, rgba(8, 24, 74, 0.25) 100%); }
  .hero-in { padding-top: calc(var(--nav-h) + 200px); gap: 28px; }
  .hero h1 { font-size: 50px; }
  .summon-line { font-size: 20px; }
}

/* ---------------------------------------------------------------- how */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.how h2 { margin-top: 18px; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.step-n { font: 500 12px/1.9 var(--mono); color: var(--gilt); letter-spacing: 0.06em; }
.steps h3 { color: var(--cobalt-deep); margin-bottom: 8px; }
.steps p { color: var(--ink-2); }
.steps .cmd { padding: 3px 7px; font-size: 12.5px; }

.thread { margin: 0; display: grid; justify-items: stretch; }
.t-post { position: relative; background: var(--paper); border: 1px solid var(--line-2); padding: 18px 18px 16px; box-shadow: 0 18px 40px -30px rgba(10, 29, 85, 0.4); }
.t-post.you { margin-left: 36px; }
.t-post.agent { margin-left: 72px; border-color: var(--cobalt); box-shadow: 0 0 0 4px var(--wash), 0 24px 50px -30px rgba(10, 29, 85, 0.55); }
.t-link { width: 1px; height: 22px; background: var(--line-2); margin-left: 34px; }
.t-post.you + .t-link { margin-left: 70px; }
.t-who { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.t-ava { width: 30px; height: 30px; border-radius: 50%; background: var(--wash-2); flex: none; }
.t-bars, .t-body { display: grid; gap: 7px; flex: 1; }
.t-bars i, .t-body i { display: block; height: 8px; background: var(--wash-2); }
.t-body i { background: #e2e7f1; }
.agent .t-body i { background: rgba(33, 80, 184, 0.16); }
.t-name { font: 600 14px var(--sans); color: var(--ink); }
.t-name em { font-style: normal; font-weight: 400; color: var(--muted); }
.t-text { font: 400 19px/1.3 var(--serif); }
.t-text b { color: var(--cobalt-2); font-weight: 400; }
.t-sig { margin-top: 12px; font: 500 12px var(--mono); color: var(--cobalt); }
.t-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.t-tools .pill { font-size: 10px; padding: 5px 7px; }
.t-tag { position: absolute; top: -9px; right: 12px; background: var(--paper); padding: 0 6px; font-size: 10px; }

@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .t-post.agent { margin-left: 48px; }
  .t-post.you { margin-left: 24px; }
}

/* ---------------------------------------------------------------- agents */
.agents { background: var(--glaze); }
.agents .lede { max-width: 36ch; }
.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.agent {
  position: relative; display: flex; flex-direction: column;
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  background: var(--paper); text-decoration: none; color: inherit;
  transition: background 0.2s;
}
.agent:hover { background: #fff; }
.agent-art { position: relative; margin: 22px 22px 0; aspect-ratio: 4 / 4.2; overflow: hidden; border-radius: 999px 999px 0 0; background: var(--wash); outline: 1px solid var(--gilt); outline-offset: 5px; }
.agent-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.agent:hover .agent-art img { transform: scale(1.04); }
.agent-body { padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.agent-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.agent h3 { font-size: 34px; color: var(--cobalt-deep); }
.agent .agent-title { font: italic 400 17px var(--serif); color: var(--muted); }
.agent p { color: var(--ink-2); }
.agent .reads { font-size: 14px; color: var(--muted); }
.agent-foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.agent .count { font: 500 11px var(--mono); color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 1000px) { .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .agent-grid { grid-template-columns: 1fr; }
  .agent-art { aspect-ratio: 4 / 3.4; }
}

/* ---------------------------------------------------------------- credits */
.credits { background: var(--wash); }
.credits-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.credits h2 { margin: 18px 0 22px; }
.credits-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.ledger { padding: 6px 22px 20px; }
.ledger-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.ledger-row.head { align-items: center; }
.ledger-row span { color: var(--ink-2); }
.ledger-row b { font: 500 15px var(--mono); color: var(--cobalt-deep); text-align: right; }
.ledger-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) { .credits-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- latest */
.latest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.latest-list .empty { grid-column: 1 / -1; }
.rp { background: var(--paper); border: 1px solid var(--line-2); padding: 18px; display: grid; gap: 12px; }
.rp-q { font: 400 18px/1.3 var(--serif); color: var(--ink); }
.rp-q b { color: var(--cobalt-2); font-weight: 400; }
.rp-a { white-space: pre-wrap; color: var(--ink-2); border-left: 2px solid var(--gilt); padding-left: 12px; }
.rp-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 11px var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.rp-meta a { color: var(--cobalt); }
@media (max-width: 800px) { .latest-list { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- rules */
.rules { background: var(--glaze); }
.rule-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.rule { padding: 26px 22px 30px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--paper); }
.rule-n { display: block; color: var(--gilt); font-size: 13px; margin-bottom: 40px; }
.rule h3 { color: var(--cobalt-deep); margin-bottom: 12px; font-size: 26px; }
.rule p { color: var(--ink-2); }
@media (max-width: 1000px) { .rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rule-grid { grid-template-columns: 1fr; } .rule-n { margin-bottom: 20px; } }

/* ---------------------------------------------------------------- band */
.band { position: relative; overflow: hidden; background: var(--cobalt-deep); color: var(--glaze); min-height: 560px; display: flex; align-items: center; }
.band-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.band-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 24, 74, 0.92) 0%, rgba(8, 24, 74, 0.7) 45%, rgba(8, 24, 74, 0.15) 100%); }
.band-in { position: relative; padding-top: 96px; padding-bottom: 96px; }
.band .label { color: var(--gilt-2); margin-bottom: 18px; }
.band h2 { color: #fff; }
.band .lede { color: rgba(246, 243, 235, 0.84); margin-top: 20px; }

/* ---------------------------------------------------------------- faq */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.faq h2 { margin-top: 18px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font: 400 21px/1.3 var(--serif); color: var(--cobalt-deep);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; right: 4px; top: 18px; font: 300 26px var(--sans); color: var(--cobalt); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 24px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.agent .cmd { white-space: normal; line-height: 1.35; max-width: 100%; }
