/* IMPETUS X-9 – interactive web shoe.
   Layouts: desktop ≥ 1920 px (the base rules), tablet 810–1919, phone 390–809, small phone < 390. */

@font-face {
  font-family: "Lexend";
  src: url("assets/fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded";
  src: url("assets/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

/* Backups for characters the two fonts lack (e.g. "↓"): Arial resized to each font's proportions,
   the same values the original page used. */
@font-face {
  font-family: "Lexend Fallback";
  src: local("Arial");
  ascent-override: 90.26%;
  descent-override: 22.57%;
  line-gap-override: 0%;
  size-adjust: 110.79%;
}
@font-face {
  font-family: "Unbounded Fallback";
  src: local("Arial");
  ascent-override: 73.13%;
  descent-override: 18.01%;
  line-gap-override: 0%;
  size-adjust: 136.07%;
}

:root {
  --cyan: rgb(96, 255, 236);
  --cyan-dark: rgb(0, 219, 193);
  --ink: rgb(28, 28, 28);
  --ink-light: rgb(35, 35, 35);
  --muted: rgb(228, 228, 231);
  --lexend: "Lexend", "Lexend Fallback", sans-serif;
  --unbounded: "Unbounded", "Unbounded Fallback", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* 12 px base like the original: it sets the line box around inline items (swatches, the 3D frame). */
body { font: 12px sans-serif; }
h1, h2, h3, p { margin: 0; font-weight: inherit; }
img { display: block; }
a { text-decoration: none; color: inherit; }

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: linear-gradient(rgb(50, 50, 50) 0%, rgb(34, 34, 34) 10%);
}

/* ---------- Navigation ---------- */
.nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 1320px;
  padding: 60px 40px;
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 30px 40px;
  background: var(--ink);
  border-radius: 103px;
}
.logo { flex: none; width: 212px; height: 40px; }
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 0 0;
  width: 1px;
  overflow: hidden;
}
.nav-links img { flex: none; width: 817px; height: 28px; }
.explore {
  flex: none;
  padding: 10px 32px;
  border-radius: 79px;
  box-shadow: inset 0 0 0 1px #60ffec;
  font: 400 14px/22px var(--lexend);
  letter-spacing: -0.03em;
  color: var(--cyan);
  text-align: center;
  white-space: pre;
}

/* ---------- Decorations ---------- */
.deco { position: absolute; display: flex; overflow: hidden; pointer-events: none; }
.deco img { flex: none; }
.deco-looper1 { right: 0; top: 799px; width: 544px; height: 561px; justify-content: flex-start; align-items: flex-start; }
.deco-looper1 img { width: 572px; height: 561px; }
.deco-looper3 { left: 50px; top: 80px; justify-content: flex-end; align-items: flex-end; }
.deco-looper3 img { width: 594px; height: 603px; }
.deco-burst {
  left: 49%;
  top: 55%;
  transform: translate(-50%, -50%);
  z-index: 1;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
}
.deco-burst img { width: 200px; height: 200px; }
.deco-looper2 { right: 0; bottom: -333px; width: 590px; height: 685px; z-index: 1; pointer-events: auto; }
.deco-looper2 img { width: 628px; height: 685px; }

/* ---------- Content column ---------- */
.content {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  width: 100%;
  padding: 0 0 80px;
}
.frame { position: relative; width: 100%; max-width: 1320px; padding: 0 60px; }

/* Shared pieces */
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min-content;
  padding: 10px 20px 10px 12px;
  background: var(--ink);
  border-radius: 61px;
}
.badge-tight { gap: 6px; }
.badge-icon { flex: none; width: 24px; height: 24px; }
.badge-text { font: 300 18px/24px var(--lexend); color: #fff; white-space: pre; }
.pill {
  display: flex;
  align-items: center;
  width: min-content;
  background: var(--cyan);
  border-radius: 82px;
  white-space: pre;
}
.lead { font: 300 18px/1.5 var(--lexend); color: var(--muted); }
.accent { color: var(--cyan); }
.accent-dark { color: var(--cyan-dark); }

/* Frame 1 – hero */
.frame-1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 80px;
  min-height: 100vh;
}
.hero { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; width: min-content; }
.hero-text { display: flex; flex-direction: column; gap: 16px; width: 740px; max-width: 740px; overflow: hidden; }
.hero-title { font: 400 96px/1.22 var(--unbounded); color: #fff; white-space: pre-wrap; }
.hero-lead { font: 300 18px/1.5 var(--lexend); color: var(--muted); }
.pill-scroll { padding: 8px 30px; }
.pill-scroll p { font: 400 18px/1.5 var(--lexend); color: var(--ink); }
.pill-scroll b { font-weight: 700; }
.variants { display: flex; align-items: center; gap: 16px; }
.variants-label { font: 300 18px/1.5 var(--lexend); color: var(--muted); white-space: pre; }
.swatch-wrap { flex: none; position: relative; }
.swatch {
  --size: 40px;
  width: var(--size);
  height: var(--size);
  padding: 0;
  overflow: hidden;
  background: rgb(239, 239, 239);
  border: 1px solid #fff;
  border-radius: 100%;
  cursor: pointer;
}
.swatch img { width: 38px; height: 38px; max-width: none; }

/* Frame 2 – ergonomy */
.frame-2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  min-height: 100vh;
}
.ergo { display: flex; flex-direction: column; gap: 24px; width: min-content; }
.ergo-body { display: flex; flex-direction: column; gap: 64px; }
.ergo-text { display: flex; flex-direction: column; gap: 16px; width: 650px; }
.ergo-title { min-height: 73px; font: 500 48px/1.5 var(--unbounded); color: #fff; }
.stats { display: flex; gap: 50px; width: 650px; }
.stat { display: flex; flex-direction: column; gap: 5px; flex: 1 0 0; width: 1px; }
/* The original's 88 px / 73 px boxes are one pixel taller than the line height (a quirk of its text markup). */
.stat-number { min-height: 88px; font: 500 58px/1.5 var(--lexend); color: var(--cyan); }
.stat-text { font: 300 18px/1.5 var(--lexend); color: var(--muted); }
.stat-line { flex: none; width: 3px; height: 148px; background: url("assets/stat-line.svg") no-repeat; }

/* Frame 3 – light section */
.frame-3 {
  position: relative;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: rgb(222, 222, 222);
}
.rows { display: flex; flex-direction: column; width: 100%; max-width: 1320px; padding: 60px; }
.resist {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  height: 263px;
  overflow: hidden;
}
.resist-title { width: 100%; font: 400 48px/1.22 var(--unbounded); color: var(--ink-light); }
.resist-text { width: 100%; max-width: 70%; font: 400 18px/1.22 var(--lexend); color: var(--ink-light); }
.claim { display: flex; justify-content: center; align-items: center; width: 100%; padding: 80px; overflow: hidden; }
.claim-title {
  flex: 1 0 0;
  width: 1px;
  font: 400 96px/1.22 var(--unbounded);
  letter-spacing: -0.01em;
  color: var(--ink-light);
}

/* Frame 4 – PedalLock */
.frame-4 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}
.pedal { display: flex; flex-direction: column; gap: 20px; width: 50%; }
.pedal-title { font: 400 48px/1.22 var(--unbounded); color: #fff; }

/* The 3D view, pinned to the bottom of the screen */
.sticky-3d {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 1px;
  will-change: transform;
}
.embed-wrap { position: relative; z-index: 1; flex: none; width: 100%; height: 100vh; pointer-events: none; }
.embed-wrap iframe { width: 100%; height: 100%; border: 0; }

/* Call to action */
.cta {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 150px;
  width: 100%;
  max-width: 1320px;
  padding: 80px;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(84.8% 85% at 80.2% 73.8%, rgb(48, 48, 48) 0%, rgb(8, 8, 8) 100%);
  box-shadow: inset 0 0 0 1px #262626;
}
.cta-art { position: absolute; left: 4px; top: -22px; z-index: 0; width: 283px; height: 298px; object-fit: contain; }
.pill-learn {
  position: relative;
  flex: none;
  padding: 18px 30px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.22, 1.2, 0.36, 1), background-color 0.35s cubic-bezier(0.22, 1.2, 0.36, 1);
}
.pill-learn:hover { transform: scale(1.1); background-color: rgb(45, 255, 231); }
.pill-learn p { font: 400 18px/1.5 var(--lexend); color: var(--ink); }
.cta-title { position: relative; flex: 1 0 0; width: 1px; font: 400 40px/1.3 var(--unbounded); color: #fff; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
  padding: 100px 162px 50px;
  overflow: hidden;
  background: var(--ink);
}
.footer-logo { flex: none; width: 1596px; height: 40px; }
.footer-line {
  flex: none;
  width: 1598px;
  height: 3px;
  background: linear-gradient(#262626, #262626) no-repeat 1px 1px / 1596px 1px;
}
.footer-social { flex: none; width: 147px; height: 40px; }

.show-phone { display: none; }

/* ---------- Tablet: 810–1919 px ---------- */
@media (min-width: 810px) and (max-width: 1919px) {
  .hero-text { width: 690px; }
  .hero-title { font-size: 86px; }
  .claim { padding: 60px; }
  .claim-title { font-size: 60px; }
  .cta { gap: 60px; }
  .deco-looper2 { bottom: -232px; width: 405px; height: 464px; }
  .deco-looper2 img { width: 425px; height: 464px; }
}

/* ---------- Phones: below 810 px ---------- */
@media (max-width: 809px) {
  .hide-phone { display: none !important; }
  .show-phone { display: inline; }

  .nav { position: relative; left: auto; top: auto; transform: none; padding: 0; }
  .nav-bar {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    justify-content: center;
    gap: 0;
    padding: 24px;
    border-radius: 0;
  }
  .logo { width: 122px; height: 23px; }

  .content { padding: 0; }
  .frame { padding: 0 30px; }

  .frame-1 { justify-content: flex-start; gap: 60px; padding: 120px 30px 0; }
  .hero { width: 100%; }
  .frame-1 .badge { padding: 4px 12px; }
  .frame-1 .badge-icon { width: 16px; height: 16px; }
  .badge-text { font-size: 12px; }
  .hero-text { width: 100%; }
  .hero-title { font-size: 32px; }
  .hero-lead { font-size: 14px; }
  .pill-scroll p { font-size: 14px; }
  .swatch { --size: 32px; }

  .frame-2 { justify-content: flex-start; gap: 0; }
  .ergo, .ergo-body, .ergo-text { width: 100%; }
  .ergo-title { min-height: 0; font-size: 32px; }
  .ergo-text .lead { font-size: 14px; }
  .stats { gap: 60px; width: 100%; }
  .stat-number { min-height: 0; font-size: 32px; }
  .stat-text { font-size: 12px; }

  .frame-3 { justify-content: flex-start; }
  .rows { gap: 30px; padding: 80px 30px 0; }
  .resist { height: auto; }
  .resist-title { font-size: 32px; }
  .resist-text { max-width: 100%; }
  .claim { padding: 0; }
  .claim-title { font-size: 32px; }
  .deco-burst { left: 50%; top: 53%; }
  .deco-burst img { width: 93px; height: 93px; }

  .frame-4 { align-items: flex-start; }
  .pedal { flex: 1 0 0; width: 1px; }

  .embed-wrap { height: auto; }
  .embed-wrap iframe { height: auto; aspect-ratio: 3 / 4; }

  .cta { flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 55px; padding: 50px; border-radius: 0; }
  .cta-title { order: 1; z-index: 1; flex: none; width: 100%; font-size: 32px; }
  .pill-learn { order: 2; width: 100%; padding: 8px 30px; }
  .pill-learn p { flex: 1 0 0; width: 1px; font-size: 14px; text-align: center; white-space: pre-wrap; }

  .deco-looper1 { top: 605px; width: 147px; height: 213px; }
  .deco-looper1 img { width: 217px; height: 213px; }
  .deco-looper3 { left: 0; top: 70px; width: 142px; height: 275px; }
  .deco-looper3 img { width: 271px; height: 275px; }
  .deco-looper2 { bottom: -156px; width: 169px; height: 280px; }
  .deco-looper2 img { width: 256px; height: 280px; }

  .footer { gap: 80px; padding: 60px 0; }
}

/* ---------- Small phones: below 390 px ---------- */
@media (max-width: 389px) {
  .variants { gap: 12px; }
  .variants-label { font-size: 14px; }
  .swatch { --size: 28px; }
  .stats { gap: 24px; }
  .resist-title { font-size: 20px; }
  .resist-text { max-width: 70%; }
  .claim-title { font-size: 24px; }
  .deco-burst { top: 51%; }
  .deco-burst img { width: 111px; height: 111px; }
  .frame-4 { flex-direction: column; justify-content: flex-start; }
  .pedal { flex: none; width: 100%; }
  .pedal-title { font-size: 38px; }
  .pedal-text { font-size: 14px; }
  .cta { gap: 40px; padding: 30px; }
  .cta-art { left: 7px; }
  .deco-looper1 { top: 626px; width: 102px; height: 167px; }
  .deco-looper1 img { width: 168px; height: 165px; }
  .deco-looper3 { left: 1px; width: 205px; height: 342px; }
  .deco-looper3 img { width: 339px; height: 344px; }
  .deco-looper2 { bottom: -180px; width: 190px; height: 349px; }
  .deco-looper2 img { width: 320px; height: 349px; }
}
