/* ============================================================
   THE OBSERVER PLATFORM — four-panel section ("platform-v7")
   Shared stylesheet. Each landing imports this and overrides
   --platform-v7-accent to its brand color.

   Panels (4-pillar story):
     1. Fleet row — 8 tiles in 4 lanes (Human / Capability /
                    Quality / Management). Current tile elevated.
     2. Pillar flow — 4 columns (Intake → Execute → Validate →
                    Evaluate) with numbered chained steps inside
                    each. Current app's step pulses with accent.
     3. Your slot — one per-landing custom callout.
     4. Platform CTA — fleet-wide link.

   Palette var: --platform-v7-accent (set in landing CSS scope).
   Fallback: lavender (#A78BFA — shield).
   ============================================================ */

.platform-v7 {
  --_accent: var(--platform-v7-accent, #A78BFA);
  padding: 4rem 0;
  background: linear-gradient(180deg, #0f172a 0%, #0a0a0f 100%);
  color: #e5e7eb;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.platform-v7 * { box-sizing: border-box; }
.platform-v7-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.platform-v7-h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  text-align: center;
  margin: 0 0 .5rem;
  letter-spacing: -0.015em;
  color: #f1f5f9;
}
.platform-v7-subhead {
  text-align: center;
  color: #94a3b8;
  font-size: 1rem;
  margin: 0 0 2.5rem;
  letter-spacing: .1px;
}
.platform-v7-subhead b {
  color: #e2e8f0;
  font-weight: 600;
}

/* ---- Panel 1 — 4-lane fleet row ----
   Grid sized so tiles always lay out horizontally within their lane.
   Arrow connectors (→) between adjacent lanes show left-to-right flow.
   Order of columns = Human / Capability / Quality / Management →
   matches the four pillars (Intake / Execute / Validate / Evaluate). */
.platform-v7-fleet {
  display: grid;
  grid-template-columns: 1fr 2fr 2fr 3fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 2rem;
  position: relative;
}
.platform-v7-lane {
  position: relative;
  padding: 1.1rem .9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .06);
  background: rgba(15, 23, 42, .4);
  display: flex;
  flex-direction: column;
}
/* Lane-to-lane arrow connector in the gap */
.platform-v7-lane + .platform-v7-lane::before {
  content: '→';
  position: absolute;
  left: -0.95rem;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, .25);
  font-size: 1.1rem;
  font-weight: 600;
  z-index: 1;
  pointer-events: none;
}
.platform-v7-lane-human      { background: linear-gradient(180deg, rgba(248, 113, 113, .10) 0%, rgba(15, 23, 42, .4) 100%); border-color: rgba(248, 113, 113, .18); }
.platform-v7-lane-capability { background: linear-gradient(180deg, rgba(16,  185, 129, .10) 0%, rgba(15, 23, 42, .4) 100%); border-color: rgba(16, 185, 129, .20); }
.platform-v7-lane-quality    { background: linear-gradient(180deg, rgba(167, 139, 250, .10) 0%, rgba(15, 23, 42, .4) 100%); border-color: rgba(167, 139, 250, .18); }
.platform-v7-lane-management { background: linear-gradient(180deg, rgba(245, 158, 11, .10)  0%, rgba(15, 23, 42, .4) 100%); border-color: rgba(245, 158, 11, .18); }
.platform-v7-lane-label {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  text-align: center;
  margin-bottom: .9rem;
}
.platform-v7-lane-human      .platform-v7-lane-label { color: #fca5a5; }
.platform-v7-lane-capability .platform-v7-lane-label { color: #6ee7b7; }
.platform-v7-lane-quality    .platform-v7-lane-label { color: #c4b5fd; }
.platform-v7-lane-management .platform-v7-lane-label { color: #fcd34d; }
/* Pillar name sits right under the Layer label so each lane carries
   both its component identity (Layer) and its story role (Pillar). */
.platform-v7-lane-pillar {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .58rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  text-align: center;
  color: rgba(255, 255, 255, .45);
  margin-top: -.6rem;
  margin-bottom: .7rem;
}
.platform-v7-lane-human      .platform-v7-lane-pillar { color: rgba(248, 113, 113, .65); }
.platform-v7-lane-capability .platform-v7-lane-pillar { color: rgba(16,  185, 129, .75); }
.platform-v7-lane-quality    .platform-v7-lane-pillar { color: rgba(167, 139, 250, .70); }
.platform-v7-lane-management .platform-v7-lane-pillar { color: rgba(245, 158, 11,  .70); }
.platform-v7-lane-tiles {
  flex: 1;
  align-content: center;
}
.platform-v7-lane-tiles {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.platform-v7-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  padding: .7rem .55rem;
  min-width: 92px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: transform .18s ease, border-color .15s, background .15s;
  color: inherit;
}
.platform-v7-tile img { display: block; opacity: .95; }
.platform-v7-tile-name {
  font-size: .74rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.2;
  white-space: nowrap;
}
.platform-v7-tile-role {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .58rem;
  color: #94a3b8;
  letter-spacing: .25px;
}
.platform-v7-tile:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .18);
  transform: translateY(-2px);
}

/* Current app — elevated tile, accent border, "you are here" pill.
   Accent via --_accent (derived from --platform-v7-accent). */
.platform-v7-tile-active {
  transform: scale(1.05);
  background: color-mix(in srgb, var(--_accent) 10%, transparent);
  border-color: var(--_accent);
  box-shadow: 0 10px 30px color-mix(in srgb, var(--_accent) 18%, transparent);
}
.platform-v7-tile-active:hover {
  transform: scale(1.07) translateY(-2px);
  background: color-mix(in srgb, var(--_accent) 14%, transparent);
}
.platform-v7-tile-here {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--_accent);
  color: #0a0a0f;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .58rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
  white-space: nowrap;
}

/* "Coming soon" tile — dimmed + corner badge */
.platform-v7-tile-soon {
  opacity: .55;
  cursor: default;
}
.platform-v7-tile-soon img { filter: grayscale(.4); }
.platform-v7-tile-soon:hover { opacity: .7; transform: translateY(-1px); }
.platform-v7-tile-soon-badge {
  position: absolute;
  top: -8px;
  right: -4px;
  background: rgba(96, 165, 250, .25);
  color: #60A5FA;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .55rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, .4);
  letter-spacing: .3px;
  white-space: nowrap;
}

/* ---- Panel 2 — 4-pillar grouped flow ----
   Grid of 4 pillar columns (Intake · Execute · Validate · Evaluate).
   Each pillar has a header (big label + caption) and a stacked list
   of its chained steps. Big-arrow dividers sit between pillars so the
   eye reads Intake → Execute → Validate → Evaluate first, then drops
   into the per-component detail. */
.platform-v7-flow {
  display: grid;
  /* Widths tuned so each pillar fits its content without overshoot:
     Intake/Gateway/Execute each hold 1 step (compact); Validate holds 3
     steps (biggest); Evaluate holds 2; AI Models gets enough room for
     2-col pill wrapping without its column driving the row height. */
  grid-template-columns: .9fr .85fr 1.75fr .95fr 1.95fr 1.6fr;
  gap: 0;
  margin: 0 0 2.5rem;
  background: rgba(15, 23, 42, .55);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .5);
  background-image: linear-gradient(90deg,
    rgba(248, 113, 113, .06) 0%,
    rgba(251, 191, 36,  .07) 17%,
    rgba(56,  189, 248, .08) 34%,
    rgba(16,  185, 129, .07) 53%,
    rgba(167, 139, 250, .08) 76%,
    rgba(245, 158, 11,  .06) 100%);
}
.platform-v7-pillar {
  position: relative;
  padding: 1.1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, .04);
  text-align: center;
}
.platform-v7-pillar:last-child { border-right: none; }
/* Chunky accent chevron at the top-right of each pillar, pointing right
   into the next column. Lives inside the pillar so it scales with height
   and never clashes with the step rows. */
