:root {
  color-scheme: dark;
  --bg: #07090d;
  --panel: rgba(19, 23, 29, 0.84);
  --panel-strong: #151a20;
  --line: rgba(255, 255, 255, 0.16);
  --text: #f7f8fa;
  --muted: #abb4bf;
  --green: #42d76e;
  --red: #ff474f;
  --blue: #2397ff;
  --yellow: #f3cf35;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: Avenir, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("./assets/hero-background.jpg") center / cover no-repeat;
  filter: brightness(30%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 72% 20%, rgba(66, 215, 110, 0.14), transparent 27%),
    linear-gradient(90deg, rgba(7, 9, 13, 0.36) 0%, rgba(7, 9, 13, 0.14) 48%, rgba(7, 9, 13, 0.22) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.04), rgba(7, 9, 13, 0.28));
  pointer-events: none;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 16px;
  font-weight: 800;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.hero {
  position: relative;
  flex: 1;
  min-height: calc(100svh - 100px);
  display: grid;
  grid-template-columns: minmax(440px, 680px) minmax(260px, 397px);
  align-items: center;
  justify-content: center;
  gap: clamp(436px, calc(7vw + 400px), 520px);
  overflow: visible;
  padding: 104px clamp(18px, 6vw, 88px) 58px;
}

.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-shade {
  background: linear-gradient(180deg, transparent 76%, rgba(7, 9, 13, 0.12));
}

.hero-brand,
.hero-content,
.hero-device {
  position: relative;
  z-index: 2;
}

.hero-brand {
  position: absolute;
  top: 24px;
  left: clamp(18px, 6vw, 88px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
  overflow-wrap: normal;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 70px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0;
}

.hero-copy li {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
}

.hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.hero-copy-group {
  display: grid;
  gap: 6px;
}

.hero-copy h2 {
  margin: 0;
  color: var(--text);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 800;
}

.hero-copy ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 40px;
}

.hero-copy li::marker {
  color: var(--green);
  font-size: 0.78em;
}

.hero-device {
  justify-self: center;
  width: min(100%, 397px);
}

.hero-phone {
  position: relative;
  justify-self: center;
  width: 100%;
  aspect-ratio: 1219 / 2596;
  border-radius: 36px;
  overflow: hidden;
  filter: drop-shadow(0 34px 56px rgba(0, 0, 0, 0.48));
}

.hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: opacity 160ms ease;
}

.hero-screen-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  width: 100%;
  margin-top: 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(18, 22, 28, 0.86);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
}

.hero-screen-tab {
  min-width: 0;
  min-height: 41px;
  border: 0;
  border-radius: 15px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.hero-screen-tab.active {
  background: var(--green);
  color: #061009;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.app-store-link {
  position: absolute;
  z-index: 2;
  display: block;
  width: clamp(190px, 12vw, 230px);
  left: 50%;
  bottom: clamp(28px, 4vw, 46px);
  transform: translateX(-50%);
}

.app-store-link img {
  width: 100%;
  height: auto;
}

.app-store-link:hover {
  filter: brightness(1.08);
}

.site-footer {
  flex: 0 0 100px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100px;
  padding: 0 clamp(18px, 6vw, 88px);
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 13, 0.16);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: clamp(14px, 3vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: var(--text);
}

.legal-page {
  min-height: 100svh;
  padding: 116px clamp(18px, 6vw, 88px) 72px;
  background:
    radial-gradient(circle at 20% 0%, rgba(66, 215, 110, 0.14), transparent 28%),
    linear-gradient(180deg, #0c1015 0%, var(--bg) 100%);
}

.legal-document {
  max-width: 920px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 16, 21, 0.86);
}

.legal-document pre {
  margin: 0;
  padding: clamp(24px, 5vw, 54px);
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 500 16px/1.75 Avenir, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 20px;
    padding-top: 104px;
    padding-bottom: 28px;
  }

  .hero-device {
    width: min(56vw, 397px);
  }

  .hero-screen-tab {
    min-height: 34px;
    font-size: 10px;
  }

  .hero-screen-tabs {
    gap: 4px;
    padding: 4px;
  }

  .app-store-link {
    position: relative;
    width: 200px;
    left: auto;
    bottom: auto;
    margin: 22px auto 0;
    transform: none;
  }

}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 26px;
    padding: 22px 20px 38px;
  }

  .hero-brand {
    position: relative;
    top: auto;
    left: auto;
    order: 1;
  }

  .hero-content {
    order: 2;
    width: 100%;
  }

  .eyebrow {
    margin-top: 14px;
  }

  h1 {
    font-size: clamp(48px, 15vw, 70px);
  }

  .hero-copy {
    max-width: none;
    gap: 16px;
  }

  .hero-copy li {
    font-size: 17px;
  }

  .hero-device {
    order: 4;
    width: min(78vw, 330px);
    align-self: center;
    justify-self: auto;
  }

  .hero-screen-tabs {
    gap: 5px;
    margin-top: 12px;
    padding: 5px;
  }

  .hero-screen-tab {
    min-height: 36px;
    font-size: 10px;
  }

  .app-store-link {
    order: 3;
    width: 180px;
    left: auto;
    transform: none;
    margin: 18px auto 0;
  }

  .site-footer {
    align-items: center;
    padding: 0 20px;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }
}

@media (max-width: 520px) {
  .site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    row-gap: 8px;
  }

  .site-footer > span {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .site-footer > a:last-child {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .footer-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 8px 14px;
    width: 100%;
  }
}
