/* ==========================================================================
   Tectonic Design System — Shared CSS
   Architectural aesthetic: asymmetric layouts, geometric accents, deliberate
   typography hierarchy with Bebas Neue / Karla / Space Mono.
   ========================================================================== */

/* ---------- SVG Background Lines ---------- */
.tec-bg-lines {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Keyframes ---------- */
@keyframes tec-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tec-slide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes tec-float-1 {
  0%, 100% {
    transform: translate(0, 0) rotate(-1deg);
  }

  50% {
    transform: translate(5px, -8px) rotate(-0.5deg);
  }
}

@keyframes tec-float-2 {
  0%, 100% {
    transform: translate(0, 0) rotate(1deg);
  }

  50% {
    transform: translate(-4px, 6px) rotate(0.5deg);
  }
}

@keyframes tec-float-3 {
  0%, 100% {
    transform: translate(0, 0) rotate(0.5deg);
  }

  50% {
    transform: translate(6px, -4px) rotate(-0.5deg);
  }
}

@keyframes tec-rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes tec-pulse {
  0%, 100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

/* ---------- Shared Heading Styles ---------- */
.tec-heading-display {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
  color: var(--tec-text);
  margin: 0 0 1rem;
}

.tec-section-heading {
  font-family: Karla, sans-serif;
  font-size: var(--tec-font-ui-lg, 1.1875rem);
  font-weight: 700;
  color: var(--tec-primary);
  margin: 0 0 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--tec-primary-dim);
  display: inline-block;
}

.tec-highlight-text {
  color: var(--tec-highlight);
}

.tec-primary-text {
  color: var(--tec-primary);
}

.tec-success-text {
  color: var(--tec-success);
}

/* ---------- Button System ---------- */
.tec-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  font-family: Karla, sans-serif;
  font-size: var(--tec-font-ui-sm, 0.9375rem);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.tec-btn-primary {
  background: var(--tec-primary);
  color: #fff;
  padding: 0.75rem 2rem;
}

.tec-btn-primary:hover {
  background: var(--tec-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--tec-primary-shadow);
}

.tec-btn-ghost {
  background: transparent;
  color: var(--tec-text-dim);
  border: 1px solid var(--tec-border);
}

.tec-btn-ghost:hover {
  border-color: var(--tec-primary);
  color: var(--tec-primary);
  transform: translateY(-1px);
}

.tec-btn-outline {
  background: transparent;
  color: var(--tec-text);
  border: 1px solid var(--tec-border);
}

.tec-btn-outline:hover {
  border-color: var(--tec-primary);
  color: var(--tec-primary);
  transform: translateY(-1px);
}

.tec-btn-sm {
  background: var(--tec-primary);
  color: #fff;
  padding: 0.4rem 0.75rem;
  font-size: var(--tec-font-ui-xs, 0.8125rem);
  border-radius: 6px;
}

.tec-btn-sm:hover {
  background: var(--tec-primary-hover);
  transform: translateY(-1px);
}

.tec-btn-ghost-sm {
  background: transparent;
  color: var(--tec-text-dim);
  border: 1px solid var(--tec-border);
  padding: 0.35rem 0.7rem;
  font-size: var(--tec-font-ui-xs, 0.8125rem);
  border-radius: 6px;
}

.tec-btn-ghost-sm:hover {
  border-color: var(--tec-primary);
  color: var(--tec-primary);
  transform: translateY(-1px);
}

.tec-btn-lg {
  padding: 0.85rem 2.2rem;
  font-size: var(--tec-font-ui-md, 1.0625rem);
}

/* ---------- Metrics ---------- */
.tec-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.tec-metric {
  background: var(--tec-surface-2);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgb(0 0 0 / 6%);
}

.tec-metric-val {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  color: var(--tec-text);
  display: block;
}

.tec-metric-label {
  font-family: Karla, sans-serif;
  font-size: var(--tec-font-ui-xs, 0.8125rem);
  font-weight: 600;
  color: var(--tec-text-dim);
}

/* ---------- Responsive ---------- */
@media (width <= 860px) {
  .tec-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (width <= 600px) {
  .tec-metrics {
    grid-template-columns: 1fr;
  }
}
