:root {
  color-scheme: light;
  --ink: #070707;
  --charcoal: #35363d;
  --paper: #fffdf8;
  --white: #ffffff;
  --red: #e25348;
  --red-dark: #b45035;
  --green: #61c987;
  --yellow: #ffc44a;
  --peach: #f3bd92;
  --blue: #6b96d5;
  --lavender: #a56fe0;
  --orange: #ff7e44;
  --shadow: 8px 8px 0 var(--ink);
  --radius: 18px;
  --max-width: 1120px;
}

@font-face {
  font-family: "Batuphat Script";
  src: url("assets/batuphat-script/Batuphat Script.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Batuphat Script Extrude";
  src: url("assets/batuphat-script/Batuphat Script Extrude.otf") format("opentype");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.lightbox-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

button,
input {
  font: inherit;
}

.top-bar {
  position: fixed;
  z-index: 20;
  top: 12px;
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.94);
  padding: 8px 10px;
  box-shadow: 5px 5px 0 var(--ink);
  backdrop-filter: blur(10px);
}

.top-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-icon-link {
  position: relative;
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -4px);
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  padding: 7px 10px;
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  transition: opacity 140ms ease, transform 140ms ease;
}

.has-tooltip:hover::after,
.has-tooltip:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.top-icon-link:hover {
  transform: translate(-2px, -2px);
  text-decoration: none;
}

.top-icon-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.top-icon-link img {
  width: 20px;
  height: 20px;
  display: block;
}

.music-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  padding: 4px 11px 4px 4px;
  box-shadow: 3px 3px 0 var(--ink);
}

