/* HWiNFO light content theme — matches homepage hwinfo.com style */

/* Site header — shared navbar (matches index.html) */
.header-scrolled {
  background-color: color-mix(in srgb, var(--color-bg-base) 92%, transparent);
  border-bottom-color: var(--color-border);
}

.telemetry-rail {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-border) 10%, var(--color-border) 90%, transparent);
  overflow: hidden;
}

.telemetry-rail::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -30%;
  width: 30%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  animation: scan-line 8s linear infinite;
}

@keyframes scan-line {
  0% { left: -30%; }
  100% { left: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .telemetry-rail::after { animation: none; opacity: 0.3; }
}

.btn-primary {
  background: var(--color-brand);
  color: #fff;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--color-brand) 85%, var(--color-accent));
}

.hw-main {
  background: #ffffff;
  color: #333333;
}

/* Page hero (inner pages) */
.hw-page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #061525 0%, #0a2340 100%);
}

/* Hero sections extend behind fixed navbar (matches homepage overlay) */
main.pt-16 > .hw-hero:first-child,
main.pt-16 > .hw-page-hero:first-child {
  margin-top: -4rem;
  padding-top: 4rem;
}

.hw-hero,
.hw-page-hero {
  position: relative;
  overflow: hidden;
}

.hw-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hw-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(6, 21, 37, 0.15) 0%,
    rgba(10, 35, 64, 0.25) 50%,
    rgba(10, 35, 64, 0.4) 100%);
  pointer-events: none;
}

.hw-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hw-hero-video { display: none; }
}

/* Homepage hero — glow, grid, motion, laptop float */
.hw-hero-home {
  isolation: isolate;
  overflow: hidden;
}

.hw-hero-home .hw-hero-overlay {
  background: linear-gradient(180deg,
    rgba(6, 21, 37, 0.25) 0%,
    rgba(10, 35, 64, 0.35) 35%,
    rgba(10, 35, 64, 0.5) 65%,
    rgba(255, 255, 255, 0.88) 100%);
}

.hw-hero-home .hw-hero-video {
  opacity: 1;
}

.hw-hero-effects {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hw-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  animation: hero-glow-drift 14s ease-in-out infinite alternate;
}

.hw-hero-glow-1 {
  width: 440px;
  height: 440px;
  top: 5%;
  left: 10%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 68%);
}

.hw-hero-glow-2 {
  width: 380px;
  height: 380px;
  bottom: 15%;
  right: 8%;
  background: radial-gradient(circle, rgba(122, 184, 0, 0.4), transparent 68%);
  animation-delay: -7s;
}

.hw-hero-glow-3 {
  width: 280px;
  height: 280px;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 120, 212, 0.35), transparent 70%);
  animation-delay: -3s;
  opacity: 0.25;
}

@keyframes hero-glow-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(24px, -18px) scale(1.06); }
}

.hw-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 20%, transparent 75%);
}

.hw-hero-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.06) 50%, transparent 100%);
  background-size: 100% 220%;
  animation: hero-scan-sweep 8s linear infinite;
  opacity: 0.6;
}

