:root {
  --bg: #ffffff;
  --text: #15152a;
  --muted: #6a6a82;
  --border: #1a1a2e;
  --soft-border: #e8e4dc;

  /* logo palette */
  --purple: #b87ae0;
  --blue: #6db4f5;
  --yellow: #f5d04b;
  --coral: #ef5b6b;
  --green: #7ed957;
  --teal: #5ac6c2;

  /* section tints (very pale washes of palette) */
  --tint-yellow: #fff8d6;
  --tint-blue: #eaf4ff;
  --tint-coral: #ffeaec;
  --tint-green: #e9faea;
  --tint-purple: #f4e8fb;

  --max: 1140px;

  --shadow-chunky: 6px 6px 0 0 var(--border);
  --shadow-chunky-sm: 3px 3px 0 0 var(--border);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--text);
  text-decoration: none;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f6f4ee;
  border: 1px solid var(--soft-border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 13px;
  color: var(--text);
}

/* container */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 48px;
}

@media (max-width: 720px) {
  .container {
    padding: 0 24px;
  }
}

/* nav */

.nav {
  position: relative;
  z-index: 10;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 720px) {
  .nav {
    padding: 16px 24px;
    gap: 10px;
  }
  .brand img {
    height: 40px;
  }
}

@media (max-width: 640px) {
  /* On narrow screens, collapse nav to just brand + Install CTA.
     Users scroll to sections anyway. */
  .nav-links {
    gap: 8px;
  }
  .nav-links a:not(.cta) {
    display: none;
  }
  .nav-links .cta {
    padding: 9px 14px;
    font-size: 13px;
  }
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
}

.nav-links a:hover {
  color: var(--coral);
}

.nav-links .cta {
  background: var(--coral);
  color: white;
  padding: 10px 18px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-chunky-sm);
  transition: all 0.12s;
}

.nav-links .cta:hover {
  color: white;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--border);
}

.nav-links .ghost {
  border: 2px solid var(--border);
  padding: 7px 14px;
  background: white;
  box-shadow: var(--shadow-chunky-sm);
  transition: all 0.12s;
}

.nav-links .ghost:hover {
  color: var(--text);
  background: var(--yellow);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--border);
}

/* hero */

.hero {
  position: relative;
  text-align: center;
  padding: 40px 48px 90px;
  max-width: var(--max);
  margin: 0 auto;
}

@media (max-width: 720px) {
  .hero {
    padding: 24px 24px 64px;
  }
}

.hero-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.float-bubble {
  position: absolute;
  background: white;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-chunky-sm);
  display: flex;
  align-items: center;
  gap: 7px;
}

.bubble-1 {
  top: 60px;
  left: 8%;
  transform: rotate(-7deg);
  animation: float-a 4s ease-in-out infinite;
}

.bubble-2 {
  top: 100px;
  right: 8%;
  transform: rotate(6deg);
  animation: float-b 5s ease-in-out infinite;
}

@media (max-width: 880px) {
  .bubble-1 {
    top: 30px;
    left: 4%;
  }
  .bubble-2 {
    top: 60px;
    right: 4%;
  }
}

@keyframes float-a {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50%      { transform: rotate(-7deg) translateY(-8px); }
}

@keyframes float-b {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50%      { transform: rotate(6deg) translateY(-8px); }
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green {
  background: var(--green);
}

.dot-coral {
  background: var(--coral);
}

.spark {
  position: absolute;
  width: 26px;
  height: 26px;
  animation: spin 8s linear infinite;
}

.spark-1 { top: 90px;  left: 22%; color: var(--yellow); }
.spark-2 { top: 200px; right: 18%; color: var(--purple); width: 32px; height: 32px; animation-duration: 6s; }
.spark-3 { bottom: 60px; left: 14%; color: var(--blue); width: 20px; height: 20px; animation-duration: 10s; }
.spark-4 { bottom: 100px; right: 12%; color: var(--teal); width: 22px; height: 22px; animation-duration: 7s; }

@keyframes spin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: clamp(260px, 46vw, 460px);
  height: auto;
  margin: 0 auto 24px;
  display: block;
  animation: bob 4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-family: "Fredoka", "Inter", sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 auto 22px;
  max-width: 900px;
}

