/* Homepage (layout: landing). Scoped to .hp and .layout--landing. */

.layout--landing {
  --hp-bg: #0b0d12;
  --hp-bg2: #0f1219;
  --hp-card: #141821;
  --hp-card2: #1a1f2b;
  --hp-line: rgba(255, 255, 255, 0.08);
  --hp-line2: rgba(255, 255, 255, 0.14);
  --hp-text: #e9ecf2;
  --hp-muted: #9aa3b5;
  --hp-faint: #6b7385;
  --hp-accent: #8b9cff;
  --hp-accent2: #5eead4;
  --hp-ok: #34d399;
  --hp-warn: #fbbf24;
  --hp-bad: #fb7185;
  background: var(--hp-bg);
}

.layout--landing .masthead {
  background: rgba(11, 13, 18, 0.85);
  border-bottom: 1px solid var(--hp-line);
}
.layout--landing .greedy-nav { background: transparent; }
.layout--landing .site-logo img { border-radius: 8px; }
.layout--landing .site-title { color: #e9ecf2; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin-left: 12px; }
.layout--landing .page__footer {
  background: var(--hp-bg);
  border-top: 1px solid var(--hp-line);
  margin-top: 0;
}

.hp {
  overflow-x: clip;
  font-size: 16px;
  line-height: 1.6;
  color: var(--hp-text);
  -webkit-font-smoothing: antialiased;
}
.hp *, .hp *::before, .hp *::after { box-sizing: border-box; }
.hp h1, .hp h2, .hp h3 { color: var(--hp-text); margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.hp p { margin: 0; }
.hp ul, .hp ol { margin: 0; padding: 0; list-style: none; }
.hp a { color: var(--hp-accent); text-decoration: none; }
.hp a:hover { text-decoration: underline; }
.hp svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .hp-wrap { padding: 0 16px; } }

/* Buttons */
.hp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hp-cta--center { justify-content: center; }
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.hp a.hp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.hp a.hp-btn--primary { background: var(--hp-text); color: var(--hp-bg); }
.hp a.hp-btn--primary:hover { background: #fff; }
.hp a.hp-btn--ghost { color: var(--hp-text); border-color: var(--hp-line2); background: rgba(255,255,255,0.03); }
.hp a.hp-btn--ghost:hover { border-color: rgba(255,255,255,0.3); }

/* Hero */
.hp-hero {
  position: relative; overflow: hidden;
  padding: 96px 0 104px;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(139,156,255,0.16), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(94,234,212,0.10), transparent 60%),
    var(--hp-bg);
}
.hp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--hp-line) 1px, transparent 1px), linear-gradient(90deg, var(--hp-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse at 60% 30%, #000 0%, transparent 70%);
  opacity: .5;
}
.hp-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: 56px; align-items: center; }
.hp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--hp-muted);
  padding: 6px 12px; border: 1px solid var(--hp-line2); border-radius: 999px; background: rgba(255,255,255,0.03);
}
.hp-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--hp-ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: hp-pulse 2s infinite; }
@keyframes hp-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); } 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hp-hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin-top: 24px; letter-spacing: -0.035em; line-height: 1.04; }
.hp .hp-lede { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--hp-muted); max-width: 34em; }

@media (max-width: 920px) {
  .hp-hero { padding: 64px 0 72px; }
  .hp-hero__grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
}

/* Sections */
.hp-section { padding: 96px 0; border-top: 1px solid var(--hp-line); }
.hp-section--alt { background: var(--hp-bg2); }
.hp-section--tight { padding: 56px 0; }
@media (max-width: 600px) { .hp-section { padding: 64px 0; } }
.hp-head { max-width: 720px; margin-bottom: 48px; }
.hp-head h2, .hp-games h2, .hp-contact h2 { font-size: clamp(28px, 3.4vw, 40px); }
.hp-head > p:not(.hp-kicker) { margin-top: 16px; color: var(--hp-muted); font-size: 17px; }
.hp-kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-accent2); margin-bottom: 14px !important; }

