:root {
  --ink: #0a0c0b;
  --lime: #a8ff3e;
  --cream: #f4f5f0;
  --gray: #6f776e;
  --muted: #9ca39a;
  --line: rgba(10, 12, 11, 0.14);
  --blue: #76a9ff;
  --max: 1120px;
  --font: "Space Grotesk", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Heiti SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: anywhere;
  overflow-x: clip;
}

::selection {
  background: var(--lime);
  color: var(--ink);
}

a {
  color: inherit;
}

img,
video {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Header ---------- */

.sp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 12, 11, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.sp-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.sp-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  flex: none;
}

.sp-logo .mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.sp-logo .word {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3em;
}

.sp-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sp-nav::-webkit-scrollbar {
  display: none;
}

.sp-nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.sp-nav a:hover,
.sp-nav a[aria-current="page"] {
  color: var(--lime);
}

.sp-nav .sp-btn {
  color: var(--ink);
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 6px;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sp-btn:hover {
  background: #fff;
}

.sp-btn.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.sp-btn.ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.sp-btn.dark {
  background: var(--ink);
  color: #fff;
}

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

/* ---------- Typography ---------- */

.kicker {
  margin: 0;
  color: var(--gray);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.dark .kicker,
.dark .lead {
  color: var(--muted);
}

h1,
h2,
h3 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
}

h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lead {
  margin: 22px 0 0;
  max-width: 680px;
  color: var(--gray);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.accent {
  color: var(--lime);
}

.small {
  font-size: 13px;
  color: var(--gray);
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 0;
}

.section.cream {
  background: var(--cream);
}

.section.dark {
  background: var(--ink);
  color: #fff;
}

.section.dark h2 {
  color: #fff;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-head p {
  margin: 0;
  max-width: 620px;
  color: var(--gray);
}

.dark .section-head p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 28px;
}

.dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 26px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.card h3 {
  margin-top: 18px;
}

.card p {
  margin: 10px 0 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.65;
}

.dark .card p {
  color: var(--muted);
}

.card a {
  margin-top: auto;
  padding-top: 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Hero (English landing) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -200px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 255, 62, 0.18), transparent 68%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  padding-top: 96px;
  padding-bottom: 88px;
}

.hero h1 {
  max-width: 920px;
  color: #fff;
}

