:root {
  color-scheme: dark;
  --bg: #08090f;
  --bg-strong: #05060a;
  --surface: #10141d;
  --surface-strong: #171d29;
  --text: #f8f7ff;
  --muted: #b8bdca;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: rgba(0, 0, 0, 0.36);
  --accent: #8b5cf6;
  --accent-strong: #6d28d9;
  --green: #15803d;
  --green-strong: #166534;
  --focus: #facc15;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.22), transparent 34rem),
    linear-gradient(225deg, rgba(21, 128, 61, 0.18), transparent 36rem),
    linear-gradient(180deg, var(--bg-strong), var(--bg));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  min-height: 76px;
  padding: 0 2rem;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-strong) 86%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  justify-self: start;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand__mark,
.footer-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #d8c5ff;
  font-weight: 900;
  border: 1px solid rgba(139, 92, 246, 0.62);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.24), rgba(21, 128, 61, 0.08));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand__name {
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.site-nav a {
  position: relative;
  padding: 0.8rem 1rem;
  color: var(--muted);
  font-weight: 700;
  border-radius: 8px;
}

.site-nav a::after {
  position: absolute;
  right: 1rem;
  bottom: 0.45rem;
  left: 1rem;
  height: 2px;
  content: "";
  background: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.hero {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 2rem 0 1.35rem;
}

.hero__content {
  max-width: 720px;
  margin: 0 auto 1.45rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  font-size: 0.9rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.8rem;
  font-size: 3.8rem;
  line-height: 0.95;
  background: linear-gradient(90deg, var(--text), #c4b5fd 48%, #86efac);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__intro {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.55;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  width: min(920px, 100%);
  margin: 0 auto;
}

.app-card {
  display: grid;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 24px 72px var(--shadow);
  transform: translateY(0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.app-card:hover,
.app-card:focus-within {
  border-color: color-mix(in srgb, var(--app-color) 76%, var(--line));
  box-shadow: 0 28px 90px color-mix(in srgb, var(--app-color) 28%, var(--shadow));
  transform: translateY(-3px);
}

.app-card--matte {
  --app-color: var(--accent);
  --app-color-strong: var(--accent-strong);
}

.app-card--idiot {
  --app-color: var(--green);
  --app-color-strong: var(--green-strong);
}

.app-card__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0.75rem;
  background: var(--surface-strong);
}

.app-card__media::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.24), transparent);
  pointer-events: none;
}

.app-card__media img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: contain;
}

.app-card__body {
  display: grid;
  gap: 1rem;
  align-content: space-between;
  min-height: 172px;
  padding: 1.2rem;
}

.app-card__type {
  margin-bottom: 0.55rem;
  color: color-mix(in srgb, var(--app-color) 76%, var(--text));
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.app-card h2 {
  margin-bottom: 0.65rem;
  font-size: 1.8rem;
  line-height: 1.08;
}

.app-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.5;
}

.app-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: fit-content;
  min-width: 156px;
  min-height: 48px;
  padding: 0.78rem 1.25rem;
  color: #ffffff;
  font-weight: 900;
  border: 1px solid color-mix(in srgb, var(--app-color) 70%, #ffffff);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--app-color), var(--app-color-strong));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--app-color) 38%, transparent);
}

.button-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.button-icon::before,
.button-icon::after {
  position: absolute;
  content: "";
}

.button-icon::before {
  top: 3px;
  right: 2px;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.button-icon::after {
  top: 9px;
  left: 3px;
  width: 14px;
  height: 2px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: center;
}

.about {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 42%, transparent);
}

.about__inner {
  width: min(860px, calc(100% - 3rem));
  margin: 0 auto;
}

.about h2 {
  max-width: 760px;
  margin-bottom: 0.8rem;
  font-size: 2.25rem;
  line-height: 1.12;
}

.about p:last-child {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 92px;
  padding: 1.5rem;
  color: var(--muted);
}

.footer-mark {
  width: 34px;
  height: 34px;
  font-size: 0.95rem;
}

.footer-separator {
  width: 1px;
  height: 18px;
  background: var(--line);
}

@media (max-width: 860px) {
  .site-header {
    min-height: 76px;
    padding: 0 1.1rem;
  }

  .site-nav {
    gap: 0.35rem;
  }

  .site-nav a {
    padding: 0.7rem 0.65rem;
  }

  .brand__name {
    font-size: 1.12rem;
  }

  .hero {
    width: min(640px, calc(100% - 2rem));
    padding-top: 3rem;
  }

  h1 {
    font-size: 3.9rem;
  }

  .hero__intro {
    font-size: 1.12rem;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 0.55rem;
  }

  .brand {
    gap: 0.7rem;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    width: min(calc(100% - 1.25rem), 520px);
    padding: 2.4rem 0 2.6rem;
  }

  .hero__content {
    margin-bottom: 1.5rem;
  }

  h1 {
    font-size: 3rem;
  }

  .app-card__body {
    min-height: 190px;
    padding: 1.25rem;
  }

  .app-card h2 {
    font-size: 1.75rem;
  }

  .app-card p,
  .about p:last-child {
    font-size: 1rem;
  }

  .app-card__button {
    width: 100%;
  }

  .about {
    padding: 2.5rem 0 3rem;
  }

  .about__inner {
    width: min(calc(100% - 1.25rem), 520px);
  }

  .about h2 {
    font-size: 1.8rem;
  }

  .site-footer {
    flex-wrap: wrap;
    min-height: 84px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .app-card:hover,
  .app-card:focus-within {
    transform: none;
  }
}
