:root {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;
    --bg-card: #1e2a3a;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: #374151;
  }
  *, *::before, *::after { box-sizing: border-box; }
  body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
  }
  a { color: var(--accent); text-decoration: none; }
  a:hover { color: var(--accent-hover); text-decoration: underline; }

  /* NAVBAR */
  .navbar {
    background-color: #0d1424;
    border-bottom: 1px solid var(--border);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  .navbar-brand {
    max-width: calc(100vw - 108px);
    display: inline-block;
  }
  .navbar-brand img {
    height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
  }
  .navbar-toggler {
    border-color: var(--border);
    flex-shrink: 0;
  }
  .navbar-toggler-icon { filter: invert(1) brightness(2); }
  .navbar-nav .nav-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    transition: color 0.2s;
  }
  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active { color: var(--accent); }

  /* BREADCRUMB */
  .breadcrumb-wrap {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0;
  }
  .breadcrumb { margin: 0; background: transparent; padding: 0; }
  .breadcrumb-item a { color: var(--text-secondary); font-size: 0.82rem; }
  .breadcrumb-item a:hover { color: var(--accent); text-decoration: none; }
  .breadcrumb-item.active { color: var(--accent); font-size: 0.82rem; }
  .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

  /* HERO */
  .hero-section {
    background: linear-gradient(135deg, #0d1424 0%, #1a2540 60%, #0f1e38 100%);
    padding: 72px 0 56px;
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
  }
  .hero-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(59,130,246,0.13) 0%, transparent 70%);
    pointer-events: none;
  }
  .hero-badge {
    display: inline-block;
    background: rgba(59,130,246,0.15);
    color: var(--accent);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
  }
  .hero-section h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 1.1rem;
  }
  .hero-section h1 span { color: var(--accent); }
  .hero-section p.lead {
    color: var(--text-secondary);
    font-size: 1.02rem;
    max-width: 520px;
    margin-bottom: 2rem;
  }
  .btn-primary-cta {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-block;
    transition: background 0.2s, transform 0.15s;
  }
  .btn-primary-cta:hover {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
  }
  .btn-outline-cta {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
    transition: border-color 0.2s, color 0.2s;
  }
  .btn-outline-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
  }

  /* SECTION SHARED */
  section { padding: 60px 0; }
  .section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
  }
  .section-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
  }
  .section-sub {
    color: var(--text-secondary);
    font-size: 0.97rem;
    max-width: 560px;
  }
  .divider { border: none; border-top: 1px solid var(--border); margin: 0; }

  /* FEATURE CARDS */
  .feat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
  }
  .feat-card:hover { border-color: var(--accent); transform: translateY(-3px); }
  .feat-icon {
    width: 46px; height: 46px;
    background: rgba(59,130,246,0.12);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.9rem;
  }
  .feat-card h3 { font-size: 0.97rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.4rem; }
  .feat-card p { font-size: 0.855rem; color: var(--text-secondary); margin: 0; }

  /* STEP INSTALL */
  .steps-alt { background: var(--bg-secondary); }
  .step-alt-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }
  .step-alt-num {
    flex-shrink: 0;
    width: 36px; height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
  }
  .step-alt-body h3 { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.3rem; }
  .step-alt-body p { font-size: 0.855rem; color: var(--text-secondary); margin: 0; }

  /* OS TABS */
  .os-tabs .nav-link {
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.55rem 1.3rem;
    margin-right: 0.5rem;
    transition: all 0.2s;
  }
  .os-tabs .nav-link.active,
  .os-tabs .nav-link:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
  }
  .tab-content-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    margin-top: 1rem;
  }
  .tab-content-box h4 { font-size: 1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.75rem; }
  .tab-content-box ul { color: var(--text-secondary); font-size: 0.875rem; padding-left: 1.3rem; margin: 0; }
  .tab-content-box ul li { margin-bottom: 0.4rem; }
  .tab-content-box p { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 0.75rem; }

  /* SPEC TABLE */
  .spec-table { width: 100%; border-collapse: collapse; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
  .spec-table thead th { background: var(--accent); color: #fff; padding: 0.9rem 1.1rem; font-size: 0.875rem; font-weight: 600; text-align: left; }
  .spec-table tbody tr { border-bottom: 1px solid var(--border); }
  .spec-table tbody tr:last-child { border-bottom: none; }
  .spec-table tbody td { padding: 0.8rem 1.1rem; font-size: 0.855rem; background: var(--bg-card); color: #d1d5db; }
  .spec-table tbody td:first-child { color: var(--text-secondary); font-weight: 500; }
  .spec-table tbody tr:hover td { background: #243047; }

  /* IMG BLOCKS */
  .img-block { border-radius: 12px; overflow: hidden; margin: 1.75rem auto; max-width: 100%; display: block; text-align: center; }
  .img-block img { width: 100%; max-width: 860px; height: auto; display: block; margin: 0 auto; border-radius: 12px; object-fit: contain; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }

  /* CONTENT ARTICLE */
  .content-section h2 { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); margin-top: 2rem; margin-bottom: 0.7rem; }
  .content-section h2:first-child { margin-top: 0; }
  .content-section p { color: #d1d5db; font-size: 0.95rem; margin-bottom: 1rem; }
  .content-section ul { color: #d1d5db; font-size: 0.95rem; padding-left: 1.4rem; margin-bottom: 1rem; }
  .content-section ul li { margin-bottom: 0.4rem; }

  /* PRIVACY NOTICE */
  .privacy-notice {
    background: rgba(59,130,246,0.07);
    border: 1px solid rgba(59,130,246,0.25);
    border-radius: 12px;
    padding: 1.1rem 1.4rem;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
  }
  .privacy-notice i { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }
  .privacy-notice p { margin: 0; font-size: 0.855rem; color: var(--text-secondary); }
  .privacy-notice a { color: var(--accent); font-weight: 600; }

  /* APP BADGE BUTTONS */
  .app-dl-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 1.3rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: border-color 0.2s, color 0.2s;
  }
  .app-dl-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
  .app-dl-btn i { font-size: 1.3rem; color: var(--accent); }

  /* SIDEBAR */
  .sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.4rem;
    margin-bottom: 1.25rem;
  }
  .sidebar-card h4 { font-size: 0.875rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.9rem; }
  .sidebar-links { list-style: none; padding: 0; margin: 0; }
  .sidebar-links li { margin-bottom: 0.55rem; }
  .sidebar-links a { font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 7px; transition: color 0.2s; }
  .sidebar-links a:hover { color: var(--accent); text-decoration: none; }
  .sidebar-links a i { color: var(--accent); font-size: 0.8rem; }

  /* FAQ ACCORDION */
  .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px !important;
    margin-bottom: 0.6rem;
    overflow: hidden;
  }
  .accordion-button {
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 10px !important;
    box-shadow: none;
  }
  .accordion-button:not(.collapsed) {
    background: #1a2540;
    color: var(--accent);
    box-shadow: none;
  }
  .accordion-button::after { filter: invert(1) brightness(1.5); }
  .accordion-body { background: #1a2540; color: #d1d5db; font-size: 0.875rem; padding: 1rem 1.25rem; }

  /* FOOTER */
  footer { background-color: #0a0f1c; border-top: 1px solid var(--border); padding: 56px 0 28px; }
  .footer-logo { height: 36px; width: auto; object-fit: contain; display: block; margin-bottom: 1rem; }
  .footer-desc { font-size: 0.85rem; color: var(--text-muted); max-width: 280px; }
  .footer-heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 1rem; }
  .footer-links { list-style: none; padding: 0; margin: 0; }
  .footer-links li { margin-bottom: 0.6rem; }
  .footer-links a { font-size: 0.875rem; color: var(--text-muted); transition: color 0.2s; }
  .footer-links a:hover { color: var(--accent); text-decoration: none; }
  .footer-bottom { border-top: 1px solid var(--border); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; }
  .footer-bottom p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
  .footer-email { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; }
  .footer-email i { color: var(--accent); }

  @media (max-width: 991px) {
    .navbar-collapse { background: #0d1424; padding: 1rem; border-radius: 8px; margin-top: 0.5rem; border: 1px solid var(--border); }
  }
  @media (max-width: 575px) {
    .hero-section { padding: 48px 0 36px; }
    section { padding: 44px 0; }
  }

/* BR V1.2 mobile logo and Bootstrap collapse protection. */
.navbar > .container,
.navbar > .container-fluid {
  flex-wrap: wrap !important;
  min-width: 0;
}
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  width: auto !important;
  flex: 0 1 auto !important;
  max-width: calc(100% - 64px) !important;
  margin-right: 8px !important;
  white-space: nowrap;
}
.navbar-brand img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(260px, 100%) !important;
  max-height: 44px !important;
  object-fit: contain !important;
}
.navbar-toggler {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  white-space: nowrap;
}
@media (max-width: 576px) {
  .navbar > .container,
  .navbar > .container-fluid {
    flex-wrap: wrap !important;
    min-width: 0;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .navbar-brand {
    flex: 0 1 auto !important;
    max-width: calc(100vw - 108px) !important;
    margin-right: 8px !important;
    min-width: 0 !important;
  }
  .navbar-brand img {
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 108px) !important;
    max-height: 42px !important;
    object-fit: contain !important;
  }
  .navbar > .container > .navbar-collapse,
  .navbar > .container-fluid > .navbar-collapse {
    flex-basis: 100% !important;
    width: 100% !important;
  }
}


/* site-footer-logo-color-safeguard: keep generated footer logos in original colors */
footer .footer-brand img,
footer .footer-logo img,
footer img[src*="logo" i],
footer img[alt*="logo" i],
footer img[class*="brand-logo" i],
footer img[class*="footer-logo" i] {
  filter: none !important;
  -webkit-filter: none !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  display: inline-block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(180px, 100%) !important;
  max-height: 44px !important;
  object-fit: contain !important;
  vertical-align: middle !important;
}
