:root {
  --page-bg: #f4f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #172033;
  --muted: #5e6b7d;
  --accent: #1677ff;
  --accent-deep: #0756c8;
  --accent-soft: #e8f2ff;
  --line: #dbe7f5;
  --line-strong: #c7d7eb;
  --danger: #e03f25;
  --shadow-sm: 0 10px 30px rgba(28, 64, 112, 0.08);
  --shadow-md: 0 24px 70px rgba(28, 64, 112, 0.13);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -8%, rgba(22, 119, 255, 0.16), transparent 34rem),
    linear-gradient(180deg, #f8fbff 0%, var(--page-bg) 44%, #eef5fb 100%) !important;
  color: var(--text) !important;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:hover {
  color: var(--accent);
}

header {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 76px 20px 86px !important;
  background:
    linear-gradient(135deg, rgba(8, 33, 70, 0.96), rgba(8, 86, 190, 0.94) 58%, rgba(27, 132, 255, 0.9)) !important;
  color: #fff !important;
  text-align: center;
  isolation: isolate;
}

header::before,
header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

header::before {
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 86%);
}

header::after {
  width: 42rem;
  height: 42rem;
  right: -18rem;
  top: -24rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

header h1 {
  margin: 0 auto !important;
  color: #fff !important;
  font-size: clamp(1.8rem, 2.8vw, 4.2rem) !important;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

header p {
  max-width: 840px;
  margin: 18px auto 0 !important;
  color: rgba(255, 255, 255, 0.86) !important;
  font-size: clamp(1rem, 1.7vw, 1.16rem) !important;
  line-height: 1.85;
}

nav {
  width: min(1120px, calc(100% - 32px));
  margin: -32px auto 0;
  padding: 10px !important;
  border: 1px solid rgba(199, 215, 235, 0.76);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--shadow-sm) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-wrap: wrap;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #28527c !important;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

nav a:hover,
nav a:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-deep) !important;
}

nav a:active {
  transform: translateY(1px);
}

nav a[style*="red"] {
  background: #fff0ed;
  color: var(--danger) !important;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 44px auto 0 !important;
  padding: 0 !important;
}

main.container {
  width: min(920px, calc(100% - 32px));
}

section,
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    var(--surface) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

section {
  margin-top: 22px !important;
  padding: clamp(22px, 3vw, 34px) !important;
}

.card {
  padding: clamp(22px, 3vw, 34px) !important;
  margin-bottom: 20px !important;
}

section:hover,
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 119, 255, 0.24);
  box-shadow: var(--shadow-md) !important;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px !important;
  padding-left: 0 !important;
  border-left: 0 !important;
  color: #102a4c !important;
  font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
  line-height: 1.25;
}

h2::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(22, 119, 255, 0.1);
}

.plans {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px !important;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background:
    linear-gradient(180deg, #fff, #f9fcff 72%),
    var(--surface) !important;
  box-shadow: 0 14px 40px rgba(27, 80, 135, 0.08) !important;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease !important;
}

.plan:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(22, 119, 255, 0.38) !important;
  box-shadow: 0 22px 58px rgba(22, 119, 255, 0.15) !important;
}

.plan h3 {
  color: #102a4c !important;
  font-size: 22px !important;
  line-height: 1.25;
}

.plan p,
p {
  color: var(--muted) !important;
}

.price {
  margin: 18px 0 4px !important;
  color: var(--danger) !important;
  font-size: 22px !important;
  line-height: 1.2;
}

.badge {
  width: fit-content;
  margin: 0 0 14px !important;
  padding: 7px 11px !important;
  border: 1px solid rgba(22, 119, 255, 0.18);
  border-radius: 999px !important;
  background: var(--accent-soft) !important;
  color: var(--accent-deep) !important;
  font-weight: 700;
}

ul,
ol {
  padding-left: 1.25em;
}

li {
  margin: 8px 0;
}

.plan ul {
  flex: 1;
  margin-top: 14px !important;
  color: var(--muted);
}

.features ul,
.scenarios ul,
.faq ul,
.blog-links ul,
.card ul,
.card ol {
  display: grid;
  gap: 10px;
  margin-left: 0 !important;
  padding-left: 1.3em !important;
}

.faq li,
.features li,
.scenarios li,
.blog-links li,
.card li {
  color: var(--muted);
}

strong {
  color: #102a4c;
}

.button,
.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0 18px !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep)) !important;
  color: #fff !important;
  font-weight: 800 !important;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(22, 119, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease !important;
}

.button:hover,
.btn:hover {
  color: #fff !important;
  box-shadow: 0 18px 34px rgba(22, 119, 255, 0.3);
  transform: translateY(-2px);
}

.button:active,
.btn:active {
  transform: translateY(1px);
}

.secondary {
  border-color: var(--line-strong) !important;
  background: #fff !important;
  color: var(--accent-deep) !important;
  box-shadow: none;
}

.secondary:hover {
  background: var(--accent-soft) !important;
  color: var(--accent-deep) !important;
}

.btn-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.btn-box .btn {
  margin: 0 !important;
}

.cta {
  padding: clamp(32px, 5vw, 56px) !important;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(22, 119, 255, 0.1), rgba(255, 255, 255, 0.88) 42%),
    #fff !important;
}

.cta h2 {
  justify-content: center;
}

.cta p {
  max-width: 680px;
  margin: 0 auto 12px;
}

footer {
  margin-top: 48px !important;
  padding: 34px 16px !important;
  background: #0e1726 !important;
  color: #aab6c6 !important;
}

footer p {
  color: #aab6c6 !important;
}

footer a {
  color: #d7e8ff;
}

body > .container > h1 {
  margin: 44px auto 28px !important;
  color: #102a4c !important;
  font-size: clamp(2rem, 4vw, 3.6rem) !important;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

body > .container > p:last-of-type {
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 980px) {
  nav {
    width: calc(100% - 24px);
    border-radius: 20px;
    justify-content: flex-start !important;
    overflow-x: auto;
  }

  nav a {
    min-height: 38px;
  }

  .plans {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  header {
    padding: 56px 16px 68px !important;
  }

  header h1 {
    display: block;
    width: min(340px, calc(100vw - 32px));
    font-size: 1.45rem !important;
    line-height: 1.16;
    max-width: min(340px, calc(100vw - 32px));
    white-space: normal;
    text-wrap: wrap;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  header p {
    width: min(340px, calc(100vw - 32px));
    max-width: min(340px, calc(100vw - 32px));
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .container,
  main.container {
    width: calc(100% - 24px);
    margin-top: 28px !important;
  }

  section,
  .card,
  .plan {
    padding: 20px !important;
  }

  .button,
  .btn {
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  section:hover,
  .card:hover,
  .plan:hover {
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
