:root {
  --accent: #3d5afe;
  --accent-soft: rgba(61, 92, 254, 0.1);
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --text: #1c2029;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #7d95ff;
    --accent-soft: rgba(125, 149, 255, 0.12);
    --bg: #14161d;
    --bg-soft: #1b1e27;
    --text: #e7e9ee;
    --text-muted: #9aa1ad;
    --border: #2a2e3a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; margin-top: 2.5rem; }
h3 { font-size: 1.1rem; }

.muted {
  color: var(--text-muted);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.logo:hover {
  text-decoration: none;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #3d5afe, #7c4dff);
  color: #fff;
  font-weight: 800;
}

.logo-img {
  display: block;
  width: 30px;
  height: 30px;
}

.site-header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-header nav a {
  color: var(--text);
}

.lang-switch {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 600;
}

.lang-switch summary {
  cursor: pointer;
  padding: 3px 10px;
  list-style: none;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary::after {
  content: " ▾";
  font-size: 0.8em;
  color: var(--text-muted);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 190px;
  max-height: 320px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  z-index: 20;
}

.lang-menu a {
  color: var(--text);
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.lang-menu a:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

.hero {
  padding: 64px 0 32px;
  text-align: center;
}

.hero h1 {
  font-size: 2.4rem;
  max-width: 640px;
  margin: 0 auto 12px;
}

.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto 24px;
}

.section-subtitle {
  margin-top: -4px;
}

.btn {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn-lg {
  padding: 13px 26px;
  font-size: 1.05rem;
}

.btn-disabled {
  background: var(--bg-soft);
  color: var(--text-muted);
  border-color: var(--border);
}

.app-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #3d5afe, #7c4dff);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
}

.app-badge-lg {
  width: 64px;
  height: 64px;
  font-size: 2rem;
  border-radius: 16px;
}

.app-badge-img,
.app-badge-img-lg {
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 16px rgba(26, 35, 126, 0.25));
}

.app-badge-img-lg {
  width: 64px;
  height: 64px;
}

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

.feature-list li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 6px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.feature-list-cols {
  columns: 2;
  column-gap: 32px;
}

@media (max-width: 700px) {
  .feature-list-cols {
    columns: 1;
  }
}

.breadcrumb {
  margin: 24px 0 12px;
}

.app-page-head {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
}

.app-page-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 22px 0;
  flex-wrap: wrap;
}

.meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.mode-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.mode-card h3 {
  margin-bottom: 6px;
}

.mode-card p {
  margin: 0 0 8px;
  font-size: 0.94rem;
}

.mode-settings {
  font-size: 0.85rem;
}

.screenshot {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.app-page-actions-bottom {
  display: flex;
  justify-content: center;
  margin: 32px 0 56px;
}

.screenshot-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 28px 0 40px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 4px 0;
}

.feedback-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 640px;
  margin: 18px 0 48px;
}

.feedback-form label {
  font-weight: 600;
  margin-top: 10px;
}

.feedback-form input,
.feedback-form textarea {
  font: inherit;
  color: inherit;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.feedback-form textarea {
  resize: vertical;
  min-height: 140px;
}

.feedback-form button {
  align-self: flex-start;
  margin-top: 14px;
}

.feedback-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

.feedback-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-status {
  margin: 12px 0 0;
}

.feedback-status.is-error {
  color: #e05252;
}

.steps-list {
  margin: 14px 0 0;
  padding-left: 22px;
}

.steps-list li {
  margin-bottom: 8px;
}

.guide-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.guide-list li {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

.guide-list a {
  font-weight: 600;
}

.guide-list p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.faq-list {
  margin: 14px 0 0;
}

.faq-list dt {
  font-weight: 600;
  margin-top: 16px;
}

.faq-list dd {
  margin: 4px 0 0;
  color: var(--text-muted);
}

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

.article h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.article h2 {
  margin-top: 2rem;
}

.article h3 {
  margin-top: 1.5rem;
}

.article p,
.article li {
  font-size: 1.02rem;
}

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

.article li {
  margin-bottom: 6px;
}

.article pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 0.9rem;
}

.article code {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 0.92em;
}

.article pre code {
  font-size: inherit;
}

.article blockquote {
  margin: 16px 0;
  padding: 10px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
}

.article .cta {
  margin: 28px 0;
}

