/* Technology subpage – extends style.css (index2 design system) */
.nav-link.active { color: var(--accent-cyan); }

/* Hero */
.hero-section .hero-container { grid-template-columns: 1.1fr 1fr; }
.tech-hero-visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 340px; padding: 32px;
  background: radial-gradient(circle at 50% 50%, #0e223f 0%, #081324 60%, #050c18 100%);
  border: 1px solid #192f4e; border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), var(--shadow-glow);
}
.tech-hero-img {
  max-height: 290px; width: auto; object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.45));
  animation: tp-float 6s ease-in-out infinite;
}
@keyframes tp-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* TOC strip */
.tech-toc { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-toc a {
  padding: 8px 16px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 600; color: var(--text-muted); background: rgba(11, 21, 38, 0.8);
}
.tech-toc a:hover { border-color: var(--accent-cyan); color: #fff; background: rgba(16, 30, 54, 0.9); transform: translateY(-2px); }

/* Section scroll offsets */
.section { scroll-margin-top: 70px; }
.section.diagram-section, .section.products-section,
.section.promo-film-section, .section.editions-section { padding: 70px 0; }

/* Cards (same language as product-card / edition-card) */
.tp-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 26px; transition: all .3s ease; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.tp-card:hover {
  background: var(--bg-card-hover); border-color: var(--accent-cyan); transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 15px rgba(56, 189, 248, 0.1);
}
.tp-card-title { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.tp-card-text { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

.tp-lead-card {
  background: linear-gradient(135deg, #0a1629 0%, #07101e 100%); border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg); padding: 36px 40px; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.tp-lead-card p { font-size: 1.1rem; line-height: 1.75; color: var(--text-muted); max-width: 980px; }
.tp-lead-card strong { color: #fff; }

.tp-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--radius-md); background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25); color: var(--accent-cyan); margin-bottom: 16px; flex-shrink: 0;
}

.tp-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tp-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tp-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 24px; }

/* Compare */
.tp-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.tp-vs { align-self: center; font-weight: 800; color: var(--text-dim); letter-spacing: .12em; }
.tp-list { list-style: none; display: grid; gap: 12px; margin-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); padding-top: 16px; }
.tp-list li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--text-muted); }
.tp-list-no li::before { content: "✕"; position: absolute; left: 0; color: #f87171; font-weight: 700; }
.tp-list-yes li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-emerald); font-weight: 700; }
.tp-compare-ncm { border-color: var(--accent-cyan); box-shadow: var(--shadow-glow); }
.tp-compare-ncm .tp-card-title { color: var(--accent-cyan); }

/* Flow */
.tp-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; align-items: stretch; }
.tp-arrow { align-self: center; font-size: 1.6rem; color: var(--accent-cyan); }
.tp-tag { display: inline-block; font-weight: 800; font-size: 1.9rem; margin-bottom: 8px; letter-spacing: -.02em;
  background: linear-gradient(135deg, #38bdf8 0%, #0284c7 60%, #60a5fa 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tp-sleep { display: flex; align-items: center; gap: 20px; margin-top: 24px; border-style: dashed; }
.tp-sleep .tp-icon { margin-bottom: 0; }
.tp-sleep .tp-card-title { margin-bottom: 4px; }

/* Specs */
.tp-spec { display: flex; flex-direction: column; gap: 6px; }
.tp-spec-k { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-cyan); font-weight: 700; }
.tp-spec-v { font-weight: 600; font-size: 1.02rem; color: #fff; }

/* Publications */
.tp-pub { gap: 0; }
.tp-pub .edition-header { margin-bottom: 14px; }
.tp-pub .edition-title { font-size: 1.1rem; }
.tp-pub-meta { align-self: flex-start; margin-bottom: 16px; }
.tp-pub .tp-card-text { margin-bottom: 24px; flex: 1; }

/* CTA */
.tp-cta-section { padding: 40px 0 80px; background: var(--bg-dark); }
.tp-cta { background: radial-gradient(circle at 80% 50%, #0e223f 0%, #081324 60%, #050c18 100%); border-color: #192f4e; }
.tp-cta .tech-mesh-2 { height: 200px; }

@media (max-width: 1080px) {
  .hero-section .hero-container { grid-template-columns: 1fr; }
  .tp-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .tp-grid-3, .tp-grid-2 { grid-template-columns: 1fr; }
  .tp-compare, .tp-flow { grid-template-columns: 1fr; }
  .tp-arrow, .tp-vs { justify-self: center; }
  .tp-arrow { transform: rotate(90deg); }
}
@media (max-width: 600px) {
  .tp-grid-4 { grid-template-columns: 1fr; }
  .tp-lead-card { padding: 24px; }
}
