@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/Manrope-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/Manrope-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/Manrope-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/Manrope-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #030303;
  --bg-soft: #0f1014;
  --panel: rgba(18, 19, 24, 0.88);
  --panel-strong: #14151b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #f4f4f6;
  --muted: #9ca1aa;
  --muted-strong: #c8ccd4;
  --accent: #2f9df2;
  --accent-soft: rgba(47, 157, 242, 0.18);
  --danger: #ff7078;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --radius-xl: 42px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --content-width: 1120px;
  --legal-width: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.06), transparent 28%),
    radial-gradient(circle at bottom center, rgba(47, 157, 242, 0.08), transparent 34%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 82%);
  opacity: 0.24;
}

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

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

p {
  margin: 0;
}

.page-home,
.page-legal {
  position: relative;
}

.shell {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  width: min(820px, calc(100% - 24px));
  margin: 0 auto;
  padding: 76px 0 0;
  text-align: center;
}

.hero-mark {
  width: 78px;
  margin: 0 auto 24px;
  opacity: 0.96;
}

.hero-title {
  margin: 0;
  display: grid;
  gap: 0.12em;
  font-size: clamp(3rem, 7vw, 5.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  word-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-title span {
  display: block;
}

.hero-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.hero-copy p {
  text-wrap: balance;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 38px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.96;
}

.store-badge img {
  display: block;
  width: min(330px, 40vw);
  height: auto;
  max-width: 100%;
}

.store-badge:focus-visible,
.footer-link:focus-visible,
.inline-link:focus-visible,
.back-home:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.showcase {
  position: relative;
  margin-top: 96px;
  padding-bottom: 24px;
  --showcase-gap: clamp(14px, 2vw, 28px);
}

.phones-grid {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding-inline: clamp(4px, 1vw, 16px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--showcase-gap);
}

.phone-frame {
  position: relative;
  --phone-radius: 12% / 5.6%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%),
    rgba(11, 12, 16, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--phone-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: inherit;
}

.phone-left,
.phone-right,
.phone-center {
  flex: 0 0 auto;
  width: min(28%, 340px);
  transform: none;
}

.phone-left {
  z-index: 1;
}

.site-footer {
  width: min(760px, calc(100% - 48px));
  margin: 76px auto 0;
  padding: 40px 0 82px;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  justify-content: center;
  gap: 24px clamp(40px, 8vw, 88px);
  border-top: 1px solid var(--line);
}

.site-footer > div {
  justify-self: center;
}

.footer-title {
  margin-bottom: 14px;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.footer-stack {
  display: grid;
  gap: 10px;
}

.footer-link {
  color: var(--muted);
  transition: color 160ms ease;
}

.footer-link:hover {
  color: var(--text);
}

.legal-topbar {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding-top: 28px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
}

.back-home svg {
  width: 17px;
  height: 17px;
}

.legal-shell {
  width: min(var(--legal-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 112px;
}

.legal-hero {
  display: grid;
  justify-items: center;
  gap: 24px;
  text-align: center;
  margin-bottom: 70px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--panel);
  color: var(--muted-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.pill svg {
  width: 18px;
  height: 18px;
}

.legal-title {
  margin: 0;
  font-size: clamp(3rem, 7vw, 4.95rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.updated-pill {
  font-size: 0.98rem;
}

.legal-section {
  padding: 36px 0 34px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 18px;
  font-size: clamp(1.95rem, 4vw, 2.35rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.legal-section h3 {
  margin: 28px 0 16px;
  font-size: 1.32rem;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.legal-section p,
.legal-section li {
  color: #b7bcc6;
  font-size: 1.07rem;
  line-height: 1.75;
}

.legal-section p + p,
.legal-section p + ul,
.legal-section ul + p,
.legal-section h3 + p,
.legal-section h3 + ul {
  margin-top: 16px;
}

.legal-section ul {
  margin: 18px 0 0;
  padding-left: 24px;
  display: grid;
  gap: 10px;
}

.inline-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.inline-link:hover {
  text-decoration-color: rgba(255, 255, 255, 0.75);
}

.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.93em;
  letter-spacing: 0.02em;
}

[data-reveal],
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .hero {
    padding-top: 56px;
  }

  .showcase {
    margin-top: 72px;
  }

  .phones-grid {
    width: min(100%, 980px);
  }

  .site-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .shell,
  .site-footer,
  .legal-shell,
  .legal-topbar {
    width: min(100% - 28px, var(--content-width));
  }

  .hero {
    width: min(100% - 12px, 820px);
    padding-top: 42px;
  }

  .hero-mark {
    width: 66px;
    margin-bottom: 18px;
  }

  .hero-title {
    font-size: clamp(2.85rem, 16vw, 4.2rem);
  }

  .hero-copy {
    gap: 14px;
    margin-top: 24px;
    font-size: 1rem;
  }

  .store-badges {
    gap: 14px;
  }

  .store-badge {
    width: auto;
  }

  .store-badge img {
    width: min(100%, 290px);
  }

  .showcase {
    margin-top: 58px;
  }

  .phones-grid {
    gap: 10px;
    padding-inline: 0;
    align-items: flex-start;
    justify-content: center;
  }

  .phone-left,
  .phone-center,
  .phone-right {
    width: 31%;
  }

  .site-footer {
    margin-top: 56px;
    padding: 32px 0 64px;
  }

  .legal-shell {
    padding-top: 34px;
  }

  .legal-hero {
    gap: 18px;
    margin-bottom: 48px;
  }

  .pill {
    padding: 9px 16px;
  }

  .legal-section {
    padding: 28px 0;
  }

  .legal-section h2 {
    margin-bottom: 14px;
    font-size: 1.85rem;
  }

  .legal-section h3 {
    margin-top: 22px;
    margin-bottom: 12px;
    font-size: 1.18rem;
  }

  .legal-section p,
  .legal-section li {
    font-size: 1rem;
  }
}

@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;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
