:root {
  --void: #050505;
  --surface: #0b0d0d;
  --surface-2: #101313;
  --text: #f6f6f4;
  --subtle: #abab9f;
  --muted: #656761;
  --line: rgba(246, 246, 244, 0.09);
  --cyan: #22d3ee;
  --green: #7ddf8d;
  --amber: #d7a84d;
  --glow: rgba(34, 211, 238, 0.045);
  --max: 360px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --void: #f7f8fa;
    --surface: #ffffff;
    --surface-2: #edf1f3;
    --text: #111312;
    --subtle: #3d4641;
    --muted: #6b746f;
    --line: rgba(17, 19, 18, 0.12);
    --cyan: #087d92;
    --green: #247a45;
    --amber: #936713;
    --glow: rgba(8, 125, 146, 0.075);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--void);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  font-family: "SFMono-Regular", "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  background:
    radial-gradient(circle at 50% 48%, var(--glow), transparent 24rem),
    var(--void);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

svg {
  display: block;
  fill: currentColor;
}

.site-shell {
  width: min(100%, 440px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  display: flex;
  width: min(100%, var(--max));
  min-height: 100svh;
  margin: 0 auto;
  padding: 56px 0;
  flex-direction: column;
  justify-content: center;
}

.profile-block {
  margin-bottom: 48px;
}

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

h1 {
  margin-bottom: 6px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.tagline {
  margin-bottom: 0;
  color: var(--subtle);
  font-size: 0.92rem;
  line-height: 1.45;
}

.summary {
  margin: 0 0 36px;
  color: var(--subtle);
  font-size: 0.88rem;
  line-height: 1.7;
}

.link-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.link-row {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid transparent;
  outline: none;
}

.link-row::before {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease, opacity 220ms ease;
}

.link-row strong {
  display: block;
  color: var(--subtle);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.35;
  transition: color 180ms ease;
}

.link-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.link-row svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: transform 180ms ease, opacity 180ms ease, color 180ms ease;
}

.project-row {
  cursor: default;
}

.row-mark {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.7rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: transform 180ms ease, opacity 180ms ease, color 180ms ease;
}

.link-row:hover strong,
.link-row:focus-visible strong {
  color: var(--text);
}

.link-row:hover svg,
.link-row:hover .row-mark,
.link-row:focus-visible .row-mark,
.link-row:focus-visible svg {
  color: var(--cyan);
  opacity: 1;
  transform: translateX(0);
}

.link-row:hover::before,
.link-row:focus-visible::before {
  opacity: 0.55;
  transform: scaleX(1);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.socials a {
  transition: color 160ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  color: var(--text);
  outline: none;
}

/* Remainy project page */

.project-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(48, 132, 222, 0.12), transparent 30rem),
    radial-gradient(circle at 8% 40%, var(--glow), transparent 26rem),
    var(--void);
}

.project-shell {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 0 40px;
}

.project-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.project-nav a,
.project-footer a {
  transition: color 160ms ease;
}

.project-nav a:hover,
.project-nav a:focus-visible,
.project-footer a:hover,
.project-footer a:focus-visible {
  color: var(--text);
  outline: none;
}

.project-hero {
  display: grid;
  min-height: 610px;
  align-items: center;
  grid-template-columns: 142px minmax(0, 1fr);
  gap: clamp(34px, 7vw, 74px);
  padding: 88px 0 98px;
}

.app-icon {
  width: 142px;
  height: 142px;
  border-radius: 31px;
  box-shadow: 0 24px 70px rgba(13, 74, 145, 0.3);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-intro h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6vw, 4.5rem);
  font-weight: 450;
  line-height: 0.99;
  letter-spacing: -0.06em;
}

.project-lede {
  max-width: 670px;
  margin-bottom: 34px;
  color: var(--subtle);
  font-size: clamp(0.96rem, 2vw, 1.08rem);
  line-height: 1.7;
}

.download-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.download-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 16px;
  border: 1px solid rgba(125, 223, 141, 0.45);
  border-radius: 5px;
  color: var(--text);
  background: rgba(125, 223, 141, 0.08);
  font-size: 0.83rem;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.download-button:hover,
.download-button:focus-visible {
  border-color: var(--green);
  background: rgba(125, 223, 141, 0.14);
  outline: none;
  transform: translateY(-1px);
}

.download-group small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.demo-section,
.install-section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 660px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  font-weight: 450;
  line-height: 1.14;
  letter-spacing: -0.04em;
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #08162a;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
}

.feature-list {
  border-top: 1px solid var(--line);
}

.feature-list article {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.feature-number {
  color: var(--cyan);
  font-size: 0.72rem;
  line-height: 1.6;
}

.feature-list h2 {
  margin-bottom: 9px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
}

.feature-list p,
.section-copy {
  max-width: 690px;
  margin-bottom: 0;
  color: var(--subtle);
  font-size: 0.85rem;
  line-height: 1.75;
}

.install-section .section-copy {
  margin-bottom: 38px;
}

.install-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.install-steps li {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 24px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.8rem;
  line-height: 1.55;
}

.install-steps span {
  color: var(--muted);
  font-size: 0.7rem;
}

.release-meta {
  margin-top: 42px;
}

.release-meta dl {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.release-meta dl > div {
  min-width: 0;
  padding: 20px 22px 20px 0;
}

.release-meta dl > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.release-meta dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.release-meta dd {
  margin: 0;
  color: var(--subtle);
  font-size: 0.75rem;
  line-height: 1.5;
}

.release-meta code {
  font: inherit;
  overflow-wrap: anywhere;
}

.project-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 35px 0 48px;
  border-top: 1px solid var(--line);
}

.project-footer p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.65;
}

.project-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  color: var(--subtle);
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .site-shell {
    padding-inline: 20px;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .project-shell {
    padding-inline: 22px;
  }

  .project-hero {
    min-height: auto;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 28px;
    padding: 70px 0 80px;
  }

  .app-icon {
    width: 92px;
    height: 92px;
    border-radius: 21px;
  }

  .project-intro h1 {
    font-size: clamp(2.4rem, 10vw, 4.2rem);
  }

  .demo-section,
  .install-section {
    padding: 70px 0;
  }

  .release-meta dl {
    grid-template-columns: 1fr;
  }

  .release-meta dl > div,
  .release-meta dl > div + div {
    padding: 16px 0;
    border-left: 0;
  }

  .release-meta dl > div + div {
    border-top: 1px solid var(--line);
  }

  .project-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .socials {
    gap: 14px;
  }

  .project-nav span {
    display: none;
  }

  .project-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 56px 0 68px;
  }

  .app-icon {
    width: 84px;
    height: 84px;
    border-radius: 19px;
  }

  .project-intro h1 {
    font-size: 2.65rem;
  }

  .download-group {
    align-items: stretch;
    flex-direction: column;
  }

  .download-button {
    width: 100%;
  }

  .feature-list article,
  .install-steps li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }
}
