* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #f5f4f0;
  --ink: #1a1a1a;
  --muted: #888;
  --dashed: #c8c5bd;
  --accent: #7c3aed;          /* jacarandá / morado neón */
  --accent-soft: #f3eaff;     /* lavanda para fondos suaves */
  --reggae-green: #16a34a;
  --reggae-yellow: #f5e642;
  --reggae-yellow-ink: #b88a00;
  --reggae-red: #dc2626;
  --highlight: #fffbe0;
  --card: #fff;
}

html, body {
  background: var(--paper);
  font-family: 'Caveat', cursive;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

/* subtle paper texture via repeating dots — barely visible */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 24px 0 40px;
}
.hero .logo {
  display: block;
  margin: 0 auto 12px;
  width: clamp(72px, 12vw, 112px);
  height: auto;
  filter: drop-shadow(2px 3px 0 var(--ink));
}
.hero h1 {
  font-size: clamp(56px, 10vw, 96px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.hero .tagline {
  color: var(--muted);
  font-size: clamp(22px, 3.2vw, 28px);
  max-width: 540px;
  margin: 0 auto 32px;
}

.video-wrap {
  border: 2px solid var(--ink);
  border-radius: 16px 22px 14px 20px / 18px 14px 22px 16px;
  background: var(--card);
  padding: 8px;
  box-shadow: 4px 5px 0 var(--ink);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto 24px;
}
.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.platform-note {
  color: var(--muted);
  font-size: 20px;
  letter-spacing: 1px;
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin: 24px 0 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
  border: 2.5px solid var(--ink);
  border-radius: 14px 22px 12px 18px / 18px 12px 22px 14px;
  box-shadow: 5px 6px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.cta:hover {
  transform: translate(-1px, -2px);
  box-shadow: 6px 8px 0 var(--ink);
  background: #6d2fd9;
}
.cta:active {
  transform: translate(2px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}
.cta-arrow {
  font-size: 32px;
  line-height: 0.8;
}
.cta-meta {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 16px;
}

/* YOUTUBE EMBED */
.section-intro {
  color: var(--muted);
  font-size: 22px;
  margin-bottom: 16px;
}
.yt-wrap {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin: 8px auto 0;
  border: 2px solid var(--ink);
  border-radius: 16px 22px 14px 20px / 18px 14px 22px 16px;
  background: var(--ink);
  overflow: hidden;
  box-shadow: 4px 5px 0 var(--accent);
}
.yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* SECTIONS */
section {
  margin: 64px 0;
}
section h2 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}
section h2::after {
  content: "";
  display: block;
  width: 60%;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 4px;
  transform: rotate(-0.5deg);
}
.what h2::after { background: var(--reggae-green); }
.controls h2::after { background: var(--reggae-red); }
.demo h2::after { background: var(--accent); }

/* WHAT */
.bullets {
  list-style: none;
  padding: 16px 0 0;
}
.bullets li {
  position: relative;
  padding: 10px 0 10px 32px;
  font-size: 24px;
  border-bottom: 1.5px dashed var(--dashed);
}
.bullets li:last-child { border-bottom: none; }
.bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--ink);
  font-weight: 700;
}
.bullets li:nth-child(4n+1)::before { color: var(--reggae-green); }
.bullets li:nth-child(4n+2)::before { color: var(--reggae-yellow-ink); }
.bullets li:nth-child(4n+3)::before { color: var(--reggae-red); }
.bullets li:nth-child(4n+4)::before { color: var(--accent); }

/* CONTROLS table */
.controls table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1.5px dashed var(--dashed);
  border-radius: 8px 12px 6px 10px / 10px 6px 12px 8px;
  background: var(--card);
  overflow: hidden;
  margin-top: 16px;
}
.controls th, .controls td {
  padding: 10px 16px;
  text-align: left;
  font-size: 22px;
  border-bottom: 1.5px dashed var(--dashed);
}
.controls thead th {
  background: var(--paper);
  color: var(--muted);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
}
.controls tbody tr:last-child td { border-bottom: none; }
.controls td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

kbd {
  display: inline-block;
  padding: 2px 10px 3px;
  border: 1.5px solid var(--ink);
  border-radius: 8px 10px 7px 9px / 9px 7px 10px 8px;
  background: var(--accent-soft);
  font-family: 'Caveat', cursive;
  font-size: 20px;
  line-height: 1;
  margin: 0 2px;
  box-shadow: 1px 2px 0 var(--accent);
}

/* FOOTER */
footer {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1.5px dashed var(--dashed);
  text-align: center;
  color: var(--muted);
  font-size: 20px;
}
footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
}
footer a:hover {
  background: var(--accent);
  color: #fff;
}

/* SMALL SCREENS */
@media (max-width: 520px) {
  main { padding: 32px 16px 48px; }
  .hero { padding: 8px 0 24px; }
  section { margin: 48px 0; }
  .controls table { font-size: 18px; }
  .controls th, .controls td { padding: 8px 10px; font-size: 19px; }
  .bullets li { font-size: 21px; }
  .video-wrap { box-shadow: 3px 3px 0 var(--ink); }
}
