@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #040a12;
  --surface: rgba(7, 16, 29, .72);
  --surface-hover: rgba(10, 22, 39, .86);
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .17);
  --text: #f7f9ff;
  --muted: #a5b1c3;
  --subtle: #718097;
  --cyan: #29E6FF;
  --blue: #2457D6;
  --violet: #6336C9;
  --pink: #D64CFF;
  --gradient: linear-gradient(
    90deg,
    #29E6FF 0%,
    #2457D6 38%,
    #6336C9 70%,
    #D64CFF 100%
  );
}

:root[data-theme="light"] {
  --bg: #f4f7fc;
  --surface: rgba(255, 255, 255, .72);
  --surface-hover: rgba(255, 255, 255, .9);
  --line: rgba(15, 23, 42, .11);
  --line-strong: rgba(15, 23, 42, .17);
  --text: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
}

:root[data-theme="light"] body {
  color: var(--text);
  background: var(--bg);
}

:root[data-theme="light"] .header-nav,
:root[data-theme="light"] .hero p,
:root[data-theme="light"] .popular-searches,
:root[data-theme="light"] .section-kicker,
:root[data-theme="light"] .eyebrow {
  color: #475569;
}

:root[data-theme="light"] .header-nav a:hover,
:root[data-theme="light"] .popular-searches a:hover {
  color: #0f172a;
}

:root[data-theme="light"] .hero h1 .heading-white {
  color: #0f172a;
}

:root[data-theme="light"] .search-wrap {
  background: rgba(255, 255, 255, .58);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .8);
}

:root[data-theme="light"] .search-wrap input {
  color: #0f172a;
}

:root[data-theme="light"] .search-wrap input::placeholder,
:root[data-theme="light"] kbd {
  color: #64748b;
}

:root[data-theme="light"] .category-icon {
  border-color: rgba(15, 23, 42, .12);
  color: #334155;
  background: rgba(255, 255, 255, .62);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, .5), 0 8px 24px rgba(15, 23, 42, .08);
}

:root[data-theme="light"] .category-content span,
:root[data-theme="light"] .guide-label,
:root[data-theme="light"] footer {
  color: #64748b;
}

:root[data-theme="light"] .category-content b,
:root[data-theme="light"] .guide-arrow {
  color: #0f172a;
}

:root[data-theme="light"] .guide-card,
:root[data-theme="light"] .contact-panel {
  background: rgba(255, 255, 255, .72);
}

:root[data-theme="light"] .guide-card:hover {
  background: rgba(255, 255, 255, .9);
}

:root[data-theme="light"] .article-overlay {
  background: rgba(226, 232, 240, .72);
}

:root[data-theme="light"] .article-panel {
  border-color: rgba(15, 23, 42, .12);
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(244, 247, 252, .98));
  box-shadow: 0 40px 100px rgba(15, 23, 42, .2), inset 0 1px 0 rgba(255, 255, 255, .9);
}

:root[data-theme="light"] .article-close {
  border-color: rgba(15, 23, 42, .12);
  background: rgba(15, 23, 42, .04);
  color: #334155;
}

:root[data-theme="light"] .article-panel h2,
:root[data-theme="light"] .diagnostic-section h3,
:root[data-theme="light"] .diagnostic-box strong,
:root[data-theme="light"] .escalation-box strong,
:root[data-theme="light"] .support-next strong {
  color: #0f172a;
}

:root[data-theme="light"] .article-panel > p,
:root[data-theme="light"] .article-panel li,
:root[data-theme="light"] .diagnostic-section ol,
:root[data-theme="light"] .diagnostic-box p,
:root[data-theme="light"] .escalation-box p,
:root[data-theme="light"] .support-next p {
  color: #475569;
}

:root[data-theme="light"] .diagnostic-box,
:root[data-theme="light"] .support-next {
  border-color: rgba(15, 23, 42, .1);
  background: rgba(15, 23, 42, .035);
}

:root[data-theme="light"] .escalation-box {
  border-color: rgba(36, 87, 214, .16);
  background: rgba(41, 230, 255, .055);
}

:root[data-theme="light"] .article-panel li::before {
  border-color: rgba(15, 23, 42, .12);
  color: #0f172a;
  background: rgba(15, 23, 42, .035);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(ellipse 70% 34% at 12% 19%, rgba(0, 229, 255, .17), transparent 70%),
    radial-gradient(ellipse 66% 30% at 82% 27%, rgba(37, 99, 235, .16), transparent 72%),
    radial-gradient(ellipse 58% 26% at 54% 40%, rgba(124, 58, 237, .13), transparent 74%),
    radial-gradient(ellipse 52% 22% at 30% 52%, rgba(214, 76, 255, .08), transparent 76%);
  filter: blur(28px);
  transform: scale(1.08);
}

:root[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 70% 34% at 12% 19%, rgba(41, 230, 255, .15), transparent 70%),
    radial-gradient(ellipse 66% 30% at 82% 27%, rgba(36, 87, 214, .12), transparent 72%),
    radial-gradient(ellipse 58% 26% at 54% 40%, rgba(99, 54, 201, .10), transparent 74%),
    radial-gradient(ellipse 52% 22% at 30% 52%, rgba(214, 76, 255, .07), transparent 76%);
}

