/* uyarid.com
   Near-black, one sky accent, and the two lines of the logo as a route map.
   Motion: everything is visible by default; animations only describe where
   things come *from*, so the page is complete without them. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #08090b;
  --surface: #0d0f13;
  --surface-2: #12151a;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #eceef1;
  --muted: #8f96a3;
  --dim: #626976;
  --sky: #38bdf8;
  --sky-2: #7dd3fc;
  --track: #1a1f27;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --spring: cubic-bezier(0.3, 1.5, 0.5, 1);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img,
svg {
  display: block;
}

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

::selection {
  background: rgba(56, 189, 248, 0.3);
}

.wrap {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transition: top 0.2s;
}

.skip:focus {
  top: 12px;
}

/* -------------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s,
    backdrop-filter 0.3s;
  animation: drop 0.7s var(--ease) both;
}

.nav.scrolled {
  background: rgba(8, 9, 11, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -0.015em;
}

.mark-bg {
  fill: #10141a;
}

.mark-lines path {
  stroke: var(--sky);
  stroke-dasharray: 1;
  animation: draw 0.9s var(--ease) 0.2s both;
}

.mark-lines path + path {
  animation-delay: 0.45s;
}

.mark-stop {
  fill: #10141a;
  stroke: #e6e8eb;
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 0.5s var(--spring) 1s both;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  color: var(--muted);
  transition:
    color 0.2s,
    background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-gh {
  margin-left: 6px;
  border: 1px solid var(--line-2);
}

.nav-gh svg {
  transition: transform 0.25s var(--ease);
}

.nav-gh:hover svg {
  transform: translate(2px, -2px);
}

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

.hero {
  position: relative;
  padding: 188px 0 120px;
  overflow: hidden;
}

/* a breath of light where the line leaves the page */
.hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -180px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.13), transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 30px;
  margin: 0 0 26px;
  padding: 0 12px 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  background: rgba(13, 15, 19, 0.7);
  color: var(--muted);
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: rise-in 0.8s var(--ease) 0.05s both;
}

.eyebrow i {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sky);
}

.eyebrow i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--sky);
  animation: ping 2.6s ease-out 1.4s infinite;
}

