:root {
  --ink: #121722;
  --white: #fff;
  --grey-1: #5c6570;
  --grey-2: #8c96a0;
  --grey-3: #b4bec8;
  --grey-4: #e4e8eb;
  --grey-5: #f0f3f6;
  --blue: #a9cbe3;
  --blue-deep: #7e9bb4;
  --blue-hl: #c0d2f0;
  --blue-ink: #414f87;
  --page: #edf1f4;
  --shadow: 0 18px 50px rgb(18 23 34 / 9%);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Bricolage Grotesque", Inter, sans-serif;
  --mono: Silkscreen, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--page);
  background-image:
    linear-gradient(rgb(255 255 255 / 35%), rgb(255 255 255 / 35%)),
    url("./assets/images/sparkle-tile.svg");
  background-position: top left;
  background-repeat: repeat;
  background-size: 340px 340px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible { outline: 3px solid var(--blue-hl); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.site-header {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1320px, calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  border-bottom: 1px solid var(--grey-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-u { color: var(--blue-deep); }

.site-nav { display: flex; align-self: stretch; gap: clamp(25px, 4.5vw, 64px); }
.site-nav a {
  position: relative;
  display: grid;
  place-items: center;
  color: var(--grey-2);
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--blue-ink); }
.site-nav a.is-active::after {
  position: absolute;
  right: 10%; bottom: 17px; left: 10%;
  height: 2px;
  background: var(--blue);
  content: "";
}

.header-cta {
  justify-self: end;
  padding: 12px 17px;
  border: 1px solid var(--grey-4);
  border-radius: 999px;
  color: var(--blue-ink);
  background: var(--white);
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .08em;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 570px;
  padding: 78px 24px 108px;
  background-color: rgb(255 255 255 / 88%);
  background-image: url("./assets/images/sparkle-tile.svg");
  background-position: top left;
  background-repeat: repeat;
  background-size: 340px 340px;
  overflow: hidden;
}

.hero-copy { position: relative; z-index: 2; width: min(760px, 100%); text-align: left; }

.eyebrow {
  margin: 0 0 24px;
  color: var(--blue);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .27em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(2.75rem, 5.2vw, 5.25rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.04em;
}

.hero-brand-u { color: var(--blue-deep); }

.hero-description {
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--grey-1);
  font-size: clamp(.98rem, 1.5vw, 1.1rem);
  line-height: 1.75;
}

.hero-actions { display: flex; justify-content: flex-start; gap: 14px; margin-top: 33px; }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 0 24px;
  border: 1px solid var(--blue);
  border-radius: 11px;
  font-family: var(--mono);
  font-size: .71rem;
  font-weight: 400;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgb(18 23 34 / 12%); }
.button--primary { color: var(--blue-ink); background: var(--blue-hl); border-color: var(--blue-hl); }
.button--secondary { color: var(--blue-ink); background: var(--white); }

.hero-art {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.hero-art > span {
  position: absolute;
  display: block;
  background-color: var(--white);
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1) contrast(.8) brightness(1.08);
  opacity: .52;
}

.hero-art > span:not(.hero-art__eyes) { aspect-ratio: 1; }

.hero-art__flower { top: 35px; left: 6%; width: 88px; }
.hero-art__lipstick { top: 195px; left: 3%; width: 155px; }
.hero-art__lipstick img { transform: rotate(-2deg); }
.hero-art__bow { bottom: 33px; left: 18%; width: 112px; }
.hero-art__bow img { transform: rotate(-7deg); opacity: .58; }
.hero-art__eyes { top: 45px; right: 20%; width: 170px; aspect-ratio: 2048 / 1248; }
.hero-art__heart { top: 225px; right: 21%; width: 45px; }
.hero-art__mirror { right: 15%; bottom: 85px; width: 118px; }
.hero-art__flower-two { top: 150px; right: 6%; width: 82px; }

.feature-stack {
  position: relative;
  z-index: 3;
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.feature-section { padding: 78px 0; }

.feature-heading {
  width: min(760px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}

.feature-kicker {
  margin: 0 0 18px;
  color: var(--blue-ink);
  font: 400 .72rem var(--mono);
  letter-spacing: .2em;
  text-transform: uppercase;
}

.feature-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.7rem);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
}

.feature-heading > p:last-child {
  margin: 18px auto 0;
  color: var(--grey-1);
  font-size: 1rem;
  line-height: 1.6;
}

.import-preview {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.demo-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--grey-4);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.demo-panel h3 {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--grey-1);
  font: 400 .7rem var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.demo-panel h3 > span { color: var(--blue-deep); font-size: 1rem; }

.demo-panel h3 b {
  display: grid;
  min-width: 28px;
  height: 28px;
  place-items: center;
  margin-left: 4px;
  border: 1px solid var(--blue-hl);
  border-radius: 7px;
  color: var(--blue-ink);
  background: var(--grey-5);
  font: inherit;
}

.video-demo { display: flex; flex-direction: column; }

.video-frame {
  flex: 1;
  min-height: 0;
  aspect-ratio: 1148 / 1326;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgb(18 23 34 / 14%);
  overflow: hidden;
}

.video-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products-demo { display: flex; flex-direction: column; }

.extracted-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, 151px);
  gap: 28px;
}

