/* =====================================================================
   UNLOCKTOOL OFFLINE — LANDING
   ===================================================================== */

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.landing {
  margin: 0;
  background: #ffffff;
  color: #0f172a;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.landing a { color: inherit; text-decoration: none; }
body.landing img { display: block; max-width: 100%; }
body.landing button { font: inherit; cursor: pointer; border: 0; background: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 800px; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid #eef2f7;
}
.nav-inner {
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.2px;
  flex-shrink: 0;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  position: relative;
  box-shadow: 0 2px 6px rgba(37,99,235,.35);
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 8px;
  border-radius: 2px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-left-color: transparent;
  transform: rotate(-45deg);
}
.brand-text em { font-style: normal; color: #64748b; font-weight: 500; }

.nav-links { display: flex; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 8px 12px;
  border-radius: 8px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.nav-links a:hover { background: #f1f5f9; color: #0f172a; }

.nav-actions { margin-left: auto; display: flex; gap: 8px; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  color: #334155;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-burger:hover { background: #f1f5f9; }

@media (max-width: 900px) {
  .nav-inner { gap: 12px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px 20px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 10px 24px -12px rgba(15,23,42,.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
  .nav-actions { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  transition: background .12s, border-color .12s, color .12s, transform .06s;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn.ghost {
  background: #fff;
  border-color: #d1d5db;
  color: #0f172a;
}
.btn.ghost:hover { background: #f8fafc; border-color: #cbd5e1; }
.btn.solid {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 1px 2px rgba(37,99,235,.25);
}
.btn.solid:hover { background: #1d4ed8; border-color: #1d4ed8; }
.btn.lg { padding: 13px 22px; font-size: 15px; border-radius: 10px; }
.btn.full { width: 100%; }

/* ============ HERO ============ */
.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(900px 500px at 80% -10%, #eaf2ff 0%, transparent 60%),
    radial-gradient(700px 400px at -10% 100%, #eef2ff 0%, transparent 55%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 22px;
}
.tag i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 0 20px;
  color: #0b1220;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 17px;
  color: #475569;
  max-width: 540px;
  margin: 0 0 30px;
  line-height: 1.6;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #64748b;
  font-size: 13.5px;
}
.hero-points li { position: relative; padding-left: 18px; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2563eb;
}

/* Terminal */
.hero-right { display: flex; justify-content: center; }
.term {
  width: 100%;
  max-width: 480px;
  background: #0b1220;
  border-radius: 14px;
  border: 1px solid #1e293b;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15,23,42,.05),
    0 30px 60px -20px rgba(15,23,42,.35);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: #0f172a;
  border-bottom: 1px solid #1e293b;
}
.term-bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.term-bar i.r { background: #ef4444; }
.term-bar i.y { background: #f59e0b; }
.term-bar i.g { background: #22c55e; }
.term-bar span {
  margin-left: 12px;
  font-size: 12.5px;
  color: #94a3b8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.term-body {
  margin: 0;
  padding: 18px 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
  white-space: pre;
}
.term-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #0f172a;
  border-top: 1px solid #1e293b;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}
.chip.ok { background: #dcfce7; color: #166534; }
.chip-meta {
  font-size: 11.5px;
  color: #94a3b8;
  font-family: ui-monospace, Consolas, monospace;
}

/* ============ STATS ============ */
.stats {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 28px 0;
}
@media (max-width: 700px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
.stat { text-align: center; }
.stat-v {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  color: #0f172a;
  line-height: 1;
}
.stat-v span {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
  margin-left: 3px;
}
.stat-k {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

/* ============ SECTIONS ============ */
.section { padding: 90px 0; }
.section.soft { background: #fafbfc; }
.section + .section { border-top: 1px solid #f1f5f9; }
.section.soft + .section { border-top: 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-head h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -.8px;
  color: #0b1220;
  margin: 0 0 10px;
}
.section-head p {
  font-size: 16px;
  color: #64748b;
  margin: 0;
}
@media (max-width: 900px) { .section { padding: 60px 0; } }

/* ============ DOWNLOAD ============ */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }

.dl-box {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.dl-box:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(15,23,42,.15);
}
.dl-box.feat {
  border-color: #bfdbfe;
  box-shadow: 0 16px 40px -20px rgba(37,99,235,.3);
}
.dl-flag {
  position: absolute;
  top: 18px; right: 18px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid #dbeafe;
}
.dl-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.dl-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}
.dl-box p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  flex: 1;
}
.dl-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 18px;
}
.dl-hint {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

/* ============ FEATURES ============ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

.feat-box {
  padding: 26px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.feat-box:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(15,23,42,.12);
}
.feat-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: #eff6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feat-box h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.feat-box p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* ============ STEPS ============ */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }

.steps li {
  position: relative;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.step-n {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 14px;
}
.steps h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}
.steps p {
  margin: 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* ============ PRICING ============ */
.price-wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) { .price-wrap { grid-template-columns: 1fr; } }

.price-main {
  position: relative;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  padding: 34px 32px 30px;
  box-shadow:
    0 1px 2px rgba(15,23,42,.04),
    0 30px 60px -25px rgba(37,99,235,.35);
}
.price-flag {
  position: absolute;
  top: 20px; right: 20px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid #dbeafe;
}
.price-title {
  font-size: 15px;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 12px;
}
.price-big {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -2px;
  color: #0b1220;
  line-height: 1;
  margin-bottom: 8px;
}
.price-big .cur {
  font-size: 26px;
  font-weight: 700;
  vertical-align: top;
  margin-right: 2px;
}
.price-big .per {
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
  margin-left: 10px;
  letter-spacing: 0;
}
.price-desc {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 22px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 10px;
}
.price-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: #334155;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #dcfce7;
}
.price-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 8px;
  width: 6px; height: 3px;
  border-left: 2px solid #16a34a;
  border-bottom: 2px solid #16a34a;
  transform: rotate(-45deg);
}
.price-note {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}
.price-note a { color: #2563eb; font-weight: 600; }
.price-note a:hover { text-decoration: underline; }

.price-side {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-side h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
}
.price-side p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 14.5px;
}
.price-side ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}
.price-side li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: #334155;
}
.price-side li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2563eb;
}
.price-side .btn { margin-top: auto; }

/* ============ FAQ ============ */
.faq {
  border-bottom: 1px solid #e2e8f0;
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  color: #0f172a;
  list-style: none;
  position: relative;
  padding-right: 32px;
  transition: color .12s;
}
.faq summary:hover { color: #2563eb; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 8px; height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: translateY(-70%) rotate(45deg);
  transition: transform .18s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p {
  margin: 14px 0 0;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.7;
}

/* ============ CTA ============ */
.cta {
  background: linear-gradient(135deg, #0b1220 0%, #1e3a8a 60%, #2563eb 100%);
  color: #fff;
  padding: 70px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.8px;
  color: #fff;
}
.cta p {
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 15px;
}
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn.ghost {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: #fff;
}
.cta .btn.ghost:hover { background: rgba(255,255,255,.18); }
.cta .btn.solid {
  background: #fff;
  border-color: #fff;
  color: #1d4ed8;
}
.cta .btn.solid:hover { background: #e0e7ff; border-color: #e0e7ff; }

/* ============ FOOTER ============ */
.footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 60px 0 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}
.footer .brand { color: #fff; }
.footer .brand-text em { color: #94a3b8; }
.footer-note {
  margin: 16px 0 0;
  font-size: 13.5px;
  color: #64748b;
  max-width: 320px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
}
.footer-cols h4 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #e2e8f0;
}
.footer-cols a {
  display: block;
  color: #94a3b8;
  font-size: 14px;
  padding: 4px 0;
  transition: color .12s;
}
.footer-cols a:hover { color: #fff; }
.footer-bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 13px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bot strong { color: #e2e8f0; font-weight: 600; }

/* ============ MOBILE ============ */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 30px; letter-spacing: -.6px; }
  .hero-lead { font-size: 15.5px; }
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .cta { padding: 50px 0; }
  .footer { padding: 40px 0 20px; }
}