:root {
  color-scheme: dark;
  --ink: #f6f8ff;
  --muted: #a8b1c5;
  --soft: #0c1020;
  --panel: #11172b;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #2f7cff;
  --green: #35d49a;
  --amber: #e0b026;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  --page: #070a12;
  --panel-2: #151d34;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(47, 124, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 90% 12%, rgba(53, 212, 154, 0.1), transparent 26rem),
    var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

.animated-bg {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.skip-link,
.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.animated-bg span {
  inset: -20%;
  position: absolute;
}

.bg-grid {
  animation: grid-drift 24s linear infinite;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.46;
  transform: rotate(-8deg);
}

.bg-scan {
  animation: scan-drift 18s ease-in-out infinite alternate;
  background:
    linear-gradient(120deg, transparent 18%, rgba(47, 124, 255, 0.13) 32%, transparent 46%),
    linear-gradient(300deg, transparent 54%, rgba(53, 212, 154, 0.1) 68%, transparent 82%);
  filter: blur(2px);
}

.bg-lines {
  animation: line-flow 16s linear infinite;
  background: repeating-linear-gradient(115deg, transparent 0 78px, rgba(104, 216, 255, 0.08) 80px, transparent 83px);
  opacity: 0.5;
}

@keyframes grid-drift {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 144px 72px, 144px 72px;
  }
}

@keyframes scan-drift {
  from {
    transform: translate3d(-4%, -2%, 0) scale(1);
  }

  to {
    transform: translate3d(5%, 4%, 0) scale(1.04);
  }
}

@keyframes line-flow {
  from {
    transform: translate3d(-80px, 0, 0);
  }

  to {
    transform: translate3d(80px, 0, 0);
  }
}

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

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  background: var(--blue);
  border-radius: 6px;
  color: #fff;
  left: 16px;
  padding: 10px 14px;
  position: fixed;
  top: -80px;
  z-index: 30;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  align-items: center;
  background: rgba(7, 10, 18, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 74px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand,
.site-nav,
.steps,
.category-strip,
.next-step,
.site-footer {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  min-width: max-content;
}

.brand-badge {
  align-items: center;
  background: #fff;
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  width: 48px;
}

.brand-badge img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.menu-button {
  display: none;
}

.site-nav {
  gap: 22px;
  justify-content: center;
}

.site-nav a,
.header-link {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.site-nav a:hover,
.header-link:hover,
.category-strip a:hover,
.guide-card-grid a:hover,
.article-grid a:hover {
  color: var(--blue);
}

.header-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  min-height: 42px;
  padding: 9px 15px;
}

main > section {
  padding-left: clamp(18px, 5vw, 74px);
  padding-right: clamp(18px, 5vw, 74px);
}

.search-hero {
  background:
    linear-gradient(90deg, rgba(47, 124, 255, 0.18), rgba(7, 10, 18, 0.22) 46%, transparent),
    linear-gradient(180deg, rgba(7, 10, 18, 0.28), rgba(12, 16, 32, 0.84));
  border-bottom: 1px solid var(--line);
  padding-bottom: clamp(42px, 7vw, 80px);
  padding-top: clamp(48px, 8vw, 92px);
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.96;
  margin-bottom: 20px;
  max-width: 970px;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

h3 {
  margin-bottom: 8px;
}

.hero-text {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 760px;
}

.search-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 760px;
  padding: 18px;
}

.search-card label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.search-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
}

.search-row input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  min-height: 50px;
  padding: 0 14px;
}

.search-row button,
.next-step a {
  background: var(--blue);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  min-height: 50px;
  padding: 0 20px;
}

.search-symbols {
  color: var(--muted);
  display: flex;
  gap: 12px;
  font-size: 1.08rem;
  font-weight: 900;
}

.category-strip a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  min-height: 40px;
  padding: 8px 14px;
}

.steps {
  align-items: stretch;
  background: #070a12;
  color: #fff;
  gap: 1px;
  padding-bottom: 0;
  padding-top: 0;
}

.steps article {
  background: var(--panel);
  flex: 1;
  padding: 28px;
}