.hp-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 860px) { .hp-grid3 { grid-template-columns: minmax(0,1fr); } }
.hp-tile { padding: 28px; border: 1px solid var(--hp-line); border-radius: 16px; background: linear-gradient(180deg, var(--hp-card), var(--hp-bg)); }
.hp-tile h3 { font-size: 19px; margin-top: 18px; }
.hp-tile p { margin-top: 8px; color: var(--hp-muted); font-size: 15.5px; }
.hp-icon { display: inline-flex; width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--hp-accent); background: rgba(139,156,255,0.1); border: 1px solid rgba(139,156,255,0.2); }
.hp-note { margin-top: 32px !important; color: var(--hp-text); font-size: 17px; font-weight: 500; }

/* Focus rows */
.hp-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: center; }
.hp-row + .hp-row { margin-top: 96px; }
.hp-row--flip .hp-row__copy { order: 2; }
.hp-step { font-size: 13px; font-weight: 600; color: var(--hp-faint); letter-spacing: .04em; }
.hp-row h3 { font-size: clamp(24px, 2.6vw, 32px); margin-top: 10px; }
.hp-row__copy > p:not(.hp-step):not(.hp-ref) { margin-top: 16px; color: var(--hp-muted); font-size: 17px; }
.hp-ref { margin-top: 24px !important; padding: 16px 18px; border: 1px solid var(--hp-line); border-left: 3px solid var(--hp-accent); border-radius: 10px; background: rgba(255,255,255,0.02); font-size: 15px; color: var(--hp-muted); }
.hp-ref__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-faint); margin-bottom: 6px; }
.hp-ref a { font-weight: 600; }
.hp-ref__link { white-space: nowrap; }
@media (max-width: 920px) {
  .hp-row { grid-template-columns: minmax(0,1fr); gap: 32px; }
  .hp-row + .hp-row { margin-top: 72px; }
  .hp-row--flip .hp-row__copy { order: 0; }
}

