:root {
  --bg: #06080b;
  --panel: #0d1117;
  --panel2: #121824;
  --line: rgba(255,255,255,.10);
  --text: #f4f7ff;
  --muted: rgba(244,247,255,.62);
  --faint: rgba(244,247,255,.38);
  --brand: #7567ff;
  --brand2: #9a8cff;
  --good: #20d49b;
  --bad: #ff5d7d;
  --warn: #ffb020;
  --radius: 14px;
  --shadow: 0 16px 50px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 66px;
  border-bottom: 1px solid var(--line);
  background: rgba(6,8,11,.88);
  backdrop-filter: blur(18px);
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.nav {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.04em; font-size: 21px; }
.mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg,var(--brand),#43d6a5); font-weight: 900; }
.links { display: flex; align-items: center; gap: 4px; }
.links a { padding: 9px 12px; color: var(--muted); font-size: 14px; font-weight: 650; border-radius: 9px; }
.links a:hover, .links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.actions { display: flex; align-items: center; gap: 10px; }
.btn.menu-btn { display: none; width: 42px; height: 42px; padding: 0; }
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 66px 0 auto 0;
  z-index: 60;
  background: rgba(6,8,11,.98);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 24px;
  box-shadow: var(--shadow);
}
.mobile-drawer.open { display: block; }
.mobile-drawer a, .mobile-drawer button {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
}
.pill { display: none; padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }
.pill strong { color: var(--good); }
.btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.primary { border-color: transparent; background: linear-gradient(135deg,var(--brand),var(--brand2)); box-shadow: 0 10px 28px rgba(117,103,255,.35); }
.btn.danger { color: var(--bad); background: rgba(255,93,125,.10); border-color: rgba(255,93,125,.28); }
.page { padding: 46px 0 80px; }
.hero { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: 28px; align-items: start; }
.eyebrow { color: var(--brand2); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 900; margin-bottom: 12px; }
h1, h2, h3 { margin: 0; line-height: 1.03; letter-spacing: -.045em; }
h1 { font-size: clamp(42px, 7vw, 82px); }
h2 { font-size: clamp(34px, 5vw, 54px); }
h3 { font-size: 24px; }
.lead { margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; max-width: 700px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.tool-card { transition: transform .16s ease, border-color .16s ease; }
.tool-card:hover { transform: translateY(-2px); border-color: rgba(117,103,255,.45); }
.tool-card .icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(117,103,255,.14); color: var(--brand2); font-weight: 900; margin-bottom: 16px; }
.tool-card h3 { margin-bottom: 10px; }
.card.soft { background: var(--panel2); box-shadow: none; }
.muted { color: var(--muted); line-height: 1.7; }
.faint { color: var(--faint); }
.stat { padding-top: 18px; margin-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; align-items: end; }
.stat strong { color: var(--good); font-size: 34px; letter-spacing: -.04em; }
.form { display: grid; gap: 14px; }
label { display: block; color: var(--faint); text-transform: uppercase; letter-spacing: .09em; font-size: 12px; font-weight: 900; margin-bottom: 7px; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0a0e15;
  color: var(--text);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
input:focus, textarea:focus, select:focus { border-color: rgba(117,103,255,.75); }
.notice { display: none; padding: 13px 14px; border-radius: 10px; color: var(--brand2); background: rgba(117,103,255,.12); border: 1px solid rgba(117,103,255,.28); line-height: 1.5; }
.notice.show { display: block; }
.notice.good { color: var(--good); background: rgba(32,212,155,.10); border-color: rgba(32,212,155,.24); }
.notice.bad { color: var(--bad); background: rgba(255,93,125,.10); border-color: rgba(255,93,125,.24); }
.plans { grid-template-columns: repeat(4,minmax(0,1fr)); }
.price { font-size: 38px; font-weight: 950; letter-spacing: -.05em; margin: 12px 0; }
.list { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.list li:before { content: "✓"; color: var(--good); margin-right: 8px; }
.btn.tiny { min-height: 32px; padding: 8px 11px; font-size: 13px; border-radius: 8px; }
.tool-credit-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 18px 0 20px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
}
.tool-credit-panel strong { color: var(--text); }
.tool-layout { display: grid; grid-template-columns: 390px minmax(0,1fr); gap: 20px; align-items: start; }
.output {
  min-height: 420px;
  white-space: pre-wrap;
  line-height: 1.75;
  color: var(--text);
}
.table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; color: var(--muted); }
.table th { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.table td { word-break: break-word; }
.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.kpi strong { display: block; font-size: 30px; color: var(--text); letter-spacing: -.04em; margin-top: 8px; }
.footer { border-top: 1px solid var(--line); padding: 26px 0; color: var(--faint); }
.footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .hero, .tool-layout, .grid.two, .grid.three, .plans, .kpi-grid { grid-template-columns: 1fr; }
  .links, .actions > a, .actions > button:not(.menu-btn), .actions .pill { display: none !important; }
  .btn.menu-btn { display: inline-flex; }
}
