/* Chunglloyd */

:root {
  --accent: #adc0ff;
  --accent-soft: rgba(173, 192, 255, 0.14);
  --accent-line: rgba(173, 192, 255, 0.24);

  --bg: #0a0a0c;
  --bg-raised: #131318;
  --line: rgba(255, 255, 255, 0.08);

  --text: #f2f3f7;
  --text-dim: #a2a4ad;
  --text-faint: #6d6f78;

  --radius: 20px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shell: 1080px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p { margin: 0; }

a { color: inherit; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.12em 0.4em;
}

.link {
  color: var(--accent);
  text-decoration-color: var(--accent-line);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.25s var(--ease);
}
.link:hover { text-decoration-color: var(--accent); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #12131a;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  font-weight: 600;
  z-index: 100;
}
.skip:focus { left: 0; }

/* Nav ---------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px max(20px, calc((100vw - var(--shell)) / 2));
  background: rgba(10, 10, 12, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease),
    backdrop-filter 0.35s var(--ease);
}

.nav.is-stuck {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom-color: var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.nav__brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}
.nav__brand:hover img { transform: rotate(-8deg) scale(1.08); }

.nav__links {
  display: flex;
  gap: 26px;
  font-size: 15px;
  color: var(--text-dim);
}
.nav__links a {
  text-decoration: none;
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* Buttons ------------------------------------------------------------ */

.btn {
  --btn-bg: rgba(255, 255, 255, 0.07);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease),
    border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #12131a;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(173, 192, 255, 0.24);
}
.btn--primary:hover {
  background: #c0cfff;
  box-shadow: 0 16px 40px rgba(173, 192, 255, 0.34);
}

.btn--small {
  padding: 9px 17px;
  font-size: 14.5px;
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 168px 20px 96px;
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(46% 52% at 30% 22%, rgba(173, 192, 255, 0.26), transparent 70%),
    radial-gradient(40% 46% at 72% 38%, rgba(140, 165, 255, 0.16), transparent 72%);
  filter: blur(20px);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.08); }
}

.hero__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.hero__icon {
  width: 118px;
  height: 118px;
  border-radius: 27px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  margin-bottom: 30px;
}

.hero__title {
  font-size: clamp(46px, 10vw, 78px);
  /* background-clip: text crops to the line box, so descenders on g and y were
     being sliced off. The extra line-height and padding give them room. */
  line-height: 1.18;
  padding-bottom: 0.08em;
  background: linear-gradient(140deg, #ffffff 20%, var(--accent) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.hero__tagline {
  font-size: clamp(17px, 2.3vw, 20px);
  color: var(--text-dim);
  max-width: 33ch;
  margin: 0 auto 34px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.hero__meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.pill {
  font-size: 13px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
}

/* Screenshots -------------------------------------------------------- */

.shots {
  padding: 20px 20px 40px;
  overflow: hidden;
}

.shots__rail {
  display: flex;
  gap: 34px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: var(--shell);
  margin: 0 auto;
}

.phone {
  margin: 0;
  text-align: center;
  transition: transform 0.5s var(--ease);
}
.phone:hover { transform: translateY(-8px); }

.phone__frame {
  width: 236px;
  aspect-ratio: 9 / 19.5;
  padding: 9px;
  border-radius: 40px;
  background: linear-gradient(160deg, #2a2b33, #15161b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.phone__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 32px;
  display: block;
  background: #0d0d10;
}

.phone figcaption {
  margin-top: 15px;
  font-size: 14px;
  color: var(--text-faint);
}

/* Sections ----------------------------------------------------------- */

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 96px 20px;
}
.section--tight { padding-top: 40px; }

.section__title {
  font-size: clamp(30px, 5vw, 42px);
  margin-bottom: 12px;
}

.section__lede {
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 48px;
  font-size: 17.5px;
}

/* Feature grid ------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.42s var(--ease), border-color 0.42s var(--ease),
    background 0.42s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 50% 0%, rgba(173, 192, 255, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.42s var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  background: #16171d;
}
.card:hover::after { opacity: 1; }

.card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  margin-bottom: 18px;
}
.card__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 9px;
}

.card p {
  color: var(--text-dim);
  font-size: 15.5px;
  line-height: 1.62;
}

/* Steps -------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color 0.42s var(--ease), transform 0.42s var(--ease);
}
.step:hover {
  border-color: var(--accent-line);
  transform: translateX(4px);
}

.step__n {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
}

.step h3 {
  font-size: 17.5px;
  margin-bottom: 6px;
}

.step p {
  color: var(--text-dim);
  font-size: 15.5px;
}

/* Copy row ----------------------------------------------------------- */

.copy {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.copy code {
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.copy .btn { margin-left: auto; }

@media (max-width: 520px) {
  .copy .btn { margin-left: 0; width: 100%; }
}

/* Footer ------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 44px 20px 60px;
}

.footer__inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  gap: 26px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer__name {
  font-weight: 700;
  margin-bottom: 4px;
}

.footer__note {
  color: var(--text-faint);
  font-size: 14.5px;
  max-width: 46ch;
}

/* Reveal on scroll --------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