@keyframes hero-scan-sweep {
  0% { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}

.hw-hero-home .hw-hero-content h1 {
  animation: hero-fade-up 0.85s ease-out both;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.hw-hero-home .hw-hero-content p {
  animation: hero-fade-up 0.85s ease-out 0.1s both;
}

.hw-hero-home .hw-hero-cta {
  animation: hero-fade-up 0.85s ease-out 0.22s both;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hw-hero-home .hw-btn-download {
  box-shadow: 0 4px 28px rgba(122, 184, 0, 0.4);
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.hw-hero-home .hw-btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(122, 184, 0, 0.5), 0 0 24px rgba(122, 184, 0, 0.2);
}

.hw-hero-laptop-bridge {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
  margin-bottom: 0;
  padding: 0 1rem 2.5rem;
}

.hw-hero-home .hw-hero-laptop-bridge {
  margin-top: 2rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .hw-hero-home .hw-hero-laptop-bridge {
    margin-top: 2.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .hw-hero-home .hw-hero-laptop-bridge {
    margin-top: 3rem;
    padding-bottom: 4rem;
  }
}

.hw-hero-laptop {
  width: min(38vw, 520px);
  max-width: 520px;
  min-width: 240px;
  height: auto;
  display: block;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 48px rgba(34, 211, 238, 0.1));
  animation: laptop-float 5.5s ease-in-out infinite;
}

@keyframes laptop-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (min-width: 640px) {
  .hw-hero-laptop {
    width: min(38vw, 520px);
  }
}

@media (min-width: 1024px) {
  .hw-hero-laptop {
    width: min(36vw, 520px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hw-hero-glow,
  .hw-hero-scan,
  .hw-hero-laptop {
    animation: none !important;
  }

  .hw-hero-home .hw-hero-content h1,
  .hw-hero-home .hw-hero-content p,
  .hw-hero-home .hw-hero-cta {
    animation: none !important;
  }
}

.hw-btn-download {
  background: #7ab800;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s;
}

.hw-btn-download:hover {
  background: #689a00;
}

.hw-section-light {
  background: #ffffff;
  color: #333333;
}

.hw-section-gray {
  background: #f5f5f5;
  color: #333333;
}

.hw-link {
  color: #0066cc;
}

.hw-link:hover {
  text-decoration: underline;
}

.hw-feature-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  transition: box-shadow 0.2s;
}

.hw-main .hw-feature-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  color: #333333;
}

.hw-main .hw-feature-card h2,
.hw-main .hw-feature-card h3 {
  color: #0a2340;
}

.hw-main .hw-feature-card p {
  color: #666666;
}

.hw-feature-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hw-breadcrumbs {
  color: #94a3b8;
}

.hw-breadcrumbs a {
  color: #94a3b8;
}

.hw-breadcrumbs a:hover {
  color: #fff;
}

.hw-breadcrumbs-light {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  color: #666;
}

.hw-breadcrumbs-light a {
  color: #0066cc;
}

.hw-breadcrumbs-light a:hover {
  text-decoration: underline;
}

.hw-toc {
  background: #f5f5f5;
  border-bottom: 1px solid #e8e8e8;
}

.hw-toc a {
  color: #0066cc;
}

.hw-toc a:hover {
  text-decoration: underline;
}

.hw-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #0066cc;
}

.hw-heading {
  color: #1a1a1a;
}

.hw-section-title {
  color: #0a2340;
  text-align: center;
}

.hw-card-title {
  color: #0078d4;
  text-align: center;
}

/* Site-wide centered headings */
.hw-hero h1,
.hw-page-hero h1,
.hw-main h1:not(.sr-only),
.hw-main h2:not(.sr-only),
.hw-main h3 {
  text-align: center;
}

.hw-main h2.flex {
  justify-content: center;
}

/* Section heading blocks (full-width above grids) */
.hw-section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.hw-section-head .hw-label {
  display: block;
}

/* Section labels as direct section children */
.hw-main .hw-section-light > div > .hw-label,
.hw-main .hw-section-gray > div > .hw-label {
  text-align: center;
  display: block;
}

/* Footer and tables stay left-aligned */
footer h3,
.hw-data-table th {
  text-align: left;
}

.hw-text-muted {
  color: #666666;
}

.hw-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.hw-data-table th,
.hw-data-table td {
  border: 1px solid #e0e0e0;
  padding: 0.75rem 1rem;
  text-align: left;
}

.hw-data-table th {
  background: #f5f5f5;
  color: #333;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hw-data-table tr:nth-child(even) td {
  background: #fafafa;
}

.hw-window {
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 0.25rem;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.hw-window-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.375rem;
  align-items: center;
}

.hw-window-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ccc;
}

.hw-step-rail {
  counter-reset: step-counter;
}

.hw-step-rail li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 3rem;
}

.hw-step-rail li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #0066cc;
  border: 1px solid #e0e0e0;
  background: #fff;
}

/* Guide troubleshooting cards and callouts */
.hw-main .hw-step-rail > li.hw-feature-card {
  color: #333333;
}

.hw-main .hw-step-rail > li.hw-feature-card > h2 {
  color: #0a2340;
}

.hw-main .hw-step-rail > li.hw-feature-card > p {
  color: #666666;
}

.hw-main .diagnostic-callout {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #f5f5f5;
  border-left: 2px solid #0078d4;
}

