:root {
  --bg: #0c1117;
  --surface: #121a22;
  --line: #22303d;
  --text: #dce4eb;
  --muted: #8e9fae;
  --accent: #8db6d9;
  --brand: #3d7bf5;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0f161e 0%, var(--bg) 40%);
  color: var(--text);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* The rain: fine slanted streaks over the whole page, falling slowly where motion is welcome. */
body::before {
  content: "";
  position: fixed;
  inset: -40% 0 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    102deg,
    transparent 0 46px,
    rgba(141, 182, 217, 0.05) 46px 47px,
    transparent 47px 97px
  );
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  body::before { animation: fall 18s linear infinite; }
  @keyframes fall { to { transform: translateY(40%); } }
}

header, main, footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px;
}

.wordmark {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.wordmark span { color: var(--muted); font-weight: 400; }

nav { display: flex; gap: 24px; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  padding-block: 4px;
  border-bottom: 1px solid transparent;
}

nav a:hover { color: var(--text); }
nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

main { flex: 1; padding-block: 72px 96px; }

h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.lead { max-width: 62ch; margin: 0; color: var(--muted); font-size: 19px; }

.more {
  display: inline-block;
  margin-top: 36px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.more:hover { color: var(--text); }

.app {
  margin-top: 48px;
  max-width: 760px;
  padding: 36px;
  background: rgba(18, 26, 34, 0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.app-head { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.app-head img { width: 64px; height: 64px; border-radius: 14px; }
.app-head h2 { margin: 0; font-size: 26px; font-weight: 600; }
.app p { margin: 0; color: var(--muted); max-width: 64ch; }

.platforms {
  list-style: none;
  margin: 28px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
}

.platforms li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 15px; }
.platforms svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.platforms small { display: block; color: var(--muted); font-size: 13px; }

footer {
  padding-block: 28px 40px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
  main { padding-block: 40px 64px; }
  .app { padding: 24px; }
}