.platform-v7-pillar + .platform-v7-pillar::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 1.45rem;
  width: 0; height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 7px solid rgba(255, 255, 255, .22);
  z-index: 1;
  pointer-events: none;
}
.platform-v7-pillar-head {
  text-align: center;
  padding-bottom: .65rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.platform-v7-pillar-label {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .64rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2.6px;
  color: var(--pillar-accent, #e2e8f0);
  margin-bottom: .35rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.platform-v7-pillar-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pillar-accent, #94a3b8);
  box-shadow: 0 0 6px color-mix(in srgb, var(--pillar-accent) 60%, transparent);
  display: inline-block;
}
.platform-v7-pillar-caption {
  font-size: .78rem;
  line-height: 1.4;
  color: #94a3b8;
  font-weight: 500;
}
.platform-v7-pillar-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  width: 100%;
}
.platform-v7-flow-step {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .4rem .7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid rgba(255, 255, 255, .05);
  width: 100%;
  min-width: 0;
  transition: background .15s ease, border-color .15s ease;
  text-align: left;
}
.platform-v7-flow-step:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .08);
}
.platform-v7-flow-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: #cbd5e1;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .06);
}
.platform-v7-flow-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.platform-v7-flow-actor {
  font-size: .85rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.2;
  letter-spacing: -.005em;
}
.platform-v7-flow-verb {
  font-size: .68rem;
  color: #94a3b8;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  letter-spacing: .15px;
  line-height: 1.3;
}

