:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --primary: #4f46e5;
  --primary-2: #6366f1;
  --good: #10b981;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip-link {
  position: absolute; left: -999px; top: 0;
}
.skip-link:focus { left: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff; display: grid; place-items: center;
}
.logo-text { font-weight: 800; font-size: 18px; }
.logo-sub { font-size: 12px; color: var(--muted); }
.nav-primary .menu { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-primary a { text-decoration: none; color: #475569; font-weight: 600; font-size: 14px; }
.nav-primary a:hover { color: var(--primary); }
.header-tools { display: flex; align-items: center; gap: 8px; }
.tool-select, .lang-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  padding: 8px 10px; font-size: 13px; font-weight: 600; min-height: 40px; cursor: pointer;
}
.lang-wrap { position: relative; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  list-style: none; margin: 0; padding: 6px; min-width: 180px;
  box-shadow: 0 12px 32px rgba(15,23,42,.12);
}
.lang-menu button {
  width: 100%; text-align: left; border: 0; background: none;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.lang-menu button:hover { background: #eef2ff; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  font-weight: 700; text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #4338ca; color: #fff; }
.btn-white { background: #fff; color: #3730a3; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 42%, #312e81 72%, #4f46e5 100%);
  color: #fff; padding: 72px 0 80px; text-align: center;
}
.hero h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.03em; }
.hero .accent {
  background: linear-gradient(90deg, #34d399, #6ee7b7);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge {
  display: inline-block; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.1); border-radius: 999px;
  padding: 6px 14px; font-size: 13px; margin-bottom: 18px;
}
.lead { max-width: 640px; margin: 0 auto 28px; color: #c7d2fe; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 28px 0 0; color: #c7d2fe; font-size: 14px; }

.ad-slot { margin: 16px auto; }
.ad-placeholder {
  min-height: 90px; border: 1px dashed #cbd5e1; border-radius: 12px;
  display: grid; place-items: center; color: #94a3b8; font-size: 12px;
  background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
}

.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(24px, 4vw, 36px); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }
.engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.engine-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.engine-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -12px rgba(79,70,229,.22); }
.engine-card .num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
  background: #e0e7ff; color: var(--primary); font-weight: 800; margin-bottom: 16px;
}
.engine-card h3 { margin: 0 0 8px; }
.engine-card p { color: var(--muted); font-size: 14px; }
.engine-card a { font-weight: 700; text-decoration: none; }
.engine-card-hot {
  background: linear-gradient(135deg, #4f46e5, #4338ca); color: #fff; border: 0;
}
.engine-card-hot p, .engine-card-hot a { color: #e0e7ff; }
.engine-card-hot .num { background: rgba(255,255,255,.18); color: #fff; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0 0 32px; text-align: center; }
.steps span {
  display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 999px; background: #e0e7ff; color: #3730a3; font-weight: 800;
}
.center { text-align: center; }

.site-footer { background: #0f172a; color: #cbd5e1; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 24px; }
.footer-brand { color: #fff; font-weight: 800; font-size: 18px; }
.site-footer h3 { color: #fff; font-size: 14px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.footer-copy { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #1e293b; padding-top: 16px; font-size: 13px; color: #94a3b8; }

.page-hero-mini { background: var(--bg); padding: 40px 0 24px; }
.page-hero-mini h1 { margin: 0; font-size: 32px; }
.page-body { padding: 32px 0 64px; }
.post-list { display: grid; gap: 16px; padding: 40px 0; }
.post-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.post-card h2 { margin: 0 0 8px; }
.post-card a { color: var(--ink); text-decoration: none; }

@media (max-width: 900px) {
  .engine-grid, .steps, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-primary { display: none; position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .nav-primary.is-open { display: block; }
  .nav-primary .menu { flex-direction: column; gap: 12px; }
  .header-cta { display: none; }
  .hero { padding: 48px 0 56px; }
}
