:root {
  --bg: #07080c;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f3f7;
  --muted: #9aa0ad;
  --work: #4caf50;
  --glow-2: #00897b;
  --gradient: linear-gradient(120deg, #1b5e20, var(--work) 50%, #a5e86b);
  --radius: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* Soft green and teal glows behind the page. */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  animation: drift 24s ease-in-out infinite alternate;
}
body::before { top: -25vmax; left: -20vmax; background: var(--work); }
body::after { bottom: -30vmax; right: -20vmax; background: var(--glow-2); animation-delay: -12s; }

@keyframes drift {
  to { transform: translate(8vmax, 6vmax) scale(1.1); }
}

main { max-width: 960px; margin: 0 auto; padding: 80px 24px 48px; }

a { color: var(--work); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7be07f; }
a:focus-visible { outline: 2px solid var(--work); outline-offset: 3px; border-radius: 4px; }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.hero img {
  display: block;
  width: 160px;
  height: 160px;
  filter: drop-shadow(0 18px 40px rgba(76, 175, 80, 0.45));
}

/* Hand-written note under the logo, with an arrow curving up to it. */
.logo-wrap { position: relative; }
.hand-note {
  position: absolute;
  top: calc(100% + 6px);
  left: 16px;
  width: 160px;
  margin: 0;
  font-family: "Bradley Hand", "Segoe Print", "Marker Felt", "Comic Sans MS", cursive;
  font-size: 1.2rem;
  line-height: 1.25;
  color: #d8dbe2;
  transform: rotate(-3deg);
}
.hand-arrow {
  position: absolute;
  top: -52px;
  left: 96px;
  width: 60px;
  height: 50px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 640px) {
  .hand-note { position: static; width: auto; margin-top: 12px; transform: none; }
  .hand-arrow { display: none; }
}
h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.slogan {
  margin: 2px 0 0;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--work);
}
.tagline { margin: 6px 0 0; color: var(--muted); font-size: 1.2rem; line-height: 1.3; }

.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; margin-top: 18px; }
.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { color: #07080c; background: var(--gradient); box-shadow: 0 8px 24px rgba(76, 175, 80, 0.35); }
.btn.primary:hover { color: #07080c; box-shadow: 0 12px 30px rgba(76, 175, 80, 0.5); }
.btn.ghost { color: var(--text); border: 1px solid var(--border); background: var(--surface); }
.btn.ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.lead {
  max-width: 720px;
  margin: 120px 0 0;
  text-align: left;
  font-size: 1.15rem;
  color: #cfd3dc;
}

/* Section headings */
h2 {
  margin: 80px 0 24px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--gradient);
}

.note { color: var(--muted); }

/* Keys */
.defs { position: absolute; }
.row-title {
  margin: 36px 0 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.deck { display: flex; gap: 20px; flex-wrap: wrap; }
.deck figure { margin: 0; text-align: center; }
.deck figcaption { margin-top: 10px; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.deck figcaption small { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); }
.hint { margin: -8px 0 16px; color: var(--muted); }
.key {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 14px 30px rgba(0, 0, 0, 0.55);
  fill: currentColor;
  font-family: Arial, sans-serif;
  text-anchor: middle;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.key:hover {
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 20px 40px rgba(0, 0, 0, 0.6),
    0 0 28px color-mix(in srgb, currentColor 35%, transparent);
}
.key .bg { fill: var(--key-bg); }
.key .l2 { font-size: 38px; font-weight: bold; }
.key .l3 { font-size: 22px; }

/* Feature cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(76, 175, 80, 0.5); }
.card h3 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); }
.card .default { margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--work); }
.card ul { margin: 0; color: var(--muted); }
.grid.two { margin-top: 80px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Setup steps as numbered badges */
ol { list-style: none; counter-reset: step; padding: 0; margin: 0; }
ol li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 56px;
}
ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
  color: #07080c;
  background: var(--gradient);
}

ul { padding-left: 20px; }

footer {
  margin-top: 120px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Four keys per row on phones, like a real Stream Deck. */
@media (max-width: 640px) {
  main { padding-top: 48px; }
  .lead { margin-top: 40px; }
  .deck { gap: 12px; }
  .key { width: 72px; height: 72px; border-radius: 16px; }
  .deck figcaption { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, body::after { animation: none; }
  .key, .card, .btn { transition: none; }
  .key:hover, .card:hover, .btn:hover { transform: none; }
}