h1 {
  margin: 0;
  font-size: clamp(2.55rem, 7.1vw, 5.25rem);
  font-weight: 640;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.line {
  display: block;
  overflow: hidden;
  /* room for descenders inside the clipping box */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}

.line > span {
  display: inline-block;
  animation: line-up 1s var(--ease) 0.12s both;
}

.line + .line > span {
  animation-delay: 0.22s;
}

.accent {
  background: linear-gradient(100deg, var(--sky-2), var(--sky) 55%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 500px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.6;
  animation: rise-in 0.9s var(--ease) 0.42s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
  animation: rise-in 0.9s var(--ease) 0.54s both;
}

/* the route map */
.map {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(66vw, 940px);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(115% 95% at 100% 42%, #000 30%, transparent 74%);
  mask-image: radial-gradient(115% 95% at 100% 42%, #000 30%, transparent 74%);
}

.map svg {
  width: 100%;
  height: 100%;
}

.route {
  stroke: var(--track);
  stroke-width: 6;
  stroke-dasharray: 1;
  animation: draw 2.2s cubic-bezier(0.6, 0, 0.2, 1) both;
}

.route.r1 {
  animation-delay: 0.1s;
}
.route.r2 {
  animation-delay: 0.35s;
}
.route.r3 {
  animation-delay: 0.6s;
}

.route.main {
  stroke: var(--sky);
  stroke-width: 7;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.4));
  animation-duration: 2s;
  animation-delay: 0.5s;
}

.stop circle {
  fill: var(--bg);
  stroke: #e9ebee;
  stroke-width: 3.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 0.55s var(--spring) both;
}

.stop.minor circle {
  stroke: #343a45;
  stroke-width: 3;
}

.stop text {
  fill: var(--muted);
  font: 500 11px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: fade 0.6s ease both;
}

.stop.s3 circle {
  animation-delay: 0.9s;
}
.stop.s4 circle {
  animation-delay: 1.25s;
}
.stop.s1 circle {
  animation-delay: 1.5s;
}
.stop.s1 text {
  animation-delay: 1.7s;
}
.stop.s5 circle {
  animation-delay: 1.85s;
}
.stop.s2 circle {
  animation-delay: 2.2s;
}
.stop.s2 text {
  animation-delay: 2.4s;
}

.train {
  display: none;
  fill: #e0f2fe;
  filter: drop-shadow(0 0 8px rgba(125, 211, 252, 0.9));
}

@supports (offset-path: path("M0 0H1")) {
  .train {
    display: block;
    offset-path: path(
      "M-20 404H138Q162 404 179 387L263 303Q280 286 304 286H434Q458 286 475 269L559 185Q576 168 600 168H780"
    );
    offset-rotate: auto;
    animation: ride 11s linear 3s infinite both;
  }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 15px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14.5px;
  font-weight: 560;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.25s;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
  transition-duration: 0.08s;
}

.btn svg {
  flex: none;
  transition: transform 0.3s var(--ease);
}

.btn.primary {
  border-color: transparent;
  background: #f1f3f6;
  color: #07090c;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.btn.primary:hover {
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 10px 30px -8px rgba(125, 211, 252, 0.45);
}

/* the arrow nods towards what the button does */
.btn.primary:hover svg {
  transform: translateY(2px);
}

.btn small {
  color: var(--dim);
  font: 500 11px/1 var(--mono);
}

.btn.primary small {
  color: rgba(7, 9, 12, 0.5);
}

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

.section {
  padding-top: 34px;
  scroll-margin-top: 76px;
}

.section + .section {
  margin-top: 96px;
}

.section-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}

.index {
  color: var(--sky);
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.08em;
}

.section-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 620;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-head p {
  margin: 0 0 0 auto;
  color: var(--dim);
  font-size: 14.5px;
}

/* scroll reveal (only when scripts run; see boot.js) */
.js [data-reveal] {
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.js [data-reveal]:not(.in) {
  opacity: 0;
  transform: translateY(26px);
}

/* a soft light that follows the pointer over cards */
.spot {
  position: relative;
  isolation: isolate;
}

.spot::before,
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s;
}

.spot::before {
  z-index: 2;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(125, 211, 252, 0.07), transparent 62%);
}

.spot::after {
  z-index: 3;
  padding: 1px;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(125, 211, 252, 0.6), transparent 60%);
  /* show the gradient only where the 1px padding is: a lit border */
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.spot:hover::before,
.spot:hover::after {
  opacity: 1;
}

/* ------------------------------------------------------------------- apps */

.apps {
  display: grid;
  gap: 22px;
}

.app {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  overflow: hidden;
}

.app:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
}

.app:nth-child(even) .stage {
  order: 2;
}

.app.plain {
  grid-template-columns: 1fr;
  min-height: 0;
}

.app.skeleton {
  display: block;
  background: linear-gradient(100deg, var(--surface) 30%, #14181e 50%, var(--surface) 70%) 0 0 / 240% 100%;
  animation: shimmer 1.6s linear infinite;
}

.stage {
  position: relative;
  display: block;
  min-height: 300px;
  overflow: hidden;
}

/* a lit patch of dotted floor under the picture */
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 62% at 50% 46%, rgba(56, 189, 248, 0.13), transparent 72%),
    radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.4px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(72% 76% at 50% 50%, #000 35%, transparent 100%);
  mask-image: radial-gradient(72% 76% at 50% 50%, #000 35%, transparent 100%);
}

.stage img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  transform: translate(-50%, -50%);
  transition: transform 0.9s var(--ease);
  will-change: transform;
}

.app:hover .stage img {
  transform: translate(-50%, -52%) scale(1.03);
}

/* a picture of a whole window that brings its own shadow */
.stage.window img {
  top: 51.5%;
  width: 104%;
  height: auto;
}

/* a plain screenshot: give it corners and a shadow */
.stage.shot img {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 80%;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 34px 70px -24px rgba(0, 0, 0, 0.85),
    0 10px 24px -10px rgba(0, 0, 0, 0.5);
}

.app-info {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 42px 40px;
}

