:root {
  --paper: #fff7d8;
  --surface: #fffef3;
  --ink: #202033;
  --muted: #5d5a78;
  --line: #282642;
  --accent: #54ffe0;
  --pink: #ff7edb;
  --yellow: #fff06a;
  --blue: #7cc7ff;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
}

a,
button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 4px solid var(--pink);
  outline-offset: 4px;
}

.page {
  min-height: 100vh;
  padding: clamp(18px, 3vw, 36px);
  background:
    radial-gradient(circle at 15% 20%, rgba(84, 255, 224, 0.35), transparent 25%),
    radial-gradient(circle at 82% 12%, rgba(255, 126, 219, 0.25), transparent 24%),
    linear-gradient(rgba(40, 38, 66, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 38, 66, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: auto, auto, 34px 34px, 34px 34px;
}

.nav {
  max-width: 1180px;
  margin: 0 auto clamp(24px, 4vw, 56px);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.logoWrap {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ink);
  text-decoration: none;
}

.logoMark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: clamp(10px, 1.4vw, 18px) clamp(16px, 2.5vw, 28px);
  border: 4px solid var(--line);
  border-radius: 34px 24px 38px 22px;
  background: var(--surface);
  box-shadow: 8px 10px 0 rgba(32, 32, 51, 0.22), 5px 5px 0 var(--line);
  transform: rotate(-1.5deg);
}

.logoInitial {
  width: clamp(67px, 9.8vw, 120px);
  height: auto;
  margin: -22px -22px -20px -16px;
  filter: drop-shadow(3px 4px 0 rgba(32, 32, 51, 0.16));
}

.logoText {
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-size: clamp(2rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.08em;
}

.logoCaption {
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transform: rotate(-6deg);
  background: var(--accent);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  box-shadow: 3px 3px 0 var(--line);
  white-space: nowrap;
}

.navLinks {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 18px;
}

.navLinks a,
.button {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 10px 14px;
  box-shadow: 4px 4px 0 var(--line);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.navLinks a:hover,
.button:hover {
  transform: translate(2px, 2px) rotate(-1deg);
  box-shadow: 2px 2px 0 var(--line);
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 12px;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-weight: 800;
  transform: rotate(-1.5deg);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.8rem, 11vw, 7.8rem);
}

h2 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

h3 {
  font-size: 1.8rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 700;
  line-height: 1.5;
}

.heroButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

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

.button.secondary {
  background: var(--pink);
}

.sketchPanel,
.product,
.contactCard,
.proof {
  border: 3px solid var(--line);
  border-radius: 32px 26px 38px 24px;
  background: var(--surface);
  box-shadow: 10px 10px 0 var(--line);
}

.sketchPanel {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  transform: rotate(1.5deg);
}

.stickyNote {
  position: absolute;
  padding: 10px;
  border: 2px solid var(--line);
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--line);
}

.noteA {
  top: -22px;
  left: 18px;
  background: var(--pink);
  transform: rotate(-7deg);
}

.noteB {
  right: 18px;
  bottom: 18px;
  background: var(--accent);
  transform: rotate(5deg);
}

.diagram {
  display: grid;
  grid-template-columns: minmax(44px, 0.72fr) 14px minmax(44px, 0.72fr) 14px minmax(58px, 0.9fr) 14px minmax(78px, 1.15fr);
  gap: 5px;
  align-items: center;
  margin: 42px 0 22px;
}

.diagram span {
  padding: 12px 6px;
  border: 3px solid var(--line);
  border-radius: 18px;
  background: #fff;
  text-align: center;
  font-size: clamp(0.68rem, 1vw, 0.88rem);
  font-weight: 900;
}

.diagram i {
  position: relative;
  height: 3px;
  background: var(--line);
}

.diagram i::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  border-left: 10px solid var(--line);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.section {
  max-width: 1180px;
  margin: clamp(64px, 10vw, 120px) auto 0;
}

.sectionHead {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.55fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
}

.sectionHead > p,
.sketchPanel p,
.contactCard p {
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.55;
}

.productGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product {
  min-height: 286px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  transform: rotate(calc((var(--i) - 1.5) * 0.7deg));
}

.product.mint {
  background: #dffff7;
}

.product.pink {
  background: #ffe0f5;
}

.product.yellow {
  background: #fff7a6;
}

.product.blue {
  background: #dff0ff;
}

.cardTop {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.tag,
.status {
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
  font-weight: 900;
}

.status {
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  transform: rotate(3deg);
}

.product p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.actions a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 900;
}

.stack {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: start;
}

.stackList {
  display: grid;
  gap: 14px;
}

.stackList div,
.proofGrid p {
  padding: 17px;
  border: 3px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 5px 5px 0 var(--line);
}

.stackList b {
  display: block;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.stackList span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.proof {
  padding: clamp(24px, 5vw, 44px);
  background: linear-gradient(135deg, rgba(84, 255, 224, 0.55), rgba(255, 126, 219, 0.45));
}

.proofGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.proofGrid strong {
  display: block;
  font-size: 1.7rem;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 70px;
}

.contactCard {
  padding: 26px;
  background: #fff;
  transform: rotate(-1deg);
}

@media (max-width: 920px) {
  .hero,
  .stack,
  .contact,
  .sectionHead {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .logoCaption {
    display: none;
  }

  .navLinks {
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (max-width: 620px) {
  .page {
    padding: 14px;
  }

  .nav {
    flex-direction: column;
  }

  .productGrid,
  .proofGrid {
    grid-template-columns: 1fr;
  }

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

  .diagram i {
    width: 3px;
    height: 20px;
    margin: 0 auto;
  }

  .diagram i::after {
    top: 14px;
    right: -5px;
    transform: rotate(90deg);
  }

  .sketchPanel {
    transform: none;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4.8rem);
  }
}

.navRight {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.languageSwitch {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 4px 4px 0 var(--line);
}

.languageSwitch button {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 7px 10px;
  font-weight: 900;
}

.languageSwitch button[aria-pressed="true"] {
  background: var(--accent);
}

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

.product.white {
  background: #fffef3;
}

.openSourceCard {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 48px);
  border: 3px solid var(--line);
  border-radius: 42px 26px 36px 28px;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 240, 106, 0.9), transparent 160px),
    linear-gradient(135deg, rgba(124, 199, 255, 0.55), rgba(84, 255, 224, 0.45)),
    var(--surface);
  box-shadow: 10px 10px 0 var(--line);
}

.openSourceCard p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.6;
}

.openSourcePills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.openSourcePills span {
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-family: "Comic Sans MS", "Trebuchet MS", cursive;
  font-weight: 900;
  box-shadow: 3px 3px 0 var(--line);
}

@media (max-width: 1100px) {
  .productGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .navRight {
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .productGrid {
    grid-template-columns: 1fr;
  }
}
