:root {
  --bg: #0e1117;
  --panel: #161b26;
  --line: #262d3d;
  --text: #e8ecf3;
  --muted: #93a0b4;
  --accent: #4f8cff;
  --accent-2: #22c58b;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", 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; }

.topbar { border-bottom: 1px solid var(--line); background: rgba(14,17,23,.9); position: sticky; top: 0; backdrop-filter: blur(8px); z-index: 5; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 800; font-size: 1.1rem; color: var(--text); }
nav a { color: var(--muted); margin-left: 18px; }
nav a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 64px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0 0 12px; }
.hero .sub { color: var(--muted); font-size: 1.1rem; max-width: 720px; margin: 0 auto; }

.btn { display: inline-block; border: 1px solid var(--line); background: var(--panel); color: var(--text); padding: 10px 18px; border-radius: 10px; cursor: pointer; font-size: 1rem; }
.btn:hover { border-color: var(--accent); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn-primary:disabled, .btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-small { padding: 6px 12px; border-radius: 8px; background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.tool { padding: 20px 0 40px; }
.tool-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.tool-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.tool-row label { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; color: var(--muted); }
.tool-row .grow { flex: 1; min-width: 220px; }
select, input[type=text] { background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; font-size: 1rem; }

.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 34px; text-align: center; cursor: pointer; transition: border-color .15s; }
.drop:hover, .drop.over { border-color: var(--accent); }
.muted { color: var(--muted); font-size: .92rem; }

.status { margin-top: 12px; min-height: 24px; color: var(--muted); }
.status.err { color: #ff7b7b; }
.preview { margin-top: 8px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.p-row { display: grid; grid-template-columns: 46px 170px 1fr 1fr; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.p-row.head { position: sticky; top: 0; background: var(--panel); color: var(--muted); font-weight: 600; }
.p-row .tc { color: var(--muted); font-family: ui-monospace, monospace; font-size: .8rem; }
.p-row.untranslated { opacity: .55; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px 0 10px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.feat h3 { margin: 0 0 8px; font-size: 1.02rem; }
.feat p { margin: 0; color: var(--muted); font-size: .95rem; }

.how, .faq, .article { padding: 26px 0; }
.how ol li, .article li { margin: 8px 0; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; background: var(--panel); }
.faq-item summary { cursor: pointer; font-weight: 600; }
.faq-item p { color: var(--muted); }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0; }
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; text-align: center; }
.price-card.featured { border-color: var(--accent); }
.price { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.postlist { list-style: none; padding: 0; }
.postlist li { margin: 14px 0; }

.article h1 { margin-top: 10px; }
.article h2 { margin-top: 26px; }
.cta { margin-top: 26px; }

footer.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 40px; color: var(--muted); font-size: .92rem; }
footer.footer a { color: var(--muted); margin-right: 10px; }

@media (max-width: 760px) {
  .features, .prices { grid-template-columns: 1fr; }
  .p-row { grid-template-columns: 34px 1fr; }
  .p-row .tc, .p-row div:nth-child(3) { display: none; }
}
