@font-face {
  font-family: "Barlow Condensed";
  src: url("BarlowCondensed-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --night: #07080a;
  --surface: #121419;
  --surface-hi: #191c22;
  --line: #23262d;
  --text: #f2f3f5;
  --soft: #c4c8d0;
  --muted: #8a8f99;
  --accent: #e3262f;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--text); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { text-decoration: none; font: 500 22px/1 var(--display); letter-spacing: 0.06em; }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--text); }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; line-height: 1.05; margin: 0; }

.hero { position: relative; text-align: center; padding: 64px 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: 0 -20% auto; height: 460px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(227, 38, 47, 0.22), rgba(227, 38, 47, 0) 70%);
}
.avatar { width: 128px; height: 128px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6); }
.hero h1 { font-size: clamp(48px, 9vw, 72px); margin-top: 20px; }
.lead { color: var(--soft); font-size: 20px; max-width: 34em; margin: 14px auto 0; }

section { padding: 40px 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; }
section h2 { font-size: 40px; margin-bottom: 20px; }
h3.group { font-size: 22px; color: var(--soft); margin: 28px 0 12px; }
h3.group:first-of-type { margin-top: 0; }

.feature { display: block; text-decoration: none; background: var(--surface); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.feature:hover { background: var(--surface-hi); }
.feature > img { display: block; width: 100%; height: auto; }
.feature-body { display: flex; gap: 16px; padding: 20px; align-items: flex-start; }
.app-icon { width: 64px; height: 64px; border-radius: 15px; flex: 0 0 auto; }
.feature h3 { font-size: 30px; margin-bottom: 6px; }
.feature p { margin: 0 0 10px; color: var(--soft); }
.more { color: var(--text); font-weight: 600; font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.card { display: block; text-decoration: none; background: var(--surface); border-radius: 18px; padding: 18px; }
.card:hover { background: var(--surface-hi); }
.card h4 { font-size: 22px; margin-bottom: 4px; word-break: break-word; }
.card p { margin: 0; color: var(--soft); font-size: 15px; }

.links { display: flex; flex-wrap: wrap; gap: 10px; }
.links a { text-decoration: none; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 15px; }
.links a:hover { background: var(--surface); }

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

@media (max-width: 520px) {
  nav a { margin-left: 12px; }
  .feature-body { flex-direction: column; }
}
