@font-face {
  font-family: Montserrat;
  src: url("./montserrat-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 850;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #020603;
  color: #f1f5f1;
  font-family: system-ui, sans-serif;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(.9rem, 3svh, 1.9rem);
  min-height: 100svh;
  padding: 1.85rem 1rem;
}

.backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: url("./supercar-corridor.webp") center / cover no-repeat;
}

.backdrop video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .35s;
}

.backdrop video.is-ready { opacity: 1; }

.wordmark {
  width: min(34rem, 91vw);
  text-align: center;
  font-family: Montserrat, system-ui, sans-serif;
  color: #fff;
}

.wordmark h1 {
  margin: 0;
  font-size: min(3.65rem, 9.65vw);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.042em;
  white-space: nowrap;
}

.wordmark strong {
  color: #75ff00;
  font-weight: 830;
  letter-spacing: -.03em;
}

.wordmark p {
  margin: .9em 0 0;
  font-size: min(.89rem, 2.44vw);
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.phone {
  position: relative;
  width: auto;
  height: clamp(26rem, 66svh, 36.5rem);
  aspect-ratio: .487;
  max-width: 82vw;
  padding: 5px;
  border: 1px solid #929b95;
  border-radius: clamp(2.05rem, 5.8svh, 3.15rem);
  background: linear-gradient(143deg, #c4cdc5, #67716b 13%, #262c29 37%, #0c100e 52%, #4d5851 82%, #141915);
  box-shadow: 0 32px 68px #000d, 0 0 0 1px #090d0a, inset 0 0 0 1px #040706a8;
  container-type: inline-size;
}

.phone::before,
.phone::after,
.side-buttons::before,
.side-buttons::after {
  position: absolute;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(90deg,#8d968f,#343b36);
  box-shadow: 0 1px 2px #020503;
  content: "";
}

.phone::before { left: -4px; top: 16.5%; height: 4.5%; }
.phone::after { right: -4px; top: 25%; height: 12%; transform: scaleX(-1); }
.side-buttons::before { left: -4px; top: 23%; height: 7.1%; }
.side-buttons::after { left: -4px; top: 32%; height: 7.1%; }

.screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border: 4px solid #050605;
  border-radius: clamp(1.77rem, 5svh, 2.77rem);
  background: radial-gradient(ellipse at center, #0c1c0c 0%, #050b06 42%, #020403 76%);
  box-shadow: 0 0 0 1px #0a0e0b, inset 0 0 22px #071008;
}

.screen iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.status-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  position: absolute;
  inset: 8px 0 auto;
  padding-inline: 8cqw;
  height: 23px;
  pointer-events: none;
  color: #fafcfa;
}

#clock {
  font-size: clamp(10px, 5.35cqw, 14px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}

.camera {
  position: relative;
  width: 28cqw;
  height: 8.5cqw;
  max-height: 23px;
  border-radius: 20px;
  background: #000;
  box-shadow: 0 0 0 1px #1c231d;
}

.camera::after {
  position: absolute;
  top: 50%;
  right: 8%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(at 64% 34%, #455674, #161c32 42%, #05060a 74%);
  content: "";
}

.status-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}

.signal { display: flex; align-items: flex-end; gap: 1.5px; }
.signal i { width: 2px; border-radius: 1px; background: #f5f8f5; }
.signal i:nth-child(1) { height: 3px; }
.signal i:nth-child(2) { height: 5px; }
.signal i:nth-child(3) { height: 7px; }
.signal i:nth-child(4) { height: 9px; }

.battery {
  position: relative;
  width: 17px;
  height: 9px;
  border: 1px solid #aeb7af;
  border-radius: 2.5px;
}

.battery::before,
.battery::after {
  position: absolute;
  background: #f5f8f5;
  content: "";
}

.battery::before { inset: 1px 3px 1px 1px; border-radius: 1px; }
.battery::after { right: -3px; top: 2px; width: 1px; height: 3px; border-radius: 1px; }

.phone-greeting {
  position: absolute;
  inset: 13% .4rem auto;
  text-align: center;
  font-family: Montserrat, system-ui, sans-serif;
  pointer-events: none;
}

.phone-greeting h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(14px, 8.1cqw, 23px);
  font-weight: 650;
  letter-spacing: -.043em;
  line-height: 1.2;
}

.phone-greeting h2 span { white-space: nowrap; }

.phone-greeting em {
  color: #75ff00;
  font-style: normal;
}

.phone-greeting p,
.phone-exclusive {
  color: #d1dad1;
  font-size: clamp(10px, 4.8cqw, 13px);
  font-weight: 500;
  letter-spacing: .025em;
}

.phone-greeting p { margin: .52em 0 0; }

.phone-exclusive {
  position: absolute;
  inset: 74% .4rem auto;
  margin: 0;
  font-family: Montserrat, system-ui, sans-serif;
  text-align: center;
  pointer-events: none;
}

.phone-exclusive strong {
  display: block;
  margin-top: .35em;
  color: #fff;
  font-size: clamp(13px, 6.6cqw, 18px);
  font-weight: 700;
  letter-spacing: .06em;
}

.phone-exclusive strong span { color: #75ff00; }

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 37%;
  height: 3px;
  transform: translateX(-50%);
  border-radius: 5px;
  background: #e6f2e8bc;
  pointer-events: none;
}

.motion-toggle {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 36px;
  height: 36px;
  border: 1px solid #d5f5d750;
  border-radius: 50%;
  background: #051107b0;
  color: #f5fff5;
  cursor: pointer;
}

.motion-toggle::before {
  display: block;
  width: 8px;
  height: 10px;
  margin: auto;
  border-inline: 2px solid currentColor;
  content: "";
}

.motion-toggle[data-paused]::before {
  width: 0;
  height: 0;
  border: 0;
  border-left: 7px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.motion-toggle:focus-visible { outline: 2px solid #8aff38; outline-offset: 3px; }

@media (max-aspect-ratio: 4/5) {
  .backdrop { background-size: auto max(40svh, 78vw); }
  .backdrop video {
    position: absolute;
    top: 50%;
    height: max(40svh, 78vw);
    transform: translateY(-50%);
  }
  .backdrop::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #020603 2%, transparent 31% 69%, #020603 98%);
    content: "";
  }
  .phone { height: clamp(25rem, 62svh, 32rem); }
}

@media (prefers-reduced-motion: reduce) {
  .backdrop video { transition: none; }
}
