:root {
  --green: #134d42;
  --green-deep: #0b3530;
  --green-ink: #072622;
  --gold: #f4b21f;
  --amber: #e9961a;
  --navy: #262f45;
  --tartan: #1f6b3e;
  --text: #ffffff;
  --muted: #cfe2da;
  --faint: #9cc2b6;
  --line: rgba(207, 226, 218, .14);
  --card: rgba(255, 255, 255, .045);
  --font: 'Outfit', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--green-deep);
  color: var(--text);
  font: 300 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
code { font: 400 .92em ui-monospace, 'SF Mono', Menlo, monospace; }
.nowrap { white-space: nowrap; }

h1, h2, h3 { font-weight: 200; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
h3 { font-size: 21px; font-weight: 400; letter-spacing: 0; }

section, .top, .hero-body, footer {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

section { padding: 96px 0; }
.lede { color: var(--muted); max-width: 560px; margin: 14px 0 0; }

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

.hero {
  background:
    radial-gradient(circle at 78% 42%, rgba(244, 178, 31, .10) 0, transparent 38%),
    linear-gradient(160deg, var(--green) 0, var(--green-deep) 100%);
  overflow: hidden;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 400; font-size: 18px;
}
.brand img { border-radius: 8px; }
.top-link { color: var(--muted); text-decoration: none; font-weight: 400; }
.top-link:hover { color: var(--text); }
.top-links { display: flex; gap: 22px; }

.hero-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 72px 0 120px;
}

.hero h1 {
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.hero h1 em { font-style: normal; font-weight: 300; color: var(--gold); }
.hero-copy p { font-size: 19px; color: var(--muted); max-width: 470px; margin: 22px 0 32px; }
.hero-copy small { display: block; margin-top: 16px; color: var(--faint); font-size: 14px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--gold);
  color: #2a1a00;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .01em;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 24px rgba(244, 178, 31, .25);
}
.btn:hover { background: #ffc23d; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(244, 178, 31, .35); }

.hero-play {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 380px;
  width: 100%;
  justify-self: center;
}
.rings, .rings i { position: absolute; inset: 0; }
.rings i {
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  opacity: 0;
  animation: ring 4.8s ease-out infinite;
}
.rings i:nth-child(2) { animation-delay: 1.6s; }
.rings i:nth-child(3) { animation-delay: 3.2s; }
.hero-play.playing .rings i { animation-duration: 2.4s; }
.hero-play.playing .rings i:nth-child(2) { animation-delay: .8s; }
.hero-play.playing .rings i:nth-child(3) { animation-delay: 1.6s; }

@keyframes ring {
  from { transform: scale(.32); opacity: .85; }
  to { transform: scale(1); opacity: 0; }
}

.hero-caption {
  position: absolute;
  bottom: -8px;
  margin: 0;
  font-size: 14px;
  color: var(--faint);
  text-align: center;
}

/* ---------- Play buttons ---------- */

.play {
  --size: 52px;
  width: var(--size);
  height: var(--size);
  flex: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  background: radial-gradient(circle at 35% 30%, #3a4563, var(--navy));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.play:hover { transform: scale(1.05); }
.play:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.play::before, .play::after { content: ""; position: absolute; top: 50%; left: 50%; }
/* play triangle */
.play::before {
  border-left: calc(var(--size) * .3) solid var(--gold);
  border-top: calc(var(--size) * .18) solid transparent;
  border-bottom: calc(var(--size) * .18) solid transparent;
  transform: translate(-36%, -50%);
}
/* pause bars */
.play.playing::before {
  border: 0;
  width: calc(var(--size) * .1);
  height: calc(var(--size) * .34);
  background: var(--gold);
  border-radius: 2px;
  transform: translate(-160%, -50%);
}
.play.playing::after {
  width: calc(var(--size) * .1);
  height: calc(var(--size) * .34);
  background: var(--gold);
  border-radius: 2px;
  transform: translate(60%, -50%);
}
.play:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.play-lg { --size: 132px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .06); }

/* ---------- Screenshot ---------- */

.shot-section { padding-top: 80px; padding-bottom: 0; }
.window {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #282a2e;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
}
.shot { margin: 0; }
.window-bar { display: flex; gap: 8px; padding: 14px 16px; background: #34363b; }
.window-bar span { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-bar span:nth-child(2) { background: #febc2e; }
.window-bar span:nth-child(3) { background: #28c840; }

/* ---------- Clips ---------- */

.clip-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.clip {
  display: flex; align-items: center; gap: 18px;
  padding: 20px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color .2s ease, background .2s ease;
}
.clip:has(.playing) { border-color: rgba(244, 178, 31, .5); background: rgba(244, 178, 31, .06); }
.clip-info { flex: 1; min-width: 0; }
.clip-info strong { display: block; font-weight: 400; font-size: 18px; }
.clip-info span { color: var(--faint); font-size: 14px; }
.bar { height: 3px; border-radius: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--gold); }

/* ---------- Formats ---------- */

.formats { border-top: 1px solid var(--line); }
.format-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; }
.format-list li { background: var(--green-deep); padding: 24px 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; }
.format-list code { color: var(--gold); font-size: 20px; }
.format-list span { flex-basis: 100%; color: var(--muted); }

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

.features { border-top: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feature-grid article {
  padding: 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
}
.feature-grid svg {
  width: 30px; height: 30px; margin-bottom: 18px;
  fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.feature-grid p { color: var(--muted); margin: 10px 0 0; font-size: 16px; }

/* ---------- Tartan ---------- */

.tartan-rule {
  height: 18px;
  border-top: 2px solid var(--gold);
  background:
    repeating-linear-gradient(90deg, rgba(244, 178, 31, .55) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(0deg, rgba(244, 178, 31, .55) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(90deg, var(--navy) 0 10px, transparent 10px 26px),
    repeating-linear-gradient(0deg, rgba(38, 47, 69, .85) 0 10px, transparent 10px 26px),
    var(--tartan);
}

/* ---------- Install ---------- */

.install { background: none; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; max-width: 760px; }
.steps li { display: flex; gap: 20px; padding: 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.steps li > span {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold); font-weight: 400;
}
.steps strong { font-weight: 400; font-size: 19px; }
.steps p { margin: 4px 0 0; color: var(--muted); }
.steps b { font-weight: 500; color: var(--text); }
.privacy { color: var(--faint); margin-top: 28px; }

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

footer {
  text-align: center;
  padding: 56px 0 72px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 15px;
}
footer img { margin: 0 auto 14px; border-radius: 10px; }
footer p { margin: 4px 0; }
footer .tip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 14px;
  margin: 22px 0;
  color: var(--muted);
}
/* Ko-fi button as plain HTML: their widget script gets eaten by blockers. */
footer a.kofi {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .15s ease, background .15s ease;
}
footer a.kofi img { width: 22px; height: auto; }
footer a.kofi:hover { background: #303b57; transform: translateY(-1px); }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .hero-body { grid-template-columns: 1fr; padding: 32px 0 88px; gap: 56px; }
  .hero-play { max-width: 280px; }
  .play-lg { --size: 108px; }
  .clip-list, .feature-grid { grid-template-columns: 1fr; }
  .format-list { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rings i, .hero-play.playing .rings i { animation: none; opacity: 0; }
  .hero-play.playing .rings i:first-child { opacity: .5; transform: scale(.7); }
  .btn, .play, footer a.kofi { transition: none; }
}
