/* FRAME F2.8 — restrained cyan / charcoal / pearl palette.
   The four-way explorer keeps its original geometry, state and motion logic. */
:root {
  --frame-cyan: #3AE0F2;
  --frame-cyan-deep: #245563;
  --frame-pink: #D44A74;
  --frame-pink-soft: #FBEFF3;
  --frame-charcoal: #172C38;
  --frame-slate: #3D6475;
  --frame-chrome: #F7FAFC;
  --frame-pearl: #C8D7E0;
  --frame-white: #FFFFFF;
  --frame-mist: #DDF3F8;
  --background: #F7FAFC;
  --background-deep: #DDF3F8;
  --surface: #F7FAFC;
  --surface-high: #FFFFFF;
  --surface-low: #EAF5F7;
  --navy: #172C38;
  --navy-soft: #253F4A;
  --accent: #3AE0F2;
  --accent-deep: #245563;
  --text-primary: #172C38;
  --text-secondary: #3D6475;
  --text-faint: #668592;
  --line: rgba(61,100,117,.16);
  --white-line: rgba(255,255,255,.82);
}

body {
  background:
    radial-gradient(circle at 14% 4%, rgba(255,255,255,.98), transparent 30rem),
    linear-gradient(135deg, #FFFFFF 0%, #F7FAFC 48%, #DDF3F8 100%);
}

::selection { background: rgba(58,224,242,.42); color: #172C38; }
:where(a,button,input,select,summary):focus-visible {
  outline-color: #245563;
}

#explore {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 50% 8%, rgba(58,224,242,.10), transparent 38rem),
    radial-gradient(ellipse at 92% 88%, rgba(212,74,116,.045), transparent 27rem),
    linear-gradient(135deg, #FFFFFF 0%, #F7FAFC 54%, #EAF5F7 100%);
  color: #172C38;
}

#explore::before,
#explore::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

#explore::before {
  width: min(42vw, 520px);
  aspect-ratio: 1;
  inset: 3% auto auto 0;
  background: radial-gradient(circle, rgba(58,224,242,.09), transparent 68%);
}

#explore::after {
  width: min(32vw, 390px);
  aspect-ratio: 1;
  inset: auto 0 0 auto;
  background: radial-gradient(circle, rgba(200,215,224,.28), transparent 70%);
}

#explore .phase2-shell {
  position: relative;
  z-index: 1;
}

#explore .fw-app {
  --accent: #3AE0F2;
  --accent-deep: #245563;
  --background: #F7FAFC;
  --background-deep: #DDF3F8;
  --surface: #F7FAFC;
  --surface-high: #FFFFFF;
  --surface-low: #EAF5F7;
  --navy: #172C38;
  --text-primary: #172C38;
  --text-secondary: #3D6475;
  --text-faint: #668592;
  --line: rgba(61,100,117,.16);
  --white-line: rgba(255,255,255,.82);
}

.fw-app .stage {
  border: 1px solid rgba(61,100,117,.13);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.98), transparent 56%),
    linear-gradient(145deg, #FFFFFF 0%, #F7FAFC 52%, #EAF5F7 100%);
  box-shadow:
    0 30px 76px rgba(23,44,56,.12),
    0 2px 0 rgba(255,255,255,.94) inset,
    0 -1px 0 rgba(61,100,117,.06) inset;
}

.fw-app .stage::after {
  border-color: rgba(255,255,255,.88);
  box-shadow: inset 0 0 0 1px rgba(61,100,117,.035);
}

.fw-app .pane[data-panel="0"] {
  background: linear-gradient(145deg, #FFFFFF 0%, #F1FAFB 100%);
}
.fw-app .pane[data-panel="1"] {
  background: linear-gradient(145deg, #F8FCFD 0%, #EAF5F7 100%);
}
.fw-app .pane[data-panel="2"] {
  background: linear-gradient(145deg, #FFFFFF 0%, #F4FAFB 100%);
}
.fw-app .pane[data-panel="3"] {
  background: linear-gradient(145deg, #FFFFFF 0%, #FCF5F7 100%);
}

.fw-app .pane::before {
  background:
    radial-gradient(ellipse at 86% 12%, rgba(58,224,242,.11), transparent 43%),
    linear-gradient(125deg, rgba(255,255,255,.58), transparent 48%, rgba(23,44,56,.018));
  opacity: .82;
}

.fw-app .pane[data-panel="3"]::before {
  background:
    radial-gradient(ellipse at 86% 12%, rgba(212,74,116,.075), transparent 43%),
    linear-gradient(125deg, rgba(255,255,255,.62), transparent 48%, rgba(23,44,56,.018));
}

.fw-app .seams {
  color: #3D6475;
  opacity: .72;
}
.fw-app .seams path {
  stroke: currentColor;
  stroke-width: .85;
  stroke-opacity: .055;
}
.fw-app .seams .accent-line {
  stroke: #245563;
  stroke-width: 1.1;
  stroke-opacity: .15;
}
.fw-app .seams .joint {
  fill: #FFFFFF;
  stroke: #3D6475;
  stroke-opacity: .18;
  opacity: .42;
}

.fw-app .pane-name {
  color: #172C38;
  text-shadow: 0 1px 0 rgba(255,255,255,.58);
}
.fw-app .pane-number { color: #668592; }
.fw-app .pane-summary { color: #3D6475; }
.fw-app .pane-arrow { color: #245563; }
.fw-app .pane-glyph {
  color: #245563;
  opacity: .24;
  filter: drop-shadow(0 3px 8px rgba(36,85,99,.08));
}
.fw-app .pane-glyph .accent { stroke: #2B9EAD; }

.fw-app .route-signal { color: #3D6475; opacity: .82; }
.fw-app .route-signal .soft-plane {
  fill: rgba(221,243,248,.72);
  stroke: rgba(61,100,117,.16);
}
.fw-app .route-signal .line-accent {
  stroke: #2B9EAD;
  stroke-width: 1.2;
}
.fw-app .route-signal .point {
  fill: #FFFFFF;
  stroke: #245563;
}

.fw-app .route-cta {
  border-color: rgba(61,100,117,.16);
  background: linear-gradient(145deg, #FFFFFF, rgba(221,243,248,.64));
  box-shadow: 0 8px 20px rgba(23,44,56,.055), inset 0 1px rgba(255,255,255,.9);
}
.fw-app .route-cta:hover {
  border-color: rgba(36,85,99,.30);
  box-shadow: inset 0 3px 8px rgba(23,44,56,.055), inset 0 -1px rgba(255,255,255,.8);
}
.fw-app .reset:hover {
  color: #245563;
}

@media (max-width: 760px) {
  #explore {
    background:
      radial-gradient(ellipse at 50% 4%, rgba(58,224,242,.085), transparent 27rem),
      linear-gradient(160deg, #FFFFFF 0%, #F7FAFC 62%, #EAF5F7 100%);
  }
  #explore::before,
  #explore::after { opacity: .55; }
  .fw-app .stage {
    box-shadow:
      0 18px 42px rgba(23,44,56,.10),
      0 1px 0 rgba(255,255,255,.92) inset;
  }
}

@media (prefers-reduced-motion: reduce) {
  #explore::before,
  #explore::after { filter: none; }
}
