/* 88i Official Unified 8-Lobby Helpdesk - Mobile-First Uncropped Visuals v3.0 */
:root {
  --h8i-bg: #090f1d;
  --h8i-bg-elev: #10192e;
  --h8i-card: #15203b;
  --h8i-border: rgba(251, 191, 36, 0.28);
  --h8i-border-soft: rgba(56, 189, 248, 0.2);
  --h8i-text: #f8fafc;
  --h8i-muted: #cbd5e1;
  --h8i-gold: #fbbf24;
  --h8i-gold-bright: #fde047;
  --h8i-gold-ink: #171002;
  --h8i-emerald: #10b981;
  --h8i-cyan: #06b6d4;
  --h8i-crimson: #ef4444;
  --h8i-radius-xl: 20px;
  --h8i-radius-lg: 15px;
}

*, *::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 18% 0%, rgba(16, 185, 129, 0.14) 0%, transparent 40%),
              radial-gradient(circle at 85% 6%, rgba(239, 68, 68, 0.15) 0%, transparent 42%),
              var(--h8i-bg);
  color: var(--h8i-text);
  line-height: 1.66;
  font-size: 16px;
  padding-bottom: 88px;
}

/* Strict Mobile-Safe Image Rule: Always preserve intrinsic aspect ratio so '88i' text NEVER crops! */
img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

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

a:hover {
  color: var(--h8i-gold-bright);
}

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

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

.h8i-header {
  position: sticky;
  top: 0;
  z-index: 95;
  background: rgba(9, 15, 29, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--h8i-border);
}

.h8i-header-bar {
  max-width: 1160px;
  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: 2px solid var(--h8i-gold);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.4);
}

.h8i-brand-name {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--h8i-gold);
  letter-spacing: 0.02em;
}

.h8i-brand-tag {
  font-size: 0.72rem;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.22));
  border: 1px solid rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
  padding: 2px 9px;
  border-radius: 999px;
  font-weight: 700;
}

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

.h8i-menu a {
  color: #e2e8f0;
  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(251, 191, 36, 0.16);
  color: var(--h8i-gold);
}

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

.h8i-crumbs {
  max-width: 1160px;
  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;
}

.h8i-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 18px 42px;
}

/* Showcase Hero */
.h8i-hero {
  background: radial-gradient(circle at 82% 28%, rgba(239, 68, 68, 0.26), transparent 52%),
              radial-gradient(circle at 18% 80%, rgba(16, 185, 129, 0.2), transparent 50%),
              linear-gradient(140deg, #131f3a 0%, #0d1528 100%);
  border: 1.5px solid var(--h8i-border);
  border-radius: var(--h8i-radius-xl);
  padding: 28px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: center;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.52);
  margin-bottom: 30px;
}

.h8i-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fde68a;
  font-size: 0.81rem;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 12px;
}

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

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

.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, #fde047 0%, #f59e0b 100%);
  color: var(--h8i-gold-ink) !important;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.98rem;
  padding: 13px 20px;
  border-radius: 11px;
  border: 1px solid #fef08a;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

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

.h8i-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7 !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 11px;
  border: 1px solid rgba(16, 185, 129, 0.55);
}

.h8i-btn-dark:hover {
  background: rgba(16, 185, 129, 0.24);
}

.h8i-hero-art {
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(251, 191, 36, 0.65);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.55);
}

/* Helpdesk Diagnostic Bar */
.h8i-diag-panel {
  background: linear-gradient(90deg, #111d35 0%, #162644 100%);
  border: 1px solid var(--h8i-border-soft);
  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.14rem;
  color: var(--h8i-gold);
}

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

.h8i-diag-btn {
  background: #0b1324;
  color: #e2e8f0;
  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-gold);
  color: var(--h8i-gold-ink);
  border-color: #fef08a;
}

.h8i-diag-output {
  background: rgba(8, 13, 25, 0.78);
  border-left: 4px solid var(--h8i-emerald);
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #f1f5f9;
}

.h8i-section {
  margin-bottom: 34px;
}

.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.48rem, 2.4vw, 1.95rem);
}

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

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

/* Responsive Lobby Grids (4-col, 3-col, 2-col) */
.h8i-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.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;
}

.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(-3px);
  border-color: var(--h8i-gold);
}

