:root {
  --p900: #1E0A40;
  --p800: #2D1160;
  --p700: #3B1A80;
  --p600: #4A1D96;
  --p500: #5B2BAD;
  --p400: #7B4CC8;
  --p300: #A07ED8;
  --p200: #C5AEE8;
  --p100: #E3D6F5;
  --p50: #F3EEFA;
  --ink: #16112B;
  --ink2: #3D3558;
  --ink3: #6E6789;
  --ink4: #9C97AE;
  --bg: #FAF8FE;
  --card: #FFFFFF;
  --border: #EBE6F3;
  --green: #1A845A;
  --green-bg: #E7F7EF;
  --amber: #A36B00;
  --amber-bg: #FFF6E0;
  --coral: #C13D24;
  --coral-bg: #FDECEA;
  --blue: #1A6B9E;
  --blue-bg: #E8F4FB;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(30, 10, 64, 0.04), 0 2px 8px rgba(30, 10, 64, 0.03);
  --shadow: 0 2px 6px rgba(30, 10, 64, 0.04), 0 8px 24px rgba(30, 10, 64, 0.05);
  --shadow-lg: 0 8px 40px rgba(30, 10, 64, 0.08);
}
body {
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
}
/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--p900) 0%, var(--p700) 50%, var(--p500) 100%);
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.5);
}
.hero .flex {
  height: 100vh;
  min-height: max-content;
  max-height: 80rem;
  padding: 8rem 0;
}
/* .hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
} */
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -8%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 50%;
}
.hero * {
  position: relative;
  z-index: 1;
}
.hero-label {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin: 0 auto 36px;
}
/* Search bar */
.search-wrap {
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}
.search-wrap input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-family: inherit;
  background: url(../img/icon-search.svg) no-repeat left+14px center/18px #fff;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  outline: none;
  transition: box-shadow 0.2s;
}
.search-wrap input:focus {
  box-shadow: 0 0 0 3px rgba(74, 29, 150, 0.2), var(--shadow-lg);
}
.search-wrap input::placeholder {
  color: var(--ink4);
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--ink4);
}
.search-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.search-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.search-tag:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
/* ─── Section layout ─── */
.section {
  max-width: 143rem;
  padding: 0 3rem;
  margin: 8rem auto 0;
}
.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--p500);
  font-weight: 600;
  margin-bottom: 8px;
}
.section-title {
  font-size: 4.6rem;
  font-weight: 600;
  line-height: 1.21;
  margin-bottom: 8px;
}
.section-desc {
  font-size: 15px;
  color: var(--ink3);
  max-width: 600px;
  margin-bottom: 28px;
}
/* ─── Category Grid ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 3rem;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.cat-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--p200);
  transform: translateY(-2px);
  text-decoration: none;
}
.cat-card--faq {
  cursor: pointer;
}
.cat-card--faq:focus-visible {
  outline: 2px solid var(--p600);
  outline-offset: 2px;
}
.cat-card-desc {
  font-size: 15px;
  color: var(--ink3);
  line-height: 1.5;
  text-align: center;
}
.cat-card-desc p:last-child {
  margin-bottom: 0;
}
.cat-emoji .faq-group-icon--img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.cat-emoji .faq-group-icon--emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 2.5rem;
  line-height: 1;
}
.cat-emoji {
  display: block;
  width: 5rem;
  height: 5rem;
  margin: 0 auto;
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}
.cat-card h4 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.cat-card p {
  font-size: 14px;
  color: var(--ink3);
  line-height: 1.5;
}
.cat-count {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--p500);
  background: var(--p50);
  padding: 2px 10px;
  border-radius: 12px;
  margin-top: 10px;
}
/* ─── FAQ Accordion ─── */
.faq-empty {
  text-align: center;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink3);
  padding: 28px 20px;
  margin: 0 0 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.support-related-empty {
  font-size: 15px;
  color: var(--ink3);
  text-align: center;
  padding: 24px 16px;
  margin: 0;
}
.faq-columns {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}
.faq-tabs {
  position: sticky;
  top: 80px;
}
.faq-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink3);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  font-weight: 500;
  margin-bottom: 5px;
}
.faq-tab:hover {
  background: var(--p50);
  color: var(--ink2);
}
.faq-tab.active {
  background: var(--p600);
  color: #fff;
  font-weight: 600;
}
.faq-tab.active img {
  filter: contrast(0) brightness(2);
}
.faq-tab-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.faq-tab-label {
  flex: 1;
  min-width: 0;
}
.faq-tab .faq-group-icon--img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 4px;
  transition: all .3s;
}
.faq-tab .faq-group-icon--emoji {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}
.faq-group-head {
  margin-bottom: 16px;
}
.faq-group-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}
.faq-group-title-row .faq-group-icon--img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}
.faq-group-title-row .faq-group-icon--emoji {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}
.faq-group-title-row .faq-group-title {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}
.faq-group-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink3);
  margin-top: 10px;
}
.faq-group-desc a {
  color: var(--p600);
}
.faq-group {
  display: none;
}
.faq-group.active {
  display: block;
}
.faq-group-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item:hover {
  box-shadow: var(--shadow-sm);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  gap: 12px;
  user-select: none;
}
.faq-q h5 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}
.faq-chevron {
  width: 20px;
  height: 20px;
  color: var(--ink4);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--p600);
}
.faq-a {
  padding: 0 20px 16px;
  font-size: 15px;
  color: var(--ink2);
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-a {
  display: block;
}
.faq-item.open {
  border-color: var(--p200);
}
/* ─── Guides Grid ─── */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 3rem;
}
.guide-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s;
  text-decoration: none;
}
.guide-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.guide-img {
  padding-bottom: 70%;
  background: linear-gradient(135deg, var(--p800), var(--p500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}
.guide-body {
  padding: 20px;
}
.guide-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  display: inline-block;
}
.guide-tag.beginner {
  color: var(--green);
}
.guide-tag.advanced {
  color: var(--amber);
}
.guide-tag.essential {
  color: var(--coral);
}
.guide-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.guide-card p {
  font-size: 14px;
  color: var(--ink3);
  line-height: 1.6;
}
.guide-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink4);
}
/* ─── Responsive ─── */
@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-columns {
    grid-template-columns: 1fr;
  }
  .faq-tabs {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
  }
  .guides-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links {
    display: none;
  }
}
@media (max-width: 768px) {
  .section {
    margin-top: 60px;
    padding: 0 20px;
  }
  .section-title {
    font-size: 22px;
  }
  .hero .flex {
    height: auto;
    padding: 0;
  }
}
@media (max-width: 560px) {
  .cat-grid, .guides-grid {
    grid-template-columns: 1fr;
  }
}
/* ─── Animations ─── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.cat-card,
.guide-card,
.faq-item {
  animation: fadeUp 0.4s ease both;
}
.cat-card:nth-child(2) {
  animation-delay: 0.05s;
}
.cat-card:nth-child(3) {
  animation-delay: 0.1s;
}
.cat-card:nth-child(4) {
  animation-delay: 0.15s;
}
