* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Noto Sans JP", "Noto Sans", "Noto Sans Arabic", "Noto Sans Devanagari", sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.8;
  padding: 20px;
  padding-top: 148px;
  -webkit-font-smoothing: antialiased;
}
a { color: #60a5fa; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Fixed header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15,23,42,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59,130,246,0.3);
  z-index: 100;
}
.nav-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 10px 20px 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(59,130,246,0.12);
}
.nav-row a {
  color: #94a3b8;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-row a.active,
.nav-row a:hover {
  color: #60a5fa;
  background: rgba(59,130,246,0.12);
  text-decoration: none;
}
.lang-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px 10px;
  flex-wrap: wrap;
}
.lang-row a {
  color: #94a3b8;
  font-weight: 600;
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid #334155;
  border-radius: 6px;
  transition: all 0.2s;
}
.lang-row a:hover,
.lang-row a.active {
  color: #60a5fa;
  border-color: #60a5fa;
  background: rgba(59,130,246,0.15);
  text-decoration: none;
}

.container { max-width: 760px; margin: 0 auto; }

.lang-section {
  padding-top: 24px;
  margin-bottom: 56px;
  border-bottom: 2px solid rgba(59,130,246,0.12);
  padding-bottom: 48px;
}
.lang-section:last-of-type { border-bottom: none; }
.lang-section[dir="rtl"] { text-align: right; }
.lang-section[dir="rtl"] ul,
.lang-section[dir="rtl"] ol { margin-left: 0; margin-right: 22px; }

h1 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.4;
}
.app-icon {
  font-size: 32px;
  margin-right: 10px;
  vertical-align: middle;
}
.updated {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 28px;
}
h2 {
  font-size: 18px;
  color: #60a5fa;
  margin-top: 32px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(59,130,246,0.2);
  line-height: 1.5;
}
h3 {
  font-size: 16px;
  color: #fff;
  margin-top: 20px;
  margin-bottom: 8px;
}
p, li {
  font-size: 14.5px;
  color: #cbd5e1;
  margin-bottom: 10px;
}
ul, ol {
  margin-left: 22px;
  margin-bottom: 12px;
}
li { margin-bottom: 4px; }
strong { color: #fff; font-weight: 700; }
code {
  background: #1e293b;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: #f1f5f9;
  font-family: Menlo, Consolas, monospace;
}
.note {
  background: rgba(59,130,246,0.06);
  border-left: 3px solid #60a5fa;
  padding: 10px 14px;
  margin: 16px 0;
  font-size: 14px;
  border-radius: 4px;
}
.lang-section[dir="rtl"] .note { border-left: none; border-right: 3px solid #60a5fa; }
.warn {
  background: rgba(248,113,113,0.08);
  border-left: 3px solid #f87171;
  padding: 10px 14px;
  margin: 16px 0;
  font-size: 14px;
  border-radius: 4px;
}
.lang-section[dir="rtl"] .warn { border-left: none; border-right: 3px solid #f87171; }
footer {
  text-align: center;
  color: #64748b;
  font-size: 12px;
  padding: 40px 20px 20px;
  border-top: 1px solid #1e293b;
  margin-top: 40px;
}
footer a { color: #94a3b8; margin: 0 8px; }

/* Hub page cards */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 40px 0;
}
.hub-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: all 0.2s;
  color: #e2e8f0;
}
.hub-card:hover {
  border-color: #60a5fa;
  background: rgba(59,130,246,0.06);
  text-decoration: none;
  transform: translateY(-2px);
}
.hub-card h3 {
  color: #fff;
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 18px;
}
.hub-card p {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
}
.hub-icon {
  font-size: 36px;
  margin-bottom: 8px;
}
.intro {
  text-align: center;
  padding: 40px 20px 0;
}
.intro h1 {
  font-size: 34px;
  margin-bottom: 12px;
}
.intro p { color: #94a3b8; }

@media (max-width: 640px) {
  body { padding-top: 168px; padding-left: 14px; padding-right: 14px; }
  h1 { font-size: 22px; }
  h2 { font-size: 16px; }
  p, li { font-size: 14px; }
}
