/* Poro Tracker's website: the app's dark and gold look. */

:root {
  color-scheme: dark;
  --bg: #0e1015;
  --panel: #161922;
  --raised: #1d212c;
  --border: #2a2f3d;
  --text: #e8eaf0;
  --muted: #9aa1b2;
  --accent: #d8b25a;
  --accent-strong: #e9c46a;
  --accent-ink: #1a1408;
  --win: #5cc28b;
  --youtube: #ff3b3b;
  --radius: 14px;
  --width: 1180px;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 70% -120px, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg);
}

a {
  color: var(--accent-strong);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 14px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.center {
  text-align: center;
}

code {
  font-size: 0.92em;
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--raised);
}

/* ---- Header ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px max(20px, calc((100vw - var(--width)) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
}

.top nav a:hover {
  color: var(--text);
}

.socials {
  display: flex;
  gap: 8px;
}

.social {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social.youtube:hover {
  color: var(--youtube);
  border-color: var(--youtube);
}

.social.metafy:hover {
  color: var(--accent-strong);
  border-color: var(--accent);
}

main > section,
footer {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--panel);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.button:hover {
  border-color: var(--muted);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.youtube-button:hover {
  border-color: var(--youtube);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 12px;
}

.text-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 14px;
}

/* ---- Hero ---- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: center;
  padding-top: 64px !important;
  padding-bottom: 40px !important;
}

.pill {
  display: inline-block;
  margin-bottom: 18px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent-strong);
  font-size: 14px;
}

.lead {
  font-size: 18px;
  color: #c9cdd8;
}

.hero-shot {
  margin: 0;
}

.hero-shot img,
.shot {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}

.hero-shot img {
  transform: perspective(1400px) rotateY(-6deg);
}

/* ---- Highlights ---- */

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px !important;
}

.strip > div,
.extras > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

.strip span,
.extras span {
  color: var(--muted);
  font-size: 15px;
}

/* ---- Features ---- */

.features {
  padding-top: 90px !important;
}

.features > h2 {
  text-align: center;
  margin-bottom: 50px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.feature.flip {
  grid-template-columns: auto minmax(0, 1fr);
}

.feature.flip .feature-text {
  order: 2;
}

.feature .shot.tall {
  max-height: 560px;
  width: auto;
}

.feature.wide {
  grid-template-columns: 1fr;
  gap: 22px;
}

.feature.wide .feature-text {
  max-width: 760px;
}

.feature ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.feature li + li {
  margin-top: 6px;
}

.extras {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* ---- Download ---- */

.download {
  padding-top: 90px !important;
  text-align: center;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 20px;
  text-align: left;
}

.dl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

.dl.yours {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent);
}

.dl p {
  color: var(--muted);
}

.dl .button {
  margin: 4px 0 12px;
}

.dl details {
  width: 100%;
  font-size: 14px;
  color: var(--muted);
}

.dl summary {
  cursor: pointer;
  color: var(--accent-strong);
}

.dl ol {
  padding-left: 18px;
  margin: 10px 0 0;
}

/* ---- Creator ---- */

.creator {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 100px auto 0 !important;
  max-width: 760px !important;
  padding: 28px !important;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--panel)), var(--panel));
}

.creator h2 {
  font-size: 26px;
  margin-bottom: 4px;
}

.creator .cta {
  margin: 14px 0 0;
}

/* ---- Text pages (privacy, changelog) ---- */

.page {
  max-width: 780px !important;
  padding-top: 56px !important;
}

.page h2 {
  font-size: 24px;
  margin-top: 36px;
}

.page ul {
  padding-left: 22px;
}

.page li + li {
  margin-top: 6px;
}

.release {
  padding: 20px 24px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}

.release h2 {
  margin-top: 0;
  font-size: 22px;
}

.release ul {
  margin: 0;
  color: #c9cdd8;
}

/* ---- Footer ---- */

footer {
  margin-top: 90px !important;
  padding-top: 28px !important;
  padding-bottom: 40px !important;
  border-top: 1px solid var(--border);
}

footer nav {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

footer nav a {
  color: var(--muted);
}

/* ---- Phones and small windows ---- */

@media (max-width: 960px) {
  .hero,
  .feature,
  .feature.flip {
    grid-template-columns: 1fr;
  }

  .feature.flip .feature-text {
    order: 0;
  }

  .hero-shot img {
    transform: none;
  }

  .feature .shot.tall {
    max-height: 480px;
    justify-self: center;
  }

  .downloads,
  .extras {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .top {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .top nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 18px;
    overflow-x: auto;
  }

  .socials {
    margin-left: auto;
  }

  .hero {
    padding-top: 36px !important;
  }

  .strip,
  .downloads,
  .extras {
    grid-template-columns: 1fr;
  }

  .creator {
    flex-direction: column;
    align-items: flex-start;
  }
}
