/* ============================================================
   HUPFAST PAGE CSS — pages/pages.css
   Shared styles for inner pages: Products, Industries, Solutions, About
   Adaptive Light & Dark Mode, Animated Hero Visual, Mobile Responsive
   ============================================================ */

/* ── Inner Page Hero ─────────────────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-height) + 36px);
  padding-bottom: 56px;
  background: var(--bg-hero);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base);
}

.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-pattern) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-pattern) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.page-hero-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse 70% 70% at 20% 50%, rgba(41, 82, 227, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: var(--font-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--badge-text);
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.page-hero-title {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: var(--font-extrabold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.page-hero-title .hl {
  background: var(--brand-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 56ch;
}

/* ── Inner Page Hero Animated Visual ─────────────────────────── */
.page-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.telemetry-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.telemetry-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.telemetry-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.telemetry-status-text {
  font-size: 12px;
  font-weight: var(--font-semibold);
  color: var(--text-secondary);
}

.telemetry-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.telemetry-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  background: var(--bg-tertiary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.telemetry-label {
  color: var(--text-secondary);
}

.telemetry-val {
  color: var(--brand-blue);
  font-weight: var(--font-bold);
}

.telemetry-graph-bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 48px;
  padding: 6px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.t-bar {
  flex: 1;
  background: var(--brand-gradient);
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

/* ── Products Page Editorial Cards ───────────────────────────── */
.products-showcase {
  padding-block: var(--section-py);
  background: var(--bg-primary);
}

.product-editorial-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-7);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.product-editorial-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-editorial-card:nth-child(even) {
  grid-template-columns: 1fr 1.1fr;
}

.product-editorial-card:nth-child(even) .product-editorial-visual {
  order: -1;
}

.product-editorial-num {
  font-size: 64px;
  font-weight: var(--font-extrabold);
  color: var(--border-medium);
  position: absolute;
  top: var(--space-4);
  inset-inline-end: var(--space-6);
  line-height: 1;
  pointer-events: none;
  opacity: 0.4;
}

.product-editorial-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
  z-index: 1;
}

.product-editorial-visual {
  height: 260px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}

/* ── Responsive Inner Pages ──────────────────────────────────── */
@media (max-width: 1024px) {
  .page-hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .telemetry-card {
    max-width: 100%;
  }
  .product-editorial-card,
  .product-editorial-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: var(--space-6);
  }
  .product-editorial-card:nth-child(even) .product-editorial-visual {
    order: 0;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 36px;
  }
  .product-editorial-visual {
    height: 200px;
  }
  .product-editorial-num {
    display: none;
  }
}
