:root {
  color-scheme: dark;
  --background: #0a0c0e;
  --surface: #111519;
  --surface-raised: #151b20;
  --text: #f4f6f8;
  --text-muted: #929ca7;
  --text-dim: #65707b;
  --border: #20262c;
  --accent: #2aa3ac;
  --accent-bright: #49c2ca;
  --accent-ink: #031719;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

html {
  min-height: 100%;
  background: var(--background);
  scrollbar-color: rgba(146, 156, 167, 0.18) transparent;
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(146, 156, 167, 0.18);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(146, 156, 167, 0.34);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 78% 26%, rgba(42, 163, 172, 0.1), transparent 28rem),
    var(--background);
  background-size: 64px 64px, 64px 64px, auto, auto;
  color: var(--text);
}

a {
  color: inherit;
}

.page-shell {
  width: min(100% - 48px, 1180px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #dfe4e8;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img,
.notification-app img {
  border-radius: 9px;
}

.source-link {
  color: var(--text-muted);
  font-size: 13px;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

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

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(56px, 9vw, 128px);
  padding: clamp(64px, 10vh, 116px) 0 96px;
}

.hero-app-name {
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-app-name::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(42, 163, 172, 0.11);
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(62px, 8.4vw, 112px);
  font-weight: 760;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

h1 em {
  display: block;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 620;
}

.lead {
  max-width: 620px;
  margin: 36px 0 0;
  color: #a7b0b9;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
  letter-spacing: -0.018em;
}

.actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.download-button {
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: var(--accent);
  color: #ffffff;
  box-shadow:
    0 16px 42px rgba(42, 163, 172, 0.18),
    inset 0 1px rgba(255, 255, 255, 0.16);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition:
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.download-button:hover {
  background: #32b2bb;
  box-shadow:
    0 19px 48px rgba(42, 163, 172, 0.24),
    inset 0 1px rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.download-button span {
  font-size: 19px;
  line-height: 1;
}

.requirements {
  color: var(--text-dim);
  font-size: 12px;
}

.notification-demo {
  position: relative;
  padding: 20px;
  border: 1px solid #252d34;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 48%),
    rgba(17, 21, 25, 0.94);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.34),
    0 0 0 8px rgba(255, 255, 255, 0.012);
  transform: rotate(1.2deg);
}

.notification-demo::before {
  position: absolute;
  inset: -34px -28px auto auto;
  width: 90px;
  height: 90px;
  border: 1px solid rgba(42, 163, 172, 0.24);
  border-radius: 50%;
  content: "";
}

.notification-topline,
.notification-app,
.code-row {
  display: flex;
  align-items: center;
}

.notification-topline {
  justify-content: space-between;
}

.notification-app {
  gap: 10px;
}

.notification-app div {
  display: grid;
  gap: 2px;
}

.notification-app strong {
  font-size: 13px;
}

.notification-app span,
.notification-hint {
  color: var(--text-dim);
  font-size: 11px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 16px var(--accent);
}

.notification-demo > p {
  margin: 28px 0 7px;
  color: var(--text-muted);
  font-size: 12px;
}

.code-row {
  justify-content: space-between;
  gap: 20px;
}

.code-row code {
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.copy-state {
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(42, 163, 172, 0.13);
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 750;
}

.notification-line {
  height: 1px;
  margin: 22px 0 14px;
  background: var(--border);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.facts div {
  min-height: 112px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  border-right: 1px solid var(--border);
}

.facts div:first-child {
  padding-left: 0;
}

.facts div:last-child {
  border-right: 0;
}

.facts strong {
  color: #dce2e7;
  font-size: 14px;
  font-weight: 700;
}

.facts span {
  color: var(--text-dim);
  font-size: 12px;
}

.purpose {
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1.55fr);
  gap: 48px;
  border-bottom: 1px solid var(--border);
}

.purpose-label {
  margin: 6px 0 0;
  color: var(--accent-bright);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.purpose-copy {
  max-width: 720px;
}

.purpose h2 {
  margin: 0 0 24px;
  color: #e5e9ec;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.purpose-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.purpose-copy p + p {
  margin-top: 16px;
}

footer {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-dim);
  font-size: 12px;
}

footer nav {
  display: flex;
  gap: 22px;
}

footer a {
  text-underline-offset: 4px;
}

.download-button:focus-visible,
.brand:focus-visible,
.source-link:focus-visible,
footer a:focus-visible,
.policy a:focus-visible {
  outline: 3px solid rgba(73, 194, 202, 0.55);
  outline-offset: 4px;
}

.simple-page {
  background: var(--background);
}

.simple-shell {
  width: min(100% - 48px, 760px);
  margin: 0 auto;
  padding: 64px 0 96px;
}

.simple-shell .brand {
  margin-bottom: 64px;
}

.policy h1,
.download-status-page h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.policy .updated {
  margin: 16px 0 48px;
  color: var(--text-dim);
  font-size: 13px;
}

.policy h2 {
  margin: 42px 0 12px;
  color: #e1e6ea;
  font-size: 19px;
  letter-spacing: -0.025em;
}

.policy p,
.policy li,
.download-status-page p {
  color: #a5aeb7;
  font-size: 15px;
  line-height: 1.75;
}

.policy ul {
  padding-left: 20px;
}

.policy a,
.download-status-page a {
  color: var(--accent-bright);
  text-underline-offset: 4px;
}

.download-status-page {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 20px;
}

.download-status-page .brand {
  margin-bottom: 30px;
}

@media (max-width: 840px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 68px;
    padding-top: 72px;
  }

  .notification-demo {
    width: min(100%, 430px);
    transform: rotate(0.5deg);
  }

  .facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .facts div:nth-child(2) {
    border-right: 0;
  }

  .facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .facts div:first-child,
  .facts div:nth-child(3) {
    padding-left: 0;
  }

  .purpose {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .simple-shell {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .hero {
    padding: 70px 0 72px;
  }

  h1 {
    font-size: clamp(55px, 17vw, 78px);
  }

  .lead {
    margin-top: 28px;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .download-button {
    width: 100%;
  }

  .notification-demo {
    padding: 17px;
  }

  .facts {
    grid-template-columns: 1fr;
  }

  .facts div,
  .facts div:nth-child(2) {
    min-height: 88px;
    padding: 20px 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .facts div:last-child {
    border-bottom: 0;
  }

  .purpose {
    padding: 52px 0;
  }

  footer {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .simple-shell {
    padding-top: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-button,
  .source-link {
    transition: none;
  }
}
