/* ==========================================================================
   QT ANALYTICS — PREMIUM STAGING DESIGN SYSTEM (WEBFLOW ALIGNED)
   ========================================================================== */

:root {
  --bg-deep: #060a14;
  --bg-navy: #0b1329;
  --bg-slate: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 36, 66, 0.85);

  --cyan-bright: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.4);
  --teal-accent: #0ea5e9;
  --emerald-accent: #10b981;
  --purple-accent: #a855f7;
  --amber-accent: #f59e0b;

  --text-pure: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-subtle: rgba(0, 240, 255, 0.15);
  --border-bright: rgba(0, 240, 255, 0.45);
  --border-emerald: rgba(16, 185, 129, 0.4);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #0d1b3e 0%, var(--bg-deep) 60%);
  min-height: 100vh;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-pure);
}

p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.text-cyan { color: var(--cyan-bright); }
.text-emerald { color: var(--emerald-accent); }
.text-purple { color: var(--purple-accent); }
.text-muted { color: var(--text-muted); }

/* Layout Containers */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-spacing {
  padding: 7rem 0;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 10, 20, 0.75);
  border-bottom: 1px solid var(--border-subtle);
  height: 74px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo-img {
  height: 38px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--cyan-bright);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   BUTTONS & CTAs (BIG, BOLD, DISTINCTIVE)
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-lg {
  font-size: 1.15rem;
  padding: 1.15rem 2.6rem;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #0284c7 100%);
  color: #040914;
  box-shadow: 0 4px 24px var(--cyan-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 240, 255, 0.6);
  color: #000;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-bright);
  color: var(--text-pure);
}

.btn-secondary:hover {
  background: rgba(0, 240, 255, 0.12);
  border-color: var(--cyan-bright);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
/* ==========================================================================
   SECTION 1 — HERO & 2-COLUMN SPLIT (SIDE-BY-SIDE NO OVERLAP)
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  padding-bottom: 6rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-split-container {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Left Column: Content */
.hero-content-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan-bright);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.pulse-dot-cyan {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan-bright);
  box-shadow: 0 0 10px var(--cyan-bright);
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 1.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  line-height: 1.65;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

/* Throttled Telemetry Readout Pill */
.hero-telemetry-pill {
  width: 100%;
  max-width: 560px;
  background: rgba(11, 19, 41, 0.75);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-left: 3px solid var(--emerald-accent);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.telemetry-pill-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.telemetry-pill-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.telemetry-pill-tag {
  font-family: monospace;
  font-size: 0.68rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  margin-left: auto;
}

.telemetry-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.telemetry-metrics-row .t-item {
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.telemetry-metrics-row .t-item strong {
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--cyan-bright);
  margin-top: 2px;
}

/* Right Column: Dedicated Radar Visual */
.hero-visual-col {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.radar-visual-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 50%, rgba(14, 28, 60, 0.5) 0%, rgba(6, 10, 20, 0.8) 70%);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 240, 255, 0.12);
  overflow: hidden;
}

#radar-canvas {
  width: 100%;
  height: 100%;
  display: block;
  transform: translateZ(0); /* Force GPU compositing */
}

/* HUD Brackets & Status Overlay */
.radar-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(0, 240, 255, 0.6);
  border-style: solid;
}

.hud-bracket.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.hud-bracket.tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.hud-bracket.bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.hud-bracket.br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

.radar-hud-status {
  position: absolute;
  top: 14px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan-bright);
  background: rgba(6, 10, 20, 0.7);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.3);
}

.radar-hud-bearing {
  position: absolute;
  bottom: 14px;
  left: 32px;
  font-family: monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  background: rgba(6, 10, 20, 0.7);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition);
}

.scroll-hint:hover {
  color: var(--cyan-bright);
}

.scroll-arrow {
  animation: bounce-down 2s infinite;
}

