/* =========================================================
   Kainovis — home: industry preview, process, trust, CTA
   ========================================================= */

/* ---------- industry preview (paper) ---------- */

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.industry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 252px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid #dedbd0;
  border-radius: 15px;
  background: #fbfaf6;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}

.industry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #0f766e, #5ce1c2);
  opacity: 0;
  transition: opacity 0.3s;
}

.industry-card:hover {
  transform: translateY(-5px);
  border-color: #b9d8d1;
  box-shadow: 0 20px 46px rgba(21, 46, 42, 0.09);
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}

.industry-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #d6ddd8;
  border-radius: 11px;
  background: #f0f5f2;
  color: #0f766e;
}

.industry-icon .icon {
  width: 20px;
  height: 20px;
}

.industry-num {
  color: #b3b7ae;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.industry-card h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.industry-card p {
  flex: 1;
  color: #6f7a76;
  font-size: 12.5px;
  line-height: 1.7;
}

.industry-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e8e5da;
}

.industry-card-foot span {
  color: #8d9792;
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.industry-card-foot .icon {
  width: 15px;
  height: 15px;
  color: #0f766e;
  transition: transform 0.25s var(--ease);
}

.industry-card:hover .industry-card-foot .icon {
  transform: translate(2px, -2px);
}

.industry-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid #dedbd0;
}

.industry-more p {
  color: #6f7a76;
  font-size: 13.5px;
}

/* ---------- process ---------- */

.process-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 70px;
  align-items: start;
}

.process-sticky {
  position: sticky;
  top: calc(var(--header-h) + 34px);
}

.process-steps {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding-bottom: 34px;
}

.process-step:last-child {
  padding-bottom: 0;
}

.process-step::before {
  content: "";
  position: absolute;
  top: 46px;
  left: 26px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(92, 225, 194, 0.28), rgba(255, 255, 255, 0.06));
}

.process-step:last-child::before {
  display: none;
}

.step-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  color: #8da0b2;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.process-step:first-child .step-num {
  border-color: rgba(92, 225, 194, 0.4);
  background: rgba(92, 225, 194, 0.09);
  color: var(--accent);
}

.process-step h3 {
  padding-top: 7px;
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 600;
}

.process-step p {
  max-width: 520px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.process-step .step-meta {
  display: inline-flex;
  margin-top: 10px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: #7e90a3;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
}

.process-note {
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid rgba(240, 180, 106, 0.2);
  border-radius: 10px;
  background: rgba(240, 180, 106, 0.045);
  color: #c7a97f;
  font-size: 12.5px;
  line-height: 1.75;
}

/* ---------- trust / security ---------- */

.trust-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: center;
}

.trust-panel {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}

.trust-panel::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 225, 194, 0.12), transparent 65%);
}

.trust-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.trust-panel-head h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8194a6;
}

.trust-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6fc9b7;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.08em;
}

.trust-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(92, 225, 194, 0.1);
}

.data-boundary {
  display: grid;
  gap: 9px;
}

.data-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 11.5px;
}

.data-row .icon {
  width: 15px;
  height: 15px;
  color: #7d90a3;
}

.data-row > span:not(.icon) {
  flex: 1;
  color: #b3c1cf;
}

.data-row b {
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tag-local {
  background: rgba(92, 225, 194, 0.1);
  color: #8cebd6;
}

.tag-mask {
  background: rgba(240, 180, 106, 0.1);
  color: #ecc48f;
}

.tag-allow {
  background: rgba(141, 180, 255, 0.1);
  color: #a8c4ff;
}

.trust-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #718396;
  font-size: 10px;
}

.trust-foot .icon {
  width: 13px;
  height: 13px;
  color: var(--accent);
}

.trust-list {
  display: grid;
  gap: 0;
  margin-top: 30px;
}

.trust-item {
  display: flex;
  gap: 14px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.trust-item:last-child {
  border-bottom: 1px solid var(--line);
}

.trust-item .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent);
}

.trust-item h4 {
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 600;
}

.trust-item p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

/* ---------- engagement ---------- */

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

.engagement-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 0.35s var(--ease), border-color 0.3s;
}

.engagement-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 225, 194, 0.25);
}

.engagement-card.is-featured {
  border-color: rgba(92, 225, 194, 0.3);
  background: linear-gradient(165deg, rgba(92, 225, 194, 0.075), rgba(255, 255, 255, 0.02));
}

.engagement-card.is-featured::before {
  content: "建议起步";
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent);
  color: #04110d;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.engagement-index {
  margin-bottom: 26px;
  color: #617486;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.engagement-card h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 600;
}

.engagement-card > p {
  flex: 1;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.engagement-meta {
  display: grid;
  gap: 9px;
  margin: 24px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.engagement-meta div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
}

.engagement-meta span {
  color: #738598;
}

.engagement-meta b {
  color: #c4d2df;
  font-weight: 500;
  text-align: right;
}

/* ---------- FAQ ---------- */

.faq-list {
  border-top: 1px solid #ddd9cd;
}

.faq-item {
  border-bottom: 1px solid #ddd9cd;
}

.faq-item summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .faq-plus {
  position: relative;
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: none;
}

.faq-item summary .faq-plus::before,
.faq-item summary .faq-plus::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: #7c877f;
  transition: transform 0.3s var(--ease);
}

.faq-item summary .faq-plus::after {
  transform: rotate(90deg);
}

.faq-item[open] summary .faq-plus::after {
  transform: rotate(0);
}

.faq-answer {
  max-width: 760px;
  padding: 0 4px 24px;
  color: #626e69;
  font-size: 14px;
  line-height: 1.85;
}

.faq-answer p + p {
  margin-top: 10px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 64px;
  align-items: start;
}

.faq-aside {
  position: sticky;
  top: calc(var(--header-h) + 34px);
}

.faq-aside .btn {
  margin-top: 24px;
}

/* ---------- CTA ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 70px 64px;
  border: 1px solid rgba(92, 225, 194, 0.2);
  border-radius: 24px;
  background: radial-gradient(600px 300px at 85% 0%, rgba(92, 225, 194, 0.14), transparent 60%),
    linear-gradient(140deg, #0d1a1c, #081016 62%);
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-copy h2 {
  max-width: 620px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.cta-copy p {
  margin-top: 14px;
  color: #94a6b7;
  font-size: 14.5px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: none;
}

.cta-actions .btn-ghost {
  min-height: 44px;
}

.cta-actions small {
  color: #6c7f92;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-align: center;
}

@media (max-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-layout,
  .trust-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .process-sticky,
  .faq-aside {
    position: static;
  }

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

  .engagement-card {
    padding: 26px;
  }
}

@media (max-width: 760px) {
  .industry-grid {
    grid-template-columns: 1fr;
  }

  .industry-card {
    min-height: 0;
  }

  .industry-more {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-step {
    grid-template-columns: 44px 1fr;
    gap: 15px;
  }

  .step-num {
    width: 44px;
    height: 44px;
  }

  .process-step::before {
    top: 38px;
    left: 21px;
  }

  .cta-band {
    padding: 44px 28px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .faq-item summary {
    font-size: 14.5px;
  }
}
