/* ===========================================================================
   Avanatro — Split Landing (Backend | Frontend) + Asset Banner
   2026-08-17
   ---------------------------------------------------------------------------
   Layout-only stylesheet for index.php. Consumes tokens from
   /assets/tokens.css and reuses .op-cta / .op-footer / [data-reveal]
   from /assets/console.css. Radius system: 8px (brand lock).
   =========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Top brand strip ---------- */
.sp-topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.sp-topbar-brand {
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.04em;
  color: var(--text);
}

/* ---------- Split hero ---------- */
.sp-split {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 64px);
}
.sp-halves {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
}

.sp-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 84px);
}

/* Keep content clear of the center divider and the "or both" pill */
@media (min-width: 821px) {
  .sp-back { padding-right: clamp(88px, 9vw, 150px); }
  .sp-front { padding-left: clamp(88px, 9vw, 150px); }
}

/* Per-side tint: faint accent wash, no glow */
.sp-back {
  background:
    radial-gradient(120% 90% at 15% 40%, rgba(64, 223, 159, 0.07), transparent 60%);
}
.sp-front {
  background:
    radial-gradient(120% 90% at 85% 40%, rgba(84, 212, 232, 0.07), transparent 60%);
}

/* Center divider */
.sp-halves::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-strong) 18%, var(--line-strong) 100%);
}

/* "Or both together" closing line under both halves */
.sp-both {
  margin: 0;
  padding: 16px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line-strong);
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sp-h2 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 900;
  line-height: 1.02;
  color: var(--text);
}
.sp-h2 span {
  display: block;
}
.sp-back .sp-h2 span:first-child { color: var(--emerald); }
.sp-front .sp-h2 span:first-child { color: var(--cyan); }

.sp-lead {
  margin: 0;
  max-width: 46ch;
  color: var(--color-text-soft, #c2d0d5);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
}

/* Capability chips, styled after the existing card-meta code chips */
.sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp-chips li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.sp-half .op-cta { align-self: flex-start; }

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-self: flex-start;
}

/* Frontend side gets a cyan primary so both halves keep their own accent */
.sp-cta-cyan {
  background: linear-gradient(135deg, var(--cyan), #2285d0);
  color: #021016;
}
.sp-cta-cyan:hover { transform: translateY(-1px); }

/* ---------- Asset banner (full width, split ends here) ---------- */
.sp-banner {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(64, 223, 159, 0.08), rgba(84, 212, 232, 0.08)),
    var(--bg-soft);
}
.sp-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1220px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 54px);
}
.sp-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
}
.sp-banner p {
  margin: 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.sp-banner .op-cta { flex-shrink: 0; }

/* ---------- Page footer (2 columns: brand + legal) ---------- */
@media (min-width: 641px) {
  .sp-footer { grid-template-columns: 2fr 1fr; }
}

/* ---------- Mobile collapse ---------- */
@media (max-width: 820px) {
  .sp-split { min-height: 0; }
  .sp-halves { grid-template-columns: 1fr; }
  .sp-halves::before { content: none; }
  .sp-half {
    min-height: 0;
    padding-block: 56px;
  }
  .sp-back { border-bottom: 1px solid var(--line-strong); }
  .sp-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-cta-cyan:hover { transform: none; }
}
