:root {
  --hr-red: #c8102e;
  --hr-red-dark: #9a0c24;
  --hr-red-light: #fde8ec;
  --hr-blue: #171796;
  --hr-blue-dark: #0f105f;
  --hr-blue-light: #e8ecf8;
  --hr-white: #ffffff;
  --text-primary: #1a1a3a;
  --text-muted: #4a4a6a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  width: 100%;
  overflow-x: clip;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  line-height: 1.55;
  min-height: 100vh;
  width: 100%;
  overflow-x: clip;
  background: #f6f8fc;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55vw 45vh at 0% 0%, rgba(23, 23, 150, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50vw 40vh at 100% 100%, rgba(200, 16, 46, 0.08) 0%, transparent 68%),
    linear-gradient(160deg, #eef1f9 0%, #f8f9fd 50%, #faf6f7 100%);
}

a {
  color: var(--hr-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--hr-red);
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.container-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {

  .container,
  .container-wide {
    padding-left: max(28px, env(safe-area-inset-left, 0px));
    padding-right: max(28px, env(safe-area-inset-right, 0px));
  }
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(23, 23, 150, 0.08);
}

.site-header::after {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
      var(--hr-red) 0%, var(--hr-red) 33%,
      var(--hr-white) 33%, var(--hr-white) 66%,
      var(--hr-blue) 66%, var(--hr-blue) 100%);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  position: relative;
}

.site-nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hr-blue-dark);
  background: var(--hr-blue-light);
  border: 2px solid rgba(23, 23, 150, 0.2);
  border-radius: 100px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.site-nav-menu-btn::before {
  content: '☰ ';
}

.site-nav-toggle:focus-visible + .site-nav-menu-btn {
  outline: 2px solid var(--hr-red);
  outline-offset: 2px;
}

.site-nav-toggle:checked + .site-nav-menu-btn {
  background: var(--hr-red-light);
  border-color: var(--hr-red);
  color: var(--hr-red-dark);
}

.site-nav-toggle:checked + .site-nav-menu-btn::before {
  content: '✕ ';
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 160px;
  height: auto;
}

.site-operator {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-muted);
  max-width: 240px;
}

.site-operator strong {
  color: #0f105f;
  font-weight: 700;
}

.site-operator--footer {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #c8d0f0;
  max-width: none;
}

.site-operator--footer strong {
  color: #fff;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  width: 100%;
  flex: 1 1 100%;
}

.nav-links a {
  font-weight: 600;
  color: var(--hr-blue-dark);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo menu"
      "operator operator"
      "nav nav";
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
  }

  .header-brand {
    display: contents;
  }

  .header-brand .logo {
    grid-area: logo;
    align-self: center;
    min-width: 0;
  }

  .header-brand .site-operator {
    grid-area: operator;
    max-width: none;
  }

  .site-nav-menu-btn {
    display: inline-flex;
    grid-area: menu;
    justify-self: end;
    align-self: center;
    margin-left: 0;
    flex-shrink: 0;
  }

  .site-nav-toggle {
    grid-area: menu;
    justify-self: end;
    align-self: center;
  }

  .logo img {
    width: auto;
    max-width: min(160px, 52vw);
  }

  .nav-links {
    display: none;
    grid-area: nav;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    order: unset;
    margin-top: 0;
    padding: 8px 0;
    background: #fff;
    border: 2px solid rgba(23, 23, 150, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(15, 16, 95, 0.12);
  }

  .site-nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(23, 23, 150, 0.08);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

@media (min-width: 901px) {
  .header-brand {
    display: flex;
    flex-direction: column;
  }
}

@media (min-width: 901px) {
  .nav-links {
    width: auto;
    flex: 0 1 auto;
  }
}

.disclaimer-bar {
  background: var(--hr-blue-light);
  border-left: 6px solid var(--hr-red);
  padding: 14px 24px;
  margin: 24px 0;
  font-size: 0.85rem;
  border-radius: 16px;
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 24px 0 8px;
}

.breadcrumb a {
  color: var(--hr-blue);
}

.detail-hero {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 24px;
  background: linear-gradient(135deg, #1a1a52 0%, #252568 55%, #1c1c4a 100%);
  border: 2px solid rgba(200, 16, 46, 0.45);
  border-radius: 24px;
  padding: 32px 36px;
  margin-bottom: 32px;
  color: #eef0ff;
  box-shadow: 0 16px 40px rgba(15, 16, 95, 0.4);
}

.detail-hero > div {
  min-width: 0;
}

.detail-hero-logo {
  flex: 0 0 auto;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-hero-logo img {
  max-width: 110px;
  max-height: 72px;
  object-fit: contain;
}

.detail-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
}

.detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.detail-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(23, 23, 150, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d8dcff;
}

.detail-hero-lead {
  font-size: 1rem;
  line-height: 1.6;
  color: #c8d0f0;
  max-width: 560px;
}

.detail-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: #fff;
  color: var(--hr-blue-dark);
  border: 2px solid #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  background: var(--hr-red-light);
  color: var(--hr-red-dark);
  border-color: var(--hr-red);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
  text-decoration: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.detail-content section {
  margin-bottom: 40px;
}

.detail-content h2 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--hr-blue-dark);
  border-left: 5px solid var(--hr-red);
  padding-left: 18px;
  margin-bottom: 18px;
}