.h8i-card-sports { border-top: 3px solid var(--h8i-emerald); }
.h8i-card-ocean  { border-top: 3px solid var(--h8i-cyan); }
.h8i-card-arena  { border-top: 3px solid #f97316; }
.h8i-card-fest   { border-top: 3px solid var(--h8i-crimson); }
.h8i-card-jade   { border-top: 3px solid #22c55e; }
.h8i-card-violet { border-top: 3px solid #a855f7; }

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

.h8i-card-body h3 {
  margin: 0;
  font-size: 1.04rem;
  color: #ffffff;
  line-height: 1.32;
}

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

.h8i-chip {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.42);
  padding: 2px 9px;
  border-radius: 999px;
}

.h8i-chip-green {
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
}

.h8i-chip-cyan {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.18);
  border-color: rgba(6, 182, 212, 0.45);
}

/* NEW: 8 SEPARATE Individual Mobile 9:16 Phone Cards (Zero Cropping, Crisp on Mobile!) */
.h8i-strip-box {
  background: var(--h8i-bg-elev);
  border: 1px solid var(--h8i-border);
  border-radius: var(--h8i-radius-lg);
  padding: 22px;
  margin-bottom: 34px;
}

.h8i-phone-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.h8i-phone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 7px;
  transition: transform 0.18s ease;
}

.h8i-phone-card:hover {
  transform: translateY(-4px);
}

.h8i-phone-bezel {
  width: 100%;
  background: #070b14;
  border-radius: 16px;
  padding: 5px 4px 8px;
  border: 2px solid var(--h8i-gold);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45);
  position: relative;
}

.h8i-phone-bezel::before {
  content: "";
  display: block;
  width: 34%;
  height: 4px;
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  margin: 0 auto 5px;
}

.h8i-phone-bezel img {
  border-radius: 11px;
  aspect-ratio: 9 / 16;
  width: 100%;
  height: auto;
}

.h8i-rim-emerald { border-color: #10b981; }
.h8i-rim-cyan    { border-color: #06b6d4; }
.h8i-rim-orange  { border-color: #f59e0b; }
.h8i-rim-gold    { border-color: #fbbf24; }
.h8i-rim-crimson { border-color: #ef4444; }
.h8i-rim-pink    { border-color: #ec4899; }
.h8i-rim-jade    { border-color: #22c55e; }
.h8i-rim-violet  { border-color: #a855f7; }

.h8i-phone-caption {
  font-size: 0.78rem;
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
  line-height: 1.25;
}

/* Subpage Desktop + Mobile Dual Showcase Layout */
.h8i-lobby-showcase {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 22px;
  align-items: center;
  margin-bottom: 24px;
}

.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-gold);
  border-radius: 12px;
  padding: 16px 18px;
}

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

.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(251, 191, 36, 0.2);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.h8i-faq-cat-head span {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6ee7b7;
  font-weight: 800;
}

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

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

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

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

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

.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: #1a294b;
  color: var(--h8i-gold);
  text-align: left;
  padding: 12px 14px;
}

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

.h8i-checksum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #080d1a;
  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: #fde68a;
  margin-top: 14px;
}

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

.h8i-footer {
  background: #060a14;
  border-top: 1px solid var(--h8i-border);
  padding: 32px 18px 40px;
  color: var(--h8i-muted);
  font-size: 0.88rem;
}

.h8i-footer-inner {
  max-width: 1160px;
  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: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

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

.h8i-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: rgba(9, 15, 29, 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;
}

/* Tablet Breakpoint */
@media (max-width: 1040px) {
  .h8i-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .h8i-phone-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

/* Mobile Breakpoint: Crisp 2-Column Phone Cards & Full-Width Uncropped 88i Banners */
@media (max-width: 780px) {
  .h8i-hero,
  .h8i-grid-3,
  .h8i-grid-2,
  .h8i-lobby-showcase {
    grid-template-columns: 1fr;
  }
  .h8i-lobby-showcase .h8i-phone-card {
    max-width: 240px;
    margin: 0 auto;
  }
  .h8i-hero {
    padding: 18px;
  }
  .h8i-nav-toggle {
    display: inline-flex;
  }
  .h8i-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0f182d;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 16px;
    border-bottom: 1px solid var(--h8i-border);
  }
  .h8i-menu.h8i-shown {
    display: flex;
  }
}

@media (max-width: 560px) {
  .h8i-grid-4 {
    grid-template-columns: 1fr;
  }
  .h8i-phone-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .h8i-strip-box {
    padding: 16px;
  }
}

/* Reverse-Silo PageRank Funnel Additions */
.h8i-silo-lead {
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.12) 0%, rgba(16, 25, 46, 0.92) 100%);
  border: 1px solid var(--h8i-border);
  border-left: 4px solid var(--h8i-gold);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 22px;
  color: #f8fafc;
  font-size: 0.95rem;
}

.h8i-menu .h8i-nav-jump,
.h8i-footer-links .h8i-foot-jump {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  font-family: inherit;
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 9px;
  cursor: pointer;
}

.h8i-menu .h8i-nav-jump:hover,
.h8i-menu .h8i-nav-jump.h8i-cur,
.h8i-footer-links .h8i-foot-jump:hover {
  background: rgba(251, 191, 36, 0.16);
  color: var(--h8i-gold);
}

.h8i-js-cardlink {
  cursor: pointer;
}
