/* BetterYeah-inspired AI homepage for jujiang.me */
:root {
  --jj-ai-ink: #15151f;
  --jj-ai-muted: #6b7280;
  --jj-ai-soft: #f4fbf7;
  --jj-ai-soft-2: #f7fcfa;
  --jj-ai-line: #dfeee8;
  --jj-ai-primary: #26b36f;
  --jj-ai-purple: #6d5dfc;
  --jj-ai-pink: #20c997;
  --jj-ai-cyan: #18b7e8;
  --jj-ai-orange: #f2b84b;
  --jj-ai-shadow: 0 22px 60px rgba(42, 52, 104, .12);
}

.jj-main {
  background: #fff;
}

.jj-ai-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.jj-ai-hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(244,251,247,.98) 0%, rgba(255,255,255,.99) 48%, #fff 100%),
    linear-gradient(115deg, rgba(38,179,111,.1) 0%, rgba(24,183,232,.06) 52%, rgba(109,93,252,.05) 100%);
}

.jj-ai-announcement {
  height: 48px;
  background: linear-gradient(90deg, #052b1c 0%, #0c3c29 52%, #101d35 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 700;
  margin-top: -70px;
  padding-top: 70px;
  box-sizing: content-box;
}

.jj-ai-announcement a {
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16b8d9);
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  text-decoration: none;
}

.jj-ai-hero-inner {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
  align-items: center;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 48px;
}

.jj-ai-hero-copy {
  text-align: left;
}

.jj-ai-kicker,
.jj-ai-section-head span,
.jj-ai-section-copy > span,
.jj-ai-form-copy span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(38,179,111,.2);
  border-radius: 8px;
  background: rgba(38,179,111,.1);
  color: #16834d;
  font-size: 13px;
  font-weight: 700;
}

.jj-ai-hero h1 {
  margin: 22px 0 18px;
  color: var(--jj-ai-ink);
  font-size: 58px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.jj-ai-hero h1::after {
  content: "企业级 AI 智能体";
  display: block;
  margin-top: 8px;
  background: linear-gradient(90deg, #16a34a 0%, #22c55e 35%, #16b8d9 66%, #6d5dfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.jj-ai-hero-lead {
  max-width: 620px;
  margin: 0;
  color: #535866;
  font-size: 18px;
  line-height: 1.8;
}

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

.jj-ai-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 160px;
  padding: 0 26px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.jj-ai-btn:hover {
  transform: translateY(-2px);
}

.jj-ai-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--jj-ai-primary), var(--jj-ai-purple));
  box-shadow: 0 14px 26px rgba(38,179,111,.28);
}

.jj-ai-btn-ghost {
  color: var(--jj-ai-ink);
  border: 1px solid #dfe3f0;
  background: #fff;
}

.jj-ai-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.jj-ai-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--jj-ai-line);
  color: #4b5563;
  font-size: 13px;
  font-weight: 700;
}

.jj-ai-workbench {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(219,224,242,.95);
  border-radius: 8px;
  box-shadow: var(--jj-ai-shadow);
  overflow: hidden;
}

.jj-ai-window-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--jj-ai-line);
  background: #fff;
}

.jj-ai-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff6b6b;
}

