:root {
  --bg: #040706;
  --surface: #0b1310;
  --surface-raised: #13201a;
  --text: #e9f5ee;
  --muted: #8fa79b;
  --accent: #3dff9a;
  --accent-end: #00c9a7;
  --lime: #b6ff3b;
  --stroke: rgba(255, 255, 255, 0.08);
  --radius: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(60rem 30rem at 50% -10rem, rgba(61, 255, 154, 0.10), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--lime); }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }

header.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2px;
}
.brand img { width: 36px; height: 36px; }

.lang {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  background: var(--surface);
}
.lang:hover { color: var(--text); }

main { padding: 8px 0 48px; }

h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.15;
  margin: 24px 0 8px;
  background: linear-gradient(120deg, var(--lime), var(--accent) 45%, var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 { font-size: 22px; margin: 40px 0 12px; }
h3 { font-size: 17px; margin: 24px 0 8px; }

.meta { color: var(--muted); margin: 0 0 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
}
.card.highlight {
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(120deg, rgba(182, 255, 59, 0.5), rgba(0, 201, 167, 0.5)) border-box;
  border: 1px solid transparent;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

ul { padding-left: 22px; }
li { margin: 6px 0; }
li::marker { color: var(--accent); }

.table-scroll { overflow-x: auto; margin: 16px 0; border-radius: 16px; border: 1px solid var(--stroke); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
th { background: var(--surface-raised); font-weight: 600; }
td { background: var(--surface); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }

.pill {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.no { background: rgba(61, 255, 154, 0.14); color: var(--accent); }
.pill.apple { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

code {
  background: var(--surface-raised);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.92em;
}

.hero { text-align: center; padding: 48px 0 24px; }
.hero img { width: 112px; height: 112px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 8px auto 0; }

.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 32px 0; }
.links a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}
.links a span { display: block; color: var(--muted); font-weight: 400; font-size: 14px; }
.links a:hover { border-color: rgba(61, 255, 154, 0.4); }

.button {
  display: inline-block;
  background: linear-gradient(120deg, var(--lime), var(--accent) 45%, var(--accent-end));
  color: #000;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
}
.button:hover { color: #000; filter: brightness(1.08); }

footer {
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0 40px;
}
footer a { color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 8px; }

@media (max-width: 640px) {
  .card { padding: 18px; }
  .table-scroll { overflow: visible; border: 0; border-radius: 0; }
  table, tbody, tr, td { display: block; min-width: 0; width: 100%; }
  thead { display: none; }
  tr {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 18px;
    padding: 14px 16px;
    margin: 0 0 12px;
  }
  td { background: none; border: 0; padding: 4px 0; }
  td:first-child { font-size: 17px; padding-bottom: 8px; }
  td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
  }
}
