:root {
  --paper: #f6f5f0;
  --ink: #020202;
  --line: rgba(24, 24, 24, 0.055);
  --shadow: rgba(6, 8, 10, 0.035);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 23% 69%, rgba(255, 255, 255, 0.42), transparent 26%),
    radial-gradient(circle at 62% 73%, rgba(255, 255, 255, 0.33), transparent 28%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.54) 0,
      rgba(255, 255, 255, 0.54) 1px,
      transparent 1px,
      transparent 19px
    ),
    linear-gradient(var(--paper), var(--paper));
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  font-family:
    Inter,
    "Helvetica Neue",
    Arial,
    Helvetica,
    sans-serif;
}

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

.challenge-page {
  min-height: 100svh;
  display: grid;
  place-items: start center;
  background: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.figma-frame {
  display: block;
  width: 100vw;
  height: auto;
  aspect-ratio: 1440 / 830;
  max-width: none;
  pointer-events: none;
  touch-action: none;
}

.mobile-frame {
  display: none;
  touch-action: none;
}

.artboard {
  display: none;
  position: relative;
  width: min(100vw, calc(100svh * 1.734939759));
  min-width: 320px;
  aspect-ratio: 1440 / 830;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 23% 69%, rgba(255, 255, 255, 0.42), transparent 26%),
    radial-gradient(circle at 62% 73%, rgba(255, 255, 255, 0.33), transparent 28%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.54) 0,
      rgba(255, 255, 255, 0.54) 1px,
      transparent 1px,
      transparent 19px
    ),
    linear-gradient(var(--paper), var(--paper));
}

.artboard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.66;
  background:
    linear-gradient(to bottom, transparent 0, var(--line) 1px, transparent 2px),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 18px,
      rgba(0, 0, 0, 0.052) 19px,
      transparent 20px
    );
}

.artboard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(0, 0, 0, 0.045) 0.55px, transparent 0.7px),
    radial-gradient(rgba(255, 255, 255, 0.8) 0.6px, transparent 0.85px);
  background-position:
    0 0,
    7px 11px;
  background-size:
    18px 18px,
    22px 22px;
  mix-blend-mode: multiply;
  opacity: 0.48;
}

.top-nav,
.hero-title,
.tag {
  position: absolute;
}

.top-nav {
  inset: 0;
  height: 7.228915663%;
  font-size: clamp(0.5rem, 1.25vw, 1.125rem);
  font-weight: 950;
  line-height: 1.1;
}