/* Demo cards */
.hp-card {
  position: relative; border: 1px solid var(--hp-line2); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--hp-card2), var(--hp-card));
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.2);
  font-size: 14px; min-width: 0;
}
.hp-card__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--hp-line); font-size: 13px; color: var(--hp-muted); }
.hp-card__title { font-weight: 600; color: var(--hp-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-lights { display: inline-flex; gap: 6px; }
.hp-lights i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.hp-tag { margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--hp-faint); border: 1px solid var(--hp-line2); border-radius: 999px; padding: 2px 8px; }

.hp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.hp-pill--run { color: var(--hp-muted); border-color: var(--hp-line2); }
.hp-pill--ok { color: var(--hp-ok); background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.25); }
.hp-pill--warn { color: var(--hp-warn); background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.25); }
.hp-pill--bad { color: var(--hp-bad); background: rgba(251,113,133,.1); border-color: rgba(251,113,133,.25); }
.hp-spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--hp-text); animation: hp-spin .7s linear infinite; }
@keyframes hp-spin { to { transform: rotate(360deg); } }
@keyframes hp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Feed */
.hp-feed__list { padding: 8px; height: 372px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; }
.hp-feed__item { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; animation: hp-in .4s ease both; transition: opacity .4s ease, background .4s ease; }
.hp-feed__item.is-new { background: rgba(255,255,255,0.035); }
.hp-feed__item.is-out { animation: hp-out .4s ease both; }
@keyframes hp-out { to { opacity: 0; transform: translateY(6px); } }
.hp-feed__icon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: rgba(255,255,255,.05); color: var(--hp-muted); }
.hp-feed__icon--char { padding: 0; overflow: hidden; background: rgba(242,19,104,.12); box-shadow: inset 0 0 0 1px rgba(242,19,104,.35); }
.hp-feed__icon--char img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hp-feed__text { min-width: 0; }
.hp-feed__text b { display: block; font-weight: 600; color: var(--hp-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-feed__text span { display: block; font-size: 12.5px; color: var(--hp-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Guard */
.hp-guard__req { display: grid; gap: 4px; margin: 16px; padding: 14px 16px; border-radius: 12px; background: rgba(139,156,255,0.07); border: 1px solid rgba(139,156,255,0.18); }
.hp-guard__label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-accent); }
.hp-guard__action { font-size: 16px; font-weight: 600; color: var(--hp-text); min-height: 1.5em; }
.hp-guard__meta { display: flex; justify-content: space-between; gap: 12px; color: var(--hp-muted); font-size: 13px; min-height: 1.5em; }
.hp-guard__meta [data-f="amt"] { font-variant-numeric: tabular-nums; color: var(--hp-text); font-weight: 600; }
.hp-checks { padding: 0 16px !important; display: grid; gap: 8px; }
.hp-checks li { display: grid; grid-template-columns: 22px 84px minmax(0,1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--hp-line); opacity: .45; transition: opacity .3s ease, border-color .3s ease; }
.hp-checks li.is-run, .hp-checks li.is-ok, .hp-checks li.is-bad, .hp-checks li.is-skip { opacity: 1; }
.hp-checks li.is-ok { border-color: rgba(52,211,153,.25); }
.hp-checks li.is-bad { border-color: rgba(251,113,133,.35); }
.hp-checks__t { font-weight: 600; color: var(--hp-text); }
.hp-checks__v { color: var(--hp-muted); font-size: 13px; min-width: 0; }
.hp-ck { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hp-line2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; line-height: 1; }
.is-run .hp-ck { border-color: rgba(255,255,255,.2); border-top-color: var(--hp-text); animation: hp-spin .7s linear infinite; }
.is-ok .hp-ck { border-color: var(--hp-ok); background: var(--hp-ok); color: #06241a; }
.is-ok .hp-ck::after { content: "✓"; }
.is-bad .hp-ck { border-color: var(--hp-bad); background: var(--hp-bad); color: #2a0710; }
.is-bad .hp-ck::after { content: "✕"; }
.is-skip .hp-ck::after { content: "–"; color: var(--hp-faint); }
.hp-meter { grid-column: 2 / -1; position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.hp-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--hp-ok); transition: width .9s cubic-bezier(.2,.8,.2,1), background .3s ease; }
.hp-meter b { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--hp-text); opacity: .6; }
.hp-meter.is-over i { background: var(--hp-bad); }

.hp-result { margin: 16px; padding: 12px 14px; border-radius: 10px; font-weight: 600; min-height: 46px; display: flex; align-items: center; gap: 10px; border: 1px dashed var(--hp-line2); color: var(--hp-faint); transition: background .3s ease, border-color .3s ease, color .3s ease; }
.hp-result.is-ok { border-style: solid; border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.08); color: var(--hp-ok); }
.hp-result.is-warn { border-style: solid; border-color: rgba(251,191,36,.3); background: rgba(251,191,36,.08); color: var(--hp-warn); }
.hp-result.is-bad { border-style: solid; border-color: rgba(251,113,133,.35); background: rgba(251,113,133,.08); color: var(--hp-bad); }

/* Match */
.hp-match__grid { padding: 8px 16px 0; }
.hp-match__row { position: relative; display: grid; grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,.8fr)) 28px; gap: 8px; align-items: center; padding: 12px 10px; border-radius: 10px; font-variant-numeric: tabular-nums; transition: background .3s ease; }
.hp-match__row > span:nth-child(n+2):nth-child(-n+4) { text-align: right; color: var(--hp-text); }
.hp-match__row > span:first-child { color: var(--hp-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp-match__row--head { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.hp-match__row--head > span, .hp-match__row--head > span:first-child, .hp-match__row--head > span:nth-child(n+2) { color: var(--hp-faint) !important; font-weight: 600; }
.hp-match__row:not(.hp-match__row--head) { border-top: 1px solid var(--hp-line); border-radius: 0; }
.hp-match__row.is-scan { background: linear-gradient(90deg, rgba(139,156,255,0) 0%, rgba(139,156,255,.14) 50%, rgba(139,156,255,0) 100%); background-size: 200% 100%; animation: hp-scan .8s linear infinite; }
@keyframes hp-scan { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.hp-match__row.is-bad { background: rgba(251,113,133,.07); }
.hp-match__row.is-bad > span.is-diff { color: var(--hp-bad) !important; font-weight: 700; }
.hp-st { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; justify-self: end; }
.is-ok > .hp-st { background: rgba(52,211,153,.15); color: var(--hp-ok); }
.is-ok > .hp-st::after { content: "✓"; }
.is-bad > .hp-st { background: rgba(251,113,133,.18); color: var(--hp-bad); }
.is-bad > .hp-st::after { content: "!"; }
@media (max-width: 480px) {
  .hp-match__grid { padding: 8px 8px 0; }
  .hp-match__row { grid-template-columns: minmax(0,1.3fr) repeat(3, minmax(0,.7fr)) 24px; gap: 4px; padding: 10px 6px; font-size: 13px; }
  .hp-match__row--head { font-size: 10px; letter-spacing: .02em; }
}

/* Chat */
.hp-chat__log { height: 372px; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; overflow: hidden; }
.hp-msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; animation: hp-in .35s ease both; line-height: 1.45; }
.hp-msg--user { align-self: flex-end; background: var(--hp-accent); color: #0b0d12; border-bottom-right-radius: 6px; font-weight: 500; }
.hp-msg--bot { align-self: flex-start; background: rgba(255,255,255,.06); color: var(--hp-text); border-bottom-left-radius: 6px; }
.hp-typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.hp-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--hp-muted); animation: hp-blink 1s infinite; }
.hp-typing i:nth-child(2) { animation-delay: .15s; }
.hp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes hp-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.hp-slots { display: grid; gap: 6px; margin-top: 8px; }
.hp-slot { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--hp-line2); font-size: 13px; color: var(--hp-muted); transition: all .3s ease; }
.hp-slot b { color: var(--hp-text); font-weight: 600; }
.hp-slot.is-picked { border-color: var(--hp-ok); background: rgba(52,211,153,.1); }
.hp-booked { display: flex; gap: 10px; align-items: flex-start; }
.hp-booked .hp-ck { flex: none; border-color: var(--hp-ok); background: var(--hp-ok); color: #06241a; margin-top: 2px; }
.hp-booked .hp-ck::after { content: "✓"; }
.hp-booked small { display: block; color: var(--hp-faint); font-size: 12px; }

/* Games */
.hp-games { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 36px; border: 1px solid var(--hp-line); border-radius: 20px; background: radial-gradient(500px 200px at 0% 0%, rgba(242,19,104,.10), transparent 70%), var(--hp-card); }
.hp-games img { width: 96px; height: 96px; border-radius: 22px; }
.hp-games__copy > p:not(.hp-kicker) { margin-top: 10px; color: var(--hp-muted); font-size: 16px; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.hp-chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--hp-line2); color: var(--hp-text); font-size: 14px; }
.hp-chips a:hover { border-color: rgba(255,255,255,.3); text-decoration: none; }
@media (max-width: 760px) {
  .hp-games { grid-template-columns: minmax(0,1fr); padding: 24px; gap: 20px; }
  .hp-games img { width: 72px; height: 72px; border-radius: 18px; }
  .hp-games .hp-btn { justify-self: start; }
}

/* Contact */
.hp-contact { text-align: center; background: radial-gradient(600px 300px at 50% 0%, rgba(139,156,255,.14), transparent 70%), var(--hp-bg); }
.hp-contact p { margin: 16px auto 0; max-width: 34em; color: var(--hp-muted); font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  .hp *, .hp *::before, .hp *::after { animation: none !important; transition: none !important; }
}
