/* ==========================================================================
   Technology page
   ========================================================================== */

.tech-hero {
  text-align: center;
  padding-bottom: 0;
}

.tech-hero h1 {
  max-width: 13ch;
  margin-inline: auto;
}

.tech-hero .lead {
  margin-inline: auto;
}

.tech-hero .breadcrumb {
  justify-content: center;
}

.tech-hero-cta {
  justify-content: center;
  margin-top: var(--s-6);
}

.tech-dash {
  margin-top: clamp(3rem, 2rem + 4vw, 6rem);
  text-align: left;
}

/* ---------- Intro ---------- */
.tech-intro .manifesto-text {
  max-width: 28ch;
  margin-top: var(--s-5);
  font-size: var(--fs-3xl);
  line-height: 1.12;
}

@media (max-width: 700px) {
  .tech-intro .manifesto-text {
    font-size: var(--fs-2xl);
  }
}

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  gap: var(--s-6);
  align-items: center;
  padding-block: clamp(3rem, 2rem + 4vw, 6rem);
  border-top: 1px solid var(--line);
}

.feature-copy {
  display: grid;
  gap: var(--s-4);
}

.feature-copy h2 {
  font-size: var(--fs-2xl);
}

.feature-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(86, 224, 224, 0.12), transparent 70%),
    var(--glass);
}

@media (min-width: 1000px) {
  .feature-row {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--s-9);
  }

  .feature-row.reverse .feature-copy {
    order: 2;
  }
}

/* Pipeline (automation) */
.pipeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 520px;
}

.pipe-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.pipe-node i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--ink-850);
  color: var(--cyan);
  font-size: 1.05rem;
}

.pipe-node.is-end i {
  border-color: rgba(62, 230, 160, 0.5);
  color: var(--ok);
  box-shadow: 0 0 30px -6px rgba(62, 230, 160, 0.5);
}

.pipe-line {
  position: absolute;
  top: 26px;
  left: 26px;
  right: 26px;
  height: 2px;
  background: var(--line-strong);
}

.packet {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: packet 3.6s var(--ease-in-out) infinite;
}

.packet.p2 { animation-delay: 1.2s; }
.packet.p3 { animation-delay: 2.4s; }

@keyframes packet {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

.pipe-docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-6);
}

.doc {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(4, 8, 15, 0.5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  animation: float-y 5s var(--ease-in-out) infinite;
}

.doc:nth-child(2) { animation-delay: -1.6s; }
.doc:nth-child(3) { animation-delay: -3.2s; }

.doc i {
  color: var(--cyan);
}

@media (max-width: 520px) {
  .pipe-node span {
    display: none;
  }

  .pipe-node i {
    width: 44px;
    height: 44px;
  }

  .pipe-line {
    top: 22px;
    left: 22px;
    right: 22px;
  }
}

/* Toasts (real-time) */
.toasts {
  display: grid;
  gap: var(--s-3);
  width: 100%;
  max-width: 380px;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(7, 15, 26, 0.9);
  box-shadow: var(--shadow-1);
  animation: toast-in 0.7s var(--ease-spring) both;
}

.toast:nth-child(2) { opacity: 0.75; transform: scale(0.97); }
.toast:nth-child(3) { opacity: 0.5; transform: scale(0.94); }

.toast > i {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.toast > i.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.toast > i.run { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.toast > i.warn { background: var(--signal); box-shadow: 0 0 10px var(--signal); }

.toast b {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
}

.toast small {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-mute);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-16px) scale(0.96); }
}

/* Vault (security) */
.vault {
  position: relative;
  width: min(300px, 100%);
  aspect-ratio: 1;
}

.v-ring {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.v-ring b {
  position: absolute;
  top: -0.6em;
  left: 50%;
  padding: 0 0.6rem;
  background: var(--ink-850);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-mute);
  transform: translateX(-50%);
  white-space: nowrap;
}

.v-ring.v1 { inset: 0; border-style: dashed; animation: spin 50s linear infinite; }
.v-ring.v2 { inset: 17%; }
.v-ring.v3 { inset: 34%; border-color: rgba(86, 224, 224, 0.45); box-shadow: 0 0 40px rgba(86, 224, 224, 0.15) inset; }

.v-ring.v2::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--cyan);
  animation: spin 3.5s linear infinite;
}

.v-core {
  position: absolute;
  inset: 42%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--text-on-cyan);
  font-size: 1.1rem;
  box-shadow: 0 0 50px rgba(86, 224, 224, 0.6);
}

/* Mini UI (experience) */
.mini-ui {
  position: relative;
  display: grid;
  gap: var(--s-3);
  width: 100%;
  max-width: 400px;
  padding: var(--s-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: rgba(4, 8, 15, 0.6);
}

.mini-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(148, 190, 230, 0.06);
  font-size: 0.75rem;
}

.mini-tabs span {
  flex: 1;
  padding: 0.4rem;
  border-radius: var(--r-pill);
  text-align: center;
  color: var(--text-mute);
}

.mini-tabs .is-on {
  background: var(--ink-600);
  color: var(--text);
}

.mini-search {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(86, 224, 224, 0.4);
  border-radius: var(--r-md);
  font-size: 0.8rem;
  color: var(--text-mute);
}

.typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--cyan);
  color: var(--text);
  width: 0;
  animation: typing 5s steps(8) infinite, blink 0.8s steps(1) infinite;
}

@keyframes typing {
  0%, 10% { width: 0; }
  40%, 90% { width: 8.2ch; }
  100% { width: 0; }
}

.mini-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.8rem;
  animation: mini-card 5s var(--ease-out) infinite;
}

.mini-card b {
  display: block;
  font-weight: 500;
}

.mini-card small {
  color: var(--text-mute);
}

@keyframes mini-card {
  0%, 38% { opacity: 0; transform: translateY(8px); }
  48%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

.mini-cursor {
  position: absolute;
  right: 22%;
  bottom: 14%;
  font-size: 1.2rem;
  color: var(--text);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  animation: cursor-move 5s var(--ease-in-out) infinite;
}

@keyframes cursor-move {
  0%, 15% { transform: translate(40px, 30px); }
  45% { transform: translate(-60px, -10px); }
  52% { transform: translate(-60px, -10px) scale(0.85); }
  58%, 85% { transform: translate(-60px, -10px); }
  100% { transform: translate(40px, 30px); }
}

/* ---------- Closing ---------- */
.tech-close-h {
  max-width: 16ch;
  margin: var(--s-5) auto;
}

.tech-close-h em {
  display: block;
}

.tech-close .lead {
  margin-inline: auto;
}
