:root {
  color-scheme: light;
  font-family: Manrope, Arial, sans-serif;
  color: #202223;
  background: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { min-width: 280px; }
body { margin: 0; min-height: 100vh; min-height: 100svh; }
.site-header { position: absolute; z-index: 2; top: 37px; left: 40px; }
.brand { display: block; width: 143px; height: auto; }
main { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 94px 28px 54px; overflow: hidden; }
.phone-stage { position: relative; isolation: isolate; }
.phone-stage::after {
  content: ""; position: absolute; z-index: -1;
  left: 9%; right: 9%; bottom: -19px; height: 35px;
  border-radius: 50%; background: #323e45; opacity: .13; filter: blur(20px);
  transform: scaleX(.92);
}
.phone {
  position: relative; width: min(350px, calc((100svh - 160px) * .486)); min-width: 278px; aspect-ratio: 390 / 804;
  padding: 7px; border-radius: 54px;
  background: linear-gradient(115deg, #f6f6f4 0%, #8d918e 4%, #d3d4d1 10%, #9fa2a0 46%, #efefec 74%, #7f8582 100%);
  box-shadow: 0 0 0 .65px #858987, inset 0 0 0 1px #e6e7e3, inset 0 0 0 2.4px #b4b7b1,
    inset 0 0 0 3.5px #f1f1ed, 0 4px 6px -3px #2d383224, 11px 18px 34px -17px #27383030, 0 28px 54px -35px #22362d42;
}
.phone::before {
  content: ""; position: absolute; pointer-events: none; inset: 3.5px;
  border: 1px solid #737975; border-radius: 50px; box-shadow: inset 0 0 0 .7px #fafcf9;
}
.screen {
  position: relative; height: 100%; overflow: hidden; border: 5px solid #171a18; border-radius: 47px;
  background: #eef0eb; box-shadow: 0 0 0 1px #4f5350;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.screen::after { content: ""; position: absolute; pointer-events: none; inset: 0; border-radius: 40px; box-shadow: inset 0 0 0 1px #ffffff75; z-index: 4; }
.hardware { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #aaaead, #e0e0dc 60%, #777d78); box-shadow: 0 0 0 .45px #90968e; }
.hardware-action { top: 14.3%; height: 24px; left: -3px; }
.hardware-volume-up { top: 22%; height: 44px; left: -3px; }
.hardware-volume-down { top: 31.2%; height: 44px; left: -3px; }
.hardware-power { top: 25%; height: 68px; right: -3px; }
.antenna { position: absolute; width: 4px; height: 4px; background: #777d7570; }
.antenna-left { left: 0; bottom: 14%; }
.antenna-right { right: 0; top: 12%; }
.wallpaper { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(145deg, #e4e9e5 0%, #f4f3ed 37%, #e2e7e4 100%); }
.wallpaper-arch {
  position: absolute; width: 182%; height: 75%; left: -58%; bottom: -33%; border-radius: 50%;
  transform: rotate(-28deg);
  background: linear-gradient(170deg, #fefef9 3%, #eff1e8 21%, #bac9c356 44%, #c7d3cc 73%);
  border: 1px solid #ffffffaf;
  box-shadow: inset 9px 16px 22px -19px #fff, 24px -9px 42px -15px #83948d38, 0 -2px 3px #9bac9f24;
}
.wallpaper-ring {
  position: absolute; width: 145%; height: 75%; right: -84%; top: 10%; border-radius: 50%; transform: rotate(26deg);
  background: linear-gradient(125deg, #fafbf8 3%, #eef0e9 30%, #becac19c 57%, #e8ece7 72%);
  border: 1px solid #fdfef980;
  box-shadow: -16px 14px 42px -19px #7c928354, inset 11px 0 26px -21px #fff;
}
.wallpaper-plane {
  position: absolute; width: 100%; height: 46%; bottom: -25%; right: -22%; transform: rotate(-27deg);
  border-radius: 44px; border-top: 1px solid #fcfdf8;
  background: linear-gradient(150deg, #eef1ea 2%, #d3ddd6 77%); box-shadow: 0 -10px 32px -16px #7a91844d;
}
.status-bar { position: relative; height: 49px; display: flex; align-items: center; justify-content: space-between; padding: 0 23px; z-index: 3; color: #212522; }
.status-time { margin-top: -1px; font-size: 11px; font-weight: 650; letter-spacing: -.3px; }
.dynamic-island { position: absolute; width: 85px; height: 24px; background: #101311; border-radius: 20px; left: calc(50% - 42.5px); top: 9px; box-shadow: inset 0 0 0 1px #000; }
.camera { position: absolute; right: 9px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: radial-gradient(circle at 65% 40%, #1e3032, #131d26 28%, #0b0e12 60%); box-shadow: 0 0 0 1px #22262250; }
.status-symbols { display: flex; gap: 4px; align-items: center; }
.status-symbols svg { display: block; }
.home-content { position: relative; z-index: 2; }
.clock-widget { text-align: center; margin-top: 24px; margin-bottom: 45px; }
.date { font-size: 12px; font-weight: 500; letter-spacing: -.1px; color: #414942; }
.clock { margin-top: 3px; font-size: 62px; font-weight: 300; line-height: 1.15; letter-spacing: -3.5px; color: #303932; font-variant-numeric: tabular-nums; }
.apps { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 23px; row-gap: 27px; width: fit-content; margin: 0 auto; padding: 0 10px; }
.app { display: flex; width: 89px; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: #333d37; border-radius: 23px; -webkit-tap-highlight-color: transparent; outline: none; }
.app-icon { display: block; width: 68px; height: 68px; border-radius: 17px; box-shadow: 0 3px 5px #283b3814, 0 8px 13px -8px #243b3c4d; transition: transform 200ms cubic-bezier(.22,.61,.36,1), box-shadow 200ms ease; }
.app-icon img { display: block; width: 100%; height: 100%; border-radius: inherit; }
.app-label { font-size: 11px; font-weight: 500; line-height: 1.3; letter-spacing: -.04px; text-shadow: 0 1px 5px #ffffff90; }
.app:focus-visible { outline: 2px solid #202d28; outline-offset: 7px; }
.app:active .app-icon { transform: scale(.94); }
.home-indicator { position: absolute; width: 34%; height: 4px; background: #1b201cd9; border-radius: 10px; left: 33%; bottom: 9px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (hover: hover) {
  .app:hover .app-icon { transform: translateY(-3px) scale(1.045); box-shadow: 0 6px 10px #283b3819, 0 13px 18px -9px #243b3c57; }
}
@media (min-height: 850px) and (min-width: 650px) {
  .clock-widget { margin-top: 36px; margin-bottom: 50px; }
  .apps { column-gap: 30px; row-gap: 33px; }
  .app-icon { width: 74px; height: 74px; border-radius: 19px; }
  .app-label { font-size: 12px; }
}
@media (max-width: 600px) {
  .site-header { top: 26px; left: 25px; }
  .brand { width: 130px; }
  main { padding: 91px 22px 45px; }
  .phone { width: min(320px, calc((100svh - 145px) * .486)); min-width: 266px; }
  .phone-stage::after { bottom: -12px; }
}
@media (max-height: 760px) {
  .status-bar { padding-inline: 20px; }
  .dynamic-island { width: 72px; left: calc(50% - 36px); }
}
@media (max-height: 720px) {
  .clock-widget { margin-top: 17px; margin-bottom: 28px; }
  .clock { font-size: 54px; }
  .apps { row-gap: 22px; column-gap: 21px; }
  .app-icon { width: 64px; height: 64px; border-radius: 16px; }
}
@media (max-width: 340px) {
  main { padding-inline: 12px; }
  .site-header { left: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
