/* ==========================================================================
   SyncXpress — pages.css
   Page-specific blocks: hero, pipeline, logo strip, connectors, downloads,
   contact, 404.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Home hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(50% 60% at 70% 30%, rgba(43, 196, 196, 0.16), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}

.hero__copy { max-width: 38rem; }

.hero h1 {
  margin-top: var(--sp-5);
  font-size: var(--fs-hero);
  letter-spacing: -0.032em;
}

.hero__lead {
  margin-top: var(--sp-5);
  font-size: clamp(1.05rem, 0.6vw + 0.95rem, 1.22rem);
  color: var(--text-mute);
}

/* Rotating headline */
.rotator { position: relative; }

.rotator__item { display: none; }

.rotator__item.is-active {
  display: block;
  animation: heroIn 720ms var(--ease) both;
}

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

.rotator__dots {
  display: flex;
  gap: 0.5rem;
  margin-top: var(--sp-6);
}

.rotator__dot {
  width: 1.1rem;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: var(--r-full);
  background: var(--border-strong);
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.rotator__dot[aria-selected="true"] {
  width: 2.4rem;
  background: var(--accent);
}

.rotator__dot:hover { background: var(--accent-bright); }

/* Hero trust line */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-xs);
  color: var(--text-dim);
}

.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__meta .icon {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   2. Hero figure — animated integration diagram (pure SVG + CSS)
   -------------------------------------------------------------------------- */
.hero-figure {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
}

.hero-figure svg { width: 100%; height: auto; overflow: visible; }

.hf-panel {
  fill: #ffffff;
  stroke: var(--border-strong);
  stroke-width: 1;
  filter: drop-shadow(0 10px 22px rgba(15, 32, 58, 0.10));
}

.hf-node {
  fill: #ffffff;
  stroke: var(--border-strong);
  stroke-width: 1;
  filter: drop-shadow(0 4px 12px rgba(15, 32, 58, 0.08));
}

.hf-label {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 600;
  fill: #1e3457;
}

.hf-label--dim { fill: #5f6b7d; font-weight: 500; font-size: 8.5px; }

.hf-core {
  fill: rgba(13, 133, 133, 0.10);
  stroke: rgba(13, 133, 133, 0.55);
  stroke-width: 1.4;
}

.hf-core-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  fill: #0c6a6a;
  letter-spacing: 0.04em;
}

.hf-wire {
  fill: none;
  stroke: rgba(52, 87, 135, 0.3);
  stroke-width: 1.3;
}

.hf-flow {
  fill: none;
  stroke: var(--teal-600);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 10 150;
  animation: hfFlow 3.4s linear infinite;
}

.hf-flow--2 { animation-delay: 0.55s; }
.hf-flow--3 { animation-delay: 1.1s; }
.hf-flow--4 { animation-delay: 1.65s; }
.hf-flow--5 { animation-delay: 2.2s; }
.hf-flow--6 { animation-delay: 2.75s; }

@keyframes hfFlow {
  from { stroke-dashoffset: 160; }
  to   { stroke-dashoffset: 0; }
}

.hf-ring {
  fill: none;
  stroke: rgba(13, 133, 133, 0.4);
  stroke-width: 1;
  transform-origin: 50% 50%;
  animation: hfRing 4.5s ease-out infinite;
}

@keyframes hfRing {
  0%   { transform: scale(0.8); opacity: 0; }
  35%  { opacity: 0.75; }
  100% { transform: scale(1.35); opacity: 0; }
}

.hf-icon {
  fill: none;
  stroke: var(--teal-700);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .hf-flow { stroke-dasharray: none; opacity: 0.55; }
  .hf-ring { display: none; }
}

/* --------------------------------------------------------------------------
   3. Logo / systems strip
   -------------------------------------------------------------------------- */
.logo-strip {
  border-block: 1px solid var(--border);
  background: var(--surface);
  padding-block: var(--sp-6);
}

.logo-strip__title {
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

.logo-strip__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4) var(--sp-7);
  margin-top: var(--sp-5);
}

