/* Technology page */

.tech-page main {
  padding-bottom: 0;
}

/* Hero */
.tech-hero {
  position: relative;
  overflow: hidden;
}

.tech-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(249, 247, 243, 0.75) 0%, rgba(249, 247, 243, 0.92) 100%),
    linear-gradient(135deg, #f5f2ec 0%, #e8e4dc 50%, #f9f7f3 100%);
  z-index: 0;
}

.tech-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 400'%3E%3Cpath fill='rgba(255,255,255,0.6)' d='M0 400 L200 200 L400 280 L600 120 L800 240 L1000 160 L1200 220 L1200 400 Z'/%3E%3Cpath stroke='rgba(45,42,38,0.06)' stroke-width='2' fill='none' d='M100 350 L350 180 L550 260'/%3E%3C/svg%3E");
  background-size: cover;
  opacity: 0.8;
}

.tech-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.tech-hero-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.tech-hero-lead {
  margin: 0;
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* How it works */
.tech-flow {
  padding: 72px 0;
}

.tech-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.tech-step-head {
  text-align: center;
}

.tech-step-diamond {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  transform: rotate(45deg);
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.tech-step-diamond span {
  transform: rotate(-45deg);
  color: #fff;
  font-weight: var(--font-weight-bold);
  font-size: 1.1rem;
}

.tech-step-head h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
}

.tech-step-head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.tech-flow-visuals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.tech-flow-figure {
  margin: 0;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: transparent;
  transition: transform var(--transition-fast);
}

.tech-flow-figure:hover {
  transform: translateY(-4px);
}

.tech-flow-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

.phone-frame {
  flex: 1;
  margin: 0 auto;
  width: 100%;
  max-width: 160px;
  background: #1a1c2e;
  border-radius: 24px;
  padding: 10px 8px 14px;
  box-shadow: 0 16px 40px rgba(26, 28, 46, 0.2);
}

.phone-screen {
  background: #fff;
  border-radius: 16px;
  min-height: 220px;
  padding: 12px 10px;
  font-size: 10px;
  color: var(--text-primary);
  overflow: hidden;
}

.mock-pay-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.mock-pay-btn {
  flex: 1;
  padding: 6px 4px;
  border-radius: 6px;
  text-align: center;
  font-size: 8px;
  font-weight: var(--font-weight-semibold);
  background: #f1f5f9;
}

.mock-pay-btn--active {
  background: var(--brand-soft);
  color: var(--brand);
}

.mock-asset {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 9px;
}

.mock-qr {
  width: 80px;
  height: 80px;
  margin: 12px auto;
  background: repeating-linear-gradient(
      90deg,
      #e2e8f0 0,
      #e2e8f0 4px,
      #fff 4px,
      #fff 8px
    ),
    repeating-linear-gradient(#e2e8f0 0, #e2e8f0 4px, #fff 4px, #fff 8px);
  border-radius: 4px;
}

.mock-success {
  text-align: center;
  padding-top: 24px;
}

.mock-success strong {
  display: block;
  font-size: 18px;
  color: #16a34a;
  margin-bottom: 8px;
}

/* Highlights 2x2 */
.tech-highlights {
  padding: 72px 0;
  background: rgba(255, 255, 255, 0.35);
}

.tech-highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tech-highlight-item {
  position: relative;
  padding: 32px 32px 32px 100px;
  border-radius: var(--radius-lg);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}

.tech-highlight-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--glass-shadow-hover);
}

.tech-highlight-num {
  position: absolute;
  left: 24px;
  top: 24px;
  font-size: 3.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1;
  color: rgba(45, 42, 38, 0.08);
}

.tech-highlight-item h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  font-weight: var(--font-weight-bold);
}

.tech-highlight-item p {
  margin: 0;
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  line-height: 1.75;
}

/* Comparison table */
.tech-compare {
  padding: 72px 0 80px;
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  padding: 4px;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.compare-table th,
.compare-table td {
  padding: 18px 20px;
  text-align: center;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid rgba(45, 42, 38, 0.06);
}

.compare-table thead th {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.5);
}

.compare-table thead th.col-wea {
  background: linear-gradient(180deg, #2d3a5c 0%, #1a1c2e 100%);
  color: #fff;
}

.compare-table tbody th {
  text-align: left;
  font-weight: var(--font-weight-medium);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.35);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table .cell-wea {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
  background: rgba(255, 107, 0, 0.06);
}

.compare-table .check-yes {
  color: var(--brand);
  font-size: 1.25rem;
}

.compare-table .check-no {
  color: var(--text-muted);
  font-size: 1.1rem;
}

@media (max-width: 1024px) {
  .tech-flow-steps,
  .tech-flow-visuals {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tech-flow-steps,
  .tech-flow-visuals,
  .tech-highlight-grid {
    grid-template-columns: 1fr;
  }

  .tech-highlight-item {
    padding-left: 32px;
    padding-top: 72px;
  }

  .tech-highlight-num {
    left: 24px;
    top: 16px;
  }
}
