/* Landing page */

/* ════════════════ hero ════════════════ */

/* With nothing below it, the hero carries the page — so it fills the screen
 * instead of leaving a stripe of empty dark under the fold. */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  align-items: center; gap: 56px;
  padding: 56px 0 72px;
  min-height: calc(100vh - 210px);
}

.hero__text h1 {
  margin: 0;
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 900; letter-spacing: -0.042em; line-height: 1.02;
}
.hero__text h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-2), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__text > p {
  margin-top: 20px; max-width: 44ch;
  font-size: 17px; line-height: 1.65; color: var(--muted);
}

.hero__cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

.hero__stats { display: flex; gap: 34px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero__stats b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero__stats span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }

/* ---------- the mock screenshot ---------- */
.hero__art { display: flex; justify-content: center; }

.shot {
  width: 100%; max-width: 440px; padding: 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
}
.shot__bar { height: 4px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.shot__bar i {
  display: block; height: 100%; width: 100%;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.shot__stage {
  margin-top: 14px; aspect-ratio: 16 / 10; border-radius: var(--r);
  background: radial-gradient(70% 80% at 50% 45%, rgba(255,255,255,.05), transparent 70%), #0d1119;
  display: grid; place-items: center; overflow: hidden;
}
.shot__stage img { max-width: 82%; max-height: 82%; object-fit: contain; filter: drop-shadow(0 12px 26px rgba(0,0,0,.6)); }

.shot__input {
  position: relative; display: flex; align-items: center;
  margin-top: 14px; min-height: 50px; padding: 13px 44px 13px 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03);
  font-size: 14px; font-weight: 600; color: var(--text);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.shot__input.is-right { border-color: var(--good); background: rgba(63,207,117,.09); }
.shot__input.is-wrong { border-color: var(--bad); background: rgba(242,84,75,.09); }

.shot__typed { white-space: nowrap; overflow: hidden; }

.shot__caret {
  width: 2px; height: 17px; margin-left: 2px; flex: 0 0 2px;
  background: var(--accent); animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.is-right .shot__caret, .is-wrong .shot__caret { opacity: 0; }

.shot__mark {
  position: absolute; right: 15px;
  font-size: 17px; font-weight: 900; line-height: 1;
}
.is-right .shot__mark { color: var(--good); }
.is-wrong .shot__mark { color: var(--bad); }

/* the render fades in with each new skin */
.shot__stage img { opacity: 0; transition: opacity .35s var(--ease); }
.shot__stage img.is-in { opacity: 1; }

/* ════════════════ mobile ════════════════ */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 56px; min-height: 0; }
  .hero__text { text-align: center; }
  .hero__text > p { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__stats { justify-content: center; gap: 26px; }
  .shot { transform: none; max-width: 400px; }
}

@media (max-width: 560px) {
  .hero { padding: 32px 0 48px; }
  .hero__cta .btn { width: 100%; }
  .hero__stats { gap: 20px; }
  .hero__stats b { font-size: 22px; }
}
