/* The app's own faces, subset to Latin. The app ships only the Regular
   weights, so the page uses one weight and builds hierarchy from size and
   color; font-synthesis keeps browsers from faking bold. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #1b1d21;
  --panel: #1f2125;
  --line: #2c2f35;
  --hover: #2a2d33;
  --text: #e6e6e6;
  --dim: #9a9ea5;
  --accent: #1e88b4;
  --accent-bright: #2aa3d4;
  --selected: #136f94;
  --selected-deep: #0f5a78;
  --warn: #e0a03c;
  --glow-amber: #ff8a0024;
  --glow-blue: #1e88b42b;
  --dot: #ffffff14;
  --card: #ffffff0a;
  --card-edge: #ffffff0d;
  --lift: 0 18px 40px #00000080;
  --radius: 6px;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wide: 1280px;
  --content: 1120px;
  --grid: 1600px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--line) var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The backdrop: soft glows in the icon's amber and the app's blue, spread
   down the whole page, over a faint dot grid that stays put while it scrolls. */
body {
  margin: 0;
  background:
    radial-gradient(700px 520px at 6% 0, var(--glow-amber), transparent 70%),
    radial-gradient(760px 600px at 96% 14%, var(--glow-blue), transparent 70%),
    radial-gradient(820px 640px at 4% 42%, var(--glow-blue), transparent 70%),
    radial-gradient(760px 600px at 100% 64%, var(--glow-amber), transparent 70%),
    radial-gradient(820px 640px at 12% 92%, var(--glow-blue), transparent 70%),
    var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(#000, #0008 55%, #000);
          mask-image: linear-gradient(#000, #0008 55%, #000);
}

::selection { background: var(--selected); color: #fff; }

a {
  color: var(--accent-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 16px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--panel);
  color: var(--text);
  border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* The name is a path: oh > my > dir. The separators are the app's
   breadcrumb chevrons, in the dim tone. */
.path {
  font-family: var(--mono);
  white-space: nowrap;
}
.path .sep {
  color: var(--dim);
  margin: 0 .35em;
}

/* Header */
/* Header and footer share the grid's edges with the sections between them. */
.top, footer.wrap { max-width: var(--grid); }
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}
.top nav { display: flex; align-items: center; }
.top nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--dim);
  text-decoration: none;
  border-radius: var(--radius);
}
.top nav a:hover { color: var(--text); background: var(--hover); }
.feed-link svg, .button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.feed-link svg circle, .button svg circle { fill: currentColor; stroke: none; }

/* Hero */
.hero {
  padding-top: 72px;
  padding-bottom: 48px;
  text-align: center;
}
h1 {
  font-size: clamp(2.2rem, 5.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  max-width: 14em;
  margin: 0 auto;
}
.lead {
  color: var(--dim);
  font-size: 1.2rem;
  max-width: 34em;
  margin: 24px auto 0;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 36px;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  background: var(--selected);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color .2s cubic-bezier(.16, 1, .3, 1);
}
.button:hover { background: var(--selected-deep); }
.status {
  color: var(--dim);
  font-size: .95rem;
}
.platforms {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: -8px 0 0;
  padding: 0;
  list-style: none;
}
.platforms li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.os-icon { width: 20px; height: 20px; flex: none; }

/* The real app, at full size where the screen allows. */
.hero-shot {
  max-width: var(--wide);
  margin: 0 auto 120px;
  padding: 0 16px;
}
.hero-shot img {
  border-radius: 10px;
  box-shadow: 0 30px 80px #00000099, 0 0 0 1px var(--card-edge);
}

/* Section headings are breadcrumbs ending in the section's name. */
.crumb {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -.02em;
  margin-bottom: 48px;
}
.crumb .path {
  color: var(--dim);
  font-size: .875rem;
  vertical-align: .3em;
  margin-right: .5em;
}
.crumb .path .sep { color: var(--line); }

h3 {
  font-size: 1.35rem;
  letter-spacing: -.015em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.copy p { color: var(--dim); max-width: 36em; }

/* Cards float over the backdrop: a lighter tint and a shadow, no borders.
   Frosted, so the glows still shine through but the dots blur away. */
.feature, .download, .ico {
  -webkit-backdrop-filter: blur(16px);
          backdrop-filter: blur(16px);
}
.feature, .download {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--lift), 0 0 0 1px var(--card-edge);
}

/* Features, the also list and download span a grid wider than the text
   column, so the cards show the app at a readable size. Their edges line up. */
.features, .more {
  max-width: var(--grid);
  padding-bottom: 120px;
}

/* Features: a card each, the text on top and the app up close below it,
   edge to edge. */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.feature .copy { padding: 24px 24px 22px; }
.feature .copy p { font-size: .95rem; line-height: 1.55; }
.feature img { margin-top: auto; }

/* Also: a column per group, each item with an icon in a small tile. */
.groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.group h3 {
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: 0;
  color: var(--accent-bright);
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.group dl { margin: 0; }
.group dl > div {
  position: relative;
  min-height: 40px;
  padding-left: 54px;
  margin-bottom: 22px;
}
.group dt { color: var(--text); }
.group dd {
  margin: 2px 0 0;
  color: var(--dim);
  font-size: .95rem;
  line-height: 1.5;
}
.ico {
  position: absolute;
  left: 0;
  top: 2px;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 6px 16px #00000059, 0 0 0 1px var(--card-edge);
  color: var(--accent-bright);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Download: a card inside the 16px page gutter, as wide as the grid. */
.download {
  width: min(var(--grid) - 32px, 100% - 32px);
  max-width: none;
  padding: 48px;
  margin: 0 auto 120px;
}
.download .crumb { margin-bottom: 24px; }
.download p {
  color: var(--dim);
  font-size: 1.1rem;
  max-width: 36em;
}
.download p + p { margin-top: 8px; }
.download .button { margin-top: 32px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  padding-bottom: 32px;
  /* The rule spans the content box only, so it ends where the cards do. */
  background: linear-gradient(var(--line), var(--line)) 16px 0 / calc(100% - 32px) 1px no-repeat;
  color: var(--dim);
  font-size: .9rem;
}
footer a { color: var(--dim); }
footer a:hover { color: var(--text); }

@media (max-width: 1100px) {
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top { min-height: 60px; }
  .brand img { display: none; }
  .top nav a { padding: 0 10px; }
  .top nav .feed-link { display: none; }
  .hero { padding-top: 40px; padding-bottom: 32px; }
  .hero-shot { margin-bottom: 72px; }
  .crumb { margin-bottom: 32px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .groups { gap: 8px 20px; }
  .features, .more { padding-bottom: 72px; }
  .group dl > div { margin-bottom: 18px; }
  .download { padding: 32px 24px; margin-bottom: 72px; }
  .feature .copy { padding: 20px 20px 18px; }
}

@media (max-width: 420px) {
  .groups { grid-template-columns: 1fr; }
}
