/* Technology V2 Page Styles */

/* HERO */
.tech-hero-v2 {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 160px 0 100px;
  overflow: hidden;
}

.thv2-bg {
  position: absolute;
  inset: 0;
}

.thv2-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.thv2-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0,0,0,0.94) 45%, rgba(0,0,0,0.5) 100%);
}

.thv2-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.thv2-title {
  font-family: var(--font-head);
  font-size: clamp(60px, 9vw, 110px);
  line-height: 0.9;
  letter-spacing: -2px;
  margin: 16px 0 24px;
}

.thv2-sub {
  font-size: 17px;
  color: var(--gray-2);
  line-height: 1.7;
}

/* DUAL SENSOR DEEP DIVE */
.tech-deep {
  padding: 120px 0;
  background: var(--bg);
}

.td-header {
  text-align: center;
  margin-bottom: 80px;
}

.td-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Sensor Fusion Diagram */
.sensor-fusion-diagram {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.sfd-sensor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.sfd-sensor-inner {
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.sfd-sensor-inner-color {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.02);
}

/* LUMA sensor: COLORED pixels (RGB Bayer pattern) */
.sfd-sensor-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 2px at 5px 5px, rgba(255,60,60,0.3) 0%, transparent 100%),
    radial-gradient(circle 2px at 15px 5px, rgba(60,200,60,0.3) 0%, transparent 100%),
    radial-gradient(circle 2px at 5px 15px, rgba(60,200,60,0.3) 0%, transparent 100%),
    radial-gradient(circle 2px at 15px 15px, rgba(80,100,255,0.3) 0%, transparent 100%);
  background-size: 20px 20px;
}

/* CHROMA sensor: black & white, DENSER pixels */
.sfd-sensor-grid-color {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.12) 0px, transparent 1px, transparent 4px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0px, transparent 1px, transparent 4px);
}

.sfd-sensor-name {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--gray-2);
  text-align: center;
  position: relative;
  z-index: 1;
}

.sfd-desc {
  font-size: 11px;
  color: var(--gray-3);
  text-align: center;
  max-width: 100px;
  line-height: 1.5;
}

.sfd-combine {
  display: flex;
  align-items: center;
}

.sfd-plus {
  width: 36px;
  height: 36px;
  background: rgba(203,44,48,0.1);
  border: 1px solid rgba(203,44,48,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sfd-arrow {
  opacity: 0.7;
}

.sfd-output {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sfd-output-inner {
  width: 120px;
  border: 2px solid #CB2C30;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(203,44,48,0.2);
}

.sfd-output-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.sfd-output-label {
  background: #CB2C30;
  color: #000;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  padding: 4px;
}

/* Text side */
.td-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.td-text p {
  font-size: 15px;
  color: var(--gray-2);
  line-height: 1.8;
  margin-bottom: 16px;
}

.td-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
}

.td-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  background: rgba(255,255,255,0.02);
  gap: 6px;
}

.tdm-val {
  font-family: var(--font-head);
  font-size: 24px;
  color: #CB2C30;
  letter-spacing: -0.5px;
  line-height: 1;
}

.tdm-label {
  font-size: 10px;
  color: var(--gray-3);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* AI ENGINE */
.tech-ai-engine {
  padding: 120px 0;
  background: var(--surface);
}

.tae-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tae-text p {
  font-size: 16px;
  color: var(--gray-2);
  line-height: 1.8;
  margin: 20px 0 32px;
}

.tae-chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.tae-chip {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}

.taec-num {
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1;
}

.taec-unit {
  font-size: 12px;
  font-weight: 700;
  color: #CB2C30;
  letter-spacing: 0.5px;
}

.taec-desc {
  font-size: 10px;
  color: var(--gray-3);
  margin-top: 4px;
}

/* AI Pipeline */
.ai-pipeline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 32px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.aip-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
  padding: 16px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  text-align: center;
}

.aip-step-main {
  border-color: rgba(203,44,48,0.3);
  background: rgba(203,44,48,0.05);
  transform: scale(1.08);
}

.aip-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #CB2C30;
  color: #000;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 100px;
}

.aip-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
}

.aip-sub {
  font-size: 10px;
  color: var(--gray-3);
}

.aip-arrow {
  opacity: 0.5;
}

/* IR SECTION */
.tech-ir {
  padding: 120px 0;
  background: var(--bg);
}

.tir-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.tir-text p {
  font-size: 15px;
  color: var(--gray-2);
  line-height: 1.8;
  margin: 20px 0 28px;
}

.tir-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.tir-spec {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: rgba(255,255,255,0.02);
  gap: 4px;
}

.tirs-val {
  font-family: var(--font-head);
  font-size: 22px;
  color: #CB2C30;
  letter-spacing: -0.5px;
  line-height: 1;
}

.tirs-label {
  font-size: 10px;
  color: var(--gray-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tir-note {
  font-size: 13px;
  color: var(--gray-3);
  background: rgba(203,44,48,0.04);
  border: 1px solid rgba(203,44,48,0.15);
  border-radius: var(--radius);
  padding: 14px 16px;
  line-height: 1.6;
}

.tir-visual {
  position: relative;
}

.tir-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.tir-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tir-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.8);
  border: 1px solid rgba(203,44,48,0.3);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  backdrop-filter: blur(8px);
}