.extracted-product {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 0;
  padding: 8px 12px;
  border: 1px solid var(--grey-4);
  border-radius: 15px;
  background: var(--white);
}

.extracted-product img {
  display: block;
  width: 76px;
  height: 86px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.extracted-product > div { display: grid; gap: 5px; min-width: 0; }
.extracted-product strong { font-size: .84rem; }
.extracted-product div span { color: var(--grey-1); font-size: .76rem; line-height: 1.35; }
.extracted-product small { color: var(--grey-1); font-size: .7rem; }

.bookmark-icon {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 12px;
  height: 15px;
  fill: none;
  stroke: var(--grey-2);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.product-index {
  position: absolute;
  top: 13px;
  left: 12px;
  color: var(--blue-ink);
  font: 400 .61rem var(--mono);
}

.closing { padding: 125px 24px; text-align: center; }
.closing h2 {
  margin: 0 auto 34px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1320px, calc(100% - 64px));
  min-height: 96px;
  margin: 0 auto;
  border-top: 1px solid var(--grey-4);
  color: var(--grey-1);
  font-family: var(--mono);
  font-size: .66rem;
}
.site-footer div { display: flex; gap: 32px; }
.site-footer a:hover { color: var(--blue-ink); }
.footer-mark { justify-self: end; color: var(--blue-deep); letter-spacing: .35em; }

@media (max-width: 1020px) {
  .import-preview { grid-template-columns: 1fr; }
  .demo-panel { padding: 18px; }
  .video-demo { width: min(100%, 430px); justify-self: center; }
  .video-frame { min-height: 0; aspect-ratio: 1148 / 1326; }
  .hero-art__bow { left: 7%; }
}

@media (max-width: 720px) {
  .site-header { grid-template-columns: 1fr auto; width: min(calc(100% - 32px), 1320px); min-height: 76px; }
  .site-nav { display: none; }
  .header-cta { padding: 10px 13px; }
  .hero { min-height: 590px; padding: 70px 20px 105px; }
  h1 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .hero-description { font-size: .94rem; }
  .hero-actions { flex-direction: column; align-items: stretch; width: min(360px, 100%); margin-inline: auto; }
  .hero-art__flower { top: 24px; left: 6%; width: 44px; }
  .hero-art__lipstick { top: 120px; left: 26px; width: 65px; }
  .hero-art__eyes { top: 72px; right: 6px; width: 82px; }
  .hero-art__heart { top: 250px; right: 4%; width: 34px; }
  .hero-art__bow, .hero-art__eyes, .hero-art__mirror, .hero-art__flower-two { display: none; }
  .feature-stack { width: min(calc(100% - 24px), 560px); }
  .feature-section { padding: 70px 0; }
  .feature-heading { margin-bottom: 30px; }
  .feature-heading h2 { font-size: clamp(2rem, 10vw, 3rem); }
  .feature-heading > p:last-child { font-size: .91rem; }
  .import-preview { grid-template-columns: 1fr; }
  .demo-panel { padding: 15px; border-radius: 17px; }
  .video-demo { width: min(100%, 280px); justify-self: center; }
  .video-frame { min-height: 0; aspect-ratio: 1148 / 1326; }
  .extracted-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .extracted-product { grid-template-columns: 70px minmax(0, 1fr); min-height: 108px; padding: 10px 28px; }
  .extracted-product img { width: 70px; height: 80px; }
  .closing { padding: 95px 24px; }
  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 13px;
    width: min(calc(100% - 32px), 1320px);
    padding: 26px 0;
    text-align: center;
  }
  .site-footer div { flex-wrap: wrap; justify-content: center; gap: 22px; }
  .footer-mark { justify-self: center; }
}

@media (max-width: 390px) {
  .header-cta { font-size: .6rem; }
  .demo-panel h3 { font-size: .6rem; letter-spacing: .1em; }
  .extracted-product { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
  .extracted-product img { width: 64px; height: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
