:root {
  --primary: #4f46e5;
  --primary-2: #6366f1;
  --primary-dark: #3f3fc4;
  --primary-soft: rgba(79, 70, 229, 0.08);
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-mute: #f1f5f9;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --line: #e2e8f0;
  --r: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--r);
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn:active { transform: translateY(1px); }
.btn-sm { font-size: 0.85rem; padding: 8px 15px; }
.btn-lg { font-size: 1rem; padding: 14px 26px; }

.btn-main { background: var(--primary); color: #fff; }
.btn-main:hover { background: var(--primary-dark); }

.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.top-in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 66px;
}

.logo { display: flex; align-items: center; gap: 9px; }
.logo svg { width: 26px; height: 26px; fill: var(--primary); }
.logo span { font-size: 1.12rem; font-weight: 800; letter-spacing: -0.3px; }
.logo-dark svg { fill: #fff; }
.logo-dark span { color: #fff; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav > a:not(.btn) {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: var(--r);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav > a:not(.btn):hover { color: var(--primary); background: var(--primary-soft); }
.burger {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 1.05rem;
  color: var(--text);
  cursor: pointer;
}

.hero { background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%); }
.hero-in { display: grid; grid-template-columns: 1fr 400px; gap: 48px; padding: 64px 20px 56px; align-items: center; }

.tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 3px;
  padding: 5px 12px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.lead { font-size: 1.03rem; color: var(--text-2); line-height: 1.65; margin-bottom: 26px; max-width: 520px; }

.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }

.hero-facts { display: flex; flex-direction: column; gap: 9px; }

.hero-facts span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-3);
}

.hero-facts i { color: var(--primary); font-size: 0.82rem; width: 16px; }

.hero-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--r-lg);
  padding: 22px 20px 18px;
  box-shadow: var(--shadow-md);
}

.hc-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }

.hc-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  background: var(--primary-soft);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--primary);
}

.hc-head b { display: block; font-size: 0.95rem; }
.hc-head span { font-size: 0.78rem; color: var(--text-3); }

.hc-badge {
  margin-left: auto;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(79, 70, 229, 0.2);
  border-radius: 3px;
  padding: 5px 11px;
  flex: 0 0 auto;
}

.hc-row { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; font-size: 0.82rem; }
.hc-row > span { width: 78px; flex: 0 0 78px; color: var(--text-2); font-weight: 600; }
.hc-row > b { width: 36px; flex: 0 0 36px; text-align: right; color: var(--text); }

.hc-bar { flex: 1; height: 7px; background: var(--bg-mute); border-radius: 2px; overflow: hidden; }
.hc-bar i { display: block; height: 100%; background: var(--primary); border-radius: 2px; }

.hc-foot {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding: 11px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.hc-foot i { color: var(--primary); font-size: 0.78rem; margin-top: 2px; }
.hc-foot span { font-size: 0.76rem; color: var(--text-3); line-height: 1.5; }

.stats { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }

.stat { padding: 30px 20px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat b { display: block; font-size: 1.85rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.stat span { font-size: 0.82rem; color: var(--text-3); }

.feat { padding: 72px 0; }
.how { padding: 72px 0; background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.h2 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  padding-left: 14px;
  border-left: 4px solid var(--primary);
  line-height: 1.3;
}

.h2-sub { color: var(--text-3); font-size: 0.95rem; margin: 12px 0 32px; padding-left: 18px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.fcard {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 20px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fcard:hover { border-color: rgba(79, 70, 229, 0.4); box-shadow: var(--shadow-md); }

.ficon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  border-radius: var(--r);
  margin-bottom: 14px;
}

.ficon svg { width: 21px; height: 21px; fill: var(--primary); }
.fcard h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 7px; }
.fcard p { font-size: 0.87rem; color: var(--text-2); line-height: 1.6; }

.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.step { position: relative; padding-top: 4px; }

.num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step h3 { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.step p { font-size: 0.86rem; color: var(--text-2); line-height: 1.6; }

.faq { padding: 72px 0; }

.faq-list { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }

.faq-item + .faq-item { border-top: 1px solid var(--line); }

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  background: var(--bg);
  border: none;
  padding: 18px 20px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.faq-btn:hover { background: var(--bg-soft); }
.faq-btn i { font-size: 0.8rem; color: var(--text-3); transition: transform 0.2s ease; flex: 0 0 auto; }
.faq-item.open .faq-btn { background: var(--primary-soft); color: var(--primary); }
.faq-item.open .faq-btn i { transform: rotate(180deg); color: var(--primary); }

.faq-body { display: none; padding: 0 20px 20px; }
.faq-item.open .faq-body { display: block; }
.faq-body p { font-size: 0.89rem; color: var(--text-2); line-height: 1.7; max-width: 720px; }
.foot { background: #0f172a; color: #94a3b8; padding: 52px 0 0; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding-bottom: 36px; }
.foot-brand p { font-size: 0.87rem; margin-top: 12px; max-width: 300px; line-height: 1.6; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col b { color: #fff; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.foot-col a { font-size: 0.87rem; color: #94a3b8; transition: color 0.15s ease; }
.foot-col a:hover { color: #fff; }

.foot-btm { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 18px 20px; font-size: 0.8rem; }

@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; gap: 34px; padding: 48px 20px 44px; }
  .hero h1 { font-size: 2.1rem; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-in { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 860px) {
  .burger { display: block; }

  .nav {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 20px 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav.show { display: flex; }

  .nav > a:not(.btn) { padding: 11px 12px; font-size: 0.95rem; }
  .nav .btn { margin-top: 6px; justify-content: center; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .hero-in { padding: 36px 16px 36px; }
  .hero h1 { font-size: 1.7rem; letter-spacing: -0.5px; }
  .lead { font-size: 0.95rem; }
  .hero-btns .btn { width: 100%; }
  .feat, .how, .faq { padding: 48px 0; }
  .h2 { font-size: 1.35rem; }
  .h2-sub { padding-left: 18px; margin-bottom: 24px; }
  .feat-grid, .how-grid { grid-template-columns: 1fr; }
  .stat b { font-size: 1.5rem; }
  .stat { padding: 22px 12px; }
  .stat span { font-size: 0.76rem; }
  .foot-cols { grid-template-columns: 1fr; }
  .faq-btn { font-size: 0.92rem; padding: 16px; }
  .faq-body { padding: 0 16px 16px; }
  .wrap { padding: 0 16px; }
}
