/* Anix site. Colours and radii follow the app's default (dark) theme. No web fonts. */

:root {
  --bg-deepest: #060608;
  --bg-page: #0a0a0d;
  --bg-card: #121217;
  --bg-elevated: #1a1a21;
  --border: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.14);
  --accent: #8979f2;
  --accent-strong: #6d5ae0;
  --accent-soft: #a99ef5;
  --accent-tint: rgb(137 121 242 / 0.12);
  --text: #ffffff;
  --text-2: rgb(255 255 255 / 0.74);
  --text-3: rgb(255 255 255 / 0.58);
  --radius: 10px;
  --radius-lg: 16px;
  --font: "Inter Variable", "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "DejaVu Sans Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgb(137 121 242 / 0.4);
  color: #fff;
}

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

a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-color: rgb(169 158 245 / 0.4);
  text-underline-offset: 3px;
}

a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

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

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.0625rem;
}

p {
  margin: 0 0 14px;
}

strong {
  color: var(--text);
  font-weight: 600;
}

code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  color: var(--text);
  overflow-wrap: anywhere;
}

pre {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--bg-deepest);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  line-height: 1.5;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.875rem;
  overflow-wrap: normal;
  white-space: pre;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Text columns keep to a readable width, on the same left edge as everything else. */
.narrow > *,
.narrow-block {
  max-width: 760px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--accent-strong);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(10 10 13 / 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.0625rem;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
}

.top nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.top nav::-webkit-scrollbar {
  display: none;
}

.top nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9375rem;
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.top nav a:hover {
  color: #fff;
  background: rgb(255 255 255 / 0.06);
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 48px 0 56px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgb(109 90 224 / 0.22), transparent 70%),
    radial-gradient(700px 380px at 95% 0%, rgb(137 121 242 / 0.1), transparent 70%);
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.hero-logo {
  border-radius: 22px;
  box-shadow: 0 10px 32px rgb(109 90 224 / 0.35);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.5rem, 1.8rem + 3.4vw, 3.75rem);
  letter-spacing: -0.03em;
}

.lead {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  color: var(--text-2);
  margin: 12px 0 26px;
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button.primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 6px 22px rgb(109 90 224 / 0.35);
}

.button.primary:hover {
  background: var(--accent);
  color: #fff;
}

.button.quiet {
  background: rgb(255 255 255 / 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}

.button.quiet:hover {
  background: rgb(255 255 255 / 0.09);
}

.button.small {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.875rem;
  background: var(--accent-strong);
  color: #fff;
  flex: none;
}

.button.small:hover {
  background: var(--accent);
}

.button[hidden] {
  display: none;
}

.meta {
  color: var(--text-3);
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.hero-shot,
.shots a,
.steps a {
  display: block;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}

.hero-shot {
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55);
}

/* -------------------------------------------------------------- sections */

.band {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.shots,
.features,
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.shots a {
  position: relative;
  text-decoration: none;
  color: var(--text);
}

.shots img {
  width: 100%;
  aspect-ratio: 1866 / 986;
  object-fit: cover;
  object-position: top left;
}

.shots span {
  display: block;
  padding: 10px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  border-top: 1px solid var(--border);
}

.shots a:hover,
.steps a:hover,
.hero-shot:hover {
  border-color: rgb(137 121 242 / 0.6);
}

.features li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.features h3 {
  margin-bottom: 8px;
}

.features p {
  margin: 0;
  font-size: 0.9375rem;
}

.steps-text {
  padding-left: 1.4em;
  margin: 0 0 14px;
}

.steps-text li {
  padding-left: 4px;
  margin-bottom: 6px;
}

.steps-text li::marker,
.steps > li::marker {
  color: var(--accent-soft);
  font-weight: 700;
}

.note {
  background: var(--accent-tint);
  border: 1px solid rgb(137 121 242 / 0.28);
  border-radius: var(--radius-lg);
  padding: 18px 20px 6px;
  margin: 22px 0;
}

.note h3,
.narrow-block .note h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
}

.narrow-block h3 {
  margin: 28px 0 14px;
  font-size: 1.1875rem;
}

.steps {
  counter-reset: step;
  margin: 0 0 24px;
}

.steps > li {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-text {
  position: relative;
  padding-left: 42px;
  min-height: 30px;
}

.step-text::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  display: grid;
  place-items: center;
}

.step-text p {
  margin: 0 0 10px;
}

.step-text p:last-child {
  margin-bottom: 0;
}

.steps > li > a {
  margin-top: auto;
  border-radius: var(--radius);
}

.steps img {
  width: 100%;
  aspect-ratio: 960 / 640;
  object-fit: cover;
  object-position: top left;
}

.copy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.copy-row code {
  flex: 1 1 240px;
  min-width: 0;
  padding: 10px 12px;
  font-size: 0.9375rem;
  border-color: var(--border-strong);
  user-select: all;
  -webkit-user-select: all;
}

.copy-row .button.small {
  min-height: 42px;
  padding: 0 18px;
}

/* ------------------------------------------------------------- changelog */

.release {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  margin-bottom: 12px;
}

.release > summary {
  cursor: pointer;
  padding: 14px 18px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.0625rem;
  list-style-position: inside;
}

.release > summary time {
  color: var(--text-3);
  font-weight: 400;
  font-size: 0.875rem;
  margin-left: 8px;
}

.release-body {
  padding: 0 18px 8px;
  border-top: 1px solid var(--border);
}

.release-body h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin: 18px 0 8px;
}

.release-body ul {
  margin: 0 0 12px;
  padding-left: 1.2em;
}

.release-body li {
  margin-bottom: 6px;
  font-size: 0.9375rem;
}

.release-body > ul:first-child {
  margin-top: 16px;
}

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

.foot {
  border-top: 1px solid var(--border);
  background: var(--bg-deepest);
  padding: 36px 0 44px;
  font-size: 0.875rem;
  color: var(--text-3);
}

.foot p:first-child {
  color: var(--text-2);
}

/* ------------------------------------------------------------ wider views */

@media (min-width: 640px) {
  .shots,
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .wrap {
    padding: 0 32px;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 48px;
  }

  .band {
    padding: 72px 0;
  }

  .shots,
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .top-row {
    gap: 8px;
  }

  .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .top nav a {
    padding: 8px 7px;
    font-size: 0.875rem;
  }

  .button.primary,
  .button.quiet {
    width: 100%;
  }
}

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

  .button {
    transition: none;
  }
}

@media (max-width: 360px) {
  .wrap {
    padding: 0 14px;
  }

  .top nav {
    gap: 0;
  }

  .top nav a {
    padding: 8px 4px;
    font-size: 0.8125rem;
  }
}
