/* 88i Official AAA 3D Helpdesk & App Suite - Midnight Petrol, Ice Cyan & Burnished Gold */
:root {
  --h8i-bg: #07131c;
  --h8i-bg-elev: #0c1d2b;
  --h8i-card: #102435;
  --h8i-card-alt: #142c40;
  --h8i-border: rgba(125, 211, 252, 0.24);
  --h8i-border-soft: rgba(148, 163, 184, 0.16);
  --h8i-text: #f1f7fc;
  --h8i-muted: #9fb8cc;
  --h8i-cyan: #7dd3fc;
  --h8i-cyan-deep: #38bdf8;
  --h8i-cyan-ink: #04131d;
  --h8i-gold: #f4c553;
  --h8i-radius-xl: 18px;
  --h8i-radius-lg: 14px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 50% 0%, #102a3f 0%, var(--h8i-bg) 50%);
  color: var(--h8i-text);
  line-height: 1.66;
  font-size: 16px;
  padding-bottom: 88px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

a {
  color: var(--h8i-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: #bae6fd;
}

.h8i-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--h8i-cyan);
  color: var(--h8i-cyan-ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 800;
  z-index: 999;
}

.h8i-skip:focus {
  left: 12px;
}

/* Sticky Masthead */
.h8i-header {
  position: sticky;
  top: 0;
  z-index: 95;
  background: rgba(7, 19, 28, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--h8i-border);
}

.h8i-header-bar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.h8i-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.h8i-brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--h8i-gold);
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.25);
}

.h8i-brand-name {
  font-size: 1.28rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.h8i-brand-tag {
  font-size: 0.72rem;
  background: rgba(125, 211, 252, 0.14);
  border: 1px solid var(--h8i-border);
  color: var(--h8i-cyan);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}

.h8i-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.h8i-menu a {
  color: #dbeafe;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 9px;
}

.h8i-menu a:hover,
.h8i-menu a[aria-current="page"] {
  background: rgba(125, 211, 252, 0.16);
  color: var(--h8i-cyan);
}

.h8i-nav-toggle {
  display: none;
  background: var(--h8i-card);
  color: var(--h8i-cyan);
  border: 1px solid var(--h8i-border);
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* Breadcrumb Trail */
.h8i-crumbs {
  max-width: 1140px;
  margin: 12px auto 0;
  padding: 0 18px;
}

.h8i-crumbs ol {
  list-style: none;
  margin: 0;
  padding: 7px 14px;
  background: var(--h8i-bg-elev);
  border: 1px solid var(--h8i-border-soft);
  border-radius: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--h8i-muted);
}

.h8i-crumbs a {
  text-decoration: none;
  font-weight: 600;
}

/* Main Shell */
.h8i-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 22px 18px 42px;
}

/* Mature AAA Hero (Left CTA stack + Right photorealistic hypercar/HUD 88i banner) */
.h8i-hero {
  background: radial-gradient(circle at 80% 25%, rgba(56, 189, 248, 0.18), transparent 55%),
              linear-gradient(145deg, #0d2130 0%, #07141e 100%);
  border: 1px solid var(--h8i-border);
  border-radius: var(--h8i-radius-xl);
  padding: 30px;
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 28px;
  align-items: center;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
  margin-bottom: 30px;
}

.h8i-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.4);
  color: var(--h8i-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.h8i-hero h1 {
  font-size: clamp(1.58rem, 2.6vw, 2.16rem);
  line-height: 1.25;
  margin: 0 0 12px;
  color: #ffffff;
}

.h8i-hero p {
  margin: 0 0 20px;
  color: var(--h8i-muted);
  font-size: 0.98rem;
}

.h8i-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.h8i-btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: linear-gradient(180deg, #93ddfd 0%, #38bdf8 100%);
  color: var(--h8i-cyan-ink) !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1px solid #bae6fd;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.28);
}

.h8i-btn-gold:hover {
  filter: brightness(1.05);
}

.h8i-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--h8i-cyan) !important;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.96rem;
  padding: 12px 22px;
  border-radius: 10px;
  border: 1px solid rgba(125, 211, 252, 0.38);
}

.h8i-btn-dark:hover {
  background: rgba(125, 211, 252, 0.1);
}

.h8i-hero-art {
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(125, 211, 252, 0.45);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6);
}

/* Interactive Diagnostic Console */
.h8i-diag-panel {
  background: linear-gradient(90deg, #0d202f 0%, #122a3d 100%);
  border: 1px solid var(--h8i-border);
  border-radius: var(--h8i-radius-lg);
  padding: 20px 22px;
  margin-bottom: 32px;
}

.h8i-diag-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.h8i-diag-top h2 {
  margin: 0;
  font-size: 1.12rem;
  color: var(--h8i-cyan);
}

.h8i-diag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.h8i-diag-btn {
  background: #081520;
  color: #dbeafe;
  border: 1px solid var(--h8i-border-soft);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}

.h8i-diag-btn.h8i-on {
  background: var(--h8i-cyan);
  color: var(--h8i-cyan-ink);
  border-color: #bae6fd;
}

.h8i-diag-output {
  background: rgba(5, 13, 20, 0.72);
  border-left: 4px solid var(--h8i-cyan);
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #e2f1fc;
}

/* Section Headers */
.h8i-section {
  margin-bottom: 36px;
}

.h8i-sec-title {
  margin-bottom: 18px;
}

.h8i-sec-title h1,
.h8i-sec-title h2 {
  margin: 0 0 6px;
  color: #ffffff;
  line-height: 1.3;
}

.h8i-sec-title h1 {
  font-size: clamp(1.5rem, 2.4vw, 1.98rem);
}

.h8i-sec-title h2 {
  font-size: clamp(1.24rem, 2vw, 1.54rem);
}

.h8i-sec-title p {
  margin: 0;
  color: var(--h8i-muted);
  font-size: 0.95rem;
}

/* Grids */
.h8i-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.h8i-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* 4-Column Tall Portrait Mobile HUD Grid (Matches s2.png in image_3c8808.jpg) */
.h8i-phone-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.h8i-phone-card {
  background: var(--h8i-card);
  border: 1px solid var(--h8i-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.42);
}

.h8i-phone-card figcaption {
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #e2f1fc;
  text-align: center;
  border-top: 1px solid var(--h8i-border-soft);
}

.h8i-card {
  background: var(--h8i-card);
  border: 1px solid var(--h8i-border-soft);
  border-radius: var(--h8i-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.h8i-card:hover {
  transform: translateY(-2px);
  border-color: var(--h8i-border);
}

.h8i-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.h8i-card-body h3 {
  margin: 0;
  font-size: 1.08rem;
  color: #ffffff;
}

.h8i-card-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--h8i-muted);
}

.h8i-chip {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--h8i-cyan);
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.32);
  padding: 2px 9px;
  border-radius: 999px;
}