.app.plain .app-info {
  padding: 34px 36px;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-icon {
  flex: none;
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
  transition: transform 0.6s var(--spring);
}

.app:hover .app-icon {
  transform: scale(1.06) rotate(-3deg);
}

.app-icon.letter {
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  background: linear-gradient(180deg, #1b222b, #12161c);
  color: var(--sky);
  font-size: 24px;
  font-weight: 700;
  filter: none;
}

.app h3 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-size: 30px;
  font-weight: 640;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-2);
  border-radius: 7px;
  color: var(--muted);
  font: 500 11px/1 var(--mono);
  letter-spacing: 0;
}

.app-tagline {
  margin: 20px 0 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.app-points {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.app-points li {
  position: relative;
  padding-left: 22px;
}

.app-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.66em;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--sky);
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.soon {
  color: var(--dim);
  font-size: 14px;
}

.soon a {
  color: var(--sky);
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

.app-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 0;
}

.app-facts span:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: #3a404b;
}

.app-meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s;
}

.app-meta a:hover {
  color: var(--sky-2);
}

.app-meta a svg {
  transition: transform 0.25s var(--ease);
}

.app-meta a:hover svg {
  transform: translate(2px, -2px);
}

/* ------------------------------------------------------------------ repos */

.repos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
  gap: 14px;
}

.repo {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 20px 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition:
    transform 0.35s var(--ease),
    background 0.3s;
}

.repo:hover {
  background: var(--surface-2);
  transform: translateY(-3px);
}

.repo-top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.repo-name {
  min-width: 0;
  overflow: hidden;
  font: 500 15px/1.3 var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.repo:hover .repo-name {
  color: var(--sky-2);
}

.repo-arrow {
  margin-left: auto;
  color: var(--dim);
  transition:
    transform 0.3s var(--ease),
    color 0.2s;
}

.repo:hover .repo-arrow {
  color: var(--sky-2);
  transform: translate(3px, -3px);
}

.repo-desc {
  display: -webkit-box;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.repo-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--dim);
  font-size: 12.5px;
  white-space: nowrap;
}

.repo-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.repo-meta i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8a919c;
}

.repo-meta .ago {
  margin-left: auto;
}

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

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 110px;
  padding: 24px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
}

.noscript {
  width: min(1120px, 100% - 48px);
  margin: 0 auto 40px;
  color: var(--muted);
}

.noscript a {
  color: var(--sky);
}

/* -------------------------------------------------------------- keyframes */

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes line-up {
  from {
    transform: translateY(112%);
  }
}

@keyframes ping {
  0% {
    opacity: 0.7;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(3.4);
  }
}

@keyframes ride {
  0% {
    offset-distance: 0%;
    opacity: 0;
  }
  5%,
  92% {
    opacity: 1;
  }
  100% {
    offset-distance: 100%;
    opacity: 0;
  }
}

@keyframes shimmer {
  to {
    background-position: -240% 0;
  }
}

/* ------------------------------------------------------------- responsive */

/* narrower desktops: slide the map out from under the headline */
@media (max-width: 1180px) {
  .map {
    transform: translateX(10%);
  }
}

@media (max-width: 900px) {
  .hero {
    padding: 148px 0 84px;
  }

  .map {
    width: 150%;
    right: -46%;
    opacity: 0.5;
    transform: none;
  }

  .stop text {
    display: none;
  }

  .app,
  .app:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .app:nth-child(even) .stage {
    order: 0;
  }

  .stage {
    height: 270px;
    min-height: 0;
  }

  .app-info {
    padding: 8px 26px 30px;
  }

  .section + .section {
    margin-top: 72px;
  }

  .section-head p {
    display: none;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .nav-links a:not(.nav-gh) {
    display: none;
  }

  .hero-actions .btn,
  .app-actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .app h3 {
    font-size: 26px;
  }

  .app-icon {
    width: 52px;
    height: 52px;
  }


  .footer {
    margin-top: 80px;
  }
}

/* --------------------------------------------------------- reduced motion */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js [data-reveal]:not(.in) {
    opacity: 1;
    transform: none;
  }

  .train {
    display: none !important;
  }
}
