:root {
  --navy: #071833;
  --navy-2: #0c2d66;
  --blue: #1d6dff;
  --blue-2: #3c8dff;
  --sky: #e8f1fc;
  --paper: #f4f8fd;
  --card: #ffffff;
  --ink: #10203a;
  --muted: #5b6d86;
  --line: rgba(16, 48, 96, 0.12);
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 24, 51, 0.94);
  backdrop-filter: blur(16px);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.home .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(4, 14, 36, 0.72), rgba(4, 14, 36, 0));
  border-bottom: 0;
}
.nav { display: flex; align-items: center; gap: 28px; min-height: 96px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; letter-spacing: 0.04em; color: #fff; }
.brand img { width: 72px; height: 72px; object-fit: contain; border-radius: 18px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,.78); white-space: nowrap; font-size: 15px; padding: 6px 0; }
.nav-links a.is-active, .nav-links a:hover { color: #fff; }
.nav-cta {
  text-decoration: none;
  background: var(--blue);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(29, 109, 255, 0.35);
}

.toast { margin: 18px auto 0; padding: 12px 16px; border-radius: 12px; position: relative; z-index: 5; }
.home .toast { margin-top: 92px; }
.toast.ok { background: #e5f3ff; color: #0c4ea8; }
.toast.err { background: #ffe8e8; color: #9d2a2a; }

.carousel { position: relative; height: min(88vh, 820px); min-height: 560px; background: var(--navy); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 16, 40, 0.82) 0%, rgba(4, 16, 40, 0.45) 42%, rgba(4, 16, 40, 0.12) 100%);
}
.slide-copy { position: absolute; z-index: 2; left: max(24px, calc((100% - 1160px) / 2)); bottom: 18%; max-width: 640px; color: #fff; }
.eyebrow { margin: 0 0 12px; letter-spacing: 0.22em; font-size: 13px; color: #8ec4ff; }
.slide-copy h1, .section h1, h1 { font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; }
.slide-copy h1 { margin: 0 0 14px; font-size: clamp(42px, 5.6vw, 72px); }
.slide-copy p { margin: 0; font-size: 18px; color: rgba(255,255,255,.86); max-width: 36em; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; background: transparent;
}
.btn.primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(29, 109, 255, 0.28); }
.btn.primary:hover { background: #155fe6; }
.btn.ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.section .btn.ghost, .card .btn.ghost, .plan .btn.ghost { border-color: var(--navy-2); color: var(--navy-2); }
.btn.disabled, .btn:disabled { background: #e4edf7; color: var(--muted); cursor: default; box-shadow: none; }
.car-btn, .dot {
  position: absolute; z-index: 3; border: 0; background: rgba(255,255,255,.16); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; backdrop-filter: blur(8px);
}
.car-btn { top: 50%; transform: translateY(-50%); font-size: 22px; }
.car-prev { left: 22px; }
.car-next { right: 22px; }
.dots { position: absolute; z-index: 3; left: max(24px, calc((100% - 1160px) / 2)); bottom: 28px; display: flex; gap: 8px; }
.dot { position: static; width: 28px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.4); }
.dot.is-active { background: #fff; width: 46px; }

.notice {
  display: flex; gap: 16px; align-items: baseline;
  margin-top: -28px; position: relative; z-index: 4;
  padding: 16px 20px; border-radius: 16px;
  background: #fff; box-shadow: 0 16px 40px rgba(16, 48, 96, 0.08);
}
.notice strong { white-space: nowrap; color: var(--blue); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 34px 0 8px; }
.stats div { border-top: 2px solid var(--blue); padding-top: 12px; }
.stats b { display: block; font-size: 30px; font-weight: 650; color: var(--navy); }
.stats span { color: var(--muted); font-size: 14px; }

.section { padding: 78px 0; }
main.section { background: linear-gradient(180deg, #dceafb 0, var(--paper) 240px); }
.section h1 { font-size: clamp(40px, 5vw, 60px); margin: 0 0 12px; }
.section h2 { font-size: clamp(32px, 4vw, 46px); margin: 0 0 10px; color: var(--navy); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.muted, .lead { color: var(--muted); }
.lead { font-size: 18px; max-width: 40em; }
.grid-3, .grid-2, .grid-4 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card, .plan, .download-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(16, 48, 96, 0.05);
}
.card h3, .download-card h3 { margin: 8px 0; font-size: 24px; color: var(--navy); }
.index-no { color: var(--blue); font-size: 13px; letter-spacing: 0.14em; }

.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { background: linear-gradient(180deg, #0d4ec4, #071833); color: #fff; border-color: transparent; }
.plan.featured .muted, .plan.featured li { color: rgba(255,255,255,.82); }
.plan.featured h3 { color: #fff; }
.badge {
  position: absolute; top: 16px; right: 16px;
  background: #7ec8ff; color: #062044; border-radius: 999px; padding: 2px 10px; font-size: 12px;
}
.price { font-size: 48px; margin: 8px 0; font-weight: 650; }
.price small { font-size: 16px; font-weight: 500; }
.plan ul { padding-left: 18px; margin: 0 0 18px; }
.plan .btn { margin-top: auto; }
.plan.featured .btn.primary { background: #fff; color: var(--navy); box-shadow: none; }

.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { width: 22%; font-weight: 650; color: var(--navy); }

.scene { min-height: 280px; border: 0; border-radius: 22px; padding: 22px; background-size: cover; background-position: center; position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; }
.scene::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,48,.05), rgba(6,20,48,.78)); }
.scene h3, .scene p { position: relative; margin: 0; }
.scene h3 { font-size: 28px; margin-bottom: 8px; }
.scene p { color: rgba(255,255,255,.88); }

.band {
  background: linear-gradient(100deg, #0a3f9e, #071833 70%);
  color: #fff;
  border-radius: 28px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.band h2, .band p { margin: 0; }
.band p { color: rgba(255,255,255,.78); margin-top: 8px; }
.band .btn.primary { background: #fff; color: var(--navy); box-shadow: none; }

details.faq { border-bottom: 1px solid var(--line); padding: 14px 0; }
details.faq summary { cursor: pointer; font-size: 18px; color: var(--navy); }
.prose { white-space: pre-wrap; }

.lead-form { display: grid; gap: 12px; }
.lead-form label { display: grid; gap: 6px; font-size: 14px; }
input[type="text"], input[type="password"], input[type="number"], input[type="file"], textarea, select {
  width: 100%; border: 1px solid var(--line); background: #f8fbff; border-radius: 12px; padding: 12px 14px;
}
textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.contact-list a { color: var(--blue); }

.site-footer { background: var(--navy); color: rgba(255,255,255,.72); padding: 32px 0 42px; }
.foot { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.foot strong { color: #fff; }
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.foot a { color: rgba(255,255,255,.72); text-decoration: none; }

@media (max-width: 860px) {
  .split, .grid-3, .grid-4, .stats, .grid-2 { grid-template-columns: 1fr; }
  .band { flex-direction: column; align-items: flex-start; }
  .nav { flex-wrap: wrap; padding: 8px 0; }
  .nav-links { order: 3; width: 100%; margin-left: 0; padding-bottom: 8px; }
  .carousel { min-height: 640px; height: 92vh; }
  .slide::after { background: linear-gradient(180deg, rgba(4,16,40,.2), rgba(4,16,40,.82)); }
  .slide-copy { left: 20px; right: 20px; bottom: 72px; }
  .car-btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}
