:root {
  --bg: #0e1013;
  --fg: #e6e8eb;
  --muted: #8b929c;
  --line: #23272e;
  --card: #15181d;
  --green: #5fd068;   /* radar sweep, Waterbomber icon */
  --accent: #7f86f2;  /* indigo */
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafaf8;
    --fg: #16181c;
    --muted: #646b75;
    --line: #e4e4df;
    --card: #ffffff;
    --green: #2f9e3c;
    --accent: #4b4bc0;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 18vh 20px 48px;
}

/* ---- terminal prompt lines ---- */

.prompt {
  margin: 0 0 14px;
  font: 14px/1.5 var(--mono);
  color: var(--muted);
}
.prompt .path { color: var(--accent); }
.prompt .sigil { color: var(--green); }
.prompt .cmd { color: var(--fg); }

.prompt-link { margin-bottom: 56px; }
.prompt-link a {
  text-decoration: underline dotted var(--accent);
  text-underline-offset: 4px;
}
.prompt-link a:hover,
.prompt-link a:focus-visible { color: var(--accent); text-decoration-style: solid; outline: none; }
.prompt-link .arrow { color: var(--accent); }

.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--green);
  animation: blink 1.1s steps(1) infinite;
}

/* ---- intro ---- */

.intro { margin-bottom: 28px; }

h1 {
  margin: 0 0 6px;
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lead {
  margin: 0 0 18px;
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 500;
}

.intro p:not(.lead) {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

/* ---- products ---- */

.products {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.product {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.product:hover,
.product:focus-visible {
  border-color: var(--green);
  transform: translateY(-2px);
  outline: none;
}

.product img {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 22%; /* iOS-ish squircle */
  box-shadow: 0 2px 10px rgb(0 0 0 / .25);
}

.product h2 {
  margin: 0 0 2px;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.product .arrow {
  display: inline-block;
  color: var(--muted);
  font-weight: 400;
  transition: transform .2s, color .2s;
}
.product:hover .arrow { transform: translate(2px, -2px); color: var(--green); }

.product p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.product code {
  font: 12px/1 var(--mono);
  color: var(--accent);
}

/* ---- footer ---- */

footer {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 32px;
  font: 12px/1 var(--mono);
  color: var(--muted);
}

/* ---- motion ---- */

@keyframes blink { 50% { opacity: 0; } }

@keyframes type {
  from { width: 0; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
}

.cmd {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  vertical-align: bottom;
}
.cmd-1 { width: 6ch;  animation: type .5s steps(6) .2s backwards; }
.cmd-li { width: 13ch; animation: type .6s steps(13) 1.3s backwards; }
.cmd-2 { width: 14ch; animation: type .7s steps(14) 2.1s backwards; }

.intro   { animation: fade-up .5s ease .8s backwards; }
.prompt-link .arrow { animation: fade-up .3s ease 1.9s backwards; }
.products { animation: fade-up .5s ease 2.8s backwards; }
.products + .prompt { animation: fade-up .3s ease 3.2s backwards; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 480px) {
  main { padding-top: 12vh; }
  .product { gap: 14px; padding: 14px; }
  .product img { width: 56px; height: 56px; }
}