.hw-main .diagnostic-callout dt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0078d4;
  margin-bottom: 0.25rem;
  margin-top: 0.75rem;
}

.hw-main .diagnostic-callout dt:first-child {
  margin-top: 0;
}

.hw-main .diagnostic-callout dd {
  color: #444444;
  margin-left: 0;
  line-height: 1.6;
}

.hw-timeline-item {
  position: relative;
  padding-left: 2rem;
}

.hw-timeline-item::before {
  content: '';
  position: absolute;
  left: 0.375rem;
  top: 0.5rem;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #7ab800;
  box-shadow: 0 0 0 3px rgba(122, 184, 0, 0.25);
}

.hw-timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0.6875rem;
  top: 1.25rem;
  bottom: -1.5rem;
  width: 1px;
  background: #e0e0e0;
}

.hw-accordion-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0.25rem;
}

.hw-accordion-item .accordion-trigger {
  color: #333;
}

.hw-accordion-item .accordion-trigger svg {
  color: #0066cc;
}

.hw-stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-family: var(--font-display);
  color: #666;
  border: 1px solid #e8e8e8;
  background: #fafafa;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
}

.hw-stat-bar span span {
  color: #0066cc;
}

.hw-border-accent {
  border-left: 2px solid #0078d4;
  padding-left: 1.25rem;
}

.hw-cta-section {
  background: #f5f5f5;
  border-top: 1px solid #e8e8e8;
}

.hw-img {
  border: 1px solid #e8e8e8;
  border-radius: 0.25rem;
}

.hw-code-block {
  background: #f5f5f5;
  border: 1px solid #e8e8e8;
  border-radius: 0.25rem;
  padding: 1.5rem;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  color: #555;
  overflow-x: auto;
}

.hw-code-block .hw-label-inline {
  color: #0066cc;
  font-family: var(--font-display);
  margin-bottom: 0.75rem;
  display: block;
}

.hw-btn-outline {
  border: 1px solid #ccc;
  color: #333;
  transition: border-color 0.2s, background 0.2s;
}

.hw-btn-outline:hover {
  border-color: #999;
  background: #f9f9f9;
}

/* Language switcher dropdown */
.lang-switcher {
  position: relative;
}

.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-family: var(--font-display);
  color: var(--color-text-primary, #e8edf4);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-border, #1e3a5f);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lang-switcher-btn:hover,
.lang-switcher.is-open .lang-switcher-btn {
  border-color: var(--color-accent, #22d3ee);
  background: rgba(34, 211, 238, 0.08);
}

.lang-switcher-chevron {
  transition: transform 0.2s;
}

.lang-switcher.is-open .lang-switcher-chevron {
  transform: rotate(180deg);
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.375rem 0;
  list-style: none;
  background: #0f1623;
  border: 1px solid #1e3a5f;
  border-radius: 0.375rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 60;
}

.lang-switcher-menu li a {
  display: block;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.lang-switcher-menu li a:hover,
.lang-switcher-menu li[aria-current="true"] a {
  color: #22d3ee;
  background: rgba(34, 211, 238, 0.08);
}

.lang-footer-links a {
  margin: 0 0.25rem;
}

/* Chinese navigation letter-spacing */
body.lang-cn #site-header nav a,
body.lang-cn .hw-toc a {
  letter-spacing: 0.06em;
}

/* Russian button padding */
body.lang-ru .btn-primary,
body.lang-ru .hw-btn-download {
  padding-left: 1.35rem !important;
  padding-right: 1.35rem !important;
}

/* Arabic RTL layout */
html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] #site-header nav,
html[dir="rtl"] .hw-breadcrumbs-light ol,
html[dir="rtl"] .hw-toc ul,
html[dir="rtl"] .lang-footer-links {
  direction: rtl;
}

html[dir="rtl"] .hw-step-rail > li {
  padding-left: 0;
  padding-right: 3rem;
}

html[dir="rtl"] .hw-step-rail > li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .hw-border-accent,
html[dir="rtl"] .diagnostic-callout {
  border-left: none;
  border-right: 2px solid #0078d4;
}

html[dir="rtl"] .lang-switcher-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .flex.gap-3,
html[dir="rtl"] .flex.gap-4 {
  flex-direction: row-reverse;
}