.platform-v7-flow-active .platform-v7-flow-num {
  background: var(--_accent);
  color: #0a0a0f;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--_accent) 25%, transparent);
  animation: platform-v7-pulse 2.2s ease-in-out infinite;
}
.platform-v7-flow-active .platform-v7-flow-actor { color: var(--_accent); }

@keyframes platform-v7-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--_accent) 25%, transparent); }
  50%      { box-shadow: 0 0 0 10px color-mix(in srgb, var(--_accent)  5%, transparent); }
}

/* ---- AI Models (Inference) pillar — provider badge list ----
   Compact pills wrapped via flex. Vertical rhythm tuned so 8 providers
   stack in ~3-4 rows that match the height of the 3-step Validate
   pillar — nothing stretches the row. */
.platform-v7-pillar-providers { padding-right: 1.1rem; padding-left: 1.1rem; }
.platform-v7-provider-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .22rem .25rem;
  align-content: center;
  justify-content: center;
  width: 100%;
}
.platform-v7-provider-badge {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: .14rem .42rem .14rem .32rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid color-mix(in srgb, var(--provider-accent, #94a3b8) 28%, rgba(255, 255, 255, .06));
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1px;
  color: #e2e8f0;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  line-height: 1.25;
}
.platform-v7-provider-badge:hover {
  background: color-mix(in srgb, var(--provider-accent) 10%, rgba(255, 255, 255, .025));
  border-color: color-mix(in srgb, var(--provider-accent) 55%, rgba(255, 255, 255, .06));
}
.platform-v7-provider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--provider-accent, #94a3b8);
  box-shadow: 0 0 4px color-mix(in srgb, var(--provider-accent, #94a3b8) 55%, transparent);
  flex-shrink: 0;
}
.platform-v7-provider-name {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
/* Compact "local" badge: tiny, uppercase, no padding bump. */
.platform-v7-provider-tag {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .42rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #cbd5e1;
  padding: 0 3px;
  background: rgba(255, 255, 255, .08);
  border-radius: 2.5px;
  flex-shrink: 0;
  line-height: 1.4;
}
.platform-v7-provider-local .platform-v7-provider-name { color: #cbd5e1; }

/* ---- Panel 3 — Your slot callout ---- */
.platform-v7-slot {
  max-width: 820px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--_accent) 12%, transparent) 0%,
    rgba(15, 23, 42, .6) 100%);
  border: 1px solid color-mix(in srgb, var(--_accent) 35%, transparent);
  border-radius: 14px;
  box-shadow: 0 10px 40px color-mix(in srgb, var(--_accent) 10%, transparent);
}
.platform-v7-slot p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #f1f5f9;
  text-align: center;
}

.platform-v7-cta {
  text-align: center;
  margin-top: .5rem;
}
.platform-v7-cta a {
  display: inline-block;
  color: #cbd5e1;
  font-size: .95rem;
  padding: .5rem 1rem;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}
.platform-v7-cta a:hover {
  color: var(--_accent);
  border-bottom-color: color-mix(in srgb, var(--_accent) 50%, transparent);
}

/* ---- Nav anchor links (shared pattern for all landings) ---- */
.platform-v7-navlinks {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.platform-v7-navlink {
  color: #94a3b8;
  font-size: .88rem;
  font-weight: 500;
  padding: .35rem .25rem;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}
.platform-v7-navlink:hover {
  color: var(--_accent);
  border-bottom-color: var(--_accent);
}

/* ---- Mobile ---- */
@media (max-width: 1280px) {
  .platform-v7-flow  { grid-template-columns: 1fr 1fr 1fr; }
  .platform-v7-pillar + .platform-v7-pillar::before { display: none; }
}
@media (max-width: 1100px) {
  .platform-v7-fleet { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .platform-v7-flow  { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .platform-v7-fleet { grid-template-columns: 1fr; gap: .75rem; }
  .platform-v7-lane + .platform-v7-lane::before { display: none; }
  .platform-v7-flow  { grid-template-columns: 1fr; }
  .platform-v7-pillar { padding: 1rem; }
  .platform-v7-navlinks { display: none; }
}
