/* ==========================================================================
   IS Insight — precog layer
   Era-pulse, pushed into foresight: edge-lit glass panes, refraction,
   gestural response. Deep-blue single hue only. Never neon, never flashy.
   Loaded AFTER era-pulse.css.
   ========================================================================== */

:root {
  --glass-edge: rgba(143, 192, 240, 0.55);
  --glass-face: rgba(111, 165, 232, 0.035);
  --refract-a: rgba(126, 186, 255, 0.10);
  --refract-b: rgba(96, 148, 224, 0.04);
}

/* --- Edge-lit glass: panes read as suspended sheets, lit on the rim ----- */
.card, .cta-band, .ui-shot, .video-frame, .split-media, .search-modal {
  position: relative;
  background:
    linear-gradient(160deg, var(--refract-a) 0%, transparent 38%),
    var(--surface);
  isolation: isolate;
}
.card::after, .cta-band::after, .ui-shot::before, .split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  /* the lit rim — brightest at top-left, fading around the pane */
  background: linear-gradient(145deg, var(--glass-edge), transparent 42%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  padding: 1px;
  opacity: 0.32;
  transition: opacity .45s ease;
}
.card:hover::after { opacity: 0.75; }

/* --- Gestural response: the pane leans toward the cursor --------------- */
.card {
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.22,1,.36,1), border-color .4s ease;
  will-change: transform;
}
.card.tilt {
  transform:
    perspective(900px)
    rotateX(calc(var(--ty, 0) * -3deg))
    rotateY(calc(var(--tx, 0) * 3deg))
    translateY(-2px);
}
/* the cursor drags a soft refraction across the glass */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity .5s ease;
  background: radial-gradient(
    22rem 22rem at var(--mx, 50%) var(--my, 50%),
    var(--refract-a), var(--refract-b) 45%, transparent 70%);
}
.card:hover::before { opacity: 1; }

/* --- Scan sweep: a slow pass of light across framed media -------------- */
.ui-shot, .video-frame { overflow: hidden; }
.ui-shot::before {
  background: linear-gradient(105deg, transparent 42%, rgba(143,192,240,0.10) 50%, transparent 58%);
  opacity: 0;
  animation: pcScan 9s ease-in-out infinite;
  -webkit-mask: none; mask: none; padding: 0;
}
@keyframes pcScan {
  0%, 62% { opacity: 0; transform: translateX(-60%); }
  72%     { opacity: 1; }
  100%    { opacity: 0; transform: translateX(60%); }
}

/* --- Foresight strip: the platform's predictive surface ---------------- */
.foresight { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
@media (max-width: 980px) { .foresight { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .foresight { grid-template-columns: 1fr; } }
.fs {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: var(--glass-blur);
  padding: 1.4rem 1.3rem 1.5rem;
  overflow: hidden;
}
.fs .fh {
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--voice-ink); font-weight: 600; margin-bottom: 0.9rem;
}
.fs .fv {
  font-family: 'Space Grotesk', var(--font-head);
  font-size: 1.65rem; font-weight: 700; line-height: 1.1;
  color: var(--ice); margin-bottom: 0.45rem;
}
.fs .fd { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
/* the horizon line: a hairline that reaches forward */
.fs .fl {
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc-hi), transparent);
  opacity: 0.35;
  animation: pcHorizon 6s ease-in-out infinite;
}
@keyframes pcHorizon { 0%,100% { opacity: 0.12; } 50% { opacity: 0.5; } }

@media (prefers-reduced-motion: reduce) {
  .card, .card.tilt { transform: none; transition: none; }
  .card::before, .ui-shot::before, .fs .fl { animation: none; }
}

/* --- Design partner section ------------------------------------------- */
.dp {
  position: relative; overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3.4rem);
  background:
    linear-gradient(155deg, rgba(126,186,255,0.09) 0%, transparent 45%),
    var(--surface);
  backdrop-filter: var(--glass-blur);
}
.dp::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(145deg, var(--glass-edge), transparent 46%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px; opacity: 0.5;
}
.dp-copy { position: relative; z-index: 1; max-width: 780px; }
.dp-badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--acc-hi);
  border: 1px solid rgba(143,192,240,0.32); border-radius: 999px;
  padding: 0.42rem 0.9rem; margin-bottom: 1.4rem;
  background: rgba(111,165,232,0.07);
}
.dp-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--acc-hi);
  box-shadow: 0 0 0 0 rgba(143,192,240,0.55);
  animation: dpPulse 2.6s ease-out infinite;
}
@keyframes dpPulse {
  0%   { box-shadow: 0 0 0 0 rgba(143,192,240,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(143,192,240,0); }
  100% { box-shadow: 0 0 0 0 rgba(143,192,240,0); }
}
.dp h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.14; margin-bottom: 1rem; }
.dp p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.65; margin-bottom: 0.9rem; }
.dp .dp-sub { font-size: 0.98rem; }
.dp-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem 1.8rem; margin: 1.8rem 0 2rem;
  padding-top: 1.6rem; border-top: 1px solid var(--hairline);
}
@media (max-width: 720px) { .dp-list { grid-template-columns: 1fr; } }
.dp-item { display: flex; flex-direction: column; gap: 0.35rem; }
.dp-k {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--voice-ink);
}
.dp-v { font-size: 0.93rem; line-height: 1.55; color: var(--text-muted); }
.dp-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.dp-note {
  margin-top: 1.1rem !important; font-size: 0.8rem !important;
  color: var(--voice-ink) !important; letter-spacing: 0.04em;
}