body::after {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, .10), rgba(2, 6, 23, .72) 66%, var(--bg) 100%),
    radial-gradient(ellipse 90% 38% at 50% 31%, rgba(41, 230, 255, .055), transparent 72%);
}

:root[data-theme="light"] body::after {
  background:
    linear-gradient(180deg, rgba(244, 247, 252, .18), rgba(244, 247, 252, .70) 66%, var(--bg) 100%),
    radial-gradient(ellipse 90% 38% at 50% 31%, rgba(41, 230, 255, .045), transparent 72%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .045em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 8px 22px rgba(41, 230, 255, .18));
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #c4cede;
  font-size: 13px;
  font-weight: 600;
}

.header-nav a {
  transition: color .2s ease;
}

.header-nav a:hover {
  color: white;
}

.hero {
  width: min(100%, 1000px);
  margin: 72px auto 0;
  padding: 0 24px 96px;
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  width: 86px;
  height: 112px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 14px 36px rgba(41, 230, 255, .2));
}

.eyebrow,
.section-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  color: #aab9d3;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(48px, 8vw, 82px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 800;
}

.hero h1 .heading-white {
  color: #ffffff;
}

.hero h1 .heading-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 span {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: inherit;
}

.hero h1 {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.hero h1 span {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: inherit;
}

.hero p {
  max-width: 570px;
  margin: 0 auto 30px;
  color: #b1bccd;
  font-size: 16px;
  line-height: 1.7;
}

.search-wrap {
  width: min(700px, 100%);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 8px 10px 8px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: rgba(5, 13, 25, .30);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(22px);
}

.search-icon {
  color: #91a4bf;
  font-size: 27px;
  line-height: 1;
  transform: rotate(-20deg);
}

.search-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 14px;
}

.search-wrap input::placeholder {
  color: #77869c;
}

kbd {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #8c9bb0;
  font-size: 10px;
  background: rgba(255, 255, 255, .035);
}

.popular-searches {
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: #8190a6;
  font-size: 11px;
}

.popular-searches a {
  color: #b4c3da;
  transition: color .2s ease;
}

.popular-searches a:hover {
  color: #cbd6e8;
}

.content {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
  padding-bottom: 80px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: 25px;
  letter-spacing: -.035em;
}

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

.category-card {
  position: relative;
  min-height: 164px;
  padding: 22px;
  display: flex;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  transition:
    transform .22s ease,
    border-color .22s ease,
    background .22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    135deg,
    rgba(41, 230, 255, .08),
    transparent 45%,
    rgba(214, 76, 255, .06)
  );
  transition: opacity .22s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(120, 154, 255, .32);
  background: var(--surface-hover);
}

.category-card:hover::after {
  opacity: 1;
}

.category-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 13px;
  color: #dce5f5;
  background: rgba(255, 255, 255, .045);
  box-shadow:
    inset 0 0 18px rgba(255, 255, 255, .025),
    0 8px 24px rgba(0, 0, 0, .12);
}

.category-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-content {
  position: relative;
  z-index: 1;
}

.category-content h3 {
  margin: 1px 0 7px;
  font-size: 15px;
  letter-spacing: -.015em;
}

.category-content p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.category-content span {
  display: inline-block;
  margin-top: 17px;
  color: #b9c8df;
  font-size: 11px;
  font-weight: 600;
}

.category-content b {
  margin-left: 4px;
  color: #ffffff;
  font-weight: 700;
}

.popular {
  margin-top: 76px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.guide-card {
  position: relative;
  min-height: 112px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 16, 29, .68);
  backdrop-filter: blur(16px);
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(120, 154, 255, .3);
  background: rgba(10, 21, 37, .82);
}

.guide-label {
  color: #8292aa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.guide-card strong {
  max-width: 88%;
  margin-top: 13px;
  font-size: 14px;
  line-height: 1.45;
}

.guide-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
  font-size: 17px;
}

.contact-panel {
  margin-top: 76px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid rgba(118, 143, 255, .22);
  border-radius: 22px;
  background: rgba(7, 16, 29, .76);
  backdrop-filter: blur(18px);
}

