:root {
  color-scheme: dark;
  --bg: #0b1118;
  --panel: #121b25;
  --line: #263340;
  --ink: #f5f7f8;
  --muted: #9aacb8;
  --accent: #55d6c2;
  --pink: #f478aa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 5%, rgb(85 214 194 / 12%), transparent 28rem),
    radial-gradient(circle at 0 50%, rgb(244 120 170 / 8%), transparent 30rem),
    var(--bg);
}

a { color: inherit; }

.shell { width: min(1120px, calc(100% - 40px)); margin: auto; }
.hero { min-height: 480px; padding: 34px 0 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 32px; aspect-ratio: 1; border-radius: 9px; background: var(--accent); color: #07130f; font-weight: 900; }
.hero-copy { max-width: 780px; margin-top: 105px; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.9rem, 7vw, 6.4rem); font-weight: 700; letter-spacing: -.055em; line-height: .98; }
h1 span { color: #788c99; }
.intro { max-width: 600px; margin: 30px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }

.applications { padding: 54px 0 80px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.count { color: var(--muted); font-variant-numeric: tabular-nums; }
.app-card { display: grid; grid-template-columns: minmax(300px, 1.1fr) minmax(300px, .9fr); min-height: 420px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.app-preview { display: grid; place-items: center; min-height: 380px; padding: 38px; overflow: hidden; background: linear-gradient(145deg, #188e8d, #0c6f73); text-decoration: none; }
.mini-board { display: grid; grid-template-columns: repeat(5, 54px); grid-auto-rows: 54px; transform: rotate(-4deg); filter: drop-shadow(0 20px 24px rgb(0 0 0 / 25%)); }
.tile { border: 1px solid #9e7779; background: #dceff3; }
.tile:first-child { grid-column: 2; }
.tile:nth-child(4) { grid-column: 1; }
.tile.gum { position: relative; }
.tile.gum::after { position: absolute; inset: 13px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, white 0 8%, #ffbad2 10% 25%, var(--pink) 70%); content: ""; }
.tile.robot { display: grid; place-items: center; color: #17516a; font-size: 1.7rem; }
.tile.hole { border: 4px solid #71371e; background: white; }
.tile.goal { border: 3px solid #d72f7b; }
.app-content { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(34px, 5vw, 64px); }
.app-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.app-meta span { padding: 6px 9px; border: 1px solid #344453; border-radius: 999px; color: var(--muted); font-size: .72rem; text-transform: uppercase; }
.app-content h3 { margin: 25px 0 16px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; line-height: 1.04; }
.app-content p { margin: 0; color: var(--muted); line-height: 1.65; }
.open-button { display: inline-flex; gap: 18px; align-items: center; margin-top: 32px; padding: 13px 17px; border-radius: 9px; background: var(--accent); color: #07130f; font-weight: 850; text-decoration: none; transition: transform .18s, filter .18s; }
.open-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 30px 0 45px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
:focus-visible { outline: 3px solid white; outline-offset: 4px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 580px); }
  .hero { min-height: 430px; }
  .hero-copy { margin-top: 85px; }
  .app-card { grid-template-columns: 1fr; }
  .app-preview { min-height: 320px; }
  .mini-board { grid-template-columns: repeat(5, 42px); grid-auto-rows: 42px; }
  .tile.gum::after { inset: 10px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
