@font-face {
  font-family: Inter;
  src: url("./assets/inter-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #202747;
  --muted: #505978;
  --accent: #414ee1;
  --line: #dce0f6;
  font-family: Inter, system-ui, sans-serif;
  background: #f5f6ff radial-gradient(ellipse at 7% 95%, #e5efff 0%, transparent 52%) fixed;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, video:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }

.shell {
  width: min(100% - 100px, 1296px);
  margin-inline: auto;
}

.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header {
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border: 1px solid #cfd5f2;
  border-radius: 60px;
  background: rgb(255 255 255 / 0.58);
  font-size: 13px;
  font-weight: 700;
}

.nav-link span { color: var(--accent); font-size: 16px; }
.nav-link:hover { background: #fff; }

.hero {
  min-height: min(730px, calc(100svh - 155px));
  padding-block: clamp(28px, 4.3vw, 62px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 4vw, 62px);
}

.intro { padding-block: 24px; }
.category {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(58px, 6.15vw, 98px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.97;
}

h1 span { color: var(--accent); }
.description {
  max-width: 36ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.65;
  text-wrap: pretty;
}

.actions { margin-top: 32px; }
.primary {
  min-height: 57px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 23px 10px 11px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 9px 20px rgb(69 78 224 / 0.25);
}

.primary:hover { background: #3541ca; }
.primary:active { transform: translateY(1px); }
.google {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #fff;
}

.google img { object-fit: contain; }
.permission { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.watch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-top: 20px;
  color: #3342cc;
  font-size: 14px;
  font-weight: 700;
}
.watch:hover { text-decoration: underline; }
.play { font-size: 11px; }

.media {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 600px;
  margin: 0;
  padding: 45px 20px 48px;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 34px;
  background: #e3e6ff;
  box-shadow: 0 20px 65px rgb(56 75 155 / 0.16);
  scroll-margin-block: 16px;
}

.paper-art { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #d9defc 0%, transparent 20%, transparent 94%, rgb(233 236 255 / 0.38));
}

.stage-label {
  position: absolute;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.88);
  color: #343c75;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.075em;
}
.stage-label span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.phone {
  position: relative;
  overflow: hidden;
  width: clamp(178px, 40%, 235px);
  border: 7px solid #23274a;
  border-radius: 30px;
  background: #23274a;
  box-shadow: 0 24px 45px rgb(36 47 94 / 0.34), 0 0 0 1px #7d85ae;
  transform: rotate(-5deg) translateX(-11%);
}
.phone:focus-within { outline: 3px solid var(--accent); outline-offset: 5px; }
video { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; background: #e0e6e9; }
.video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.video-play span {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding-left: 2px;
  border: 1px solid rgb(255 255 255 / 0.7);
  border-radius: 50%;
  background: #23274a;
  color: #fff;
  box-shadow: 0 5px 16px rgb(35 39 74 / 0.3);
}
.video-play:hover span, .video-play:focus-visible span { background: var(--accent); }

figcaption {
  position: absolute;
  bottom: 17px;
  inset-inline: 12px;
  text-align: center;
  color: #353d71;
  font-size: 12px;
  font-weight: 600;
}

.footer {
  min-height: 64px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer a:hover { text-decoration: underline; }

@media (max-width: 950px) {
  .shell { width: min(100% - 56px, 720px); }
  .hero { grid-template-columns: 1fr; gap: 16px; }
  .intro { padding-top: 10px; }
  h1 { font-size: clamp(60px, 11vw, 90px); }
  .media { min-height: 560px; }
}

@media (max-width: 490px) {
  .shell { width: calc(100% - 36px); }
  .header { min-height: 68px; }
  .brand img { width: 34px; height: 34px; }
  .hero { padding-block: 30px; }
  h1 { font-size: clamp(49px, 13vw, 65px); }
  .category { margin-bottom: 16px; }
  .description { margin-top: 21px; }
  .actions { margin-top: 23px; }
  .watch { margin-top: 12px; }
  .media { min-height: 485px; padding-block: 60px 49px; border-radius: 25px; }
  .stage-label { top: 14px; left: 14px; }
  .phone { transform: rotate(-4deg); border-width: 6px; border-radius: 24px; }
}