.jj-ai-window-bar span:nth-child(2) { background: #ffc247; }
.jj-ai-window-bar span:nth-child(3) { background: #2ed573; }

.jj-ai-window-bar strong {
  margin-left: 8px;
  color: #4b5563;
  font-size: 13px;
}

.jj-ai-workbench-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  min-height: 430px;
  background: linear-gradient(135deg, #fbfffd, #f4fbf7);
}

.jj-ai-agent-list {
  grid-row: 1 / span 2;
  border-right: 1px solid var(--jj-ai-line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jj-ai-agent-item {
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(42, 52, 104, .05);
}

.jj-ai-agent-item.is-active {
  border-color: rgba(38,179,111,.36);
  background: linear-gradient(135deg, rgba(38,179,111,.12), rgba(24,183,232,.08));
}

.jj-ai-agent-item b,
.jj-ai-agent-item small {
  display: block;
  line-height: 1.45;
}

.jj-ai-agent-item b {
  color: #1f2937;
  font-size: 13px;
}

.jj-ai-agent-item small {
  margin-top: 4px;
  color: #7b8190;
  font-size: 12px;
}

.jj-ai-chat-panel {
  padding: 22px;
}

.jj-ai-chat-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.jj-ai-chat-title span {
  color: #111827;
  font-size: 16px;
  font-weight: 800;
}

.jj-ai-chat-title em {
  font-style: normal;
  color: #16834d;
  background: rgba(38,179,111,.1);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.jj-ai-message {
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.jj-ai-message.is-user {
  color: #1f2937;
  background: #fff;
  border: 1px solid var(--jj-ai-line);
}

.jj-ai-message.is-agent {
  color: #fff;
  background: linear-gradient(135deg, #26b36f, #12a87f);
}

.jj-ai-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jj-ai-source-row span {
  border-radius: 8px;
  border: 1px solid #e7e9f4;
  background: #fff;
  color: #6b7280;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
}

.jj-ai-flow-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--jj-ai-line);
}

.jj-ai-flow-node {
  position: relative;
  min-height: 58px;
  border: 1px solid rgba(38,179,111,.24);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.jj-ai-flow-node:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: #9aa5ff;
}

.jj-ai-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -24px;
  padding-bottom: 44px;
}

.jj-ai-metrics > div {
  min-height: 128px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eef0f7;
  box-shadow: 0 16px 40px rgba(38,49,103,.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 30px;
  box-sizing: border-box;
}

.jj-ai-metrics strong {
  color: var(--jj-ai-ink);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.jj-ai-metrics p {
  margin: 10px 0 0;
  color: #8a91a2;
  font-size: 14px;
}

.jj-ai-section {
  padding: 76px 0;
}

.jj-ai-section:nth-of-type(even) {
  background: var(--jj-ai-soft-2);
}

.jj-ai-section-head {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

.jj-ai-section-head h2,
.jj-ai-section-copy h2,
.jj-ai-form-copy h2 {
  margin: 16px 0 12px;
  color: var(--jj-ai-ink);
  font-size: 36px;
  line-height: 1.28;
  font-weight: 900;
  letter-spacing: 0;
}

.jj-ai-section-head p,
.jj-ai-section-copy p,
.jj-ai-form-copy p {
  margin: 0;
  color: var(--jj-ai-muted);
  font-size: 16px;
  line-height: 1.8;
}

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

.jj-ai-card {
  min-height: 204px;
  border-radius: 8px;
  border: 1px solid #e7eaf5;
  background: #fff;
  padding: 24px;
  box-sizing: border-box;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.jj-ai-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38,179,111,.42);
  box-shadow: 0 18px 40px rgba(40,49,104,.12);
}

.jj-ai-card small {
  display: inline-flex;
  align-items: center;
  height: 24px;
  border-radius: 8px;
  padding: 0 9px;
  background: rgba(38,179,111,.1);
  color: #16834d;
  font-size: 12px;
  font-weight: 800;
}

.jj-ai-card:nth-child(3n) small { background: rgba(24,183,232,.11); color: #048ab5; }
.jj-ai-card:nth-child(4n) small { background: rgba(237,79,180,.1); color: #c22b86; }

.jj-ai-card h3 {
  margin: 18px 0 10px;
  color: #1f2937;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
}

.jj-ai-card p {
  margin: 0;
  color: #687082;
  font-size: 14px;
  line-height: 1.75;
}

.jj-ai-scenario-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 18px;
}

.jj-ai-scenario-main,
.jj-ai-scenario-list {
  border-radius: 8px;
  border: 1px solid #e7eaf5;
  background: #fff;
  box-shadow: 0 16px 42px rgba(40,49,104,.08);
}

.jj-ai-scenario-main {
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(38,179,111,.12), rgba(24,183,232,.08)),
    #fff;
}

.jj-ai-scenario-main h3 {
  margin: 0 0 12px;
  color: var(--jj-ai-ink);
  font-size: 30px;
  font-weight: 900;
}

.jj-ai-scenario-main p {
  max-width: 720px;
  margin: 0;
  color: #5f6678;
  font-size: 16px;
  line-height: 1.85;
}

.jj-ai-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.jj-ai-chip-row span {
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e6f5;
  color: #4b5563;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.jj-ai-scenario-list {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.jj-ai-scenario-list a,
.jj-ai-scenario-list span {
  display: flex;
  align-items: center;
  min-height: 54px;
  border-radius: 8px;
  padding: 0 18px;
  background: #f7fcfa;
  color: #26324d;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.jj-ai-scenario-list a:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--jj-ai-primary), var(--jj-ai-purple));
}

.jj-ai-two-col {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 56px;
  align-items: center;
}

.jj-ai-section-copy {
  max-width: 560px;
}

.jj-ai-text-link {
  display: inline-flex;
  margin-top: 24px;
  color: #16834d;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.jj-ai-text-link:hover {
  color: #16b8d9;
}

.jj-ai-platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.jj-ai-platform-grid div {
  height: 82px;
  border-radius: 8px;
  border: 1px solid #e6e9f5;
  background: #fff;
  box-shadow: 0 12px 28px rgba(40,49,104,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #26324d;
  font-size: 15px;
  font-weight: 900;
}

.jj-ai-platform-grid div:nth-child(2n) {
  background: linear-gradient(135deg, #fff, #f4fbf7);
}

.jj-ai-steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.jj-ai-steps div {
  min-height: 178px;
  border-radius: 8px;
  border: 1px solid #e7eaf5;
  background: #fff;
  padding: 20px;
  box-sizing: border-box;
}

.jj-ai-steps b {
  display: block;
  color: #26b36f;
  font-size: 24px;
  line-height: 1;
}

.jj-ai-steps span {
  display: block;
  margin-top: 22px;
  color: #1f2937;
  font-size: 16px;
  font-weight: 900;
}

.jj-ai-steps p {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.65;
}

.jj-ai-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.jj-ai-proof-grid div {
  min-height: 138px;
  border-radius: 8px;
  border: 1px solid #e7eaf5;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(40,49,104,.08);
}

.jj-ai-proof-grid b {
  color: var(--jj-ai-ink);
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.jj-ai-proof-grid span {
  margin-top: 10px;
  color: #727a8d;
  font-size: 14px;
}

.jj-ai-logo-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.jj-ai-logo-strip div {
  height: 98px;
  border-radius: 8px;
  border: 1px solid #eceef6;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.jj-ai-logo-strip img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}

.jj-ai-faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.jj-ai-faq-grid a {
  min-height: 112px;
  border-radius: 8px;
  border: 1px solid #e7eaf5;
  background: #fff;
  padding: 20px;
  box-sizing: border-box;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.jj-ai-faq-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(38,179,111,.38);
  box-shadow: 0 14px 32px rgba(40,49,104,.1);
}

.jj-ai-faq-grid strong,
.jj-ai-faq-grid span {
  display: block;
}

.jj-ai-faq-grid strong {
  color: #1f2937;
  font-size: 16px;
  line-height: 1.45;
}

.jj-ai-faq-grid span {
  margin-top: 10px;
  color: #8a91a2;
  font-size: 13px;
}

.jj-ai-form-section {
  padding: 86px 0;
  background: linear-gradient(135deg, #052b1c, #0c3c29 48%, #101d35);
}

.jj-ai-form-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
}

.jj-ai-form-copy h2,
.jj-ai-form-copy p {
  color: #fff;
}

.jj-ai-form-copy p {
  color: rgba(255,255,255,.72);
}

.jj-ai-form {
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-sizing: border-box;
  box-shadow: 0 18px 44px rgba(0,0,0,.2);
}

.jj-ai-form label {
  display: block;
  margin-bottom: 14px;
}

.jj-ai-form label span {
  display: block;
  margin-bottom: 7px;
  color: #374151;
  font-size: 14px;
  font-weight: 800;
}

.jj-ai-form input {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: 1px solid #dfe3ef;
  padding: 0 14px;
  box-sizing: border-box;
  color: #111827;
  font-size: 15px;
  outline: none;
}

.jj-ai-form input:focus {
  border-color: #26b36f;
  box-shadow: 0 0 0 3px rgba(38,179,111,.14);
}

.jj-ai-form button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--jj-ai-primary), var(--jj-ai-purple));
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.jj-ai-clue-slider {
  height: 34px;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 8px;
  background: #f4fbf7;
}

.jj-ai-clue-item {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #6b7280;
  font-size: 13px;
}

.jj-ai-clue-item em {
  color: #16834d;
  font-style: normal;
  font-weight: 800;
}

.jj-ai-news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 24px;
  border-top: 1px solid #e6e9f5;
}

.jj-ai-news-list a {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid #e6e9f5;
  text-decoration: none;
}

.jj-ai-news-list span {
  color: #8a91a2;
  font-size: 13px;
}

.jj-ai-news-list strong {
  color: #1f2937;
  font-size: 15px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jj-ai-news-list a:hover strong {
  color: #26b36f;
}

.jj-cta {
  background: #fff;
}

.jj-cta-inner {
  background: linear-gradient(135deg, #052b1c, #123c54);
  border-radius: 8px;
  padding: 36px;
  box-sizing: border-box;
}

.jj-float-btn {
  background: linear-gradient(135deg, var(--jj-ai-primary), var(--jj-ai-purple));
  box-shadow: 0 12px 24px rgba(38,179,111,.28);
}

.jj-float-btn:hover {
  background: linear-gradient(135deg, #1f9c60, #0f8c68);
}

@media (max-width: 1180px) {
  .jj-ai-hero h1 {
    font-size: 48px;
  }
  .jj-ai-hero-inner,
  .jj-ai-two-col,
  .jj-ai-form-card {
    grid-template-columns: 1fr;
  }
  .jj-ai-workbench,
  .jj-ai-section-copy {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
  }
  .jj-ai-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .jj-ai-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .jj-ai-announcement {
    gap: 10px;
    font-size: 13px;
  }
  .jj-ai-scenario-layout {
    grid-template-columns: 1fr;
  }
  .jj-ai-platform-grid,
  .jj-ai-faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .jj-ai-logo-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .jj-ai-container {
    padding: 0 16px;
  }
  .jj-ai-hero {
    min-height: auto;
  }
  .jj-ai-announcement {
    height: auto;
    min-height: 44px;
    flex-direction: column;
    margin-top: 0;
    padding: 12px 16px;
    text-align: center;
  }
  .jj-ai-announcement a {
    padding: 6px 12px;
  }
  .jj-ai-hero-inner {
    min-height: auto;
    gap: 32px;
    padding-top: 38px;
    padding-bottom: 38px;
  }
  .jj-ai-hero-copy {
    text-align: center;
  }
  .jj-ai-kicker {
    margin: 0 auto;
  }
  .jj-ai-hero h1 {
    font-size: 34px;
  }
  .jj-ai-hero-lead {
    font-size: 15px;
  }
  .jj-ai-hero-actions,
  .jj-ai-trust-row {
    justify-content: center;
  }
  .jj-ai-btn {
    width: 100%;
    min-width: 0;
  }
  .jj-ai-workbench-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .jj-ai-agent-list {
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid var(--jj-ai-line);
    flex-direction: row;
    overflow-x: auto;
  }
  .jj-ai-agent-item {
    min-width: 146px;
  }
  .jj-ai-flow-panel {
    grid-template-columns: repeat(2, 1fr);
  }
  .jj-ai-flow-node:not(:last-child)::after {
    display: none;
  }
  .jj-ai-metrics {
    grid-template-columns: 1fr;
    margin-top: 0;
    padding-bottom: 42px;
  }
  .jj-ai-section {
    padding: 56px 0;
  }
  .jj-ai-section-head {
    margin-bottom: 28px;
  }
  .jj-ai-section-head h2,
  .jj-ai-section-copy h2,
  .jj-ai-form-copy h2 {
    font-size: 26px;
  }
  .jj-ai-card-grid,
  .jj-ai-steps,
  .jj-ai-proof-grid,
  .jj-ai-news-list {
    grid-template-columns: 1fr;
  }
  .jj-ai-card {
    min-height: 0;
  }
  .jj-ai-scenario-main {
    padding: 24px;
  }
  .jj-ai-scenario-main h3 {
    font-size: 24px;
  }
  .jj-ai-platform-grid div {
    height: 68px;
  }
  .jj-ai-form-section {
    padding: 56px 0;
  }
  .jj-ai-form-card {
    gap: 28px;
  }
  .jj-ai-form {
    padding: 22px;
  }
  .jj-ai-news-list a {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .jj-ai-clue-item {
    gap: 8px;
    font-size: 12px;
  }
  .jj-cta-inner {
    padding: 28px 18px;
  }
}

@media (max-width: 420px) {
  .jj-ai-hero h1 {
    font-size: 30px;
  }
  .jj-ai-platform-grid,
  .jj-ai-faq-grid,
  .jj-ai-flow-panel {
    grid-template-columns: 1fr;
  }
}

/* DUX-style refinement: cleaner spacing, calmer buttons, lighter product card */
.jj-ai-announcement {
  display: none;
}

.jj-ai-container {
  max-width: 1320px;
}

.jj-ai-hero {
  background:
    linear-gradient(180deg, rgba(247,252,250,.96) 0%, rgba(255,255,255,.98) 44%, #fff 100%),
    linear-gradient(115deg, rgba(38,179,111,.08) 0%, rgba(24,183,232,.04) 52%, rgba(255,255,255,0) 100%);
}

.jj-ai-hero-inner {
  min-height: 680px;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: 86px;
  padding-top: 112px;
  padding-bottom: 78px;
}

.jj-ai-kicker,
.jj-ai-section-head span,
.jj-ai-section-copy > span,
.jj-ai-form-copy span {
  min-height: 32px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(24,185,120,.1);
  border-color: rgba(24,185,120,.16);
  color: #0da56c;
  font-size: 14px;
}

.jj-ai-hero h1 {
  max-width: 650px;
  margin: 24px 0 24px;
  font-size: 56px;
  line-height: 1.12;
  font-weight: 900;
}

.jj-ai-hero h1::after {
  margin-top: 4px;
  background: linear-gradient(90deg, #13ad70 0%, #19c79b 48%, #22a7e8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.jj-ai-hero-lead {
  max-width: 620px;
  color: #697080;
  font-size: 19px;
  line-height: 1.75;
}

.jj-ai-hero-actions {
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}

.jj-ai-btn {
  height: 54px;
  min-width: 150px;
  border-radius: 999px;
  padding: 0 28px;
  font-size: 17px;
}

.jj-ai-btn-primary {
  background: #18b978;
  box-shadow: 0 18px 34px rgba(24,185,120,.22);
}

.jj-ai-btn-primary:hover {
  background: #12a86c;
}

.jj-ai-btn-ghost {
  min-width: 0;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #3a414d;
  box-shadow: none;
  font-weight: 600;
}

.jj-ai-trust-row {
  gap: 24px;
  margin-top: 34px;
}

.jj-ai-trust-row span {
  position: relative;
  min-height: 0;
  padding: 0 0 0 20px;
  border: 0;
  background: transparent;
  color: #8a92a1;
  font-size: 15px;
  font-weight: 500;
}

.jj-ai-trust-row span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 14px;
  border-right: 2px solid #18b978;
  border-bottom: 2px solid #18b978;
  transform: rotate(42deg);
}

.jj-ai-workbench {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.jj-ai-assistant-card {
  min-height: 360px;
  border: 1px solid #edf1f4;
  border-radius: 20px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 24px 70px rgba(33,49,70,.08);
  padding: 32px;
  box-sizing: border-box;
}

.jj-ai-assistant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.jj-ai-assistant-head > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jj-ai-assistant-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #18b978;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.jj-ai-assistant-head strong {
  color: #22252d;
  font-size: 18px;
  font-weight: 800;
}

.jj-ai-assistant-head em {
  position: relative;
  padding-left: 16px;
  color: #18b978;
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
}

.jj-ai-assistant-head em::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18b978;
}

.jj-ai-chat-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 0;
}

.jj-ai-message {
  max-width: 78%;
  margin: 0;
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 15px;
  line-height: 1.65;
}

.jj-ai-message.is-user {
  align-self: flex-start;
  color: #3a414d;
  background: #eef0f2;
}

.jj-ai-message.is-agent {
  align-self: flex-end;
  color: #0b5c3a;
  background: #c9f7dd;
}

.jj-ai-typing {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  border-radius: 999px;
  background: #c9f7dd;
  padding: 13px 18px;
}

.jj-ai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18b978;
}

.jj-ai-module-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.jj-ai-module-tabs div {
  min-height: 92px;
  border: 1px solid #eef1f4;
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 22px;
  box-sizing: border-box;
  box-shadow: 0 14px 34px rgba(35,49,70,.06);
}

.jj-ai-module-tabs div.is-active {
  background: #17181d;
  border-color: #17181d;
  box-shadow: 0 20px 38px rgba(23,24,29,.22);
}

.jj-ai-module-tabs b {
  color: #2c3340;
  font-size: 17px;
  line-height: 1.3;
}

.jj-ai-module-tabs span {
  margin-top: 8px;
  color: #8b93a2;
  font-size: 13px;
}

.jj-ai-module-tabs .is-active b,
.jj-ai-module-tabs .is-active span {
  color: #fff;
}

.jj-ai-metrics {
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 0;
  padding-top: 18px;
  padding-bottom: 62px;
}

.jj-ai-metrics > div {
  min-height: 98px;
  padding: 16px 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.jj-ai-metrics strong {
  font-size: 36px;
  font-weight: 900;
}

.jj-ai-metrics p {
  margin-top: 8px;
  color: #8f96a3;
  font-size: 15px;
}

.jj-ai-section {
  padding: 88px 0;
}

.jj-ai-section-head {
  margin-bottom: 48px;
}

.jj-ai-section-head h2,
.jj-ai-section-copy h2,
.jj-ai-form-copy h2 {
  font-size: 38px;
  line-height: 1.25;
}

.jj-ai-card {
  border-color: #edf1f4;
  box-shadow: 0 12px 34px rgba(35,49,70,.045);
}

@media (max-width: 1180px) {
  .jj-ai-hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 78px;
  }
}

@media (max-width: 768px) {
  .jj-ai-hero-inner {
    gap: 36px;
    padding-top: 52px;
    padding-bottom: 44px;
  }
  .jj-ai-hero h1 {
    font-size: 34px;
  }
  .jj-ai-hero-lead {
    font-size: 16px;
  }
  .jj-ai-hero-actions {
    gap: 18px;
  }
  .jj-ai-btn-primary {
    width: 100%;
  }
  .jj-ai-btn-ghost {
    width: auto;
    margin: 0 auto;
  }
  .jj-ai-trust-row {
    gap: 14px 18px;
  }
  .jj-ai-assistant-card {
    min-height: 0;
    padding: 22px;
    border-radius: 16px;
  }
  .jj-ai-message {
    max-width: 94%;
    font-size: 14px;
  }
  .jj-ai-module-tabs {
    grid-template-columns: 1fr;
  }
  .jj-ai-module-tabs div {
    min-height: 78px;
  }
  .jj-ai-metrics {
    grid-template-columns: repeat(2, 1fr);
    padding-top: 0;
    padding-bottom: 42px;
  }
  .jj-ai-metrics strong {
    font-size: 30px;
  }
  .jj-ai-section {
    padding: 58px 0;
  }
  .jj-ai-section-head h2,
  .jj-ai-section-copy h2,
  .jj-ai-form-copy h2 {
    font-size: 27px;
  }
}

/* Homepage motion: subtle entrance, staggered cards, quiet assistant rhythm */
@media (prefers-reduced-motion: no-preference) {
  html.jj-ai-motion-ready .jj-ai-reveal-target:not(.is-motion-done) {
    opacity: 0;
    transform: translate3d(0, 22px, 0) scale(.992);
    transition:
      opacity .76s cubic-bezier(.22, 1, .36, 1) var(--jj-motion-delay, 0ms),
      transform .76s cubic-bezier(.22, 1, .36, 1) var(--jj-motion-delay, 0ms);
    will-change: opacity, transform;
  }

  html.jj-ai-motion-ready .jj-ai-reveal-target.jj-ai-reveal-side:not(.is-motion-done) {
    transform: translate3d(28px, 0, 0) scale(.99);
  }

  html.jj-ai-motion-ready .jj-ai-reveal-target.jj-ai-reveal-pop:not(.is-motion-done) {
    transform: translate3d(0, 16px, 0) scale(.975);
  }

  html.jj-ai-motion-ready .jj-ai-reveal-target.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  html.jj-ai-motion-ready .jj-ai-workbench.is-visible .jj-ai-message,
  html.jj-ai-motion-ready .jj-ai-workbench.is-visible .jj-ai-typing {
    animation: jj-ai-chat-pop .58s cubic-bezier(.22, 1, .36, 1) both;
    transform-origin: 72% 50%;
  }

  html.jj-ai-motion-ready .jj-ai-workbench.is-visible .jj-ai-message:nth-child(1) { animation-delay: .18s; }
  html.jj-ai-motion-ready .jj-ai-workbench.is-visible .jj-ai-message:nth-child(2) { animation-delay: .34s; }
  html.jj-ai-motion-ready .jj-ai-workbench.is-visible .jj-ai-message:nth-child(3) { animation-delay: .5s; }
  html.jj-ai-motion-ready .jj-ai-workbench.is-visible .jj-ai-typing { animation-delay: .66s; }

  .jj-ai-assistant-head em::before {
    animation: jj-ai-online-pulse 2.2s ease-in-out infinite;
  }

  .jj-ai-typing span {
    animation: jj-ai-typing-bounce 1.18s ease-in-out infinite;
  }

  .jj-ai-typing span:nth-child(2) {
    animation-delay: .14s;
  }

  .jj-ai-typing span:nth-child(3) {
    animation-delay: .28s;
  }

  html.jj-ai-motion-ready .jj-ai-workbench.is-motion-done {
    animation: jj-ai-workbench-breathe 7s ease-in-out infinite;
  }
}

html.jj-ai-motion-failed .jj-ai-reveal-target,
html.jj-ai-motion-ready .jj-ai-reveal-target.is-motion-done {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

@keyframes jj-ai-chat-pop {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes jj-ai-online-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(24,185,120,.24);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(24,185,120,0);
    transform: scale(.92);
  }
}

@keyframes jj-ai-typing-bounce {
  0%, 80%, 100% {
    opacity: .42;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes jj-ai-workbench-breathe {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -5px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.jj-ai-motion-ready .jj-ai-reveal-target,
  html.jj-ai-motion-ready .jj-ai-reveal-target.is-visible,
  html.jj-ai-motion-ready .jj-ai-reveal-target.is-motion-done {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .jj-ai-workbench,
  .jj-ai-message,
  .jj-ai-typing,
  .jj-ai-typing span,
  .jj-ai-assistant-head em::before {
    animation: none !important;
  }
}
