:root {
  --page-top: #16131b;
  --text: #fbf9ff;
  --muted: #d8d1df;
  --line: rgba(185, 152, 254, 0.14);
  --rose: #b998fe;
  --rose-light: #c09efd;
  --purple: #765ea5;
  --phone-shell: #100c16;
  color-scheme: dark;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-top);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--page-top);
  font-size: 19px;
  line-height: 30px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-canvas {
  position: relative;
  display: flex;
  min-height: 100vh;
  max-width: 1440px;
  margin: 0 auto;
  overflow: hidden;
  flex-direction: column;
  background: var(--page-top);
  box-shadow: 0 16px 48px rgba(5, 3, 8, 0.6);
  isolation: isolate;
}

.container {
  width: 100%;
  max-width: 1128px;
  margin: 0 auto;
  padding-inline: 24px;
}

.site-header {
  position: relative;
  height: 48px;
  flex: none;
}

main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
}

.hero {
  position: relative;
  padding-block: 56px 12px;
}

.hero-inner {
  display: flex;
  justify-content: space-between;
}

.hero-copy {
  position: relative;
  z-index: 3;
  min-width: 448px;
  max-width: 588px;
  padding-top: 88px;
  padding-right: 48px;
  animation: copy-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.lovora-logo {
  display: block;
  width: 70px;
  height: 70px;
  margin-bottom: 26px;
  border-radius: 12px;
  object-fit: cover;
}

.hero-title {
  margin: 0 0 24px;
  color: var(--text);
  font-size: 44px;
  font-weight: 700;
  line-height: 62px;
  letter-spacing: 0;
}

.hero-paragraph {
  max-width: 548px;
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 19px;
  font-weight: 400;
  line-height: 30px;
}

.store-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
}

.store-link {
  display: block;
  border-radius: 9px;
  outline: none;
  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.store-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.store-link:focus-visible {
  box-shadow:
    0 0 0 3px var(--page-top),
    0 0 0 5px var(--rose-light);
}

.apple-button {
  width: 170px;
  height: 57px;
}

.play-store-button {
  width: 195px;
  height: 58px;
}

.hero-app {
  position: relative;
  z-index: 2;
  flex: 0 0 350px;
}

.phone-mockup {
  position: relative;
  width: 350px;
  height: 729px;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(85, 67, 117, 0.65);
  border-radius: 53px;
  background: linear-gradient(145deg, #1b1525, #0d0a11);
  box-shadow:
    0 0 0 4px rgba(9, 6, 13, 0.7),
    0 20px 42px rgba(4, 2, 7, 0.62),
    inset 0 1px 1px rgba(255, 255, 255, 0.08);
  animation: phone-in 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.06s both;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 41px;
  background: #080808;
}

.phone-screen video {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  object-position: center;
}

.screen-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    113deg,
    rgba(255, 255, 255, 0.065),
    transparent 24%,
    transparent 72%,
    rgba(255, 255, 255, 0.018)
  );
  pointer-events: none;
}

.site-footer {
  position: relative;
  z-index: 4;
  flex: none;
  margin-top: 20px;
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

.site-footer-inner {
  position: relative;
  display: flex;
  min-height: 103px;
  padding-block: 32px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  order: 1;
  width: 50%;
  justify-content: flex-end;
}

.footer-links a {
  flex: 1 1 0;
  padding-inline: 25px;
  text-align: center;
  white-space: nowrap;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copyright {
  display: flex;
  width: 50%;
  justify-content: flex-start;
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 48px;
    text-align: center;
  }

  .hero-inner {
    flex-direction: column;
    align-items: center;
  }

  .hero-copy {
    min-width: 0;
    max-width: 590px;
    padding: 0;
  }

  .lovora-logo {
    margin-inline: auto;
  }

  .hero-paragraph {
    margin-inline: auto;
  }

  .store-buttons {
    justify-content: center;
  }

  .hero-app {
    margin-top: 26px;
  }

}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .container {
    padding-inline: 16px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-title {
    font-size: 40px;
    line-height: 56px;
  }

  .hero-paragraph {
    font-size: 18px;
    line-height: 28px;
  }

  .phone-mockup {
    width: min(350px, calc(100vw - 40px));
    height: auto;
    aspect-ratio: 350 / 729;
  }

  .site-footer-inner {
    min-height: 0;
    flex-direction: column;
    gap: 24px;
    padding-block: 28px;
  }

  .footer-links,
  .footer-copyright {
    width: 100%;
  }

  .footer-links {
    order: 0;
    justify-content: center;
  }

  .footer-links a {
    padding-inline: 8px;
  }

  .footer-copyright {
    justify-content: center;
  }
}

@media (max-width: 428px) {
  .store-buttons {
    flex-direction: column;
    gap: 20px;
  }

  .apple-button,
  .play-store-button {
    width: 200px;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