@keyframes bounce-down {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* ==========================================================================
   SECTION 2 — PRODUCTS / OUR TECHNOLOGY (SPACIOUS & BIG BUTTONS)
   ========================================================================== */

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 4.5rem auto;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  margin-bottom: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

/* Collapse to 1-col on narrow viewport (the existing mobile media query still fires) */
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 901px) and (max-width: 1199px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan-bright), transparent);
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(0, 240, 255, 0.15);
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.product-icon-wrap img {
  width: 44px;
  height: 44px;
}

.product-title {
  font-size: 1.45rem;
  margin-bottom: 0.8rem;
}

.product-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.product-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-features li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.product-features li span {
  color: var(--cyan-bright);
}

.product-btn {
  width: 100%;
  padding: 0.95rem 1.4rem;
  font-size: 0.98rem;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.product-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  margin-top: auto;
}

.btn-quick-specs {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  text-align: center;
  transition: var(--transition);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

.btn-quick-specs:hover {
  color: var(--cyan-bright);
  text-decoration-color: var(--cyan-bright);
}

/* ── Energy card: amber / orange accent ─────────────────────────────────── */
.product-card.accent-energy::before {
  background: linear-gradient(90deg, transparent, #ff7c3a, transparent);
}
.product-card.accent-energy:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 124, 58, 0.18);
  border-color: rgba(255, 124, 58, 0.45);
}
.product-card.accent-energy .product-features li span { color: #ff7c3a; }
.product-card.accent-energy .product-icon-wrap {
  background: rgba(255, 124, 58, 0.06);
  border-color: rgba(255, 124, 58, 0.25);
}

/* ── Holographic card: violet / purple accent ──────────────────────────── */
.product-card.accent-holo::before {
  background: linear-gradient(90deg, transparent, #a855f7, transparent);
}
.product-card.accent-holo:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
}
.product-card.accent-holo .product-features li span { color: #a855f7; }
.product-card.accent-holo .product-icon-wrap {
  background: rgba(168, 85, 247, 0.06);
  border-color: rgba(168, 85, 247, 0.25);
}

/* ==========================================================================
   SECTION 3 — OFFERINGS & PAYWALL FRAMEWORK (ARKHAM & BOUNTY)
   ========================================================================== */

.paywalls-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.tier-pillar-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.4rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.tier-pillar-card.featured {
  border-color: var(--border-bright);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(11, 19, 41, 0.85) 100%);
  box-shadow: 0 12px 35px rgba(0, 240, 255, 0.12);
}

.tier-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.18);
}

.tier-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
}

.tier-badge.cyan {
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan-bright);
  border: 1px solid var(--border-bright);
}

.tier-badge.purple {
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple-accent);
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.tier-title {
  font-size: 1.85rem;
  margin-bottom: 0.6rem;
}

.tier-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Free vs Pro split inside tier cards */
.tier-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-bottom: 2.4rem;
  flex-grow: 1;
}

.tier-level-box {
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
}

.tier-level-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.level-name {
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.level-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--cyan-bright);
}

.level-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.level-bullets li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.tier-action-btn {
  width: 100%;
  padding: 1.05rem 1.6rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   SECTION 4 — FINAL CTA & WORK WITH US
   ========================================================================== */

.cta-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0a142c 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.cta-box {
  max-width: 820px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.cta-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.2rem;
}

.cta-sub {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.8rem;
}

.cta-buttons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--bg-deep);
  padding: 4rem 0 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--cyan-bright);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.system-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--emerald-accent);
  box-shadow: 0 0 8px var(--emerald-accent);
}

/* Modal / Drawer for Capability Details */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--bg-navy);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--cyan-glow);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-split-container {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }
  .hero-content-col {
    align-items: center;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-telemetry-pill {
    margin: 0 auto;
  }
  .radar-visual-frame {
    max-width: 480px;
  }
}

@media (max-width: 768px) {
  .section-spacing {
    padding: 4.5rem 0;
  }
  .nav-menu {
    display: none;
  }
  .hero-section {
    padding-top: 100px;
  }
  .products-grid, .paywalls-container {
    grid-template-columns: 1fr;
  }
  .footer-top, .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