.grad-text {
  background: linear-gradient(
    100deg,
    var(--purple) 0%,
    var(--blue) 22%,
    var(--green) 44%,
    var(--yellow) 66%,
    var(--coral) 88%,
    var(--teal) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  position: relative;
  z-index: 1;
  font-size: clamp(16px, 2.1vw, 19px);
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 640px;
  line-height: 1.6;
}

.pill {
  display: inline-block;
  padding: 2px 11px;
  border-radius: 999px;
  color: white;
  font-weight: 700;
  font-size: 0.94em;
  white-space: nowrap;
  border: 2px solid var(--border);
  vertical-align: 1px;
}

.pill-purple { background: var(--purple); }
.pill-blue   { background: var(--blue); }
.pill-yellow { background: var(--yellow); color: var(--text); }
.pill-coral  { background: var(--coral); }
.pill-green  { background: var(--green); color: var(--text); }
.pill-teal   { background: var(--teal); }

.hero-cta {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

/* chunky buttons */

.btn-chunky {
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-chunky);
  color: white;
  transition: all 0.12s;
}

.btn-chunky:hover {
  color: white;
  transform: translate(-3px, -3px);
  box-shadow: 9px 9px 0 0 var(--border);
}

.btn-coral  { background: var(--coral); }
.btn-purple { background: var(--purple); }
.btn-blue   { background: var(--blue); }
.btn-green  { background: var(--green); color: var(--text); }
.btn-yellow { background: var(--yellow); color: var(--text); }

.btn-ghost {
  padding: 14px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  display: inline-block;
  border: 2px solid var(--border);
  background: white;
  color: var(--text);
  box-shadow: var(--shadow-chunky-sm);
  transition: all 0.12s;
}

.btn-ghost:hover {
  background: var(--yellow);
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 0 var(--border);
}

.fineprint {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

/* sections */

section.how,
section.presets,
section.install {
  padding: 90px 0;
}

section.how {
  background: var(--tint-yellow);
  border-top: 3px solid var(--border);
  border-bottom: 3px solid var(--border);
}

section.presets {
  background: var(--tint-blue);
  border-bottom: 3px solid var(--border);
}

section.install {
  background: var(--tint-coral);
  border-bottom: 3px solid var(--border);
}

section h2 {
  font-family: "Fredoka", "Inter", sans-serif;
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.1;
}

.section-lede {
  color: var(--muted);
  font-size: 17px;
  max-width: 700px;
  margin: 0 0 36px;
  line-height: 1.6;
}

.pixel-eyebrow {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-block;
  padding: 6px 10px;
  border: 2px solid var(--border);
  background: white;
  border-radius: 6px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-chunky-sm);
}

.eyebrow-purple { color: var(--purple); }
.eyebrow-coral  { color: var(--coral); }
.eyebrow-green  { color: #5db046; }

/* how */

.how {
  text-align: center;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.step {
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--shadow-chunky);
  text-align: left;
  transition: transform 0.15s;
}

.tilt-left {
  transform: rotate(-1.2deg);
}

.tilt-right {
  transform: rotate(1.2deg);
}

.step:hover {
  transform: rotate(0deg) translateY(-4px);
}

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: white;
  margin-bottom: 16px;
  border: 2px solid var(--border);
  box-shadow: var(--shadow-chunky-sm);
}

.step h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.step code {
  font-size: 12px;
}

/* color util */

.bg-purple { background: var(--purple); }
.bg-blue   { background: var(--blue); }
.bg-yellow { background: var(--yellow); color: var(--text); }
.bg-coral  { background: var(--coral); }
.bg-green  { background: var(--green); color: var(--text); }
.bg-teal   { background: var(--teal); }

/* presets */

.presets-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 880px) {
  .presets-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.preset-mock {
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: var(--shadow-chunky);
}

.preset-mock-head {
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.show-pill {
  background: var(--yellow);
  border: 2px solid var(--border);
  padding: 2px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
}

.preset-mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 2px dashed var(--soft-border);
}

.preset-mock-row .row-name {
  font-weight: 600;
}

.preset-mock-row small {
  color: var(--muted);
  font-size: 12px;
}

.btn-mini {
  border: 2px solid var(--border);
  color: white;
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  box-shadow: var(--shadow-chunky-sm);
  transition: all 0.1s;
}

.btn-mini:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--border);
}

/* install */

.install {
  text-align: center;
}

.install .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.install-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 32px 40px 18px;
  box-shadow: var(--shadow-chunky);
  max-width: 760px;
  margin: 30px auto 0;
  text-align: left;
}

@media (max-width: 720px) {
  .install-card {
    padding: 24px 22px 12px;
  }
  .install-card li {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 0;
  }
  .install-card code {
    word-break: break-all;
    white-space: normal;
    display: inline-block;
    max-width: 100%;
  }
}

.install-card ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.install-card li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 2px dashed var(--soft-border);
  font-size: 14.5px;
  color: var(--text);
}

.install-card li:last-child {
  border-bottom: 0;
}

.step-tag {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: white;
  padding: 7px 10px;
  border-radius: 8px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: var(--shadow-chunky-sm);
}

.bg-yellow.step-tag,
.step-tag.bg-yellow {
  color: var(--text);
}

/* footer */

footer {
  background: var(--text);
  color: white;
  padding: 40px 48px;
  text-align: center;
}

@media (max-width: 720px) {
  footer {
    padding: 32px 24px;
  }
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 18px;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
  color: var(--yellow);
}

.footer-fineprint {
  max-width: var(--max);
  margin: 18px auto 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}
