/* ═══════════════════════════════════════════════════════════
   EXTRAS — Interactive sections & animations
   ═══════════════════════════════════════════════════════════ */

/* Tech Matcher */
.tech-matcher-section {
  padding: var(--section-pad) 0;
  position: relative;
}

.tech-matcher {
  background: rgba(4, 12, 26, 0.7);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: clamp(2rem, 4vw, 3rem);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.matcher-group-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon-cyan);
  margin-bottom: 0.75rem;
}

.matcher-opt {
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.82rem !important;
}

.matcher-opt.selected {
  border-color: var(--neon-cyan) !important;
  background: rgba(0, 240, 255, 0.1) !important;
  color: var(--neon-cyan) !important;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.matcher-result {
  min-height: 260px !important;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  border-color: rgba(0, 240, 255, 0.2) !important;
  animation: result-in 0.5s ease;
}

@keyframes result-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.matcher-result h4 {
  font-family: var(--font-display) !important;
  color: var(--neon-cyan) !important;
  letter-spacing: 0.06em;
}

.matcher-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: rgba(0, 240, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.matcher-placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  animation: cap-float 3s ease-in-out infinite;
}

/* Before / After */
.ba-section { padding: var(--section-pad) 0; }

.ba-slider {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px)) !important;
  border: 1px solid rgba(0, 240, 255, 0.25);
  cursor: ew-resize;
}

.ba-handle {
  background: var(--neon-cyan) !important;
  width: 2px !important;
  box-shadow: 0 0 20px var(--neon-cyan);
}

.ba-handle::after {
  background: rgba(0, 2, 8, 0.9) !important;
  color: var(--neon-cyan) !important;
  border: 1px solid var(--neon-cyan);
  font-family: var(--font-mono);
  clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
}

.ba-labels span {
  font-family: var(--font-mono);
  color: var(--neon-cyan);
  border: 1px solid rgba(0, 240, 255, 0.3);
  background: rgba(0, 2, 8, 0.8) !important;
}

/* Code Terminal */
.code-terminal-section {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.03) 0%, transparent 100%);
}

.code-terminal {
  background: rgba(0, 2, 8, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.2);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 240, 255, 0.05);
}

.code-terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 240, 255, 0.05);
  border-bottom: 1px solid rgba(0, 240, 255, 0.12);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(0, 240, 255, 0.6);
}

.code-terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-terminal-dot--red { background: #ff5f57; }
.code-terminal-dot--yellow { background: #febc2e; }
.code-terminal-dot--green { background: #28c840; }

.code-terminal-body {
  padding: 1.5rem;
  min-height: 280px;
  max-height: 320px;
  overflow-y: auto;
  font-family: 'Share Tech Mono', 'SF Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.7;
}

.code-line { opacity: 0; animation: line-in 0.3s ease forwards; }
.code-line--cmd { color: var(--neon-cyan); }
.code-line--out { color: #8fa8be; padding-left: 1rem; }
.code-line--ok { color: var(--neon-green); }
.code-line--warn { color: #febc2e; }
.code-line--err { color: #ff5f57; }

@keyframes line-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

/* Process Timeline */
.process-timeline-section {
  padding: var(--section-pad) 0;
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 3rem;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(0, 240, 255, 0.15);
  z-index: 0;
}

.process-timeline-fill {
  position: absolute;
  top: 28px;
  left: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  box-shadow: 0 0 10px var(--neon-cyan);
  z-index: 1;
  width: 0;
  transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-timeline.visible .process-timeline-fill {
  width: 80%;
}

.process-step-tl {
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 0 0.5rem;
}

.process-step-tl-dot {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 12, 26, 0.9);
  border: 2px solid rgba(0, 240, 255, 0.3);
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--neon-cyan);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  transition: all 0.4s;
}

.process-step-tl.active .process-step-tl-dot,
.process-step-tl:hover .process-step-tl-dot {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
  background: rgba(0, 240, 255, 0.1);
}

.process-step-tl h4 {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 0.4rem;
  color: var(--neon-cyan) !important;
}

.process-step-tl p {
  font-size: 0.82rem !important;
  color: #b8c9d8 !important;
  line-height: 1.45;
}

/* Quick Quote */
.quick-quote-section {
  padding: var(--section-pad) 0;
}

.quick-quote {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(4, 12, 26, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 2.5rem;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.quick-quote-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.quick-quote-opt {
  padding: 1rem 0.75rem;
  text-align: center;
  border: 1px solid rgba(0, 240, 255, 0.15);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.3s;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  color: #b8c9d8;
}

.quick-quote-opt:hover,
.quick-quote-opt.selected {
  border-color: var(--neon-cyan);
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

.quick-quote-result {
  text-align: center;
  padding: 1.5rem;
  margin-top: 1rem;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(0, 240, 255, 0.04);
  display: none;
}

.quick-quote-result.visible {
  display: block;
  animation: result-in 0.5s ease;
}

.quick-quote-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--neon-cyan);
  text-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
  margin: 0.5rem 0;
}

/* Awards strip */
.awards-section {
  padding: 4rem 0;
  border-block: 1px solid rgba(0, 240, 255, 0.12);
  background: rgba(0, 240, 255, 0.02);
}

.award-card {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)) !important;
  border-color: rgba(0, 240, 255, 0.15) !important;
  background: rgba(4, 12, 26, 0.6) !important;
  transition: transform 0.35s, box-shadow 0.35s !important;
}

.award-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.12) !important;
  border-color: var(--neon-cyan) !important;
}

.award-card h4 { color: var(--neon-cyan) !important; }

/* Infinite logo marquee */
.logo-marquee {
  overflow: hidden;
  padding: 1.5rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logo-marquee-track {
  display: flex;
  gap: 4rem;
  animation: logo-scroll 30s linear infinite;
  width: max-content;
}

.logo-marquee-track span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  color: rgba(0, 240, 255, 0.35);
  white-space: nowrap;
  transition: color 0.3s;
}

.logo-marquee-track span:hover {
  color: var(--neon-cyan);
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* FAQ preview */
.faq-preview-section {
  padding: var(--section-pad) 0;
}

/* Work reel */
.work-reel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.work-reel-item {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.2);
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.work-reel-item video,
.work-reel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-reel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 0.75rem;
  background: linear-gradient(transparent, rgba(0, 2, 8, 0.9));
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .process-timeline { grid-template-columns: 1fr; gap: 2rem; }
  .process-timeline::before,
  .process-timeline-fill { display: none; }
  .quick-quote-options { grid-template-columns: 1fr 1fr; }
  .work-reel { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .quick-quote-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track { animation: none; }
  .code-line { animation: none; opacity: 1; }
}
