:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --slate-950: #020617;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f8fafc;
  color: var(--slate-950);
}

a {
  color: inherit;
  text-decoration: none;
}

.help-hero {
  background:
    radial-gradient(circle at 78% 20%, rgba(34, 211, 238, 0.2), transparent 26%),
    linear-gradient(135deg, #1d4ed8, #020617);
  color: white;
  padding: 28px 0 64px;
}

nav,
.hero-content,
.search-box,
.topic-chips,
main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

nav div {
  display: flex;
  gap: 14px;
  color: #dbeafe;
  font-weight: 800;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand span,
.assistant-card span {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--cyan-400);
  color: var(--slate-950);
  font-weight: 900;
}

.brand span {
  width: 42px;
  height: 42px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: center;
  padding: 58px 0 28px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 7px 12px;
  color: #cffafe;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.dark {
  border-color: rgba(8, 145, 178, 0.2);
  background: rgba(8, 145, 178, 0.08);
  color: #0e7490;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin-top: 18px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.7;
}

.assistant-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  padding: 24px;
}

.assistant-card span {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
}

.assistant-card strong {
  font-size: 22px;
  line-height: 1.2;
}

.search-box input {
  width: 100%;
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  padding: 0 22px;
  color: white;
  font: inherit;
  font-size: 18px;
  outline: none;
}

.search-box input::placeholder {
  color: #dbeafe;
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.topic-chips button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
  cursor: pointer;
  padding: 10px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.topic-chips button:hover,
.topic-chips button.active {
  border-color: rgba(34, 211, 238, 0.75);
  background: rgba(34, 211, 238, 0.18);
  color: white;
}

main {
  display: grid;
  gap: 24px;
  padding: 42px 0;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.journey-grid button {
  border: 1px solid var(--slate-200);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.96)),
    white;
  cursor: pointer;
  padding: 20px;
  text-align: left;
  font: inherit;
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.journey-grid button:hover {
  border-color: rgba(6, 182, 212, 0.45);
  transform: translateY(-2px);
}

.journey-grid span,
.journey-grid strong,
.journey-grid small {
  display: block;
}

.journey-grid span {
  width: fit-content;
  border-radius: 999px;
  background: #ecfeff;
  padding: 6px 10px;
  color: #0e7490;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.journey-grid strong {
  margin-top: 14px;
  color: var(--slate-950);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.journey-grid small {
  margin-top: 8px;
  color: var(--slate-600);
  line-height: 1.5;
}

.popular-card,
.reader-card,
.ai-card {
  border: 1px solid var(--slate-200);
  border-radius: 28px;
  background: white;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.07);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading p,
.reader-card p,
.ai-card p {
  margin-top: 8px;
  color: var(--slate-600);
  line-height: 1.6;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.article-list button {
  min-height: 150px;
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  background: #f8fafc;
  cursor: pointer;
  padding: 18px;
  text-align: left;
  font: inherit;
}

.article-list button:hover {
  border-color: var(--cyan-500);
}

.article-list span,
.article-list strong,
.article-list small {
  display: block;
}

.article-list span {
  color: #0e7490;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-list strong {
  margin-top: 8px;
  font-size: 18px;
}

.article-list small {
  margin-top: 8px;
  color: var(--slate-600);
  line-height: 1.45;
}

.reader-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.reader-card h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.reader-card ol {
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding-left: 22px;
  color: var(--slate-700);
  line-height: 1.6;
}

.xai-box {
  border: 1px solid #bae6fd;
  border-radius: 22px;
  background: #ecfeff;
  padding: 18px;
}

.xai-box p {
  color: var(--slate-700);
}

.related-box {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.related-box button {
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  background: #f8fafc;
  cursor: pointer;
  padding: 12px 14px;
  color: var(--slate-800);
  text-align: left;
  font: inherit;
  font-weight: 800;
}

.related-box button:hover {
  border-color: var(--cyan-500);
}

.ai-card {
  position: sticky;
  top: 18px;
  height: fit-content;
}

.ai-card a {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 14px;
  background: var(--slate-950);
  padding: 12px 16px;
  color: white;
  font-weight: 900;
}

.ai-card-btn,
.hero-ia-btn,
.kb-link-btn,
.kb-ask-ia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #6366f1);
  padding: 12px 18px;
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.kb-link-btn {
  margin-top: 0;
  margin-left: 8px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  background: #1e293b;
}

.kb-ask-ia {
  width: 100%;
  margin-top: 14px;
}

.hero-ia-btn {
  margin-top: 16px;
}

.assistant-card small {
  display: block;
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.85;
}

.kb-section {
  width: min(1120px, calc(100% - 32px));
  margin: 32px auto 0;
  padding: 24px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--slate-200);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.04);
}

.kb-section code {
  font-size: 0.8125rem;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 6px;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.kb-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
  padding: 16px;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, transform 0.15s;
}

.kb-card:hover {
  border-color: #a78bfa;
  transform: translateY(-2px);
}

.kb-card-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.kb-card strong {
  font-size: 0.9375rem;
  color: var(--slate-950);
}

.kb-card p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--slate-600);
  line-height: 1.45;
}

.ai-card-list {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 0.8125rem;
  color: var(--slate-600);
  line-height: 1.6;
}

.ai-card-list kbd {
  border-radius: 6px;
  border: 1px solid var(--slate-200);
  background: #f8fafc;
  padding: 2px 6px;
  font-size: 0.75rem;
}

#floating-help {
  position: fixed;
  right: 22px;
  bottom: 22px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--cyan-500);
  color: white;
  cursor: pointer;
  padding: 0 18px;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 16px 40px rgba(6, 182, 212, 0.35);
}

@media (max-width: 860px) {
  nav,
  .hero-content,
  .journey-grid,
  .reader-grid {
    grid-template-columns: 1fr;
  }

  nav,
  nav div {
    align-items: flex-start;
    flex-direction: column;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .ai-card {
    position: static;
  }
}
