:root {
  color-scheme: dark;
  --bg: #0b1111;
  --bg-2: #101817;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f2f7ef;
  --muted: rgba(242, 247, 239, 0.7);
  --soft: rgba(242, 247, 239, 0.52);
  --green: #8fd58b;
  --teal: #8fe2df;
  --amber: #d58b1d;
  --blue: #5ca8ff;
  --red: #f87268;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(20, 34, 32, 0.88) 0, rgba(9, 14, 14, 0.96) 430px),
    linear-gradient(140deg, rgba(16, 26, 25, 0.92), rgba(8, 12, 12, 0.98)),
    var(--bg);
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(13, 20, 20, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.brand,
nav,
.store-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-height: 48px;
  padding-right: 10px;
  text-decoration: none;
  font-weight: 850;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  clip-path: inset(5% round 24%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand span {
  letter-spacing: 0;
}

nav {
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: flex-end;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 750;
  text-decoration: none;
}

nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 6px;
  transition: color 0.16s ease, background 0.16s ease;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"],
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--text);
  outline: none;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.075);
}

.menu-toggle {
  display: none;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding-left: 6px;
  border-left: 1px solid var(--line);
}

.language-switch a {
  min-height: 32px;
  padding: 0 9px;
  font-size: 0.78rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 28px 0 88px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.07;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(2.45rem, 5.2vw, 5.15rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
}

h3 {
  margin-bottom: 9px;
  font-size: 1.08rem;
}

.lead,
.band p,
.legal-section p,
.feature-grid p,
.muted {
  color: var(--muted);
  line-height: 1.55;
}

.lead {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.store-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 178px;
  min-height: 58px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #050707;
  color: var(--text);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.34);
  background: #0b1011;
  outline: none;
}

.store-button--primary {
  border-color: rgba(143, 213, 139, 0.55);
  background: linear-gradient(135deg, rgba(143, 213, 139, 0.24), rgba(90, 210, 184, 0.13));
}

.store-button[aria-disabled="true"] {
  opacity: 0.76;
}

.store-button__icon,
.feature-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: rgba(7, 13, 13, 0.56);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.store-button__icon {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
}

.store-button__icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.store-button--app-store .store-button__icon {
  color: #f2f7ef;
}

.store-button--play-store .store-button__icon {
  color: var(--teal);
}

.store-button strong,
.store-button small {
  display: block;
}

.store-button strong {
  font-size: 1.12rem;
  line-height: 1.1;
}

.store-button small {
  margin-bottom: 2px;
  color: rgba(242, 247, 239, 0.78);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: none;
}

.hero__brand {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(16px, 3vw, 32px);
}

.hero-logo {
  display: block;
  width: min(340px, 68vw);
  aspect-ratio: 1;
  clip-path: inset(5.5% round 24%);
  filter:
    drop-shadow(0 28px 52px rgba(0, 0, 0, 0.28))
    drop-shadow(0 0 52px rgba(143, 213, 139, 0.14));
}

.signal-panel,
.hero-stats {
  width: min(360px, 100%);
}

.signal-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(143, 213, 139, 0.22);
  border-radius: 8px;
  background: rgba(10, 18, 18, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.signal-panel div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signal-panel span:last-child {
  color: var(--muted);
  line-height: 1.45;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-stats span {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.feature-grid article,
.legal-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.status-dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 18px rgba(143, 213, 139, 0.54);
}

.section {
  padding: 58px 0 36px;
}

.section > h2 {
  max-width: 760px;
}

.section-head {
  max-width: 760px;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
  align-items: start;
}

.app-screen {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 14, 14, 0.72);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
}

.app-screen:nth-child(2) {
  margin-top: 28px;
}

.app-screen:nth-child(3) {
  margin-top: 56px;
}

.app-screen:nth-child(4) {
  margin-top: 18px;
}

.app-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.feature-grid article {
  min-height: 198px;
  padding: 22px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.feature-grid article:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 213, 139, 0.24);
  background: rgba(255, 255, 255, 0.06);
}

.feature-icon {
  width: 48px;
  height: 34px;
  margin-bottom: 20px;
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: end;
  margin: 50px 0 26px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.band a,
.legal-section a {
  color: var(--green);
  font-weight: 760;
}

.legal-section {
  margin: 18px 0;
  padding: clamp(22px, 4vw, 34px);
  scroll-margin-top: 90px;
}

.legal-hero {
  padding: clamp(44px, 8vw, 92px) 0 24px;
}

.legal-hero h1 {
  max-width: 780px;
}

.legal-hero .lead {
  margin-bottom: 0;
}

.legal-copy {
  max-width: 920px;
}

.legal-copy h2,
.legal-copy h3 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 1.08rem;
}

.legal-copy p {
  margin-bottom: 14px;
}

.legal-copy--columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.legal-copy--columns p {
  margin-bottom: 10px;
}

details {
  margin-top: 14px;
  padding-top: 2px;
}

summary {
  width: fit-content;
  cursor: pointer;
  color: var(--green);
  font-weight: 850;
}

summary:focus-visible {
  outline: 2px solid rgba(143, 213, 139, 0.6);
  outline-offset: 4px;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 38px 0 48px;
  color: var(--soft);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    top: 8px;
  }

  .js .menu-toggle {
    display: inline-grid;
    grid-template-columns: 18px auto;
    gap: 8px;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
  }

  .menu-toggle span:not(.menu-toggle__label) {
    grid-column: 1;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .menu-toggle__label {
    grid-column: 2;
    grid-row: 1 / 4;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
    overflow: visible;
  }

  .js nav {
    display: none;
  }

  nav.is-open {
    display: flex;
  }

  nav a {
    min-height: 36px;
    padding: 0 11px;
  }

  .language-switch {
    margin-left: auto;
  }

  .hero,
  .band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero__brand {
    place-items: start;
    justify-items: start;
    padding-inline: 0;
  }

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

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

  .app-screen,
  .app-screen:nth-child(2),
  .app-screen:nth-child(3),
  .app-screen:nth-child(4) {
    max-width: 360px;
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    margin-top: 8px;
    padding: 8px;
  }

  .brand {
    min-height: 44px;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
  }

  nav.is-open {
    display: grid;
  }

  nav a {
    justify-content: center;
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .language-switch {
    grid-column: 1 / -1;
    justify-self: stretch;
    justify-content: center;
    margin-left: 0;
    padding: 4px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .language-switch a {
    min-height: 30px;
    min-width: 42px;
  }

  .store-button {
    width: 100%;
  }

  .feature-grid,
  .legal-copy--columns {
    grid-template-columns: 1fr;
  }

  .app-screen {
    max-width: none;
  }

  .hero-logo {
    width: min(260px, 76vw);
  }

  .band,
  .legal-section {
    padding: 22px;
  }
}