.detail-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hr-red);
  margin: 22px 0 10px;
}

.detail-content p {
  margin-bottom: 14px;
  font-size: 0.98rem;
  line-height: 1.65;
}

.detail-content ul,
.detail-content ol {
  margin: 12px 0 18px 24px;
  font-size: 0.96rem;
}

.detail-content li {
  margin: 8px 0;
}

.info-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(23, 23, 150, 0.12);
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(23, 23, 150, 0.06);
}

.info-panel.highlight {
  border-left: 5px solid var(--hr-red);
  background: linear-gradient(135deg, #fff 0%, var(--hr-red-light) 120%);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(23, 23, 150, 0.12);
  margin: 16px 0;
}

.spec-table th,
.spec-table td {
  border: 1px solid rgba(23, 23, 150, 0.1);
  padding: 12px 16px;
  text-align: left;
}

.spec-table th {
  background: var(--hr-blue-light);
  color: var(--hr-blue-dark);
  font-weight: 700;
  width: 38%;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.pros-cons ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pros-cons li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.92rem;
}

.pros-cons--pro li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--hr-blue);
  font-weight: 800;
}

.pros-cons--con li::before {
  content: "−";
  position: absolute;
  left: 0;
  color: var(--hr-red);
  font-weight: 800;
}

.other-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.other-platforms a {
  font-size: 0.85rem;
  padding: 8px 16px;
  background: var(--hr-blue-light);
  border-radius: 100px;
  border: 1px solid rgba(23, 23, 150, 0.15);
}

.other-platforms a:hover {
  background: var(--hr-red-light);
  text-decoration: none;
}

.regulators-bar {
  background: linear-gradient(180deg, #141438 0%, #0c0c2e 100%);
  padding: 36px 0 40px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.regulators-title {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9aa8d4;
  margin-bottom: 24px;
}

.regulators-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

.regulators-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 72px;
  padding: 14px 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}

.regulators-logos a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
}

.regulators-logos img {
  max-width: 130px;
  max-height: 44px;
  object-fit: contain;
}

.regulators-note {
  text-align: center;
  font-size: 0.72rem;
  color: #7a88b8;
  margin-top: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 28px;
}

.site-footer {
  background: linear-gradient(180deg, var(--hr-blue-dark) 0%, #0a0a3a 100%);
  margin-top: 0;
  padding: 40px 0 28px;
  color: #e8ecf8;
  border-top: 4px solid var(--hr-red);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  max-width: 640px;
  justify-content: flex-end;
}

.footer-links a {
  color: #b8c4f0;
}

.footer-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  text-align: center;
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.35) 0%, rgba(200, 16, 46, 0.2) 100%);
  border: 2px solid #c8102e;
  border-radius: 14px;
  padding: 16px 24px;
  margin: 0 28px 28px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  box-shadow: 0 4px 20px rgba(200, 16, 46, 0.25);
}

.footer-notice-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px;
  background: #c8102e;
  border-radius: 8px;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.footer-notice-sep {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.copyright {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  font-size: 0.8rem;
}

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

@media (min-width: 721px) {
  .detail-hero {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px 32px;
  }

  .detail-hero-logo {
    flex: 0 0 140px;
    width: auto;
    max-width: none;
    margin: 0;
  }
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1em 0;
  border-radius: 16px;
}

.table-scroll table {
  min-width: 480px;
}

@media (max-width: 720px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 24px 20px;
  }

  .detail-hero-cta {
    flex-direction: column;
  }

  .detail-hero-cta .btn-primary,
  .detail-hero-cta .btn-secondary {
    width: 100%;
    text-align: center;
  }
}