.hero .lead {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 64px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stats dt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stats dd {
  margin: 0 0 6px;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---------- Cases / pricing ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.case-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 28px;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.case-card:hover {
  border-color: rgba(168, 255, 62, 0.6);
}

.case-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

.case-card .tag {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-card h3 {
  margin-top: 6px;
  color: #fff;
  font-size: 26px;
}

.case-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.case-card .url {
  margin-top: 22px;
  color: var(--lime);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
}

.price-card {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  padding: 34px;
}

.price-card.lime {
  background: var(--lime);
  color: var(--ink);
}

.price-card.ink {
  background: var(--ink);
  color: #fff;
}

.price-card .label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
}

.price {
  margin: 18px 0 0;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.price span {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.6;
}

.price-card ul {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 20px;
  margin: 10px 0;
  font-size: 15px;
  line-height: 1.55;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}

.price-card .sp-btn {
  margin-top: auto;
  width: 100%;
  margin-top: 28px;
}

/* ---------- Article ---------- */

.article-hero {
  padding: 64px 0 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 8px;
  opacity: 0.5;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.article-title {
  max-width: 900px;
  font-size: clamp(34px, 5.2vw, 64px);
}

.article-dek {
  margin: 22px 0 0;
  max-width: 760px;
  color: var(--gray);
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.6;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 28px 0 0;
  color: var(--gray);
  font-size: 13px;
}

.article-body {
  padding: 24px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 240px;
  gap: 64px;
  align-items: start;
}

.article-main {
  min-width: 0;
}

.answer {
  margin: 0 0 42px;
  border-left: 4px solid var(--lime);
  border-radius: 0 6px 6px 0;
  background: var(--cream);
  padding: 24px 26px;
}

.answer strong {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.answer p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}

.prose {
  font-size: 17px;
  line-height: 1.8;
}

.prose h2 {
  margin: 52px 0 16px;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 34px 0 10px;
  font-size: 21px;
}

.prose p {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.prose li {
  margin: 8px 0;
}

.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(10, 12, 11, 0.35);
}

.prose a:hover {
  text-decoration-color: var(--ink);
}

.prose blockquote {
  margin: 28px 0;
  border-left: 3px solid var(--lime);
  padding: 4px 0 4px 20px;
  color: var(--gray);
  font-size: 18px;
}

.prose strong {
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  margin: 24px 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.prose table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.55;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--cream);
  font-weight: 700;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.checklist {
  margin: 24px 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checklist h3 {
  margin-top: 0;
}

.checklist ul {
  margin-bottom: 0;
}

.toc {
  position: sticky;
  top: 96px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.toc p {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  color: var(--gray);
  font-size: 13px;
  line-height: 1.55;
}

.toc li {
  margin: 7px 0;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  color: var(--ink);
}

.article-faq {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
}

.article-faq h2 {
  margin-top: 0;
}

.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-item h3 {
  margin: 0;
  font-size: 18px;
}

.faq-item p {
  margin: 8px 0 0;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
}

.article-cta {
  margin: 56px 0 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  padding: 34px;
}

.article-cta h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 36px);
}

.article-cta p {
  margin: 12px 0 22px;
  color: var(--muted);
}

.related {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.related h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.related-links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.related-links a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.related-links a:hover {
  border-color: var(--ink);
}

/* ---------- Insights index ---------- */

.post-grid {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.post-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.post-card:hover {
  opacity: 0.68;
}

.post-card .post-meta {
  color: var(--gray);
  font-size: 12px;
  line-height: 1.7;
}

.post-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.post-card p {
  margin: 10px 0 0;
  max-width: 700px;
  color: var(--gray);
  font-size: 15px;
}

.post-card .read {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Contact form (English) ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  margin-top: 42px;
}

.contact-copy p {
  color: var(--muted);
}

.form {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 26px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  margin-top: 14px;
}

.field:first-child {
  margin-top: 0;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(10, 12, 11, 0.62);
  color: #fff;
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(168, 255, 62, 0.35);
  border-color: var(--lime);
}

.field select option {
  background: var(--ink);
}

.form .sp-btn {
  width: 100%;
  margin-top: 18px;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status.error {
  color: #ffb4a2;
}

.form-note {
  margin: 10px 0 0;
  color: rgba(156, 163, 154, 0.65);
  font-size: 12px;
}

/* ---------- Footer ---------- */

.sp-footer {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  padding: 54px 0 38px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-grid p {
  margin: 12px 0 0;
  max-width: 300px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0 22px;
  color: rgba(156, 163, 154, 0.65);
  font-size: 11px;
}

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .toc {
    position: static;
    order: -1;
    border-top: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 16px;
  }

  .toc ol {
    columns: 2;
    column-gap: 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 20px;
  }

  .sp-header .wrap {
    min-height: 62px;
    gap: 12px;
  }

  .sp-nav {
    gap: 16px;
  }

  .sp-nav .nav-secondary {
    display: none;
  }

  .sp-nav .sp-btn {
    padding: 10px 14px;
    font-size: 13px;
  }

  .section {
    padding: 64px 0;
  }

  .hero .wrap {
    padding-top: 68px;
    padding-bottom: 64px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 44px;
  }

  .grid.two,
  .grid.three,
  .case-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .article-hero {
    padding-top: 40px;
  }

  .article-body {
    padding-bottom: 56px;
  }

  .prose h2 {
    margin-top: 42px;
  }

  .article-cta {
    padding: 26px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 420px) {
  .sp-logo .word {
    letter-spacing: 0.2em;
  }

  .sp-nav a:not(.sp-btn) {
    font-size: 13px;
  }
}

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

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