:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #9a9a9a;
  --rule: rgba(255, 255, 255, 0.08);
  --soft: rgba(255, 255, 255, 0.04);
  --container: 720px;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("fonts/SFPRODISPLAYREGULAR.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("fonts/SFPRODISPLAYMEDIUM.OTF") format("opentype");
  font-weight: 500 650;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Pro Display";
  src: url("fonts/SFPRODISPLAYBOLD.OTF") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html,
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--fg);
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

main {
  width: calc(100% - 48px);
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 0 88px;
}

section {
  width: 100%;
}

.app-icon {
  width: 92px;
  height: 92px;
  margin: 0;
  border-radius: 22px;
  display: block;
  object-fit: cover;
  background: #121212;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app-icon-link {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 34px;
  display: block;
  border-radius: 22px;
}

.app-icon-link::before {
  content: "";
  position: absolute;
  inset: -88px;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055) 36%, transparent 68%);
  filter: blur(34px);
  opacity: 1;
  pointer-events: none;
}

.app-icon-link:hover .app-icon {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.home-hero,
.home-preview,
.site-footer {
  animation: page-rise 520ms ease both;
}

.home-preview {
  animation-delay: 80ms;
}

.site-footer {
  animation-delay: 180ms;
}

.home-page {
  max-width: 960px;
}

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: min(720px, calc(100svh - 160px));
  display: grid;
  place-items: center;
  align-content: center;
  padding: 32px 0 56px;
  text-align: center;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 50%;
  z-index: -1;
  width: min(230px, 58vw);
  height: 170px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.014) 34%, transparent 74%);
  filter: blur(34px);
  transform: translateX(-50%);
  pointer-events: none;
}

.home-hero .app-icon-link {
  margin-bottom: 26px;
}

.home-intro {
  max-width: 520px;
  margin: -4px auto 18px;
  font-size: clamp(18px, 3vw, 22px);
}

.home-store-link {
  margin-left: 0;
}

.home-preview {
  display: grid;
  gap: 34px;
  padding: 54px 0 86px;
  border-top: 1px solid var(--rule);
}

.preview-copy {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.preview-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.08;
}

.preview-copy p {
  margin: 0;
}

.preview-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 18px;
}

.preview-gallery img {
  width: 100%;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 28px;
  box-shadow: 0 18px 64px rgba(0, 0, 0, 0.34);
  transition: opacity 180ms ease, transform 220ms ease, box-shadow 220ms ease, border-color 180ms ease;
}

.preview-gallery img:first-child,
.preview-gallery img:last-child {
  opacity: 0.72;
  transform: scale(0.92);
}

.preview-gallery img:first-child:hover,
.preview-gallery img:last-child:hover {
  opacity: 0.92;
  transform: translateY(-8px) scale(0.96);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 74px rgba(0, 0, 0, 0.42);
}

.preview-gallery img:nth-child(2) {
  position: relative;
  z-index: 1;
  transform: translateY(18px) scale(1.04);
  opacity: 1;
}

.preview-gallery img:nth-child(2):hover {
  transform: translateY(8px) scale(1.075);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

header {
  margin-bottom: 48px;
  text-align: center;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(48px, 10vw, 78px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  margin: 38px 0 10px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 620;
}

p {
  color: var(--muted);
  font-size: 16px;
}

.sub,
.date {
  color: var(--muted);
  font-size: 15px;
}

.date {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--soft);
  font-size: 14px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.date:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

a {
  color: var(--fg);
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fg);
  color: #050505;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  border: 0;
  cursor: pointer;
}

.button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.button.secondary {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--fg);
}

details {
  margin: 0;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
  transition: border-color 180ms ease;
}

details:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

details:last-of-type {
  border-bottom: 1px solid var(--rule);
}

summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 620;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
}

details p {
  margin: 8px 0 0;
}

hr {
  margin: 56px 0 30px;
  border: 0;
  border-top: 1px solid var(--rule);
}

.site-footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.app-store-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--fg);
  line-height: 0;
  text-decoration: none;
}

.footer-link {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--fg);
  opacity: 0.72;
}

.app-store-link:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 22px rgba(255, 255, 255, 0.025);
  color: var(--fg);
  opacity: 1;
  transform: translateY(-1px);
}

.app-store-link svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.app-store-badge {
  position: relative;
  display: inline-flex;
  line-height: 0;
  text-decoration: none;
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.app-store-badge::before {
  content: "";
  position: absolute;
  inset: -18px -24px;
  z-index: -1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  filter: blur(18px);
  opacity: 0.45;
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-store-badge:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.008);
  filter: drop-shadow(0 10px 26px rgba(255, 255, 255, 0.08));
}

.app-store-badge:hover::before {
  opacity: 0.65;
  transform: scale(1.03);
}

.app-store-badge img {
  width: 162px;
  height: 48px;
  display: block;
}

.home-hero .app-store-badge {
  margin-left: 0;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-panel {
  position: relative;
  width: min(100%, 440px);
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #0d0d0d;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  animation: modal-in 180ms ease-out;
}

.modal-panel h2 {
  margin-top: 0;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--fg);
}

.modal-close::before,
.modal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

body.modal-open {
  overflow: hidden;
}

form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

label {
  display: grid;
  grid-column: 1 / -1;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

form > .button:not(.form-close) {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 15px;
}

input {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 118px;
  padding: 10px 12px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: rgba(255, 255, 255, 0.36);
  outline: none;
}

input[name="company"] {
  position: absolute;
  left: -9999px;
}

.form-status {
  min-height: 20px;
  margin: -2px 0 0;
  font-size: 14px;
  grid-column: 1 / -1;
}

.form-status.is-success {
  display: inline-flex;
  grid-column: 1;
  min-height: 44px;
  align-items: center;
  margin-right: 10px;
  color: var(--fg);
}

.form-close {
  display: inline-flex;
  width: auto;
  grid-column: 2;
  justify-self: end;
}

.form-close[hidden] {
  display: none;
}

.success-view[hidden] {
  display: none;
}

.success-view {
  display: grid;
  gap: 18px;
  padding-top: 18px;
}

.success-message {
  min-height: 96px;
  margin: 0;
  display: grid;
  place-items: center;
  color: var(--fg);
  text-align: center;
  font-size: 16px;
}

.success-view .form-close {
  width: 100%;
  grid-column: auto;
  justify-self: stretch;
}

.confirm-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 14px;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(10px);
}

.confirm-layer[hidden] {
  display: none;
}

.confirm-box {
  width: min(100%, 320px);
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #0a0a0a;
  animation: modal-in 160ms ease-out;
}

.confirm-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}

.confirm-box p {
  margin-bottom: 18px;
  font-size: 15px;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes page-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 520px) {
  main {
    width: calc(100% - 32px);
    padding-top: 48px;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .app-icon-link {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 14px;
  }

  .site-footer > span {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .site-footer .app-store-link {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    margin-left: 0;
  }

  .site-footer .footer-links {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
  }

  .home-preview {
    gap: 28px;
    padding-bottom: 64px;
  }

  .preview-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-right: 0;
  }

  .preview-gallery img {
    border-radius: 20px;
  }

}