.contact-panel h2 {
  margin: 8px 0 7px;
  font-size: 28px;
  letter-spacing: -.035em;
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.primary-button {
  flex: 0 0 auto;
  padding: 14px 19px;
  border-radius: 13px;
  background: var(--gradient);
  box-shadow: 0 12px 32px rgba(36, 87, 214, .24);
  color: white;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform .2s ease,
    box-shadow .2s ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(36, 87, 214, .34);
}

.primary-button span {
  margin-left: 8px;
}

footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 34px;
  border-top: 1px solid var(--line);
  color: #6f8098;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}

footer nav {
  display: flex;
  gap: 20px;
}

footer a:hover {
  color: #c7d3e5;
}

@media (max-width: 820px) {
  .site-header {
    width: min(100% - 40px, 680px);
  }

  .header-nav a:first-child {
    display: none;
  }

  .hero {
    margin-top: 48px;
    padding-bottom: 72px;
  }

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

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 40px);
  }

  .header-nav {
    gap: 0;
  }

  .hero {
    margin-top: 38px;
    padding: 0 20px 62px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .hero p {
    font-size: 14px;
  }

  .content {
    width: calc(100% - 40px);
  }

  .category-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
    padding: 27px;
  }

  .primary-button {
    width: 100%;
    text-align: center;
  }

  .search-wrap {
    padding-left: 14px;
  }

  .search-wrap kbd {
    display: none;
  }

  footer {
    width: calc(100% - 40px);
    gap: 20px;
    flex-direction: column;
  }
}

body.article-open {
  overflow: hidden;
}

.article-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 14, .72);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

.article-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.article-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow-y: auto;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background:
    linear-gradient(
      145deg,
      rgba(13, 27, 48, .96),
      rgba(5, 12, 24, .97)
    );
  box-shadow:
    0 40px 100px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translateY(18px) scale(.98);
  transition: transform .22s ease;
}

.article-overlay.is-open .article-panel {
  transform: translateY(0) scale(1);
}

.article-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .045);
  color: #dce5f5;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.article-close:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .22);
}

.article-label {
  margin-bottom: 12px;
  color: #9baac0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}

.article-panel h2 {
  margin: 0;
  max-width: 580px;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.05;
  letter-spacing: -.045em;
  color: #ffffff;
}

.article-panel > p {
  max-width: 570px;
  margin: 18px 0 0;
  color: #aebacd;
  font-size: 14px;
  line-height: 1.75;
}

.article-divider {
  height: 1px;
  margin: 30px 0 25px;
  background: rgba(255, 255, 255, .1);
}

.article-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: support-step;
}

.article-panel li {
  position: relative;
  min-height: 52px;
  padding: 3px 0 3px 64px;
  color: #d3dbea;
  font-size: 13px;
  line-height: 1.7;
  counter-increment: support-step;
}

.article-panel li + li {
  margin-top: 18px;
}

.article-panel li::before {
  content: counter(support-step);
  position: static;
  left: 0;
  top: 0;
  width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, .045);
  font-size: 11px;
  font-weight: 700;
}

.search-no-results {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: #aebacd;
  background: rgba(7, 16, 29, .7);
  text-align: center;
  font-size: 13px;
}

.search-results {
  width: min(700px, 100%);
  margin: 12px auto 0;
  display: grid;
  gap: 8px;
}

.search-result {
  position: relative;
  width: 100%;
  padding: 15px 48px 15px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(7, 16, 29, .78);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.search-result:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 154, 255, .32);
  background: var(--surface-hover);
}

.search-result-label {
  color: #8292aa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
}

.search-result strong {
  font-size: 13px;
  line-height: 1.45;
}

.search-result-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  color: #ffffff;
  font-size: 17px;
  transform: translateY(-50%);
}

:root[data-theme="light"] .search-result {
  background: rgba(255, 255, 255, .76);
}

:root[data-theme="light"] .search-result:hover {
  background: rgba(255, 255, 255, .92);
}

:root[data-theme="light"] .search-result-arrow {
  color: #0f172a;
}

@media (max-width: 620px) {
  .article-overlay {
    padding: 12px;
  }

  .article-panel {
    padding: 32px 24px;
    border-radius: 20px;
    max-height: calc(100vh - 24px);
  }

  .article-panel h2 {
    font-size: 31px;
    padding-right: 28px;
  }
}

.diagnostic-section {
  margin-top: 34px;
}

.diagnostic-section h3 {
  margin: 0 0 18px;
  font-size: 22px;
  line-height: 1.25;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.diagnostic-section ol {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #d7dfed;
}

.diagnostic-section li {
  margin: 0 0 14px;
  padding-left: 7px;
  line-height: 1.7;
}

.diagnostic-box,
.escalation-box {
  margin-top: 22px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
}

.diagnostic-box strong,
.escalation-box strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 14px;
}

.diagnostic-box p,
.escalation-box p {
  margin: 0;
  color: #aebbd0;
  line-height: 1.7;
}

.escalation-box {
  border-color: rgba(41,230,255,.16);
  background: rgba(41,230,255,.035);
}

.escalation-box strong {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.support-next {
  margin-top: 36px;
  padding: 24px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.1);
}

.support-next strong {
  color: #ffffff;
  font-size: 17px;
}

.support-next p {
  margin: 8px 0 0;
  color: #aebbd0;
  line-height: 1.7;
}

.support-next a {
  color: #29e6ff;
  text-decoration: none;
}

.support-next a:hover {
  text-decoration: underline;
}

body.article-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .diagnostic-section {
    margin-top: 28px;
  }

  .diagnostic-section h3 {
    font-size: 20px;
  }

  .diagnostic-box,
  .escalation-box,
  .support-next {
    padding: 17px;
  }
}