/* Horizontal Left-Image + Right-Content Featured Article Rows (Matches s3.png in image_3c8808.jpg) */
.h8i-media-stack {
  display: grid;
  gap: 18px;
}

.h8i-media-row {
  background: var(--h8i-card);
  border: 1px solid var(--h8i-border-soft);
  border-radius: var(--h8i-radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: center;
}

.h8i-media-row figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h8i-media-copy {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h8i-media-copy h3 {
  margin: 0;
  font-size: 1.14rem;
  color: #ffffff;
}

.h8i-media-copy p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--h8i-muted);
}

/* Steps & Categorized Helpdesk Q&A */
.h8i-steps {
  display: grid;
  gap: 14px;
}

.h8i-step {
  background: var(--h8i-card);
  border: 1px solid var(--h8i-border-soft);
  border-left: 4px solid var(--h8i-cyan);
  border-radius: 12px;
  padding: 16px 18px;
}

.h8i-step h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
  color: var(--h8i-cyan);
}

.h8i-step p {
  margin: 0;
  color: var(--h8i-muted);
  font-size: 0.93rem;
}

.h8i-faq-cat {
  background: var(--h8i-bg-elev);
  border: 1px solid var(--h8i-border-soft);
  border-radius: var(--h8i-radius-lg);
  padding: 20px;
  margin-bottom: 18px;
}

.h8i-faq-cat-head {
  border-bottom: 1px solid rgba(125, 211, 252, 0.18);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.h8i-faq-cat-head span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--h8i-cyan);
  font-weight: 700;
}

.h8i-faq-cat-head h3 {
  margin: 3px 0 0;
  font-size: 1.08rem;
  color: #ffffff;
}

.h8i-qa-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 11px 0;
}

.h8i-qa-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.h8i-qa-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #f1f7fc;
  font-size: 0.96rem;
}

.h8i-qa-item p {
  margin: 8px 0 0;
  color: var(--h8i-muted);
  font-size: 0.92rem;
}

/* Technical Manifest Code Block (Matches s4.png bottom JSON/config panel!) */
.h8i-code-card {
  background: #061018;
  border: 1px solid var(--h8i-border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 16px;
}

.h8i-code-head {
  background: #0c1f2e;
  padding: 10px 16px;
  border-bottom: 1px solid var(--h8i-border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--h8i-cyan);
  font-weight: 700;
}

.h8i-code-pre {
  margin: 0;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.83rem;
  line-height: 1.58;
  color: #bae6fd;
  overflow-x: auto;
}

/* Spec Table & Checksum */
.h8i-table-box {
  overflow-x: auto;
  border: 1px solid var(--h8i-border-soft);
  border-radius: 12px;
  background: var(--h8i-card);
}

.h8i-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.h8i-table th {
  background: #0e2436;
  color: var(--h8i-cyan);
  text-align: left;
  padding: 12px 14px;
}

.h8i-table td {
  padding: 11px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--h8i-text);
}

.h8i-checksum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #061018;
  border: 1px solid var(--h8i-border);
  padding: 12px 16px;
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  color: var(--h8i-cyan);
  margin-top: 14px;
}

.h8i-copy {
  background: var(--h8i-cyan);
  color: var(--h8i-cyan-ink);
  border: none;
  border-radius: 7px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
}

/* Footer & Bottom Sticky Bar */
.h8i-footer {
  background: #040b11;
  border-top: 1px solid var(--h8i-border);
  padding: 32px 18px 40px;
  color: var(--h8i-muted);
  font-size: 0.88rem;
}

.h8i-footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}

.h8i-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-bottom: 14px;
}

.h8i-footer-links a {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 600;
}

.h8i-footer-links a:hover {
  color: var(--h8i-cyan);
}

.h8i-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(7, 19, 28, 0.96);
  border-top: 1px solid var(--h8i-border);
  padding: 10px 16px;
}

.h8i-bottom-inner {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.h8i-bottom-inner .h8i-btn-gold,
.h8i-bottom-inner .h8i-btn-dark {
  padding: 10px 16px;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .h8i-hero,
  .h8i-grid-3,
  .h8i-grid-2,
  .h8i-media-row {
    grid-template-columns: 1fr;
  }
  .h8i-phone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .h8i-hero {
    padding: 20px;
  }
  .h8i-nav-toggle {
    display: inline-flex;
  }
  .h8i-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0a1b28;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 16px;
    border-bottom: 1px solid var(--h8i-border);
  }
  .h8i-menu.h8i-shown {
    display: flex;
  }
}
