:root {
  --water-deep: #0e3e57;
  --water-mid: #1f6d85;
  --water-light: #77c8d5;
  --leaf: #5a9a44;
  --leaf-dark: #346334;
  --foam: #e9fbff;
  --sun: #ffd56a;
  --ink: #163223;
  --ink-soft: #33584a;
  --card: rgba(255, 255, 255, 0.9);
  --line: rgba(16, 74, 57, 0.2);
  --shadow: 0 18px 36px rgba(7, 34, 48, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 213, 106, 0.35), transparent 35%),
    radial-gradient(circle at 88% 6%, rgba(119, 200, 213, 0.45), transparent 28%),
    linear-gradient(170deg, #f4fffb 0%, #d7f3ec 40%, #cceef1 100%);
}

h1,
h2,
h3,
.brand,
.btn {
  font-family: "Changa", sans-serif;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(1.65rem, 3.1vw, 2.3rem);
  line-height: 1.12;
}

h3 {
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(236, 255, 251, 0.82);
  border-bottom: 1px solid rgba(22, 50, 35, 0.12);
}

.header-row {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  text-decoration: none;
  color: var(--leaf-dark);
  letter-spacing: 0.03em;
  font-size: clamp(1.45rem, 2.3vw, 1.75rem);
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.78rem 1.15rem;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--leaf) 0%, #7db845 100%);
  color: #10381b;
  box-shadow: 0 10px 20px rgba(52, 99, 52, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: #0e4a56;
  border-color: rgba(14, 74, 86, 0.26);
}

.btn-large {
  font-size: 1.08rem;
  padding: 0.94rem 1.45rem;
}

.section {
  padding: 1.2rem 0 0.7rem;
}

.hero {
  padding: clamp(2.4rem, 4vw, 3.9rem) 0 clamp(1.4rem, 2.5vw, 2.2rem);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  right: -140px;
  top: -170px;
  background: radial-gradient(circle, rgba(31, 109, 133, 0.2) 0%, rgba(31, 109, 133, 0) 68%);
  animation: drift 11s ease-in-out infinite;
}

.hero::after {
  left: 0;
  right: 0;
  height: 140px;
  bottom: -1px;
  background: linear-gradient(
    to bottom,
    rgba(215, 243, 236, 0) 0%,
    rgba(215, 243, 236, 0.48) 62%,
    rgba(204, 238, 241, 0.58) 100%
  );
  animation: none;
}

.hero-grid {
  display: grid;
  gap: 1rem;
}

.hero-content {
  max-width: 760px;
  display: grid;
  gap: 0.95rem;
}

.jam-badge {
  width: fit-content;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sun) 65%, white 35%);
  border: 1px solid rgba(89, 66, 0, 0.16);
  color: #5c4600;
  font-weight: 700;
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-copy {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 64ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-meta span {
  background: rgba(233, 251, 255, 0.88);
  border: 1px solid rgba(31, 109, 133, 0.24);
  color: #144d5a;
  padding: 0.38rem 0.62rem;
  border-radius: 0.62rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.section-head p {
  color: #3d6f61;
  font-weight: 700;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
}

.screenshots-grid,
.info-grid,
.loop-grid {
  display: grid;
  gap: 0.9rem;
}

.screenshots-grid {
  grid-template-columns: 1fr;
}

.screenshot-card {
  margin: 0;
  padding: 0.7rem;
}

.screenshot-placeholder {
  aspect-ratio: 16 / 10;
  border-radius: 0.85rem;
  border: 2px dashed rgba(17, 104, 116, 0.4);
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 213, 106, 0.35), transparent 35%),
    linear-gradient(155deg, rgba(119, 200, 213, 0.35), rgba(90, 154, 68, 0.32));
  color: #0f4752;
  display: grid;
  place-items: center;
  font-family: "Changa", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

figcaption {
  padding: 0.62rem 0.2rem 0.15rem;
  color: #325b4f;
  font-weight: 700;
}

.info-grid,
.loop-grid {
  grid-template-columns: 1fr;
}

.info-card,
.loop-step {
  padding: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card p,
.loop-step p {
  color: #2e5d4f;
}

.step-label {
  font-family: "Changa", sans-serif;
  color: var(--water-mid);
  margin-bottom: 0.25rem;
}

.final-cta {
  padding-bottom: 1.8rem;
}

.cta-shell {
  background: linear-gradient(132deg, var(--water-deep) 0%, var(--water-mid) 52%, #3ea38f 100%);
  color: var(--foam);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 40px rgba(11, 47, 59, 0.35);
  padding: clamp(1.3rem, 3.1vw, 2.4rem);
  display: grid;
  justify-items: start;
  gap: 0.7rem;
}

.cta-shell p {
  color: rgba(233, 251, 255, 0.95);
}

.site-footer {
  border-top: 1px solid rgba(16, 74, 57, 0.2);
  padding: 1.2rem 0;
  background: rgba(219, 244, 236, 0.65);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  align-items: center;
}

.footer-row p {
  font-weight: 700;
  color: #255344;
}

.footer-row a {
  color: #0f4f5c;
  font-weight: 700;
}

.section-reveal {
  animation: rise-in 0.55s ease both;
}

.section-reveal:nth-of-type(2) {
  animation-delay: 0.08s;
}

.section-reveal:nth-of-type(3) {
  animation-delay: 0.14s;
}

.section-reveal:nth-of-type(4) {
  animation-delay: 0.2s;
}

.section-reveal:nth-of-type(5) {
  animation-delay: 0.26s;
}

.section-reveal:nth-of-type(6) {
  animation-delay: 0.32s;
}

.panel:hover,
.btn:hover {
  box-shadow: 0 14px 28px rgba(12, 61, 56, 0.24);
}

.info-card:hover,
.loop-step:hover {
  transform: translateY(-4px);
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(7, 114, 126, 0.52);
  outline-offset: 2px;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 8px, 0);
  }
}

@media (min-width: 720px) {
  .screenshots-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

}

@media (min-width: 1024px) {
  .hero-content {
    gap: 1.05rem;
  }

  .screenshots-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section {
    padding-top: 1.45rem;
  }
}

@media (max-width: 520px) {
  .header-row {
    min-height: 82px;
    align-items: flex-start;
    padding: 0.65rem 0;
  }

  .brand {
    margin-top: 0.42rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
