@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("../fonts/gilroy-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #141518;
  --card: #0b0b0c;
  --panel: #18191c;
  --panel-2: #1f2024;
  --text: #f2f3f5;
  --muted: #8d9099;
  --line: rgba(255, 255, 255, .08);
  --blue: #007aff;
  --blue-hover: #1a88ff;
  --tg-link: #3e88f7;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pad: clamp(16px, 4vw, 40px);
  --wrap: min(1180px, calc(100% - 2 * var(--pad)));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Gilroy", system-ui, -apple-system, sans-serif;
  font-weight: 500;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }

/* buttons */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: stretch;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 600; font-size: 17px;
  transition: background .3s, transform .3s var(--ease);
}
.btn > span { display: flex; align-items: center; padding: 17px 24px; }
.btn .tg {
  width: 58px; padding: 0 18px;
  fill: #fff;
  background: rgba(255, 255, 255, .14);
  transition: transform .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover { background: var(--blue-hover); transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
.btn:hover .tg { transform: translateX(2px); }
.btn-ghost { background: var(--panel); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--panel-2); }

/* hero */
.hero {
  position: relative; isolation: isolate;
  width: var(--wrap); margin: 0 auto;
  padding: 20px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  text-align: center;
}
.hero-card {
  position: relative; overflow: hidden;
  min-height: 660px;
  border-radius: 40px;
  background: rgba(11, 11, 12, .9);
}
.hero-text {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px clamp(24px, 4vw, 56px);
}

/* background: paper planes on dotted routes */
.sky {
  position: absolute; z-index: 4; top: 0; left: 50%;
  width: 100vw; height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
}
.sky .trail { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1.4; stroke-dasharray: 2 9; stroke-linecap: round; animation: dash 6s linear infinite; }
.sky .plane { fill: rgba(255, 255, 255, .28); }
@keyframes dash { to { stroke-dashoffset: -44; } }

h1 {
  margin: 0 0 14px;
  font-size: clamp(46px, 5.6vw, 84px);
  font-weight: 700; line-height: .9; letter-spacing: -.035em;
}
h1 .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
h1 .line > span { display: inline-block; }
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--blue) 0%, #5aaeff 40%, var(--blue) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.lead { font-size: clamp(17px, 1.6vw, 22px); color: var(--muted); max-width: 32ch; }
.tags { display: grid; grid-template-columns: repeat(3, auto); justify-content: center; gap: 8px; margin: 44px 0; }
.tags li {
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; color: #c3c6cd;
  transition: color .8s, border-color .8s;
}
.tags li.lit { color: #fff; border-color: rgba(255, 255, 255, .32); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* iphone 15 pro mockup */
.hero-visual { display: flex; justify-content: center; align-items: flex-start; padding-top: 64px; }
.iphone {
  --w: 360px;
  position: relative;
  width: var(--w); aspect-ratio: 71.6 / 147.6;
  padding: calc(var(--w) * .033);
  border-radius: calc(var(--w) * .16);
  background: linear-gradient(145deg, #4a4a4e, #222225 30%, #2d2d31 60%, #121214);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14), inset 0 0 0 4px #0d0d0f, 0 40px 80px -30px rgba(0, 0, 0, .9);
  text-align: left;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.iphone > span[class^="btn-"] { position: absolute; width: 4px; background: linear-gradient(90deg, #1a1a1c, #3c3c40); }
.btn-action { left: -3px; top: 17%; height: 5.5%; border-radius: 3px 0 0 3px; }
.btn-vol-up { left: -3px; top: 26%; height: 9%; border-radius: 3px 0 0 3px; }
.btn-vol-down { left: -3px; top: 37%; height: 9%; border-radius: 3px 0 0 3px; }
.btn-power { right: -3px; top: 29%; height: 14%; border-radius: 0 3px 3px 0; transform: scaleX(-1); }
.screen {
  position: relative; overflow: hidden;
  width: 100%; height: 100%;
  border-radius: calc(var(--w) * .13);
  background: #000;
  display: flex; flex-direction: column;
  font-size: calc(var(--w) * .0375);
}
.status {
  position: relative; z-index: 4; flex: none;
  height: calc(var(--w) * .15);
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--w) * .02) calc(var(--w) * .085) 0;
  font-weight: 600; font-size: calc(var(--w) * .043);
}
.clock { width: 25%; text-align: center; }
.island {
  position: absolute; left: 50%; top: calc(var(--w) * .03);
  width: 34%; height: calc(var(--w) * .095);
  transform: translateX(-50%);
  border-radius: 999px; background: #000;
  box-shadow: 0 0 0 1px #000;
}
.sys { width: 25%; display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.sys svg { height: calc(var(--w) * .032); width: auto; fill: currentColor; color: #fff; }
.sys svg:last-child { height: calc(var(--w) * .036); }

.note {
  position: absolute; z-index: 3;
  width: 300px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(40, 40, 44, .82);
  border: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
  text-align: left;
  transition: opacity .45s var(--ease), transform .7s cubic-bezier(.2, .9, .25, 1.05);
}
.note.out { opacity: 0; transform: translateX(calc(-100% - 40px)); }
.note.n2.out { transform: translateX(calc(100% + 40px)); }
.note img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.note div { flex: 1; min-width: 0; line-height: 1.3; }
.note b { display: block; font-size: 14px; font-weight: 600; }
.note span { display: block; font-size: 14px; color: #e4e5e9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note small { display: block; font-size: 13px; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.note time { align-self: flex-start; font-size: 12px; color: rgba(255, 255, 255, .5); }
.n1 { top: 150px; left: 20px; }
.n2 { top: 340px; right: 20px; }
.n3 { top: 530px; left: 32px; }

.tg-head {
  flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 2px 12px 8px;
  background: rgba(22, 22, 24, .96);
}
.tg-back { display: flex; align-items: center; gap: 5px; color: var(--tg-link); width: 52px; }
.tg-back svg { width: 10px; height: 18px; }
.tg-back i { font-style: normal; font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--tg-link); color: #fff; }
.tg-title { flex: 1; text-align: center; line-height: 1.25; min-width: 0; }
.tg-title b { display: block; font-size: 1.07em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-title span { font-size: .86em; color: var(--muted); }
.ava { width: 36px; height: 36px; border-radius: 50%; margin-left: 16px; }
.tg-pin {
  flex: none; position: relative;
  padding: 7px 14px 8px 22px;
  font-size: .86em; line-height: 1.35;
  background: rgba(22, 22, 24, .96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06), 0 -1px 0 rgba(255, 255, 255, .06);
}
.tg-pin::before { content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--tg-link); }
.tg-pin b { display: block; color: var(--tg-link); font-weight: 600; }
.tg-pin span { display: block; color: #d0d2d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.feed {
  flex: 1; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 7px;
  padding: 10px 10px 8px;
  background: #0d0d0e;
  mask-image: linear-gradient(transparent, #000 18%);
  -webkit-mask-image: linear-gradient(transparent, #000 18%);
}
.post {
  flex: none; max-width: 90%;
  padding: 9px 12px 7px;
  border-radius: 16px 16px 16px 5px;
  background: #222224;
  line-height: 1.36;
  transform-origin: 0 100%;
  animation: postIn .7s var(--ease) both;
}
.post .city { color: #c3c6cd; }
.post .role { display: block; font-size: 1.08em; font-weight: 700; margin: 1px 0; }
.post .co { display: block; color: #c3c6cd; }
.post .pay { display: block; color: #e6e6ea; }
.post .hash { display: block; color: var(--tg-link); }
.post .meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.post .reacts { display: flex; gap: 5px; }
.post .reacts span { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .09); font-size: .86em; }
.post .reacts span.bump { animation: bump .45s var(--ease); background: var(--tg-link); }
.post time { font-size: .76em; color: rgba(255, 255, 255, .45); }
@keyframes postIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
@keyframes bump { 50% { transform: scale(1.15); } }

.tg-bottom {
  flex: none;
  padding: 10px 12px 30px;
  background: rgba(22, 22, 24, .96);
  text-align: center;
}
.tg-bottom span { color: var(--tg-link); font-weight: 600; }
.home { position: absolute; z-index: 4; left: 50%; bottom: 8px; width: 36%; height: 5px; border-radius: 3px; background: #fff; transform: translateX(-50%); }

/* companies */
.companies { padding: 110px 0 70px; overflow: hidden; }
h2 {
  font-size: clamp(30px, 4.6vw, 60px);
  font-weight: 700; line-height: 1.06; letter-spacing: -.03em;
}
.companies h2 { width: var(--wrap); margin: 0 auto 56px; text-align: center; }
.companies h2, .cta h2 { text-wrap: balance; }
.marquee {
  display: flex; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.marquee + .marquee { margin-top: 28px; }
.marquee ul { display: flex; align-items: center; gap: clamp(44px, 6vw, 80px); padding-right: clamp(44px, 6vw, 80px); flex: none; animation: slide 50s linear infinite; }
.marquee[data-dir="right"] ul { animation-direction: reverse; animation-duration: 56s; }
.marquee li {
  flex: none; height: 64px;
  display: flex; align-items: center;
  font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em;
  white-space: nowrap;
  opacity: .5;
  transition: opacity .35s, transform .35s var(--ease);
}
.marquee li img { height: var(--h, 40px); width: auto; filter: brightness(0) invert(1); }
.marquee li img.keep { filter: none; }
.marquee li.duo { gap: 12px; }
.marquee li:not(.ph) { opacity: 1; }
.marquee li:hover { opacity: 1; transform: scale(1.06); }
@keyframes slide { to { transform: translateX(-100%); } }

/* cta */
.cta { width: var(--wrap); margin: 50px auto 0; }
.cta-card {
  padding: clamp(44px, 7vw, 96px) var(--pad);
  border-radius: 40px;
  background: var(--card);
  text-align: center;
}
.cta-card h2 { max-width: 18ch; margin: 0 auto; }
.cta-card p { margin: 16px auto 32px; font-size: clamp(16px, 1.5vw, 20px); color: var(--muted); }

/* footer */
.foot { width: var(--wrap); margin: 0 auto; padding: 96px 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand img { height: 30px; width: auto; }
.foot-brand p { margin-top: 18px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.foot-cols { display: flex; gap: clamp(40px, 7vw, 96px); }
.foot-cols div { display: flex; flex-direction: column; gap: 10px; }
.foot-h { font-size: 14px; color: var(--muted); }
.foot-cols a { font-size: 17px; font-weight: 600; transition: color .3s; }
.foot-cols a:hover { color: var(--blue); }

/* channel rules for employers */
.rules {
  margin-top: 56px;
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--card);
}
.rules summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 24px 28px;
  cursor: pointer; list-style: none;
}
.rules summary::-webkit-details-marker { display: none; }
.rules-head { display: flex; flex-direction: column; gap: 4px; }
.rules-head b { font-size: 18px; font-weight: 600; }
.rules-head span { font-size: 14px; color: var(--muted); }
.rules-chev { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease), stroke .3s; }
.rules summary:hover .rules-chev { stroke: var(--text); }
.rules[open] .rules-chev { transform: rotate(180deg); }
.rules-body { padding: 0 28px 28px; }
.rules[open] .rules-body { animation: rulesIn .45s var(--ease); }
@keyframes rulesIn { from { opacity: 0; transform: translateY(-6px); } }
.rules-lang { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: var(--panel); }
.rules-lang button {
  padding: 7px 14px; border: 0; border-radius: 9px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; cursor: pointer;
  transition: background .3s, color .3s;
}
.rules-lang button[aria-pressed="true"] { background: var(--panel-2); color: var(--text); }
.rules-text { max-width: 760px; font-size: 15px; line-height: 1.6; color: #d4d6db; }
.rules-text p + p, .rules-text p + h3, .rules-text ol + p { margin-top: 12px; }
.rules-text h3 { margin-top: 24px; font-size: 16px; font-weight: 600; color: var(--text); }
.rules-ban { padding: 14px 16px; border: 1px solid rgba(255, 69, 58, .35); border-radius: 14px; background: rgba(255, 69, 58, .08); color: #ffd4d1; }
.rules-text ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 6px; }
.rules-text ol li::marker { color: var(--muted); }
.rules-note { color: var(--muted); }

.partners { margin-top: 12px; display: grid; gap: 12px; }
.studio {
  display: flex; align-items: center; gap: 28px;
  padding: 26px 28px;
  border: 1px solid var(--line); border-radius: 22px;
  background: var(--card);
  transition: background .35s, border-color .35s;
}
.studio img { height: 22px; width: auto; flex: none; }
.studio-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.studio-text b { font-weight: 600; font-size: 16px; }
.studio-text span { font-size: 14px; color: var(--muted); }
.studio-link { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .3s; }
.studio-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.studio:hover { background: #111113; border-color: rgba(255, 255, 255, .14); }
.studio:hover .studio-link { color: var(--text); }
.studio:hover .studio-link svg { transform: translate(2px, -2px); }
.studio-blue { background: var(--blue); border-color: transparent; }
.studio-blue img { height: 32px; }
.studio-blue .studio-text span, .studio-blue .studio-link { color: rgba(255, 255, 255, .82); }
.studio-blue:hover { background: var(--blue-hover); border-color: transparent; }
.studio-blue:hover .studio-link { color: #fff; }

.foot-bottom { margin-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js h1.reveal { opacity: 1; transform: none; }
.js h1 .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js h1.in .line > span { transform: none; }
.js h1.in .line:nth-child(2) > span { transition-delay: calc(var(--d, 0s) + .12s); }
.js .hero-visual.reveal { transform: translateY(60px); }
.js .hero-visual.reveal.in { transform: none; }

/* tablet */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; gap: 12px; }
  .hero-card { min-height: 0; }
  .hero-text { padding: 64px 32px; }
  h1 { font-size: clamp(46px, 13vw, 88px); }
  .hero-visual { height: 640px; }
  .n1 { left: calc(50% - 330px); }
  .n2 { right: calc(50% - 330px); }
  .n3 { left: calc(50% - 310px); }
  .studio { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: center; }
  .studio-link { grid-column: 2; grid-row: 1; justify-self: end; }
  .studio-text { grid-column: 1 / -1; }
}

/* phones */
@media (max-width: 600px) {
  .hero { padding-top: 12px; gap: 10px; }
  .hero-card { border-radius: 32px; }
  .hero-text { padding: 48px 20px 40px; }
  .hero-visual { height: 540px; padding-top: 44px; }
  h1 { margin: 0 0 12px; }
  .tags { margin: 34px 0; gap: 6px; }
  .tags li { font-size: 13px; padding: 6px 12px; }
  .actions { flex-direction: column; width: 100%; }
  .actions .btn { width: 100%; }
  .actions .btn > span { flex: 1; justify-content: center; }
  .iphone { --w: min(320px, 84vw); }
  .ava { width: 30px; height: 30px; }
  .note { width: min(270px, 76vw); padding: 10px 11px; gap: 9px; border-radius: 18px; }
  .note img { width: 32px; height: 32px; border-radius: 8px; }
  .note b, .note span { font-size: 12.5px; }
  .note small, .note time { font-size: 11.5px; }
  .n1 { top: 110px; left: 10px; }
  .n2 { top: 330px; right: 10px; left: auto; }
  .n3 { display: none; }
  .rules { margin-top: 40px; border-radius: 20px; }
  .rules summary { padding: 20px; }
  .rules-body { padding: 0 20px 22px; }
  .rules-head b { font-size: 16px; }
  .rules-text { font-size: 14px; }
  .tg-head { padding: 0 10px 6px; }
  .tg-back { width: 44px; }
  .ava { margin-left: 14px; }
  .companies { padding: 80px 0 48px; }
  .companies h2 { margin-bottom: 36px; }
  .marquee li { height: 52px; }
  .marquee li img { height: calc(var(--h, 40px) * .78); }
  .marquee li.duo { font-size: 20px; gap: 10px; }
  .marquee + .marquee { margin-top: 18px; }
  .cta { margin-top: 32px; }
  .cta-card { border-radius: 32px; }
  .cta-card .btn { width: 100%; max-width: 360px; }
  .cta-card .btn > span { flex: 1; justify-content: center; }
  .foot { padding-top: 64px; }
  .foot-top { flex-direction: column; gap: 32px; }
  .foot-cols { gap: 24px; }
  .foot-cols div { flex: 1; }
  .foot-cols a { font-size: 16px; }
  .studio { padding: 22px 20px; border-radius: 20px; gap: 14px 12px; }
  .studio-link { font-size: 14px; }
  .studio-text b { font-size: 15px; }
  .foot-bottom { font-size: 13px; }
}

@media (max-width: 360px) {
  .btn { font-size: 16px; }
  .btn > span { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee ul { animation: none; flex-wrap: wrap; justify-content: center; }
}
