/* All values taken from the Figma file (Artsaw_Desktop 1440 / Artsaw_Mobile 375) */

@font-face {
  font-family: "PP Mori";
  src: local("PP Mori"), local("PPMori-Regular"),
       url("fonts/PPMori-Regular.woff2") format("woff2"),
       url("fonts/PPMori-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #E4FF9F;
  --ink: #000000;
  --side: 80px;
  --header-h: 81px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: clip; }

body {
  background: var(--lime);
  color: var(--ink);
  font-family: "PP Mori", sans-serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

/* Header — fixed */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--side);
  background: var(--lime);
  border-bottom: 1px solid var(--ink);
}
.logo img { width: 127.32px; height: 24px; }
.header__right { display: flex; align-items: center; gap: 26px; font-size: 16px; }

.join {
  width: 125px;
  height: 41px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  font-size: 16px;
}
.join svg { width: 10px; height: 10px; overflow: visible; }
.join:hover, .join:focus-visible { background: var(--ink); color: #FFFFFF; }

/* Hero */
.hero {
  height: 780px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: var(--header-h) var(--side) 104px;
}
.hero__text { width: 677px; max-width: 100%; }
.hero h1 { font-size: 40px; font-weight: 400; line-height: 1.2; margin-bottom: 20px; }
.hero p { font-size: 32px; line-height: 1.2; }
.hero s { text-decoration: line-through; text-decoration-thickness: from-font; }

.asterisk { position: relative; width: 81.12px; height: 90px; flex: none; }
.asterisk img { position: absolute; inset: 0; width: 100%; height: 100%;
  transition: transform 300ms cubic-bezier(0.68, -0.6, 0.32, 1.6), opacity 300ms cubic-bezier(0.68, -0.6, 0.32, 1.6); }
.asterisk__hover { opacity: 0; transform: scale(1.6) rotate(-30deg); }
.asterisk:hover .asterisk__default { opacity: 0; transform: scale(0.5) rotate(30deg); }
.asterisk:hover .asterisk__hover { opacity: 1; transform: none; }

/* Black band with animated sentence */
.band {
  height: 397px;
  background: var(--ink);
  display: flex;
  align-items: center;
  padding-left: 55%; /* 792 / 1440 */
}
.band__sentence { width: 626px; font-size: 32px; line-height: 1.2; color: var(--lime); }
.words { display: inline-grid; vertical-align: bottom; overflow: hidden; }
.word {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 500ms ease, opacity 500ms ease;
}
.word.is-active { opacity: 1; transform: none; }

/* Features */
.features {
  display: flex;
  gap: 40px;
  padding: 40px var(--side) 50px;
  border-bottom: 1px solid #0B0B0B;
}
.features article { width: 400px; display: flex; flex-direction: column; gap: 20px; }
.features h2 { font-size: 30px; font-weight: 400; line-height: 1.2; }
.features p { font-size: 16px; line-height: 1.5; }

/* Be the first to know */
.cta {
  height: 673px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 var(--side) 119px;
}
.cta__main { display: flex; flex-direction: column; gap: 9px; }
.cta__link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: 60px;
  line-height: 72px;
  letter-spacing: -1.2px;
}
.cta__arrow { position: relative; width: 34px; height: 34px; flex: none; }
.cta__arrow svg {
  position: absolute;
  top: -1.99px;
  left: -1.41px;
  width: 37.41px;
  height: 37.41px;
  transition: transform 600ms cubic-bezier(0.34, 1.35, 0.64, 1); /* spring: stiffness 80, damping 20 */
}
.cta__link:hover .cta__arrow svg, .cta__link:focus-visible .cta__arrow svg { transform: translate(10px, -10px); }
.cta__date { display: flex; align-items: center; gap: 10px; font-size: 20px; line-height: 1.2; }

.presented { display: flex; align-items: center; gap: 13px; font-size: 14px; margin-bottom: -17px; }
.presented img { width: 49px; height: 50px; }

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--side);
  border-top: 1px solid var(--ink);
  font-size: 12px;
}
.footer img { width: 20px; height: 20px; }

/* In-between widths: keep desktop layout but let it flex */
@media (max-width: 1200px) {
  :root { --side: 40px; }
  .band { padding-left: 45%; padding-right: var(--side); }
  .band__sentence { width: auto; }
  .features article { width: auto; flex: 1; }
}

/* Mobile — Artsaw_Mobile (375) */
@media (max-width: 767px) {
  :root { --side: 20px; }

  .header__city { display: none; }
  .join { padding: 10px 24px; }

  .hero {
    height: 721px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 20px;
    padding: var(--header-h) 21px 20px 20px;
  }
  .hero__text { width: 335px; }
  .asterisk { align-self: flex-end; }

  .band { padding: 0 20px; justify-content: flex-start; }
  .band__sentence { width: 332px; max-width: 100%; }

  .features { flex-direction: column; gap: 40px; padding: 40px 20px; border-bottom-color: var(--ink); }
  .features article { width: 100%; flex: none; }

  .cta {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 11px;
    padding: 142px 20px 61px;
  }
  .cta__main { width: 332px; max-width: 100%; gap: 94px; } /* date sits 40px below the 198px-tall title block */
  .cta__link { display: block; }
  .cta__arrow { display: inline-block; vertical-align: baseline; margin-left: 20px; top: 2px; }
  .presented { margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .asterisk img, .cta__arrow svg, .word { transition: none; }
}
