:root {
  --red: #f23338;
  --blue: #2978fa;
  --yellow: #fdc91a;
  --green: #33cc59;

  --bg: #0b0c10;
  --bg-soft: #12141b;
  --card: #161923;
  --text: #f3f4f7;
  --muted: #9aa0ad;
  --border: rgba(255, 255, 255, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The glow behind the hero, in the four classic pad colors. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 12% -10%, rgba(242, 51, 56, 0.16), transparent 60%),
    radial-gradient(55rem 38rem at 88% -6%, rgba(41, 120, 250, 0.18), transparent 60%),
    radial-gradient(50rem 40rem at 50% 105%, rgba(51, 204, 89, 0.10), transparent 60%);
}

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

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0 90px;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34ch;
}
.free-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 22px;
  border: 1px solid rgba(51, 204, 89, 0.35);
  background: rgba(51, 204, 89, 0.10);
  color: var(--green);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hero-shot {
  justify-self: center;
  width: 100%;
  max-width: 320px;
  border-radius: 34px;
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* The four pads, as a mark */
.pads {
  display: grid;
  grid-template-columns: repeat(2, 30px);
  gap: 6px;
  margin-bottom: 26px;
}
.pads span { width: 30px; height: 30px; border-radius: 8px; }
.pads span:nth-child(1) { background: var(--red); }
.pads span:nth-child(2) { background: var(--blue); }
.pads span:nth-child(3) { background: var(--yellow); }
.pads span:nth-child(4) { background: var(--green); }

/* Sections */
section { padding: 60px 0; }
h2 {
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.section-lead { color: var(--muted); margin: 0 0 36px; max-width: 60ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Difficulty table */
.levels { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.level {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
}
.level .swatches { display: flex; gap: 5px; flex: 0 0 auto; }
.level .swatches i { width: 15px; height: 15px; border-radius: 4px; display: block; }
.level .name { font-weight: 600; flex: 1; }
.level .tag { color: var(--muted); font-size: 0.9rem; }

/* Screenshot strip */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.shots img {
  width: 100%;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/* Long-form pages */
.article { max-width: 760px; padding: 30px 0 80px; }
.article h1 { font-size: 2.4rem; margin: 0 0 6px; letter-spacing: -0.02em; }
.article h2 { font-size: 1.3rem; margin: 34px 0 8px; }
.article .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.article p, .article li { color: #d7dae2; }
.article .card { margin: 22px 0; }
.article .card strong { color: var(--text); }
.article ul { padding-left: 20px; }
.article li { margin-bottom: 6px; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 50px;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 30px 0 60px; }
  .hero-shot { max-width: 260px; }
  .hero p.lead { max-width: none; }
}
