:root {
  color-scheme: dark;
  --bg: #0d0e0f;
  --surface: #171819;
  --surface-raised: #202122;
  --line: #343536;
  --text: #f5f2ea;
  --muted: #bbb6aa;
  --yellow: #ffcc00;
  --yellow-ink: #211b00;
  --red: #d71920;
  --green: #52da83;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--yellow-ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 14, 15, 0.94);
}

.nav-shell {
  width: min(calc(100% - 32px), var(--max));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-size: 13px;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.language-picker {
  position: relative;
  margin-left: auto;
}

.language-button {
  min-width: 58px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.language-button svg {
  width: 16px;
  height: 16px;
}

.language-menu {
  width: 154px;
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #181919;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.language-picker.open .language-menu {
  display: grid;
}

.language-menu button {
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button[aria-current="true"] {
  background: #292a2a;
  color: var(--yellow);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--yellow);
}

.menu-button {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.hero {
  min-height: min(860px, 92svh);
  display: flex;
  align-items: end;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #111 url("app-map.png") center 18% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(4, 5, 5, 0.68);
}

.hero-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 140px 0 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(46px, 8vw, 88px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: #e3ded2;
  font-size: clamp(18px, 2.5vw, 23px);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button-primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--yellow-ink);
}

.button-danger {
  border-color: #6d2629;
  background: #2a1516;
  color: #ffb5b7;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.1);
}

.band {
  border-top: 1px solid var(--line);
}

.section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-heading h2,
.legal-header h1 {
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p,
.legal-header p,
.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--yellow);
  color: var(--yellow-ink);
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.screen-strip figure {
  margin: 0;
}

.screen-strip img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.screen-strip figcaption {
  padding-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.safety-band {
  background: #211011;
}

.safety-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.safety-layout img {
  width: min(100%, 330px);
  justify-self: center;
  border: 1px solid #6d2629;
  border-radius: 8px;
}

.trust-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  display: flex;
  gap: 12px;
  color: #e3ded2;
}

.trust-list svg {
  flex: 0 0 auto;
  color: var(--green);
}

.legal-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.legal-link {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.legal-link:hover,
.legal-link:focus-visible {
  border-color: var(--yellow);
}

.legal-link strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.legal-link span {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #090a0a;
}

.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--yellow);
}

.legal-page {
  min-height: 100vh;
  padding-top: 64px;
}

.legal-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.legal-header-inner,
.legal-copy {
  width: min(calc(100% - 32px), 820px);
  margin: 0 auto;
}

.legal-header-inner {
  padding: 72px 0 52px;
}

.legal-copy {
  padding: 52px 0 90px;
}

.legal-copy h2 {
  margin: 42px 0 12px;
  font-size: 25px;
  letter-spacing: 0;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy a {
  color: var(--yellow);
}

.legal-copy ul,
.legal-copy ol {
  padding-left: 22px;
}

.notice {
  margin: 28px 0;
  padding: 18px;
  border-left: 4px solid var(--yellow);
  background: var(--surface);
  color: #e3ded2;
}

.delete-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-weight: 750;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #555657;
  border-radius: 6px;
  background: #101112;
  color: var(--text);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--yellow);
  outline: 2px solid rgba(255, 204, 0, 0.24);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .menu-button {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    padding: 24px 20px 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 4px;
  }

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

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

  .safety-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 520px) {
  .hero {
    min-height: 88svh;
    background-position: center top;
  }

  .hero-inner {
    padding-bottom: 54px;
  }

  .section {
    padding: 64px 0;
  }

  .screen-strip {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .screen-strip figcaption {
    font-size: 12px;
  }

  .actions .button {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }

  .legal-header-inner {
    padding: 54px 0 40px;
  }

  .legal-copy {
    padding-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