.logo-strip__items li {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  transition: color var(--dur) var(--ease);
}

.logo-strip__items li:hover { color: var(--accent); }

/* --------------------------------------------------------------------------
   4. Pipeline stages
   -------------------------------------------------------------------------- */
.pipeline {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 40rem) { .pipeline { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 72rem) { .pipeline { grid-template-columns: repeat(8, 1fr); } }

.pipeline__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: var(--sp-4) 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}

.pipeline__stage:hover {
  transform: translateY(-3px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-md);
}

.pipeline__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.pipeline__icon .icon { width: 1.15rem; height: 1.15rem; }

.pipeline__label {
  font-size: var(--fs-xs);
  font-weight: 650;
  color: var(--text);
}

.pipeline__index {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   5. Example flow rows (How it works)
   -------------------------------------------------------------------------- */
.flow-rows {
  display: grid;
  gap: 0.65rem;
  max-width: 52rem;
  margin-inline: auto;
}

.flow-row {
  display: grid;
  grid-template-columns: 2rem 6.5rem 1fr;
  gap: var(--sp-4);
  align-items: center;
  padding: 0.85rem var(--sp-4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.flow-row__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: var(--accent-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
}

.flow-row__stage {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 650;
  color: var(--text);
}

.flow-row__detail {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

@media (max-width: 40rem) {
  .flow-row {
    grid-template-columns: 2rem 1fr;
    row-gap: 0.35rem;
  }
  .flow-row__detail { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   6. Connector cards
   -------------------------------------------------------------------------- */
.connector-card { display: flex; flex-direction: column; }

.connector-card h3 { margin-top: var(--sp-4); }

/* --------------------------------------------------------------------------
   7. Downloads
   -------------------------------------------------------------------------- */
.dl-list { display: grid; gap: var(--sp-4); }

.dl-item {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
  align-items: center;
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.dl-item:hover {
  border-color: var(--border-hi);
  box-shadow: var(--shadow-md);
}

@media (min-width: 52rem) {
  .dl-item { grid-template-columns: 3.2rem 1fr auto; gap: var(--sp-5); }
}

.dl-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.dl-item__icon .icon { width: 1.4rem; height: 1.4rem; }

.dl-item__body h3 { margin: 0; }

.dl-item__body p {
  margin-top: 0.35rem;
  font-size: var(--fs-sm);
  color: var(--text-dim);
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.9rem;
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-faint);
}

.dl-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

.dl-hash {
  display: block;
  margin-top: var(--sp-3);
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-sunken);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.dl-hash b {
  color: var(--text-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* Verify-your-download callout */
.verify-box {
  padding: var(--sp-5);
  border: 1px solid rgba(180, 83, 9, 0.28);
  border-radius: var(--r-lg);
  background: rgba(251, 191, 36, 0.09);
}

.verify-box h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: var(--fs-base);
}

.verify-box h3 .icon { color: var(--amber-600); }

.verify-box p {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--text-mute);
}

.code-block {
  margin-top: var(--sp-4);
  padding: var(--sp-4);
  overflow-x: auto;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.85;
  color: var(--navy-800);
}

.code-block .c { color: var(--text-faint); }

/* --------------------------------------------------------------------------
   8. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 64rem) {
  .contact-grid { grid-template-columns: 1fr 1.35fr; }
}

.contact-card {
  display: grid;
  grid-template-columns: 2.85rem 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: var(--sp-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.contact-card__label {
  font-size: var(--fs-xs);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-faint);
}

.contact-card__value {
  margin-top: 0.3rem;
  font-size: var(--fs-sm);
  color: var(--text);
}

.contact-card__value a { color: var(--text); }
.contact-card__value a:hover { color: var(--accent); }

.contact-stack { display: grid; gap: var(--sp-4); }

/* --------------------------------------------------------------------------
   9. 404
   -------------------------------------------------------------------------- */
.notfound {
  display: grid;
  place-items: center;
  min-height: 68vh;
  text-align: center;
  padding-block: var(--sp-9);
}

.notfound__code {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 16vw, 9rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(120deg, var(--teal-600), var(--navy-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