.nav-link {
  position: absolute;
  top: 32.8%;
  min-height: 44px;
  display: inline-flex;
  align-items: flex-start;
  transition:
    transform 160ms var(--ease-out),
    opacity 160ms var(--ease-out);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link:focus-visible {
  outline: 2px solid #2641dd;
  outline-offset: 4px;
}

.nav-day {
  left: 2.777777778%;
}

.nav-animation {
  left: 27.291666667%;
}

.nav-fun {
  left: 55.208333333%;
}

.nav-challenging {
  right: 2.777777778%;
}

.hero-title {
  left: 2.777777778%;
  top: 68.192771084%;
  width: 42.731481458%;
  margin: 0;
  font-size: clamp(1.25rem, 8.85vw, 7.98rem);
  font-weight: 950;
  line-height: 0.91;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  white-space: nowrap;
}

.tag-cloud {
  position: absolute;
  inset: 0;
  cursor: none;
  touch-action: none;
}

.tag {
  min-height: 5.301204819%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.388888889%;
  border-radius: 999px;
  font-size: clamp(0.45rem, 1.28vw, 1.13rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 1px 0 var(--shadow);
  will-change: transform;
  transition:
    transform 180ms var(--ease-out),
    filter 180ms var(--ease-out);
}

.tag:hover {
  transform: translateY(-2px) scale(1.015);
  filter: saturate(1.04);
}

.tag-claude {
  left: 29.027777778%;
  top: 44.819277108%;
  width: 7.291666667%;
  color: #3c3512;
  background: #ddd888;
}

.tag-ai-one {
  left: 24.166666667%;
  top: 50%;
  width: 9.375%;
  color: #123f52;
  background: #93c7e0;
}

.tag-ai-two {
  left: 37.5%;
  top: 76.86746988%;
  width: 9.685333054%;
  color: #123f52;
  background: #93c7e0;
}

.tag-ai-three {
  left: 53.402777778%;
  top: 71.56626506%;
  width: 9.685333054%;
  color: #123f52;
  background: #93c7e0;
}

.tag-prompting {
  left: 55.138888889%;
  top: 67.108433735%;
  width: 9.375%;
  color: #076b2e;
  background: #96f6b7;
}

.tag-ai-four {
  left: 21.805555556%;
  top: 57.590361446%;
  width: 9.685333054%;
  color: #625f0e;
  background: #d8d271;
}

.tag-antigravity {
  left: 45.138888889%;
  top: 82.409638554%;
  width: 9.652777778%;
  color: #262597;
  background: #7782ea;
}

.tag-interaction {
  left: 21.944444444%;
  top: 63.614457831%;
  width: 9.513888889%;
  color: #684914;
  background: #efc06d;
}

.tag-cursor {
  left: 50%;
  top: 79.277108434%;
  width: 6.875%;
  color: #ffffff;
  background: #020202;
}

.tag-website {
  left: 35.625%;
  top: 81.445783133%;
  width: 12.291666667%;
  color: #ffffff;
  background: #020202;
}

.tag-figma {
  left: 50.833333333%;
  top: 75.180722892%;
  width: 10.555555556%;
  color: #ffffff;
  background: #ba4aa1;
}

.tag-animation-one {
  left: 23.194444444%;
  top: 73.493975904%;
  width: 9.305555556%;
  color: #5f6513;
  background: #d7d175;
}

.tag-animation-two {
  left: 27.847222222%;
  top: 78.795180723%;
  width: 9.685333054%;
  color: #5f6513;
  background: #aeca4a;
}

.tag-design {
  left: 24.583333333%;
  top: 54.698795181%;
  width: 7.013888889%;
  color: #ffffff;
  background: #2736dd;
}

.tag-engineer {
  left: 19.444444444%;
  top: 68.192771084%;
  width: 12.986111111%;
  color: #ffffff;
  background: #d98415;
}

@media (max-aspect-ratio: 1440 / 830) and (min-width: 761px) {
  .challenge-page {
    align-items: start;
  }

  .artboard {
    width: 100vw;
  }
}

@media (max-width: 1100px) {
  .figma-frame {
    display: none;
  }

  .challenge-page {
    display: block;
  }

  .artboard {
    display: block;
    width: 100vw;
    min-height: 100svh;
    aspect-ratio: auto;
  }

  .top-nav {
    inset: auto 0 auto 0;
    top: 0;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(8px, 2vw, 18px);
    padding: 18px clamp(14px, 3.2vw, 28px);
    font-size: clamp(0.58rem, 1.95vw, 1rem);
    white-space: nowrap;
  }

  .nav-link {
    position: static;
    min-height: 44px;
    align-items: center;
  }

  .nav-fun,
  .nav-challenging {
    justify-content: center;
    text-align: right;
  }

  .hero-title {
    left: 20px;
    right: 20px;
    top: auto;
    bottom: max(24px, env(safe-area-inset-bottom));
    width: auto;
    font-size: clamp(3.1rem, 16vw, 7rem);
    line-height: 0.93;
  }

  .tag {
    min-height: 42px;
    padding: 0 20px;
    font-size: clamp(0.9rem, 4.3vw, 1.1rem);
  }

  .tag-claude {
    left: 49%;
    top: 33%;
    width: auto;
  }

  .tag-ai-one {
    left: 23%;
    top: 38%;
    width: auto;
  }

  .tag-design {
    left: 34%;
    top: 43%;
    width: auto;
  }

  .tag-ai-four {
    left: 17%;
    top: 47%;
    width: auto;
  }

  .tag-interaction {
    left: 21%;
    top: 52%;
    width: auto;
  }

  .tag-engineer {
    left: 10%;
    top: 57%;
    width: auto;
  }

  .tag-animation-one {
    left: 27%;
    top: 63%;
    width: auto;
  }

  .tag-animation-two {
    left: 49%;
    top: 68%;
    width: auto;
  }

  .tag-ai-two {
    left: 35%;
    top: 73%;
    width: auto;
  }

  .tag-website {
    left: 41%;
    top: 78%;
    width: auto;
  }

  .tag-antigravity {
    left: 55%;
    top: 84%;
    width: auto;
  }

  .tag-cursor {
    left: 69%;
    top: 76%;
    width: auto;
  }

  .tag-figma {
    left: 63%;
    top: 69%;
    width: auto;
  }

  .tag-ai-three {
    left: 63%;
    top: 63%;
    width: auto;
  }

  .tag-prompting {
    left: 61%;
    top: 57%;
    width: auto;
  }
}


@media (max-width: 460px) {
  .top-nav {
    padding: 14px 10px;
    gap: 8px;
    font-size: clamp(0.48rem, 2.28vw, 0.72rem);
  }

  .hero-title {
    left: 16px;
    right: 16px;
    font-size: clamp(3rem, 15.6vw, 5.2rem);
  }

  .tag {
    min-height: 36px;
    padding: 0 14px;
    font-size: clamp(0.75rem, 3.7vw, 0.95rem);
  }

  .tag-website,
  .tag-antigravity,
  .tag-prompting {
    transform: translateX(-12%);
  }
}

@media (max-width: 760px) {
  .challenge-page {
    display: block;
    min-height: 100svh;
    background: transparent;
  }

  .figma-frame,
  .artboard {
    display: none;
  }

  .mobile-frame {
    position: relative;
    display: block;
    width: 100vw;
    max-width: none;
    min-height: 100svh;
    margin: 0;
    overflow: hidden;
    background: transparent;
  }

  .mobile-frame__image {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
    touch-action: none;
  }

  .mobile-menu-button {
    position: absolute;
    top: 1.682692308%;
    right: 4.672897196%;
    width: 19.626168224%;
    height: 4.807692308%;
    padding: 0;
    border: 0;
    z-index: 4;
    background: #343232;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: clamp(0.72rem, 3.5vw, 0.875rem);
    font-weight: 950;
    line-height: 1;
    text-align: center;
  }

  .mobile-day-label {
    position: absolute;
    top: 2.884615385%;
    left: 4.672897196%;
    z-index: 4;
    display: none;
    color: #020202;
    font-size: clamp(1rem, 5.6vw, 1.625rem);
    font-weight: 950;
    line-height: 1;
  }

  .mobile-frame:has(.mobile-menu.is-open) .mobile-day-label {
    display: block;
  }

  .mobile-menu-button:focus-visible {
    outline: 2px solid #7584ee;
    outline-offset: 4px;
  }

  .mobile-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    width: 100%;
    display: grid;
    gap: 0;
    padding: 72px 20px 26px;
    background: #ffffff;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-12px);
    transform-origin: top center;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
    transition:
      opacity 180ms var(--ease-out),
      transform 220ms var(--ease-out);
  }

  .mobile-menu.is-open {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 54px;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: #020202;
    font-size: clamp(1rem, 5vw, 1.35rem);
    font-weight: 950;
    line-height: 1;
    box-shadow: none;
  }

  .mobile-menu a:last-child {
    border-bottom: 0;
  }

  .mobile-menu a:focus-visible {
    outline: 2px solid #7584ee;
    outline-offset: 2px;
  }
}

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