.music-toggle {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.music-toggle svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.music-toggle.is-muted .sound-wave {
  display: none;
}

.music-slider {
  width: 118px;
  accent-color: var(--red);
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  padding: clamp(104px, 12vw, 128px) 22px 70px;
  background:
    linear-gradient(90deg, rgba(226, 83, 72, 0.08) 0 1px, transparent 1px),
    linear-gradient(0deg, rgba(226, 83, 72, 0.08) 0 1px, transparent 1px),
    var(--paper);
  background-size: 38px 38px, 38px 38px, auto;
}

.hero-inner,
.section,
.footer {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.hero-inner {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.eyebrow {
  margin: 0 0 75px;
  color: var(--red);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  margin: 0 0 clamp(44px, 7vw, 84px);
  font-family: "Batuphat Script", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(7rem, 21vw, 17rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.74;
  text-shadow: none;
}

h1::before {
  content: attr(data-text);
  position: absolute;
  z-index: 0;
  inset: 0;
  color: var(--black);
  font-family: "Batuphat Script Extrude", "Batuphat Script", Inter, ui-sans-serif, system-ui, sans-serif;
  pointer-events: none;
  transform: translate(2px, 2px);
}

h1 span {
  position: relative;
  z-index: 1;
  color: var(--yellow);
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
}

.hero-tagline {
  max-width: 720px;
  margin-bottom: 26px;
  color: var(--charcoal);
  font-size: clamp(1.08rem, 2.4vw, 1.5rem);
  font-weight: 750;
}

.button-row,
.form-row,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.button:hover,
.screenshot-card:hover,
.carousel-button:hover {
  transform: translate(-2px, -2px);
  text-decoration: none;
}

.button:focus-visible,
.top-icon-link:focus-visible,
.music-toggle:focus-visible,
.screenshot-card:focus-visible,
.carousel-button:focus-visible,
.carousel-dots button:focus-visible,
.lightbox-close:focus-visible,
input:focus-visible {
  outline: 4px solid var(--blue);
  outline-offset: 3px;
}

.button-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.button-secondary {
  background: var(--white);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--red);
}

.is-disabled {
  cursor: not-allowed;
}

.is-disabled:hover {
  transform: none;
}

.gif-stage {
  position: relative;
  width: min(100%, 1120px);
  aspect-ratio: 16 / 9;
  margin-top: clamp(36px, 6vw, 62px);
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  box-shadow: var(--shadow);
}

.gif-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

main {
  overflow: hidden;
}

.section {
  padding: 86px 22px;
}

.screenshots-section {
  width: 100%;
  max-width: none;
  background: var(--white);
}

.screenshots-section > * {
  width: min(100%, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.carousel-window {
  overflow: hidden;
  padding: 8px 8px 16px;
}

.carousel-track {
  display: flex;
  transition: transform 280ms ease;
}

.screenshot-card {
  flex: 0 0 100%;
  cursor: pointer;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: 14px;
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 140ms ease;
}

.screenshot-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 4px solid var(--ink);
  border-radius: 12px;
}

.screenshot-frame img,
.lightbox-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--ink);
}

.carousel-button {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  align-self: center;
  justify-content: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 140ms ease;
}

.carousel-button span {
  display: block;
  width: 16px;
  height: 16px;
  border-top: 6px solid var(--white);
  border-right: 6px solid var(--white);
  border-radius: 4px;
}

.carousel-prev span {
  transform: translateX(3px) rotate(-135deg);
}

.carousel-next span {
  transform: translateX(-3px) rotate(45deg);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.carousel-dots button {
  width: 16px;
  height: 16px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.carousel-dots button.is-active {
  background: var(--red);
}

.signup-section {
  width: 100%;
  max-width: none;
  padding-top: 38px;
  padding-bottom: 38px;
  background:
    linear-gradient(90deg, rgba(7, 7, 7, 0.05) 0 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

.signup-section > * {
  width: min(100%, var(--max-width));
  margin-right: auto;
  margin-left: auto;
}

.signup-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  align-items: center;
  gap: 30px;
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow);
}

.signup-panel .eyebrow {
  margin-bottom: clamp(22px, 3vw, 36px);
}

.signup-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
}

.signup-panel p {
  color: var(--charcoal);
}

.signup-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 950;
}

.form-row {
  align-items: stretch;
}

input {
  min-height: 54px;
  flex: 1 1 220px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
}

.form-message {
  min-height: 1.6em;
  margin: 12px 0 0;
  font-weight: 850;
}

.form-message.is-error {
  color: var(--red);
}

.form-message.is-success {
  color: #24764f;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 32px 24px;
}

.brand {
  color: var(--red);
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
}

.footer-links {
  align-items: center;
  justify-content: flex-end;
  font-weight: 850;
}

.lightbox {
  width: min(1280px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  padding: clamp(12px, 2vw, 22px);
  box-shadow: var(--shadow);
}

.lightbox::backdrop {
  background: rgba(7, 7, 7, 0.82);
}

.lightbox-close {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  float: right;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
}

.lightbox-close span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}

.lightbox-close span::before,
.lightbox-close span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 21px;
  height: 5px;
  border-radius: 999px;
  background: var(--white);
  transform-origin: center;
}

.lightbox-close span::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close span::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-art {
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 110px);
  margin: 54px 0 0;
  border: 4px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

@media (max-width: 900px) {
  .signup-panel {
    grid-template-columns: 1fr;
  }

  .carousel {
    position: relative;
    grid-template-columns: 1fr;
  }

  .carousel-button {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
  }

  .carousel-button:hover {
    transform: translate(-2px, calc(-50% - 2px));
  }

  .carousel-prev {
    left: 14px;
  }

  .carousel-next {
    right: 14px;
  }
}

@media (max-width: 640px) {
  .top-bar {
    align-items: center;
    flex-wrap: wrap;
    border-radius: 18px;
    padding: 12px;
  }

  .top-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .top-icon-link {
    width: 42px;
    height: 42px;
  }

  .top-icon-link svg {
    width: 19px;
    height: 19px;
  }

  .music-control {
    width: min(260px, calc(100% - 28px));
    justify-content: center;
  }

  .music-slider {
    width: min(220px, 62vw);
  }

  .hero {
    min-height: auto;
    padding-top: 170px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .button,
  .form-row .button {
    width: 100%;
  }

  .section {
    padding: 66px 16px;
  }

  .signup-section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .screenshot-card {
    box-shadow: 5px 5px 0 var(--ink);
  }

  input {
    width: 100%;
    flex-basis: 100%;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