.steps span,
.method-grid span {
  color: var(--amber);
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.steps h2 {
  font-size: 1.45rem;
}

.steps p {
  color: var(--muted);
}

.category-directory,
.editorial-block,
.method-section,
.featured-categories,
.comparison-section,
.guide-preview,
.checklist-section,
.faq-section,
.next-step {
  padding-bottom: clamp(48px, 7vw, 78px);
  padding-top: clamp(48px, 7vw, 78px);
}

.section-head {
  margin-bottom: 24px;
}

.section-head p,
.featured-categories > p:not(.eyebrow),
.comparison-section > p,
.method-section > p,
.checklist-section > p,
.faq-section > p,
.next-step p,
.site-footer p {
  color: var(--muted);
  max-width: 760px;
}

.category-strip {
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.info-grid,
.method-grid,
.guide-card-grid,
.article-grid,
.checklist-grid {
  display: grid;
  gap: 16px;
}

.info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-grid article,
.method-grid article,
.article-grid article,
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.info-grid p,
.method-grid p,
.article-grid p,
details p {
  color: var(--muted);
}

.editorial-block {
  background: rgba(12, 16, 32, 0.88);
}

.editorial-block h2 {
  max-width: 1040px;
}

.editorial-block > p {
  color: var(--muted);
  max-width: 900px;
}

.need-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 28px;
  max-width: 760px;
  padding: 22px;
}

.need-list ul,
.checklist-grid ul {
  margin: 0;
  padding-left: 20px;
}

.need-list li,
.checklist-grid li {
  margin: 8px 0;
}

.method-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.featured-categories {
  background:
    linear-gradient(115deg, rgba(47, 124, 255, 0.08), transparent 34%),
    linear-gradient(300deg, rgba(53, 212, 154, 0.06), transparent 42%),
    rgba(7, 10, 18, 0.92);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.guide-card-grid {
  background:
    linear-gradient(135deg, rgba(13, 21, 42, 0.98), rgba(5, 14, 18, 0.98)),
    rgba(7, 10, 18, 0.98);
  border: 1px solid rgba(104, 216, 255, 0.12);
  border-radius: 14px;
  gap: 20px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 28px;
  padding: 22px;
}

.category-card {
  align-items: center;
  background:
    linear-gradient(180deg, rgba(20, 28, 52, 0.98), rgba(13, 19, 36, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.28);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-height: 194px;
  padding: 28px 16px 20px;
  text-align: center;
}

.category-card:hover {
  border-color: rgba(104, 216, 255, 0.28);
  color: #fff;
  transform: translateY(-2px);
}

.icon-tile {
  align-items: center;
  background: #eef7f0;
  border-radius: 8px;
  display: flex;
  height: 98px;
  justify-content: center;
  width: 98px;
}

.category-emoji {
  display: block;
  filter: drop-shadow(0 12px 14px rgba(20, 28, 44, 0.18));
  font-size: 3.1rem;
  line-height: 1;
}

.category-card strong {
  color: #fff;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  font-weight: 900;
  line-height: 1.05;
}

.guide-card-grid a,
.article-grid a {
  color: var(--blue);
  font-weight: 900;
}

.comparison-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 24px;
  overflow: hidden;
}

.comparison-table > div {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr 1.3fr;
}

.comparison-table > div + div {
  border-top: 1px solid var(--line);
}

.comparison-table strong,
.comparison-table span {
  padding: 16px;
}

.comparison-table strong {
  background: var(--panel-2);
  color: #fff;
}

.comparison-table span {
  color: var(--muted);
}

.article-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.article-grid span {
  color: var(--amber);
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.article-grid article {
  display: flex;
  flex-direction: column;
}

.article-grid ul {
  color: var(--muted);
  margin: 4px 0 18px;
  padding-left: 20px;
}

.article-grid li {
  margin: 7px 0;
}

.article-grid a {
  margin-top: auto;
}

.checklist-section {
  background: rgba(12, 16, 32, 0.88);
}

.checklist-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  max-width: 860px;
}

.checklist-grid ul {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 22px 22px 42px;
}

.faq-section details + details {
  margin-top: 12px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.next-step {
  align-items: center;
  background: #070a12;
  color: #fff;
  gap: 28px;
  justify-content: space-between;
}

.next-step p {
  color: var(--muted);
}

.next-step a {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 210px;
}

.site-footer {
  align-items: flex-start;
  background: #070a12;
  color: #fff;
  gap: 28px;
  justify-content: space-between;
  padding: 36px clamp(18px, 5vw, 74px);
}

.site-footer h2 {
  font-size: 1.35rem;
}

.site-footer p {
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: #fff;
  font-weight: 850;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .info-grid,
  .guide-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: stretch;
  }

  .menu-button {
    align-self: flex-start;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-weight: 850;
    min-height: 42px;
    padding: 8px 14px;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.is-open {
    display: flex;
  }

  .steps,
  .next-step,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .search-row,
  .method-grid,
  .article-grid,
  .checklist-grid,
  .comparison-table > div {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .guide-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-table strong:not(:first-child) {
    display: none;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.75rem;
  }

  .site-nav {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .header-link {
    width: 100%;
    text-align: center;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  .animated-bg span {
    animation: none !important;
  }
}
