:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --border: #e2e8f0;
  --text: #1a202c;
  --muted: #5a6880;
  --accent: #1565c0;
  --accent-soft: #e8f1fb;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101317;
    --surface: #181c22;
    --border: #2a3039;
    --text: #e8ebef;
    --muted: #9aa4b2;
    --accent: #64b5f6;
    --accent-soft: #15283c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin-bottom: 44px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  margin-left: 18px;
}

@media (max-width: 560px) {
  .brand { font-size: 15px; }
  nav a { font-size: 13px; margin-left: 12px; }
}

nav a:hover { color: var(--accent); }

h1 {
  font-size: 38px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 17px;
  margin: 28px 0 8px;
}

.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 40px;
}

.hero {
  padding: 8px 20px 52px;
}

.section-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

section + section { margin-top: 56px; }

.cat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
}

.cat-card {
  display: block;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}

.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cat-card h3 { margin: 0 0 6px; font-size: 20px; }
.cat-card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }

.app-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .cat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
}

.cat-card {
  display: block;
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}

.cat-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.cat-card h3 { margin: 0 0 6px; font-size: 20px; }
.cat-card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }

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

.app-card {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}

.app-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.app-card img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  flex-shrink: 0;
}

.app-card .body { min-width: 0; }
.app-card h3 { margin: 0 0 4px; font-size: 17px; }
.app-card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.card-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.app {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.app + .app { margin-top: 18px; }

.app-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.app-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex-shrink: 0;
}

.app-head h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.app-sub {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.app-desc {
  margin: 18px 0 4px;
  color: var(--text);
}

.app-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 8px;
}

.app-body .feature-list { flex: 1; min-width: 0; }

.app-shot {
  width: 168px;
  border-radius: 12px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .app-body { flex-direction: column-reverse; }
  .app-shot { width: 100%; max-width: 260px; align-self: center; }
}

.app-links {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 15px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 9px 18px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.btn[aria-disabled="true"] {
  background: var(--border);
  color: var(--muted);
  pointer-events: none;
}

.app-links .muted {
  color: var(--muted);
  text-decoration: none;
}

.app-links .muted:hover { text-decoration: underline; }

.more-soon {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}

.principles {
  display: grid;
  gap: 22px 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .principles { grid-template-columns: 1fr 1fr; }
}

.principles h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.principles p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child { border-bottom: 0; }

.feature-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

footer.site {
  margin-top: 72px;
  padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

footer.site a { color: var(--muted); }

a { color: var(--accent); }

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-top: -4px;
}

@media (max-width: 520px) {
  h1 { font-size: 27px; }
  .lead { font-size: 16px; }
  header.site { margin-bottom: 32px; }
}