/* OPTICS */
.tech-optics {
  padding: 120px 0;
  background: var(--surface);
}

.to-header {
  text-align: center;
  margin-bottom: 60px;
}

.to-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.to-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.to-card:hover {
  border-color: rgba(203,44,48,0.3);
  transform: translateY(-4px);
}

.to-img {
  height: 260px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

.to-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 20px;
  transition: transform 0.6s;
}

.to-card:hover .to-img img { transform: scale(1.06); }

.to-body {
  padding: 24px;
}

.to-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.to-body p {
  font-size: 13px;
  color: var(--gray-2);
  line-height: 1.7;
}

/* RANGE FINDER */
.tech-rangefinder {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.trf-bg {
  position: absolute;
  inset: 0;
}

.trf-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
}

.trf-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.trf-text p {
  font-size: 15px;
  color: var(--gray-2);
  line-height: 1.8;
  margin: 20px 0 28px;
}

.trf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(203,44,48,0.2);
  border: 1px solid rgba(203,44,48,0.2);
  border-radius: var(--radius);
  overflow: hidden;
}

.trf-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px;
  background: rgba(203,44,48,0.04);
  gap: 4px;
}

.trfs-val {
  font-family: var(--font-head);
  font-size: 22px;
  color: #CB2C30;
  letter-spacing: -0.5px;
  line-height: 1;
}

.trfs-label {
  font-size: 10px;
  color: var(--gray-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Viewfinder */
.trf-viewfinder {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid rgba(203,44,48,0.3);
}

.trf-vf-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  filter: brightness(0.6) saturate(0.5);
}

.trf-reticle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trf-crosshair-h {
  position: absolute;
  left: 20%;
  right: 20%;
  height: 1px;
  background: rgba(203,44,48,0.5);
}

.trf-crosshair-v {
  position: absolute;
  top: 20%;
  bottom: 20%;
  left: 50%;
  width: 1px;
  background: rgba(203,44,48,0.5);
}

.trf-range-readout {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(203,44,48,0.4);
  border-radius: 8px;
  padding: 8px 14px;
}

.trr-dist {
  font-family: var(--font-head);
  font-size: 32px;
  color: #CB2C30;
  letter-spacing: -1px;
  line-height: 1;
  animation: range-count 4s ease-in-out infinite;
}

@keyframes range-count {
  0%, 100% { content: "847"; }
}

.trr-unit {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-2);
}

.trf-corners {
  position: absolute;
  inset: 0;
}

.trf-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #CB2C30;
  border-style: solid;
  border-width: 0;
}

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

/* BUILD */
.tech-build {
  padding: 120px 0;
  background: var(--bg);
}

.tb-header {
  text-align: center;
  margin-bottom: 60px;
}

.tb-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.tb-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
  text-align: center;
}

.tb-card:hover {
  border-color: rgba(203,44,48,0.3);
  transform: translateY(-4px);
}

.tb-icon {
  width: 64px;
  height: 64px;
  background: rgba(203,44,48,0.08);
  border: 1px solid rgba(203,44,48,0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.tb-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.tb-card p {
  font-size: 13px;
  color: var(--gray-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tb-stat {
  font-family: var(--font-head);
  font-size: 24px;
  color: #CB2C30;
  letter-spacing: -0.5px;
}

/* VERSUS */
.tech-vs {
  padding: 120px 0;
  background: var(--surface);
}

.tvs-header {
  text-align: center;
  margin-bottom: 48px;
}

.tvs-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.tvs-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.tvs-table th, .tvs-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.tvs-table th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.03);
  color: var(--gray-2);
  text-transform: uppercase;
}

.tvs-table td:first-child {
  color: var(--gray-3);
  font-weight: 500;
  width: 160px;
}

.tvs-table tbody tr:last-child td { border-bottom: none; }
.tvs-table tbody tr:hover td { background: rgba(255,255,255,0.02); }

.tvs-th-dvx {
  background: rgba(203,44,48,0.08) !important;
  color: #CB2C30 !important;
  border-left: 1px solid rgba(203,44,48,0.2);
  border-right: 1px solid rgba(203,44,48,0.2);
}

.tvs-td-dvx {
  background: rgba(203,44,48,0.04);
  border-left: 1px solid rgba(203,44,48,0.1);
  border-right: 1px solid rgba(203,44,48,0.1);
}

.tvs-check { color: #CB2C30; font-weight: 600; }
.tvs-x { color: var(--gray-3); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .td-split, .tae-inner, .tir-inner, .trf-content { grid-template-columns: 1fr; gap: 48px; }
  .tb-cards { grid-template-columns: repeat(2, 1fr); }
  .to-grid { grid-template-columns: 1fr 1fr; }
  .tae-chips { grid-template-columns: repeat(2, 1fr); }
  .ai-pipeline { flex-direction: column; }
  .aip-arrow { transform: rotate(90deg); }
}

@media (max-width: 768px) {
  .tb-cards { grid-template-columns: 1fr; }
  .to-grid { grid-template-columns: 1fr; }
  .tir-specs, .trf-stats, .td-metrics { grid-template-columns: repeat(3, 1fr); }
  .sensor-fusion-diagram { flex-direction: column; }
}
