:root {
  --red: #b82b31;
  --red-bright: #e23e45;
  --ink: #08090a;
  --panel: rgba(16, 17, 19, .88);
  --line: rgba(255, 255, 255, .14);
  --muted: rgba(255, 255, 255, .63);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  overflow-x: hidden;
}

a, button, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(7,8,9,.42), rgba(7,8,9,.96) 58%, #08090a),
    url("homebackground.png") center top / cover no-repeat;
}
.page-background::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(8,9,10,.72);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}
.logo { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.logo img { width: 58px; height: 58px; object-fit: contain; }
.brand-copy { display: grid; gap: 3px; font: 700 12px/1.1 var(--mono); letter-spacing: 1.5px; }
.brand-copy small { color: var(--muted); font-size: 9px; font-weight: 500; }
nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
nav a { position: relative; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; letter-spacing: 1.25px; text-decoration: none; text-transform: uppercase; }
nav a:hover, nav a.active { color: #fff; }
nav a.active::after { content: ""; position: absolute; right: 0; bottom: -12px; left: 0; height: 2px; background: var(--red-bright); }

main { position: relative; z-index: 1; }
.faq-hero {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 145px 24px 90px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 80px 0 0;
  opacity: .3;
  background: linear-gradient(90deg, transparent 49.8%, rgba(255,255,255,.09) 50%, transparent 50.2%);
}
.hero-inner { position: relative; width: min(940px, 100%); text-align: center; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 22px; color: rgba(255,255,255,.72); font: 600 11px/1 var(--mono); letter-spacing: 2.2px; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 16px rgba(226,62,69,.8); }
h1 { max-width: 850px; margin: 0 auto; font-size: clamp(54px, 7.4vw, 96px); font-weight: 300; letter-spacing: -4px; line-height: .94; text-transform: uppercase; }
h1 strong { display: block; font-weight: 800; }
.hero-inner > p { max-width: 680px; margin: 28px auto 0; color: rgba(255,255,255,.72); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 13px 22px; border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1.8px; text-decoration: none; text-transform: uppercase; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { border-color: var(--red); background: var(--red); }
.button.primary:hover { background: #d33239; }
.button.secondary { background: rgba(0,0,0,.38); }
.button.secondary:hover { border-color: rgba(255,255,255,.62); background: rgba(255,255,255,.08); }
.hero-status { position: absolute; right: 32px; bottom: 25px; display: flex; gap: 14px; font: 10px/1 var(--mono); letter-spacing: 1.5px; color: rgba(255,255,255,.45); }
.hero-status b { color: #fff; }

.faq-workspace { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 78px 0 90px; }
.workspace-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 430px); gap: 42px; align-items: end; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.section-code { margin-bottom: 14px; color: var(--red-bright); font: 700 10px/1 var(--mono); letter-spacing: 2px; }
.workspace-head h2 { margin: 0; font-size: clamp(32px, 4vw, 52px); letter-spacing: -1.7px; line-height: 1.05; }
.workspace-head > p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

.faq-tools { padding: 30px 0 36px; }
.search-box { position: relative; display: flex; align-items: center; width: 100%; height: 68px; border: 1px solid rgba(255,255,255,.22); background: rgba(9,10,11,.82); box-shadow: 0 18px 60px rgba(0,0,0,.18); }
.search-box:focus-within { border-color: rgba(255,255,255,.55); box-shadow: 0 0 0 3px rgba(184,43,49,.25); }
.search-icon { width: 17px; height: 17px; margin-left: 23px; border: 2px solid rgba(255,255,255,.7); border-radius: 50%; }
.search-icon::after { content: ""; display: block; width: 7px; height: 2px; margin: 12px 0 0 12px; background: rgba(255,255,255,.7); transform: rotate(45deg); }
.search-box input { flex: 1; min-width: 0; height: 100%; padding: 0 20px; border: 0; outline: 0; background: transparent; color: #fff; font-size: 16px; }
.search-box input::placeholder { color: rgba(255,255,255,.42); }
.search-box kbd { margin-right: 18px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.45); font: 9px/1 var(--mono); }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.filter, .tool-meta button { min-height: 44px; border: 1px solid rgba(255,255,255,.14); background: rgba(15,16,18,.66); color: rgba(255,255,255,.6); font: 700 10px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; }
.filter { padding: 0 17px; }
.filter:hover, .filter.active { border-color: rgba(226,62,69,.7); background: rgba(184,43,49,.16); color: #fff; }
.tool-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 19px; color: rgba(255,255,255,.46); font: 10px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; }
.tool-meta > div { display: flex; gap: 8px; }
.tool-meta button { padding: 0 13px; }
.tool-meta button:hover { border-color: rgba(255,255,255,.42); color: #fff; }

.faq-list { display: grid; gap: 20px; }
.faq-group { position: relative; display: block; min-width: 0; padding-left: 260px; border: 1px solid var(--line); background: rgba(12,13,14,.76); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.group-heading { position: absolute; inset: 0 auto 0 0; width: 260px; display: flex; gap: 17px; align-items: flex-start; padding: 27px 23px; border-right: 1px solid var(--line); background: linear-gradient(150deg, rgba(184,43,49,.13), transparent 65%); }
.group-heading > span { color: var(--red-bright); font: 700 11px/1 var(--mono); }
.group-heading p { margin: 0 0 6px; color: rgba(255,255,255,.46); font: 700 9px/1 var(--mono); letter-spacing: 1.7px; text-transform: uppercase; }
.group-heading h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 700; line-height: 1.35; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: rgba(255,255,255,.035); }
.faq-item summary i { position: relative; flex: 0 0 30px; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; top: 50%; left: 50%; width: 11px; height: 1px; background: #fff; transform: translate(-50%, -50%); transition: transform .2s ease; }
.faq-item summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] summary { color: #fff; background: rgba(184,43,49,.08); }
.faq-item[open] summary i { border-color: rgba(226,62,69,.7); background: rgba(184,43,49,.18); }
.faq-item[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.answer { padding: 2px 72px 25px 24px; color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.75; }
.answer p { margin: 0; }
.answer a { display: inline-block; margin-top: 14px; color: #fff; font: 700 10px/1.3 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; text-underline-offset: 4px; }
.answer-actions { display: flex; flex-wrap: wrap; gap: 20px; }
.no-results { padding: 60px 24px; border: 1px solid var(--line); text-align: center; background: rgba(12,13,14,.8); }
.no-results > span { color: var(--red-bright); font: 700 10px/1 var(--mono); letter-spacing: 2px; }
.no-results h3 { margin: 12px 0 0; font-size: 28px; }
.no-results p { margin: 12px auto 22px; color: var(--muted); }

.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 42px; padding: 36px 40px; border: 1px solid rgba(226,62,69,.45); background: linear-gradient(110deg, rgba(184,43,49,.24), rgba(13,14,16,.9) 62%); }
.contact-panel span { color: rgba(255,255,255,.5); font: 700 10px/1 var(--mono); letter-spacing: 1.7px; text-transform: uppercase; }
.contact-panel h2 { margin: 7px 0 8px; font-size: 30px; }
.contact-panel p { max-width: 690px; margin: 0; color: var(--muted); line-height: 1.6; }
.contact-panel .button { flex: 0 0 auto; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px 36px; border-top: 1px solid var(--line); color: rgba(255,255,255,.36); background: #070809; font: 9px/1.4 var(--mono); letter-spacing: 1.4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  header { padding-inline: 24px; }
  .brand-copy { display: none; }
  nav ul { gap: 18px; }
  .workspace-head { grid-template-columns: 1fr; gap: 16px; }
  .faq-group { padding-left: 210px; }
  .group-heading { width: 210px; }
}

@media (max-width: 700px) {
  .faq-hero { min-height: 520px; padding: 118px 18px 72px; }
  .eyebrow { align-items: flex-start; font-size: 9px; letter-spacing: 1.3px; line-height: 1.45; }
  .eyebrow span { margin-top: 3px; flex: 0 0 7px; }
  h1 { font-size: clamp(40px, 13vw, 56px); letter-spacing: -2px; }
  .hero-inner > p { margin-top: 20px; font-size: 16px; line-height: 1.55; }
  .hero-actions { display: grid; grid-template-columns: 1fr; width: min(360px, 100%); margin: 26px auto 0; }
  .hero-status { right: 18px; bottom: 16px; left: 18px; justify-content: space-between; }
  .faq-workspace { width: calc(100% - 28px); padding: 52px 0 64px; }
  .workspace-head { padding-bottom: 24px; }
  .workspace-head h2 { font-size: 34px; }
  .faq-tools { padding: 24px 0 28px; }
  .search-box { height: 58px; }
  .search-icon { margin-left: 18px; }
  .search-box input { padding-inline: 16px; }
  .search-box kbd { display: none; }
  .category-filters { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filter { padding-inline: 10px; }
  .filter:first-child { grid-column: 1 / -1; }
  .tool-meta { align-items: flex-start; flex-direction: column; }
  .tool-meta > div { width: 100%; }
  .tool-meta button { flex: 1; }
  .faq-group { padding-left: 0; }
  .group-heading { position: relative; inset: auto; width: auto; padding: 20px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .faq-item summary { min-height: 68px; padding: 16px 17px; font-size: 15px; }
  .faq-item summary i { flex-basis: 28px; width: 28px; height: 28px; }
  .answer { padding: 0 18px 22px; font-size: 14px; line-height: 1.7; }
  .contact-panel { align-items: stretch; flex-direction: column; gap: 24px; padding: 28px 22px; }
  .contact-panel h2 { font-size: 27px; }
  footer { flex-direction: column; padding: 20px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
