@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/poppins-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/poppins-bold.woff2") format("woff2");
}

:root {
  --blue: #0986ff;
  --blue-dark: #0874da;
  --blue-pale: #f3f9ff;
  --ink: #17212b;
  --muted: #526271;
  --line: #d9ebfc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

a,
button {
  transition: opacity 150ms ease, background-color 150ms ease, color 150ms ease;
}

a:hover,
button:hover {
  opacity: 0.86;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(20px, 4vw, 56px);
  color: #fff;
  background: var(--blue);
}

.wordmark {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.5px;
  text-decoration: none;
}

.github-link {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

main {
  flex: 1;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  max-width: 960px;
  margin: clamp(64px, 10vw, 112px) auto 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 830px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.65;
}

.proof {
  position: relative;
  max-width: 920px;
  margin: 14px auto clamp(56px, 9vw, 96px);
  perspective: 1400px;
}

.presence-line {
  max-width: 920px;
  margin: clamp(52px, 8vw, 82px) auto 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

#online-count {
  color: var(--blue);
  font-weight: 700;
}

.flip-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.proof-inner {
  position: relative;
  min-height: 350px;
  transform-style: preserve-3d;
  transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
}

.flip-toggle:checked + .proof-inner {
  transform: rotateY(180deg);
}

.proof-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(36px, 7vw, 88px);
  padding: clamp(28px, 5vw, 52px) clamp(28px, 5vw, 52px) 74px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--blue-pale);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.proof-back {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 0;
  transform: rotateY(180deg);
}

.proof-back h2 {
  margin-top: 10px;
}

.proof-back pre {
  flex: 1;
  min-width: 0;
  margin: 22px 0 0;
  overflow: auto;
  white-space: pre-wrap;
}

.proof-back pre code {
  margin: 0;
  color: #075da9;
  font-size: 12px;
  line-height: 1.55;
}

.flip-control {
  position: absolute;
  right: clamp(28px, 5vw, 52px);
  bottom: 26px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.flip-control:hover {
  opacity: 0.75;
}

.flip-toggle:focus-visible + .proof-inner .flip-control {
  outline: 2px solid var(--blue);
  outline-offset: 5px;
}

.eyebrow,
.counter-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.proof h2 {
  margin: 12px 0 0;
  font-size: clamp(25px, 3.2vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.proof p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.proof code {
  display: block;
  margin-top: 18px;
  color: var(--blue-dark);
  font-size: 13px;
}

.mascot {
  float: right;
  width: 74px;
  height: 74px;
  margin: -8px 0 14px 24px;
}

.counters {
  display: grid;
  grid-template-columns: repeat(2, 132px);
  gap: 12px;
}

.counter {
  text-align: center;
}

.counter-value {
  display: block;
  margin: 2px 0 14px;
  color: var(--blue);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.counter button {
  width: 100%;
  padding: 11px 16px;
  border: 1px solid var(--blue);
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.counter button.secondary {
  color: var(--blue);
  background: transparent;
}

.footer {
  display: flex;
  justify-content: space-between;
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid #edf2f6;
  color: var(--muted);
  font-size: 13px;
}

.footer a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 700px) {
  .proof-inner {
    min-height: 650px;
  }

  .proof-face {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .proof-back {
    text-align: left;
  }

  .proof p {
    margin-right: auto;
    margin-left: auto;
  }

  .mascot {
    float: none;
    display: block;
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
  }

  .counters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(100%, 300px);
    margin: 0 auto;
  }

  .footer {
    gap: 12px;
    flex-direction: column;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .proof-inner {
    transition: none;
  }
}
