:root {
  color-scheme: dark;
  --bg: #0e0b0d;
  --surface: #191316;
  --surface-hover: #23191d;
  --border: #332329;
  --text: #fff8f4;
  --muted: #c4b4b7;
  --accent: #e6423c;
  --accent-soft: #3a1719;
  --max: 820px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(230, 66, 60, .16), transparent 34rem),
    radial-gradient(circle at 5% 90%, rgba(132, 27, 37, .13), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a { color: #ff7973; }
a:hover { color: #ffaaa5; }

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 72px 0 36px;
}

.hero { padding: 30px 0 34px; }

.hero-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(116px, 19vw, 164px);
  gap: clamp(22px, 5vw, 48px);
  align-items: center;
  margin-bottom: 22px;
}

.app-icon {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 23%;
  box-shadow: 0 20px 60px rgba(174, 34, 40, .3);
}

.eyebrow {
  margin: 0 0 8px;
  color: #ff7771;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 7vw, 62px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 3vw, 21px);
}

.cards { display: grid; gap: 14px; margin: 18px 0 60px; }

.card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(25, 19, 22, .88);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #713236;
  background: var(--surface-hover);
  color: var(--text);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: #ff7771;
  font-weight: 800;
}

.card strong, .card small { display: block; }
.card strong { margin-bottom: 2px; font-size: 17px; }
.card small { color: var(--muted); font-size: 14px; }
.arrow { color: #ff7771; font-size: 22px; }

.document {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(25, 19, 22, .9);
}

.back {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  text-decoration: none;
}

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

.document h1 { font-size: clamp(32px, 6vw, 48px); }
.document h2 { margin: 34px 0 8px; font-size: 21px; }
.document p, .document li { color: #d7c9cb; }
.document ul { padding-left: 22px; }
.updated { color: #9d8b8f !important; font-size: 14px; }

.contact {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #55262a;
  border-radius: 16px;
  background: var(--accent-soft);
}

.contact p { margin: 0; }

footer {
  padding-top: 20px;
  color: #8f7e82;
  font-size: 13px;
  text-align: center;
}

.home-footer { border-top: 1px solid var(--border); }

@media (max-width: 560px) {
  .shell { width: min(calc(100% - 28px), var(--max)); padding-top: 36px; }
  .document { padding: 24px 20px; border-radius: 20px; }
  .hero-heading { grid-template-columns: minmax(0, 1fr) 88px; gap: 16px; }
  .hero-heading h1 { font-size: clamp(32px, 10vw, 42px); }
  .card { grid-template-columns: 40px 1fr auto; padding: 17px 15px; gap: 12px; }
  .card-icon { width: 40px; height: 40px; }
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}

.language-switch a {
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.language-switch a:hover,
.language-switch a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--text);
}
